On 12 Dec 2002 at 16:37, Frank Heckenbach wrote:
[...]
The construct is to define a Boolean type which has a certain size. Many C interfaces just use `int' for Boolean values, some (especially in tight structs) also `short' or `char' or whatever. (Maybe this will change in the future, but I think many C programmers are somewhat conservative in requiring newer standards.) So, in GPC you can use `WordBool' to interface to a C type `int' which is used as a Boolean in C.
BTW, I'm adding `CBoolean' in GPC now (that's rather harmless, just another predefined identifier which no maigc properties), to be compatible with C's `_Bool' (but as a Pascal Boolean type).
This is fine. But please let us retain the ability to specify sizes for data types. People often have to read files created by other applications and sometimes require data structures of specific sizes, and it should be possible to create a data structure of that size without too many contortions.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/