From: P Pareit <pieter.pareit@planetinternet.be>
Subject: Re: [guile/scwm] 2nd argument problem to scm_definedp()
Date: Tue, 17 Sep 2002 15:53:35 +0200 [thread overview]
Message-ID: <200209171553.35147.pieter.pareit@planetinternet.be> (raw)
In-Reply-To: <200209171125.17679.pieter.pareit@planetinternet.be>
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;
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2002-09-17 13:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-16 18:49 [guile/scwm] 2nd argument problem to scm_definedp() P Pareit
2002-09-16 19:42 ` Marius Vollmer
2002-09-16 19:55 ` Rob Browning
2002-09-16 20:24 ` Marius Vollmer
2002-09-17 9:25 ` rm
2002-09-17 21:51 ` Marius Vollmer
2002-09-17 9:25 ` P Pareit
2002-09-17 13:53 ` P Pareit [this message]
2002-09-17 21:38 ` Marius Vollmer
2002-09-16 19:49 ` Rob Browning
2002-09-16 19:53 ` Rob Browning
2002-09-16 20:22 ` Marius Vollmer
2002-09-16 20:25 ` Rob Browning
2002-09-17 16:00 ` Rob Browning
2002-09-17 21:50 ` Marius Vollmer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200209171553.35147.pieter.pareit@planetinternet.be \
--to=pieter.pareit@planetinternet.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).