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)
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to