External, C, AsmName, ..._(re)
Mon, 9 Sep 96 16:18:21 CST
On Sun, 8 Sep 1996 00:34:02 +0200 (MET DST),
Peter Gerwinski wrote:
>According to Berend de Boer:
>> Can we not simply see a C .h file as an interface-only module? I mean I can
>> simply import a c .h file which gpc parses and all symbols defined in that
>> header file are exported symbols?
>
>This would mean that GPC would have to parse C source.
>
>Remember that #include "foo.h" or (*$include "foo.h" *) just means
>that GPC treads the file `foo.h' just if its contents were written
>in our source file. A Pascal program using this mechanism would
>in fact look like the following:
>
> Program Test;
>
> extern int foo;
>
> extern void ioctl (int fildes, int cmd, ...);
>
> begin
> [...]
> end.
>
>You don't actually want this. ;-)
>
No, I don't :)
But it would be a good idea to write a C->pas header converter. Right now,
you have to translate all headers before you can use them.
janjaap
---
The latest & greatest in software, hardware and manswear.
Bono Vox (U2)
J.J. van der Heijden (j.j.vanderheijden@student.utwente.nl)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es