This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

call a C-routine as a Scheme function?




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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]