Markus Gerwinski wrote:
Next question: Where can I find a complete list of Pascal types that are 1:1 mappings of C types, and what they map?
Programming: Data Types: Integer Types: Main Branch Integer Types Programming: Data Types: Real Types CString -> [const] char * Char -> unsigned char Boolean -> unsigned char Enums, records and arrays if structurally identical, not packed in Pascal, and same alignment options used.
I also made up a C header containing this declaration:
typedef enum { gpc_false, gpc_true } gpc_bool;
for compatibility. Is this one a valid mapping, or would you rather recommend me another one?
typedef unsigned char Boolean; (as several of the C files of the units do). And if you like: enum { gpc_false = 0; gpc_true = 1; }; (or macros if you prefer, whatever). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8