From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Koeppe Newsgroups: gmane.lisp.guile.devel Subject: Re: What replaces scm_register_module_xxx (Doc update?) Date: Fri, 09 Aug 2002 13:29:09 +0200 Sender: guile-devel-admin@gnu.org Message-ID: References: <20020808134824.GB23831@www> <20020808102103.021cdc0c.dsmith@altustech.com> <874re5mnfs.fsf@raven.i.defaultvalue.org> <20020808161958.GA24162@www> <20020809100046.GB25104@www> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1028892568 15212 127.0.0.1 (9 Aug 2002 11:29:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2002 11:29:28 +0000 (UTC) Cc: Rob Browning , "Dale P. Smith" , guile-devel@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17d7xO-0003xD-00 for ; Fri, 09 Aug 2002 13:29:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17d7y7-0002I0-00; Fri, 09 Aug 2002 07:30:11 -0400 Original-Received: from saturn.math.uni-magdeburg.de ([141.44.75.38]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17d7xC-00027s-00 for ; Fri, 09 Aug 2002 07:29:15 -0400 Original-Received: from beta.math.uni-magdeburg.de (beta [141.44.75.78]) by saturn.math.uni-magdeburg.de (8.11.6/8.11.6) with ESMTP id g79BTAX08138; Fri, 9 Aug 2002 13:29:10 +0200 (MET DST) Original-Received: (from mkoeppe@localhost) by beta.math.uni-magdeburg.de (8.10.2+Sun/8.10.2) id g79BT9B02878; Fri, 9 Aug 2002 13:29:09 +0200 (MEST) X-Authentication-Warning: beta.math.uni-magdeburg.de: mkoeppe set sender to mkoeppe@mail.math.uni-magdeburg.de using -f Original-To: rm@fabula.de In-Reply-To: <20020809100046.GB25104@www> (rm@fabula.de's message of "Fri, 9 Aug 2002 12:00:46 +0200") Original-Lines: 48 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.80 (sparc-sun-solaris2.7) Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1047 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1047 rm@fabula.de writes: > On Fri, Aug 09, 2002 at 10:47:50AM +0200, Matthias Koeppe wrote: >> [...] >>=20 >> He proposed and implemented a C API for defining modules and exporting >> symbols, see >>=20 >> http://mail.gnu.org/pipermail/guile-devel/2001-May/002171.html >>=20 >> 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=20 > 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.=20 Regards, --=20 Matthias K=F6ppe -- http://www.math.uni-magdeburg.de/~mkoeppe _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel