[fpc-devel] Cardinal = LongWord on 64bit systems?

Marco van de Voort marcov at stack.nl
Thu Oct 15 12:08:39 CEST 2009


In our previous episode, Graeme Geldenhuys said:
> >  About PLong: use unit ctypes: PCLong
> 
> I'm trying to minimize the amount of "new" types introduced in this
> ported project. I already have so many custom types like shown below.
> So I would prefer to convert these custom types to actually (included
> by default) types available in FPC.
> 
> // used by header translation from C -> Object Pascal
> type
>   uint32  = longword;
>   uint16  = word;
>   uint8   = byte;
>   pUInt16 = ^uint16;
>   pUInt32 = ^uint32;
>   pUInt8  = ^uint8;

All of these are in ctypes with a c prefixed (cuint* and pcuint*),
corresponding to the local system C compiler. (rep. gcc or MSVC)



More information about the fpc-devel mailing list