From: Bruno H. <br...@cl...> - 2003-07-31 17:06:43
|
Sam wrote: > why does FINALIZE-COUTPUT-FILE output *FUNCTION-LIST* at all? > why do we need "extern int (foo)();" in the generated C file if that C > file already includes am H file wich a full prototype of foo()?! It was needed around 1995 when many .h files were incomplete. Nowadays, .h files are much more complete (i.e. only a few percent of the documented functions are undeclared). For this reason, the FFI was designed so that things like (c-lines "#include <foobar.h>~%") was not needed. In today's world, it's possible to require to do the appropriate #include statements, and drop the "extern int (foo)();" decls. Bruno |