This is the mail archive of the guile@cygnus.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]

calling scheme function from C


Hi!

That is the best way to take pointer of some scheme function and call it
from "C"? For example, I have following scheme definition:

(define (func str)
 )

How can I call it from C? The one way I've found is use gh_eval_str(), but
I have to prepare external representation of parameters.

I suspect there is way to take pointer to this function from C and simply
call it.

Sincerely,
Vadim

;;----------------------------------+-----------------------------------+
;; Vadim Zaliva                     + Those who do not understand Unix  +
;; mailto:lord@crocodile.org        + are condemned to reinvent it,     +
;; http://www.crocodile.org         + poorly.          (H. Spencer)     +
;;----------------------------------+-----------------------------------+