From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.comp.sysutils.autoconf.general,gmane.lisp.guile.devel Subject: Re: How to replace a function Date: Mon, 10 Mar 2003 13:25:10 +0100 Sender: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Message-ID: <20030310122510.GB26126@www> References: <20030307123707.GA8811@www> <873clzxh1p.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047298686 6912 80.91.224.249 (10 Mar 2003 12:18:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 12:18:06 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Mon Mar 10 13:17:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18sMEA-0001mZ-00 for ; Mon, 10 Mar 2003 13:17:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sMDN-0000Va-0B for gnu-autoconf@m.gmane.org; Mon, 10 Mar 2003 07:17:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18sMBw-0008M0-00 for autoconf@gnu.org; Mon, 10 Mar 2003 07:15:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18sMAV-00083l-00 for autoconf@gnu.org; Mon, 10 Mar 2003 07:14:12 -0500 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sM8L-00074B-00; Mon, 10 Mar 2003 07:11:57 -0500 Original-Received: by www.elogos.de (Postfix, from userid 5002) id E4ED61407F; Mon, 10 Mar 2003 13:25:10 +0100 (CET) Original-To: Rob Browning Content-Disposition: inline In-Reply-To: <873clzxh1p.fsf@raven.i.defaultvalue.org> User-Agent: Mutt/1.3.28i Original-cc: autoconf@gnu.org Original-cc: rm@fabula.de X-BeenThere: autoconf@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Discussion list for the autoconf build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Xref: main.gmane.org gmane.comp.sysutils.autoconf.general:2309 gmane.lisp.guile.devel:2057 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2057 On Fri, Mar 07, 2003 at 10:44:34AM -0600, Rob Browning wrote: > tomas@fabula.de writes: > [About being compatible to two Guile versions] > One other option. Could you you use something like this in a C file > instead? > > #ifdef SCM_MAJOR_VERSION \ > && (SCM_MAJOR_VERSION == 1) \ > && (SCM_MINOR_VERSION == 6) > # include "augment-1.6.c" > #endif > > and add something similar in the header(s) for the missing prototypes? Hmmm... It's tempting to skirt the Automonster this way, ain't it ;-) But somehow a `feature test' seems to me the right thing here (and maybe useful to others on this list). What do you think? Thanks -- tomas