[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What replaces scm_register_module_xxx (Doc update?)
From: |
Matthias Koeppe |
Subject: |
Re: What replaces scm_register_module_xxx (Doc update?) |
Date: |
Fri, 09 Aug 2002 13:29:09 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.80 (sparc-sun-solaris2.7) |
address@hidden writes:
> On Fri, Aug 09, 2002 at 10:47:50AM +0200, Matthias Koeppe wrote:
>> [...]
>>
>> He proposed and implemented a C API for defining modules and exporting
>> symbols, see
>>
>> http://mail.gnu.org/pipermail/guile-devel/2001-May/002171.html
>>
>> I use this API in the Guile back-end of SWIG (http://www.swig.org).
>> The functions are also mentioned in the NEWS file of Guile (changes
>> after release 1.4). The API is also used in
>> examples/box-module/box.c.
>
> Ah, thank's a lot, the "missing files". I remembered the discussion
> but forgot that Marius _did_ post a description of the new interface.
> Marius, just one more question: it looks like the signature of
> scm_c_define_module changed slightly since your mail back last may:
>
> scm_c_define_module (const char *name,
> void (*init)(void *), void *data)
>
> - what is the purpose of 'void *data' ?
It is an opaque argument...
> - what is passed to the init function in the void pointer and
> what is the function supposed to return?
... that is simply passed to the init function when it is invoked.
(This makes the init function a "C closure".) The init function
returns nothing (it has "void" return type).
>> I believe it's only an accident that the functions are not documented
>> (except for the NEWS blurb). I think documentation should be added;
>> the changes should also go into the 1.6 release. Preliminary
>> documentation can be found in the above message by Marius.
>
> Should this be documented soon?
Ralf, maybe you want to prepare a patch that adds the documentation to
Guile.
Regards,
--
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe
- Re: What replaces scm_register_module_xxx (Doc update?), (continued)
- Re: What replaces scm_register_module_xxx (Doc update?), Marius Vollmer, 2002/08/08
- Re: What replaces scm_register_module_xxx (Doc update?), Neil Jerram, 2002/08/08
- Re: What replaces scm_register_module_xxx (Doc update?), rm, 2002/08/09
- Re: What replaces scm_register_module_xxx (Doc update?), Neil Jerram, 2002/08/19
- Re: What replaces scm_register_module_xxx (Doc update?), rm, 2002/08/19
- Re: What replaces scm_register_module_xxx (Doc update?), Matthias Koeppe, 2002/08/09
- Re: What replaces scm_register_module_xxx (Doc update?), rm, 2002/08/09
- Re: What replaces scm_register_module_xxx (Doc update?),
Matthias Koeppe <=
- Re: What replaces scm_register_module_xxx (Doc update?), rm, 2002/08/09
- Re: What replaces scm_register_module_xxx (Doc update?), Marius Vollmer, 2002/08/10
- Re: What replaces scm_register_module_xxx (Doc update?), Marius Vollmer, 2002/08/11
- Re: What replaces scm_register_module_xxx (Doc update?), Dirk Herrmann, 2002/08/17
- Re: What replaces scm_register_module_xxx (Doc update?), Neil Jerram, 2002/08/19
- Re: What replaces scm_register_module_xxx (Doc update?), Dirk Herrmann, 2002/08/24
- Re: What replaces scm_register_module_xxx (Doc update?), Neil Jerram, 2002/08/26
- Re: What replaces scm_register_module_xxx (Doc update?), Marius Vollmer, 2002/08/26
- Re: What replaces scm_register_module_xxx (Doc update?), Marius Vollmer, 2002/08/21
- Re: What replaces scm_register_module_xxx (Doc update?), Marius Vollmer, 2002/08/12