guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating modules from C


From: Marius Vollmer
Subject: Re: Creating modules from C
Date: 15 May 2001 14:33:40 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

"Lars J. Aas" <address@hidden> writes:

> On Tue, May 15, 2001 at 02:44:54AM +0200, Marius Vollmer wrote:
> : Alex Shinn <address@hidden> writes:
> : 
> : > So how would one define an exported function from C?
> : 
> : Like this:
> : 
> :     void
> :     my_module_init (void *unused)
> :     {
> :       scm_make_gsubr ("foo", 0, 0, 0, foo);
> :       scm_make_gsubr ("bar", 0, 0, 0, foo);
> :       ...
> :       scm_c_export ("foo", "bar");
> 
> Is this a va_list (and should be terminated), or do you always wave to
> export your functions in pairs? :)  Also, bar should be different from
> foo, so your example is fubar...  OK, maybe only fu :)

Arrgh!  Sorry, I has been late...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]