guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Geting the value of a top level scheme value from C


From: Panicz Maciej Godek
Subject: Re: Geting the value of a top level scheme value from C
Date: Fri, 24 Jan 2014 18:07:05 +0100

2014/1/24 Richard Shann <address@hidden>:
> Given a C string that is the name of a Scheme variable what is the call
> I need to make from C to get the value?
[...]

i think it is all well described here:
http://www.gnu.org/software/guile/manual/html_node/Accessing-Modules-from-C.html

however, note that according to the manual, you need to free the
result of scm_to_locale_string manually, in order not to get a memory
leak (because apparently it isn't magaged by the bdw gc), so passing
the result directly to strcmp is not a fortunate idea.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]