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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: ftp://ftp.gerwinski.de/pub/keys/ - AntiSpam: http://spam.abuse.net