From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: list building and argz_smob Date: Mon, 09 Feb 2004 13:51:47 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076353108 24024 80.91.224.253 (9 Feb 2004 18:58:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2004 18:58:28 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 09 19:58:09 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AqGbg-0004qe-01 for ; Mon, 09 Feb 2004 19:58:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AqGYx-000840-Da for guile-user@m.gmane.org; Mon, 09 Feb 2004 13:55:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AqGWH-0007VU-5l for guile-user@gnu.org; Mon, 09 Feb 2004 13:52:33 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AqGVj-0007M9-Ay for guile-user@gnu.org; Mon, 09 Feb 2004 13:52:30 -0500 Original-Received: from [129.22.104.47] (helo=mirapoint2.tis.cwru.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AqGVh-0007Ly-Os for guile-user@gnu.org; Mon, 09 Feb 2004 13:51:57 -0500 Original-Received: from multivac.cwru.edu (multivac.ITS.CWRU.Edu [129.22.114.26]) by mirapoint2.tis.cwru.edu (MOS 3.4.3-CR) with SMTP id AJN19686; Mon, 9 Feb 2004 13:51:47 -0500 (EST) Original-Received: (qmail 5602 invoked by uid 500); 9 Feb 2004 18:52:09 -0000 Original-To: Brian S McQueen In-Reply-To: (Paul Jarc's message of "Mon, 09 Feb 2004 13:41:05 -0500") Mail-Copies-To: nobody Mail-Followup-To: Brian S McQueen , guile-user@gnu.org Original-Lines: 14 User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2773 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2773 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 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user