From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Smith Newsgroups: gmane.lisp.guile.user Subject: Re: Guile support in GNU make Date: Tue, 17 Jan 2012 18:26:00 -0500 Organization: GNU's Not UNIX! Message-ID: <1326842761.4484.5.camel@psmith-ubeta> References: <1326570905.3482.136.camel@homebase> <87boq5jqmc.fsf@gnuvola.org> <1326643949.3482.241.camel@homebase> <8762gchbf8.fsf@gnu.org> <1326722878.3482.334.camel@homebase> <87y5t6x875.fsf@gnu.org> Reply-To: psmith@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326842787 19525 80.91.229.12 (17 Jan 2012 23:26:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2012 23:26:27 +0000 (UTC) Cc: guile-user@gnu.org To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 18 00:26:24 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RnIQ3-0000pE-32 for guile-user@m.gmane.org; Wed, 18 Jan 2012 00:26:23 +0100 Original-Received: from localhost ([::1]:35541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnIPx-0007kg-A0 for guile-user@m.gmane.org; Tue, 17 Jan 2012 18:26:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnIPs-0007js-W9 for guile-user@gnu.org; Tue, 17 Jan 2012 18:26:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnIPr-0000QC-Gl for guile-user@gnu.org; Tue, 17 Jan 2012 18:26:12 -0500 Original-Received: from mx0b-000f4101.pphosted.com ([67.231.152.146]:36131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnIPl-0000O2-KG; Tue, 17 Jan 2012 18:26:05 -0500 Original-Received: from pps.filterd (m0000687 [127.0.0.1]) by mx0b-000f4101.pphosted.com (8.14.3/8.14.3) with SMTP id q0HNQ4ZY021695; Tue, 17 Jan 2012 18:26:04 -0500 Original-Received: from mta1.netezza.com (mta1.netezza.com [12.148.248.132]) by mx0b-000f4101.pphosted.com with ESMTP id 12cpffrs2n-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 17 Jan 2012 18:26:03 -0500 Original-Received: from [172.29.82.111] (172.29.82.111) by owa1.netezza.com (172.29.50.131) with Microsoft SMTP Server id 8.1.436.0; Tue, 17 Jan 2012 18:26:01 -0500 In-Reply-To: <87y5t6x875.fsf@gnu.org> X-Mailer: Evolution 2.32.2 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2012-01-17_08:2012-01-17, 2012-01-17, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 67.231.152.146 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9156 Archived-At: On Tue, 2012-01-17 at 23:42 +0100, Ludovic Courts wrote: > It works as intended ;-) but hits a segfault fixed with this patch: Doh! I added a feature to make that allows you to define functions separately (previously all functions had to be predefined in the static table in functions.c) and moved the guile function code out of function.c into guile.c for better encapsulation... And introduced a bug. Sigh. Thanks for the catch. > > I suppose one option would be to have #f translate to the string "#f" > > and change the definition in make of "false" to be "either the empty > > string OR the string #f". Since "#" is a comment character in make it's > > highly unlikely (although not impossible) someone would have that as a > > valid value. > > It is possible to write valid GNU Make code that generates strings > containing “#”? Yes; make supports escaping comment characters: ~$ cat > /tmp/x1.mk FOO = \# all: ; @echo 'FOO = $(FOO)' ~$ make -f /tmp/x1.mk FOO = # But my suspicion is that people would rarely use it due to annoyance factors. Thanks for testing this!