Mail Archives: djgpp/1998/12/27/10:20:17
Antoine Mathys wrote:
> I would like to create a Pascal programm, and include a C function in it.
> That is, creating a .c file with a func() declaration, and a .pas file with
> something like procedure func; external;
It's
Procedure Func; C;
or, more flexible,
Procedure MyPrettyFunction; AsmName 'func';
For details see the GNU Pascal FAQ list, available online
at http://home.pages.de/~GNU-Pascal/gpc-faq.html .
Hope this helps,
Peter
--
Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830
PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75
Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
- Raw text -