[zxspectrum] Re: Emulatore "fuse"
- From: Enrico Maria Giordano <e.m.giordano@xxxxxxxxxxxxxxx>
- To: zxspectrum@xxxxxxxxxxxxx
- Date: Wed, 22 Jan 2003 11:50:24 +0100
BODRATO Stefano wrote:
>
> Il file libspectrum.h ha un difetto: imposta la struttura _GSList sia
> per il c++ (typedef..) che per il c (struct GSList...) dando errori in
> fase di compilazione.
Entrambi i costrutti esistono sia in C che in C++. L'unica differenza è
che mentre in C si deve specificare la keyword "struct" ogni volta che
si usa la struttura (nel nostro caso GSList) oppure si deve usare il
typedef, in C++ il typedef non serve e si può omettere la keyword
"struct". Esempio pratico:
C
struct GSList
{
...
};
struct GSList miaGSList;
oppure
typedef struct
{
...
} GSList;
GSList miaGSList;
C++
struct GSList
{
...
};
GSList miaGSList;
EMG
--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
- References:
- [zxspectrum] Emulatore "fuse"
- From: BODRATO Stefano
Other related posts:
- » [zxspectrum] Emulatore "fuse"
- » [zxspectrum] Re: Emulatore "fuse"
- » [zxspectrum] Re: Emulatore "fuse"
- [zxspectrum] Emulatore "fuse"
- From: BODRATO Stefano