Marco van de Voort schrieb:
On Sun, Aug 14, 2011 at 08:30:20PM +0200, Sven Barth wrote:
If you look into the unit "ctypes" (located in $fpcdir/rtl/inc)
you'll see that "ppchar" is defined as "^cchar" and "cchar" is
defined as "cint8" which in turn is defined as "shortint". While
SizeOf(ShortInt) = SizeOf(Char) is true ("Char" is the base of
"PChar"), ShortInt=Char is not.

IIRC originally when I added ctypes, name:pcchar was meant to be the
translation from "const char* name".

AFAIR Windows.h defined PCCHAR this way, and PTCHAR as platform specific, i.e. PCHAR on Win16 and PWCHAR on Win32. Even combinations of T and C modifiers had been defined, e.g. PTCCHAR.

The same names in lowercase may have different meanings in C (ctypes.h), but since Pascal identifiers are case insensitive... :-(

DoDi


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to