[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: list building and argz_smob
From: |
Paul Jarc |
Subject: |
Re: list building and argz_smob |
Date: |
Mon, 09 Feb 2004 13:51:47 -0500 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |
I wrote:
> This should do it:
> scm_map(private_printer, argz_list_scm, SCM_EOL);
Well, no, that's not quite right, since scm_map expects a SCM value,
and private_printer is a C function. But you still don't want to use
scm_c_define_gsubr here, if this code will run more than once. Your
one-time init code can establish the binding, look up the SCM value,
and store that in a global variable, protecting it with
scm_gc_protect_object, and then pass the SCM value in that global
variable to scm_map.
paul