guile-devel
[Top][All Lists]
Advanced

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

Re: Creating modules from C


From: Lars J. Aas
Subject: Re: Creating modules from C
Date: Tue, 15 May 2001 09:44:12 +0200
User-agent: Mutt/1.2.5i

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 :)

  Lars J



reply via email to

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