This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
a module spanning a .c and a .scm file
- To: guile at sourceware dot cygnus dot com
- Subject: a module spanning a .c and a .scm file
- From: Shawn <sabetts at vcn dot bc dot ca>
- Date: Thu, 27 Jul 2000 00:21:29 -0700
I have figured out how to create a module in scheme with
(define-module ...) and I can create a module in c with
scm_register_module_xxx. Is there a way I could have a module span .c
and .scm files? That is, I have some functions for a module defined in
a .scm file and others defined in .c file, how could I load them all
with one
(use-modules (i-dig the-modules))
I tried just dynamically linking the c functions and calling an
scm_init_the_module function from within the .scm file, which sorta worked
except that I couldn't access any of the scm functions from the c
library. I'm guessing they weren't added the same way a (define-public
...) procedure is added.
thanks!