This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
call a C-routine as a Scheme function?
- To: guile at sourceware dot cygnus dot com
- Subject: call a C-routine as a Scheme function?
- From: Han-Wen Nienhuys <hanwen at cs dot uu dot nl>
- Date: Sat, 15 Jul 2000 00:40:33 +0200 (CEST)
- Reply-To: hanwen at cs dot uu dot nl
is there an easy way to call a C-routine as a Scheme function?
eg. how do I pass foo_less as argument to scm_merge_x (), if foo_less
is defined like
SCM
foo_less (SCM a , SCM b)
{
[..]
}
right now I first do gh_new_procedure2_0("foo-less", foo_less), and
call scm_merge_x with gh_eval (gh_symbol2scm ("foo_less")). Surely
there must be an easier way?
--
Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.cs.uu.nl/~hanwen/