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