From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: snarfer guard macro name decision: SCM_MAGIC_SNARFER Date: 14 Mar 2002 19:48:55 +0100 Sender: guile-devel-admin@gnu.org Message-ID: <87zo1bx9wo.fsf@zagadka.ping.de> References: <877kognusb.fsf@zagadka.ping.de> <87henkgmbi.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016131709 14063 127.0.0.1 (14 Mar 2002 18:48:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2002 18:48:29 +0000 (UTC) Cc: guile-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16laH6-0003ej-00 for ; Thu, 14 Mar 2002 19:48:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16laGl-0007R7-00; Thu, 14 Mar 2002 13:48:07 -0500 Original-Received: from dialin.speedway42.dip228.dokom.de ([195.138.42.228] helo=zagadka.ping.de) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16laFZ-0007IV-00 for ; Thu, 14 Mar 2002 13:46:53 -0500 Original-Received: (qmail 1918 invoked by uid 1000); 14 Mar 2002 18:48:55 -0000 Original-To: ttn@glug.org In-Reply-To: Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:41 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:41 Thien-Thi Nguyen writes: > old_school_snarf () > { > sed -e 's/SCM_CONST_LONG/SCM_GLOBAL_VCELL_INIT/g' \ > -e 's/SCM_GLOBAL_VCELL_INIT/SCM_GLOBAL_VARIABLE_INIT/g' \ > -e 's/SCM_GLOBAL_VCELL/SCM_GLOBAL_VARIABLE/g' \ > -e 's/SCM_VCELL_INIT/SCM_VARIABLE_INIT/g' \ > -e 's/SCM_VCELL/SCM_VARIABLE/g' \ > $1 > ${temp} > cp ${temp} $1 > modern_snarf "$@" > } Don't do this. First, SCM_VCELL and SCM_VARIABLE are not the same thing. You can't substitute one for the other. (Likewise for the substitutions.) Second, we already keep proper backward compatibility in the C code itself: #if (SCM_DEBUG_DEPRECATED == 0) #define SCM_CONST_LONG(c_name, scheme_name,value) \ SCM_VCELL_INIT(c_name, scheme_name, scm_long2num(value)) etc... _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel