On Thu, Mar 21, 2002 at 04:04:01AM +0100, Frank Heckenbach wrote:
Carel Fellinger wrote:
...
I'm probably a bit dim here, but surely you are not saying that it's possible to forgo rewriting the header file into a pascal interface module by `{$include wrapper.c}', are you?
No -- it's {$L wrapper.c}. ;-)
Of course, you still have to write wrapper.c and you need some external declarations in Pascal. For more details, you might want to look at existing interfaces such as RegEx (with the GPC sources), or the mentioned database units, etc. ...
I may be really really dim, but I don't see the big win. You stil have to write your own mappings from C to gpc for *all* C decl's and def's you're going to use, and specify the "assname" for all routines used. The only thing this buys you is that gpc knows what other files to compile and link when you give it the --make or --build option. Something I'm not able to use as my project's build process is to complex for this, so I've to use make anyway.
Or am I missing something here?