Matze Braun wrote:
You should add, how to use global vars from C-Librarie. I had to look for a long time before I noticed, that I have to use asmname '...' before the Data Type.
I often thought about
- replacing `asmname' by `external name' (inspired by DLL support in BP),
- making `external' a rigidly reserved word, so we can place it _after_ the type.
Then, declarations would read:
Var LibCVariable: Integer; external name 'lib_c_variable';
Another comment on this: Most applications or declarations of libc variables are already covered in the portable GPC unit. Normally, you do not need `asmname' at all - only if you want to create a new (portable;-) unit for GPC.
Peter