[Ecls-list] Declaring functions and shutting down ECL
Julian St.
der_julian at web.de
Mon Jun 9 15:03:07 UTC 2003
On Mon, 9 Jun 2003 19:26:34 +0200
Juan Jose Garcia Ripoll <juan.ripoll at mpq.mpg.de> wrote:
> If your function (Let us call it "my_c_fun()") has a prototype like
> cl_object my_c_fun(int narg, ...)
> and it expects only to receive values of type "cl_object", then you can use
> cl_def_c_function_va(c_string_to_object("MY-C-FUN"), my_c_fun)
> to assign the function to the lisp symbol MY-C-FUN. After the call to
> "cl_def..." the function may be used in the Lisp world. The argument NARG
> will tell the function how many values it should retrieve.
Thanks alot.
> The whole interface for defining functions, etc, is one of the most "unstable"
> features of ECL, in the sense that it is prone to change in the near future.
> Since I use it very little, I will welcome (and probably implement :-) any
> suggestions to improve its usability.
Seems to work fine for me. :)
Another question arose lately: Is it possible to "shut down" ECL? I am currently developing a plugin for X-Chat an loading it as shared library works fine, but after unloading it, all the memory is not freed.
Regards,
Julian
--
Reboot America.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20030609/c6ea1096/attachment.sig>
More information about the ecl-devel
mailing list