Richard Shann writes:
> 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?
>
> That is, in the Scheme I have
>
> (define foo "bar")
>
> Then in C I want to write
>
> SCM bar = scm_var_c_get_val ("foo");//imaginary function name
SCM
Thanks for all the replies - sorry I didn't spot that section of the
manual (perhaps because it came under "Using modules" and I haven't
dipped my toes in that stuff).
I have it working now.
Richard
On Fri, 2014-01-24 at 12:34 -0500, Mark H Weaver wrote:
> Richard Shann writes:
>
> > Given a C
On Fri, Jan 24, 2014 at 11:54 AM, Richard Shann wrote:
> 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?
>
> That is, in the Scheme I have
>
> (define foo "bar")
>
> Then in C I want to write
>
> SCM bar = scm_var_c_get_val ("foo");
2014/1/24 Richard Shann :
> 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
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?
That is, in the Scheme I have
(define foo "bar")
Then in C I want to write
SCM bar = scm_var_c_get_val ("foo");//imaginary function name
strcmp ("bar", scm_to_locale_string (bar));
Hi,
> Looking into what I thought the module directory should be (on my
> system, this is /opt/share/guile-gnome-2/gnome/) reveals there is no
> such module defined.
probably because it didn't build and/or install correctly. did you
build/install the
required versions of both g-wrap and guile-c
On Fri, 2014-01-24 at 12:47 +0400, Artyom Poptsov wrote:
> Hi all,
>
> as you might know I'm working on Guile-SSH library [1] that is aimed to
> provide SSH protocol support for Scheme programs. One of the data types
> provided by the library is a Guile-SSH channel which can be used for
> transfe
Hi all,
as you might know I'm working on Guile-SSH library [1] that is aimed to
provide SSH protocol support for Scheme programs. One of the data types
provided by the library is a Guile-SSH channel which can be used for
transferring data between SSH client/server.
Currently channels are impleme