From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.bugs Subject: Re: Guile 1.4.1 w/ guile-oops 1.0.2 Date: Fri, 06 Sep 2002 10:08:46 -0700 Sender: bug-guile-admin@gnu.org Message-ID: References: <20020906082118.GB441@ariel.karmak.org> Reply-To: ttn@glug.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031332464 9414 127.0.0.1 (6 Sep 2002 17:14:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 17:14:24 +0000 (UTC) Cc: bug-guile@gnu.org 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 17nMgY-0002Rg-00 for ; Fri, 06 Sep 2002 19:14:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nMiD-00009i-00; Fri, 06 Sep 2002 13:16:05 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17nMhO-0008Ms-00 for bug-guile@gnu.org; Fri, 06 Sep 2002 13:15:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17nMhL-0008Mg-00 for bug-guile@gnu.org; Fri, 06 Sep 2002 13:15:13 -0400 Original-Received: from ca-crlsca-cuda3-c6a-b-211.crlsca.adelphia.net ([68.71.15.211] helo=giblet) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nMhL-0008Mc-00 for bug-guile@gnu.org; Fri, 06 Sep 2002 13:15:11 -0400 Original-Received: from ttn by giblet with local (Exim 3.35 #1 (Debian)) id 17nMb7-0000u5-00; Fri, 06 Sep 2002 10:08:45 -0700 Original-To: karmak@karmak.org In-Reply-To: <20020906082118.GB441@ariel.karmak.org> (message from Michael Carmack on Fri, 6 Sep 2002 08:21:18 +0000) Errors-To: bug-guile-admin@gnu.org X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.bugs:440 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:440 From: Michael Carmack Date: Fri, 6 Sep 2002 08:21:18 +0000 Is guile-oops/1.0.2 not intended to be used with guile/1.4.1? more like guile-snarf invocation changing should be considered a bug, especially in light of 1.4.x goal of compatibility (mea culpa)! i've since reverted the behavior for 1.4.2, but that's not available yet. 1.4.1.84, a snapshot precursor, is available under: http://www.glug.org/tmp/2002-09/ if you are building guile-1.4.1 from source, you can replace guile-snarf.in (note the .in extension) w/ the file appended below. thi ___________________________________________ #!/bin/sh # Extract the initialization actions from source files. # # Copyright (C) 1996, 97, 98, 99, 2000, 2001, 2002 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this software; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307 USA # Commentary: # Usage: guile-snarf --help # Usage: guile-snarf --version # # Usage: guile-snarf [-o OUTFILE] [CPP-ARGS ...] # # Process CPP-ARGS using the C pre-processor and some other programs. # Write output to a file named OUTFILE or to the standard output when no # OUTFILE has been specified or when OUTFILE is "-". CPP-ARGS should # include an input filename. # # If there are errors during processing, delete OUTFILE and exit with # non-zero status. # # During snarfing, the pre-processor macro SCM_MAGIC_SNARFER is # defined. # # If env var CPP is set, use its value instead of the C pre-processor # determined at Guile configure-time: "@CPP@". # Code: ## support do_the_snarf () # writes stdout { ${cpp} -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true sed -e '/^ *SCM__I/!d' -e 's/^ *SCM__I//' -e 's/ *SCM__D.*$//' ${temp} } ## main # process command line if [ x"$1" = x--help ] ; then @AWK@ '/^#.Commentary:/,/^#.Code:/' $0 | grep -v Code: \ | sed -e 1,2d -e 's/^. *//g' exit 0 fi if [ x"$1" = x--version ] ; then echo "guile-snarf @VERSION@" exit 0 fi if [ x"$1" = x-o ] then outfile=$2 ; shift ; shift else outfile="-" fi # set vars and handler -- handle CPP override cpp_ok_p=false temp="/tmp/snarf.$$" if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi trap "rm -f $temp" 0 1 2 15 if [ ! "$outfile" = "-" ]; then do_the_snarf "$@" > $outfile else do_the_snarf "$@" fi # zonk outfile if errors occurred if $cpp_ok_p ; then exit 0 else [ ! "$outfile" = "-" ] && rm -f $outfile exit 1 fi # guile-snarf ends here _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile