[fpc-pascal] A few doubts about C to pascal header translations:

Marco van de Voort marcov at stack.nl
Mon Apr 25 14:06:51 CEST 2011


In our previous episode, Paulo Costa said:
> >> I replaced size_t by PtrUInt, is there a better alternative?
> >
> > On *nix size_t is afaik declared in unit baseunix?
> >
> 
> Right now I'm working in Linux but I latter would like to make it work 
> in Windows. The main concern was if it was 32/64 bits safe.

Then use the FPC internal types, sizeint,sizeuint (size of an allocation)
or ptrint/ptruint (size of a pointer).

This because we don't operate on windows via a posix-like layer, but by
direct winapi, and follow the typing of the windows api headers, which are
generally not unixy.



More information about the fpc-pascal mailing list