Well, the CTypes unit is documented, so I see no need to add this ?

You should not use native pascal types when translating, always use the
types from the ctypes unit. That's its purpose, after all.

Michael.

On Tue, 2 Nov 2010, Graeme Geldenhuys wrote:

Some other annotations I have in my ref.inf document is
C Types, and how they map to Object Pascal types. Maybe this would be
useful too in the official docs - after all, many developers translate/port
C headers or libraries to FPC. If it will be useful to add to the docs, I'm
not 100% sure if this must go in the Lang Ref or RTL docs (eg: System or
CTypes units).

Some alias types I have made notes about:

DWord ->  Cardinal

Long  -\
clong - -->  LongInt
cint  -/

Short ->  SmallInt
Uint  ->  Cardinal
ULong ->  Cardianl
Handle -> DWord (Win32); LongInt(Linux)

etc...


Regards,
 - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net:8080/fpgui/

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to