From: prj@po.cwru.edu (Paul Jarc)
Cc: guile-user@gnu.org
Subject: Re: list building and argz_smob
Date: Mon, 09 Feb 2004 13:41:05 -0500 [thread overview]
Message-ID: <m31xp4hz8o.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <Pine.GSO.4.58.0402090919280.18897@marcy.nas.nasa.gov> (Brian S. McQueen's message of "Mon, 9 Feb 2004 10:07:07 -0800 (PST)")
Brian S McQueen <bqueen@nas.nasa.gov> wrote:
> (if cgi-http-cookie
> (let ((nop-item (cgi:cookie "nop_item")))
> (if nop-item
> (string-append "nop_item=\"" (frobnicate nop-item) "\"")
> "no_nop_item" ))
> "no_nop_item")
You might also like:
(let ((nop-item (and cgi-http-cookie (cgi:cookie "nop_item"))))
(if nop-item
(string-append "nop_item=\"" (frobnicate nop-item) "\"")
"no_nop_item"))
> scm_map(
> scm_c_define_gsubr("anon-printer", 1, 0, 0, private_printer),
> argz_list_scm, SCM_EOL);
I don't think you want to use scm_c_define_gsubr here. This should do
it:
scm_map(private_printer, argz_list_scm, SCM_EOL);
scm_c_define_gsubr is needed only once, to create the Scheme-visible
binding to the C function, and you might prefer using the SCM_DEFINE
snarfing macro instead of explicitly calling scm_c_Define_gsubr.
paul
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2004-02-09 18:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-09 18:07 list building and argz_smob Brian S McQueen
2004-02-09 18:41 ` Paul Jarc [this message]
2004-02-09 18:51 ` Paul Jarc
2004-02-09 19:49 ` Thien-Thi Nguyen
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=m31xp4hz8o.fsf@multivac.cwru.edu \
--to=prj@po.cwru.edu \
--cc=guile-user@gnu.org \
/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).