[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [guile/scwm] 2nd argument problem to scm_definedp()
From: |
P Pareit |
Subject: |
Re: [guile/scwm] 2nd argument problem to scm_definedp() |
Date: |
Tue, 17 Sep 2002 15:53:35 +0200 |
User-agent: |
KMail/1.4.2 |
On Tuesday 17 September 2002 11:25 am, P Pareit wrote:
<snip>
> #include <stdio.h>
> #include <libguile.h>
>
> void init_load_path(void)
> {
> SCM path;
>
> path = scm_c_lookup("%load-path");
> path = scm_cons(scm_makfrom0str("/usr/local/share/scwm/modules"),
> path);
> scm_c_define("%load-path", path);
> }
Thanks to the help of dsmith, this is already fixed:
void init_load_path(void)
{
SCM path = scm_c_lookup("%load-path");
SCM_VARIABLE_SET(path,
scm_cons(scm_makfrom0str("/usr/local/share/scwm/modules"),
SCM_VARIABLE_REF(path)));
}
Maybe someone can document SCM_VARIABLE_SET and SCM_VARIABLE_REF?
pieter;
Re: [guile/scwm] 2nd argument problem to scm_definedp(), Rob Browning, 2002/09/16