From MAILER-DAEMON Wed Jan 03 09:44:27 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H27Lu-0004N7-8E
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H27Ls-0004Ld-DO
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:25 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H27Lr-0004K8-C7
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:23 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H27Lr-0004Jz-6A
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:23 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27Lm-0003Jv-FZ
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:19 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H27LR-00031o-UE
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:43:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H27Lj-0003Ig-TN
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:16 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H27Lh-0003HS-87
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H27Lg-0000ri-Kx
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H27Lg-0000rV-Dn
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H27Lg-0000rV-Dn@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 14:44:12 +0000
Cc: 
Subject: Changes to m4/NEWS,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 14:44:25 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/03 14:44:11

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- NEWS	23 Dec 2006 00:02:20 -0000	1.33
+++ NEWS	3 Jan 2007 14:44:11 -0000	1.34
@@ -1,5 +1,5 @@
 GNU m4 NEWS - History of user-visible changes.		-*- outline -*-
-Copyright (C) 1992, 1993, 1994, 1998, 2000, 2001, 2006 Free Software
+Copyright (C) 1992, 1993, 1994, 1998, 2000, 2001, 2006, 2007 Free Software
 Foundation, Inc.
 
 * Version beta 1.9b - ???, by ??? (CVS version 1.9a)
@@ -90,6 +90,9 @@
 *** The `defn' builtin now allows any number of arguments, as POSIX requires.
   - FIXME: This still doesn't work with concatenating builtins with text.
 
+*** The `eval' builtin now follows C precedence rules.  Additionally,
+    short-circuit operators correctly short-circuit division by zero.
+
   - FIXME: POSIX recommends using ${10} instead of $10 for the tenth
   positional argument.  We should deprecate $10.
 



From MAILER-DAEMON Wed Jan 03 09:44:30 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H27Ly-0004R3-LF
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:30 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H27Lv-0004OC-7u
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:27 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H27Lu-0004Mv-8Z
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:26 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H27Lt-0004Mm-Rm
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:25 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27Lq-0003L9-Ux
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:23 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H27LW-00031z-Bb
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:02 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H27Lj-0003IE-NZ
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:19 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H27Lh-0003HQ-15
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:13 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H27Lg-0000rT-7w
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H27Lf-0000rP-TX
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H27Lf-0000rP-TX@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 14:44:11 +0000
Cc: 
Subject: m4 ChangeLog NEWS doc/m4.texinfo modules/evalpa...
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 14:44:28 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/03 14:44:11

Modified files:
	.              : ChangeLog NEWS 
	doc            : m4.texinfo 
	modules        : evalparse.c m4.c mpeval.c 

Log message:
	* doc/m4.texinfo (Format, Incr): More merges.
	(Eval): Ensure C precedence rules are met.
	* modules/evalparse.c (BADOP, INVALID_OPERATOR): New enumerators.
	(not_term, logical_not_term): Delete; these are same precedence
	as other unary operators.
	(equality_term): New; these are lower precedence than relational
	operators.
	(eval_lex, simple_term, m4_evaluate): Recognize forbidden C
	operators for better error messages.
	(logical_or_term, logical_and_term): Short-circuit out the error
	of division by zero.
	(unary_term): Allow consecutive unary operators.
	* modules/m4.c (int2numb, numb2int): Delete; these potentially
	truncate bits.
	(numb_not, numb_eor, numb_ior, numb_and): Update callers.
	* modules/mpeval.c (reduce1, reduce2): Protect macros better.
	* NEWS: Document this change.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.469&r2=1.470
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&r1=1.33&r2=1.34
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&r1=1.87&r2=1.88
http://cvs.savannah.gnu.org/viewcvs/m4/modules/evalparse.c?cvsroot=m4&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/m4/modules/m4.c?cvsroot=m4&r1=1.98&r2=1.99
http://cvs.savannah.gnu.org/viewcvs/m4/modules/mpeval.c?cvsroot=m4&r1=1.20&r2=1.21



From MAILER-DAEMON Wed Jan 03 09:44:30 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H27Ly-0004QP-3C
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:30 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H27Lv-0004OV-OA
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:27 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H27Lu-0004N3-7w
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:26 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H27Lt-0004Ml-Rk
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:26 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27Lq-0003LA-V9
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:23 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H27LW-000320-BX
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:02 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H27Ll-0003JM-Pr
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:21 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H27Lh-0003HW-O4
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H27Lg-0000s1-Vl
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H27Lg-0000rm-QR
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H27Lg-0000rm-QR@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 14:44:12 +0000
Cc: 
Subject: Changes to m4/modules/evalparse.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 14:44:28 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/03 14:44:11

Index: modules/evalparse.c
===================================================================
RCS file: /sources/m4/m4/modules/evalparse.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- modules/evalparse.c	9 Aug 2006 21:33:24 -0000	1.14
+++ modules/evalparse.c	3 Jan 2007 14:44:11 -0000	1.15
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2001, 2006
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2001, 2006, 2007
    Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -40,7 +40,7 @@
 
 typedef enum eval_token
   {
-    ERROR,
+    ERROR, BADOP,
     PLUS, MINUS,
     EXPONENT,
     TIMES, DIVIDE, MODULO, RATIO,
@@ -62,6 +62,7 @@
     SYNTAX_ERROR,
     UNKNOWN_INPUT,
     EXCESS_INPUT,
+    INVALID_OPERATOR,
     DIVIDE_ZERO,
     MODULO_ZERO
   }
@@ -72,8 +73,7 @@
 static eval_error or_term	    (m4 *, eval_token, number *);
 static eval_error xor_term	    (m4 *, eval_token, number *);
 static eval_error and_term	    (m4 *, eval_token, number *);
-static eval_error not_term	    (m4 *, eval_token, number *);
-static eval_error logical_not_term  (m4 *, eval_token, number *);
+static eval_error equality_term	    (m4 *, eval_token, number *);
 static eval_error cmp_term	    (m4 *, eval_token, number *);
 static eval_error shift_term	    (m4 *, eval_token, number *);
 static eval_error add_term	    (m4 *, eval_token, number *);
@@ -107,7 +107,9 @@
   eval_text = last_text;
 }
 
-/* VAL is numerical value, if any.  */
+/* VAL is numerical value, if any.  Recognize C assignment operators,
+   even though we cannot support them, to issue better error
+   messages.  */
 
 static eval_token
 eval_lex (number *val)
@@ -159,7 +161,7 @@
       else
 	base = 10;
 
-      numb_set_si(val,0);
+      numb_set_si (val, 0);
       for (; *eval_text; eval_text++)
 	{
 	  if (isdigit (*eval_text))
@@ -176,17 +178,17 @@
 
 	  { /* (*val) = (*val) * base; */
 	    number xbase;
-	    numb_init(xbase);
-	    numb_set_si(&xbase,base);
-	    numb_times(*val,xbase);
-	    numb_fini(xbase);
+	    numb_init (xbase);
+	    numb_set_si (&xbase, base);
+	    numb_times (*val, xbase);
+	    numb_fini (xbase);
 	  }
 	  { /* (*val) = (*val) + digit; */
 	    number xdigit;
-	    numb_init(xdigit);
-	    numb_set_si(&xdigit,digit);
-	    numb_plus(*val,xdigit);
-	    numb_fini(xdigit);
+	    numb_init (xdigit);
+	    numb_set_si (&xdigit, digit);
+	    numb_plus (*val, xdigit);
+	    numb_fini (xdigit);
 	  }
 	}
       return NUMBER;
@@ -195,8 +197,12 @@
   switch (*eval_text++)
     {
     case '+':
+      if (*eval_text == '+' || *eval_text == '=')
+	return BADOP;
       return PLUS;
     case '-':
+      if (*eval_text == '-' || *eval_text == '=')
+	return BADOP;
       return MINUS;
     case '*':
       if (*eval_text == '*')
@@ -204,25 +210,32 @@
 	  eval_text++;
 	  return EXPONENT;
 	}
-      else
+      else if (*eval_text == '=')
+	return BADOP;
 	return TIMES;
     case '/':
+      if (*eval_text == '=')
+	return BADOP;
       return DIVIDE;
     case '%':
+      if (*eval_text == '=')
+	return BADOP;
       return MODULO;
     case ':':
-      return RATIO;
+      return RATIO; /* FIXME - this clashes with supporting ?:.  */
     case '=':
       if (*eval_text == '=')
+	{
 	eval_text++;
       return EQ;
+	}
+      return BADOP;
     case '!':
       if (*eval_text == '=')
 	{
 	  eval_text++;
 	  return NOTEQ;
 	}
-      else
 	return LNOT;
     case '>':
       if (*eval_text == '=')
@@ -232,7 +245,8 @@
 	}
       else if (*eval_text == '>')
 	{
-	  eval_text++;
+	  if (*eval_text++ == '=')
+	    return BADOP;
 	  return RSHIFT;
 	}
       else
@@ -245,12 +259,15 @@
 	}
       else if (*eval_text == '<')
 	{
-	  eval_text++;
+	  if (*eval_text++ == '=')
+	    return BADOP;
 	  return LSHIFT;
 	}
       else
 	return LS;
     case '^':
+      if (*eval_text == '=')
+	return BADOP;
       return XOR;
     case '~':
       return NOT;
@@ -260,7 +277,8 @@
 	  eval_text++;
 	  return LAND;
 	}
-      else
+      else if (*eval_text == '=')
+	return BADOP;
 	return AND;
     case '|':
       if (*eval_text == '|')
@@ -268,7 +286,8 @@
 	  eval_text++;
 	  return LOR;
 	}
-      else
+      else if (*eval_text == '=')
+	return BADOP;
 	return OR;
     case '(':
       return LEFTP;
@@ -289,19 +308,24 @@
   if ((er = logical_and_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while ((et = eval_lex (&v2)) == LOR)
     {
       et = eval_lex (&v2);
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = logical_and_term (context, et, &v2)) != NO_ERROR)
+      /* Implement short-circuiting of valid syntax.  */
+      er = logical_and_term (context, et, &v2);
+      if (er == NO_ERROR)
+	numb_lior (*v1, v2);
+      else if (! numb_zerop (*v1)
+	       && (er == DIVIDE_ZERO || er == MODULO_ZERO))
+	numb_set (*v1, numb_ONE);
+      else
 	return er;
-
-      numb_lior(*v1,v2);
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (et == ERROR)
     return UNKNOWN_INPUT;
 
@@ -318,19 +342,24 @@
   if ((er = or_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while ((et = eval_lex (&v2)) == LAND)
     {
       et = eval_lex (&v2);
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = or_term (context, et, &v2)) != NO_ERROR)
+      /* Implement short-circuiting of valid syntax.  */
+      er = or_term (context, et, &v2);
+      if (er == NO_ERROR)
+	numb_land (*v1, v2);
+      else if (numb_zerop (*v1)
+	       && (er == DIVIDE_ZERO || er == MODULO_ZERO))
+	numb_set (*v1, numb_ZERO);
+      else
 	return er;
-
-      numb_land(*v1,v2);
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (et == ERROR)
     return UNKNOWN_INPUT;
 
@@ -347,7 +376,7 @@
   if ((er = xor_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while ((et = eval_lex (&v2)) == OR)
     {
       et = eval_lex (&v2);
@@ -357,9 +386,9 @@
       if ((er = xor_term (context, et, &v2)) != NO_ERROR)
 	return er;
 
-      numb_ior(context, v1, &v2);
+      numb_ior (context, v1, &v2);
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (et == ERROR)
     return UNKNOWN_INPUT;
 
@@ -376,7 +405,7 @@
   if ((er = and_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while ((et = eval_lex (&v2)) == XOR)
     {
       et = eval_lex (&v2);
@@ -386,9 +415,9 @@
       if ((er = and_term (context, et, &v2)) != NO_ERROR)
 	return er;
 
-      numb_eor(context, v1, &v2);
+      numb_eor (context, v1, &v2);
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (et == ERROR)
     return UNKNOWN_INPUT;
 
@@ -402,22 +431,22 @@
   number v2;
   eval_error er;
 
-  if ((er = not_term (context, et, v1)) != NO_ERROR)
+  if ((er = equality_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while ((et = eval_lex (&v2)) == AND)
     {
       et = eval_lex (&v2);
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = not_term (context, et, &v2)) != NO_ERROR)
+      if ((er = equality_term (context, et, &v2)) != NO_ERROR)
 	return er;
 
-      numb_and(context, v1, &v2);
+      numb_and (context, v1, &v2);
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (et == ERROR)
     return UNKNOWN_INPUT;
 
@@ -426,46 +455,35 @@
 }
 
 static eval_error
-not_term (m4 *context, eval_token et, number *v1)
+equality_term (m4 *context, eval_token et, number *v1)
 {
+  eval_token op;
+  number v2;
   eval_error er;
 
-  if (et == NOT)
-    {
-      et = eval_lex (v1);
-      if (et == ERROR)
-	return UNKNOWN_INPUT;
-
-      if ((er = not_term (context, et, v1)) != NO_ERROR)
-	return er;
-      numb_not(context, v1);
-    }
-  else
-    if ((er = logical_not_term (context, et, v1)) != NO_ERROR)
+  if ((er = cmp_term (context, et, v1)) != NO_ERROR)
       return er;
 
-  return NO_ERROR;
-}
-
-static eval_error
-logical_not_term (m4 *context, eval_token et, number *v1)
-{
-  eval_error er;
-
-  if (et == LNOT)
+  numb_init (v2);
+  while ((op = eval_lex (&v2)) == EQ || op == NOTEQ)
     {
-      et = eval_lex (v1);
+      et = eval_lex (&v2);
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = logical_not_term (context, et, v1)) != NO_ERROR)
+      if ((er = cmp_term (context, et, &v2)) != NO_ERROR)
 	return er;
-      numb_lnot(*v1);
-    }
+
+      if (op == EQ)
+	numb_eq (*v1, v2);
   else
-    if ((er = cmp_term (context, et, v1)) != NO_ERROR)
-      return er;
+	numb_ne (*v1, v2);
+    }
+  numb_fini (v2);
+  if (op == ERROR)
+    return UNKNOWN_INPUT;
 
+  eval_undo ();
   return NO_ERROR;
 }
 
@@ -479,9 +497,8 @@
   if ((er = shift_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
-  while ((op = eval_lex (&v2)) == EQ || op == NOTEQ
-	 || op == GT || op == GTEQ
+  numb_init (v2);
+  while ((op = eval_lex (&v2)) == GT || op == GTEQ
 	 || op == LS || op == LSEQ)
     {
 
@@ -494,28 +511,20 @@
 
       switch (op)
 	{
-	case EQ:
-	  numb_eq(*v1,v2);
-	  break;
-
-	case NOTEQ:
-	  numb_ne(*v1,v2);
-	  break;
-
 	case GT:
-	  numb_gt(*v1,v2);
+	  numb_gt (*v1, v2);
 	  break;
 
 	case GTEQ:
-	  numb_ge(*v1,v2);
+	  numb_ge (*v1, v2);
 	  break;
 
 	case LS:
-	  numb_lt(*v1,v2);
+	  numb_lt (*v1, v2);
 	  break;
 
 	case LSEQ:
-	  numb_le(*v1,v2);
+	  numb_le (*v1, v2);
 	  break;
 
 	default:
@@ -523,7 +532,7 @@
 	  abort ();
 	}
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (op == ERROR)
     return UNKNOWN_INPUT;
 
@@ -541,7 +550,7 @@
   if ((er = add_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while ((op = eval_lex (&v2)) == LSHIFT || op == RSHIFT)
     {
 
@@ -555,11 +564,11 @@
       switch (op)
 	{
 	case LSHIFT:
-	  numb_lshift(context, v1, &v2);
+	  numb_lshift (context, v1, &v2);
 	  break;
 
 	case RSHIFT:
-	  numb_rshift(context, v1, &v2);
+	  numb_rshift (context, v1, &v2);
 	  break;
 
 	default:
@@ -567,7 +576,7 @@
 	  abort ();
 	}
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (op == ERROR)
     return UNKNOWN_INPUT;
 
@@ -585,7 +594,7 @@
   if ((er = mult_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while ((op = eval_lex (&v2)) == PLUS || op == MINUS)
     {
       et = eval_lex (&v2);
@@ -595,13 +604,12 @@
       if ((er = mult_term (context, et, &v2)) != NO_ERROR)
 	return er;
 
-      if (op == PLUS) {
-	numb_plus(*v1,v2);
-      } else {
-	numb_minus(*v1,v2);
-      }
+      if (op == PLUS)
+	numb_plus (*v1, v2);
+      else
+	numb_minus (*v1, v2);
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (op == ERROR)
     return UNKNOWN_INPUT;
 
@@ -619,7 +627,7 @@
   if ((er = exp_term (context, et, v1)) != NO_ERROR)
     return er;
 
-  numb_init(v2);
+  numb_init (v2);
   while (op = eval_lex (&v2),
 	 op == TIMES
 	 || op == DIVIDE
@@ -636,31 +644,28 @@
       switch (op)
 	{
 	case TIMES:
-	  numb_times(*v1,v2);
+	  numb_times (*v1, v2);
 	  break;
 
 	case DIVIDE:
-	  if (numb_zerop(v2))
+	  if (numb_zerop (v2))
 	    return DIVIDE_ZERO;
-	  else {
+	  else
 	    numb_divide(v1, &v2);
-	  }
 	  break;
 
 	case RATIO:
-	  if (numb_zerop(v2))
+	  if (numb_zerop (v2))
 	    return DIVIDE_ZERO;
-	  else {
-	    numb_ratio(*v1,v2);
-	  }
+	  else
+	    numb_ratio (*v1, v2);
 	  break;
 
 	case MODULO:
-	  if (numb_zerop(v2))
+	  if (numb_zerop (v2))
 	    return MODULO_ZERO;
-	  else {
-	    numb_modulo(context, v1, &v2);
-	  }
+	  else
+	    numb_modulo (context, v1, &v2);
 	  break;
 
 	default:
@@ -668,7 +673,7 @@
 	  abort ();
 	}
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (op == ERROR)
     return UNKNOWN_INPUT;
 
@@ -685,9 +690,9 @@
 
   if ((er = unary_term (context, et, v1)) != NO_ERROR)
     return er;
-  memcpy(&result, v1, sizeof(number));
+  memcpy (&result, v1, sizeof(number));
 
-  numb_init(v2);
+  numb_init (v2);
   while ((et = eval_lex (&v2)) == EXPONENT)
     {
       et = eval_lex (&v2);
@@ -697,9 +702,9 @@
       if ((er = exp_term (context, et, &v2)) != NO_ERROR)
 	return er;
 
-      numb_pow(v1, &v2);
+      numb_pow (v1, &v2);
     }
-  numb_fini(v2);
+  numb_fini (v2);
   if (et == ERROR)
     return UNKNOWN_INPUT;
 
@@ -713,17 +718,21 @@
   eval_token et2 = et;
   eval_error er;
 
-  if (et == PLUS || et == MINUS)
+  if (et == PLUS || et == MINUS || et == NOT || et == LNOT)
     {
       et2 = eval_lex (v1);
       if (et2 == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = simple_term (context, et2, v1)) != NO_ERROR)
+      if ((er = unary_term (context, et2, v1)) != NO_ERROR)
 	return er;
 
       if (et == MINUS)
 	numb_negate(*v1);
+      else if (et == NOT)
+	numb_not (context, v1);
+      else if (et == LNOT)
+	numb_lnot (*v1);
     }
   else
     if ((er = simple_term (context, et, v1)) != NO_ERROR)
@@ -760,6 +769,9 @@
     case NUMBER:
       break;
 
+    case BADOP:
+      return INVALID_OPERATOR;
+
     default:
       return SYNTAX_ERROR;
     }
@@ -782,7 +794,7 @@
   if (radix <= 1 || radix > 36)
     {
       m4_error (context, 0, 0, _("%s: radix out of range: %d"),
-		M4ARG(0), radix);
+		M4ARG (0), radix);
       return;
     }
 
@@ -791,23 +803,29 @@
 
   if (min <= 0)
     {
-      m4_error (context, 0, 0, _("%s: negative width: %d"), M4ARG(0), min);
+      m4_error (context, 0, 0, _("%s: negative width: %d"), M4ARG (0), min);
       return;
     }
 
   numb_initialise ();
   eval_init_lex (M4ARG (1));
 
-  numb_init(val);
+  numb_init (val);
   et = eval_lex (&val);
   err = logical_or_term (context, et, &val);
 
   if (err == NO_ERROR && *eval_text != '\0')
+    {
+      if (eval_lex (&val) == BADOP)
+	err = INVALID_OPERATOR;
+      else
     err = EXCESS_INPUT;
+    }
 
   switch (err)
     {
     case NO_ERROR:
+      numb_obstack (obs, val, radix, min);
       break;
 
     case MISSING_RIGHT:
@@ -829,6 +847,11 @@
 		M4ARG (1));
       break;
 
+    case INVALID_OPERATOR:
+      m4_error (context, 0, 0, _("%s: invalid operator: %s"), M4ARG (0),
+		M4ARG (1));
+      break;
+
     case DIVIDE_ZERO:
       m4_error (context, 0, 0, _("%s: divide by zero: %s"), M4ARG (0),
 		M4ARG (1));
@@ -844,9 +867,6 @@
       abort ();
     }
 
-  if (err == NO_ERROR)
-    numb_obstack (obs, val, radix, min);
-
   numb_fini (val);
 }
 



From MAILER-DAEMON Wed Jan 03 09:44:31 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H27Ly-0004RV-Uu
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:31 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H27Lv-0004Oj-Us
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:28 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H27Lu-0004NW-Mu
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:27 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H27Lu-0004N9-8C
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:26 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27Lr-0003LU-Ac
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:23 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H27LW-000321-PZ
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:02 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H27Lk-0003JA-J1
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:19 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H27Lh-0003Ha-U3
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H27Lh-0000sC-AO
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H27Lh-0000s5-5O
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H27Lh-0000s5-5O@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 14:44:13 +0000
Cc: 
Subject: Changes to m4/modules/mpeval.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 14:44:28 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/03 14:44:11

Index: modules/mpeval.c
===================================================================
RCS file: /sources/m4/m4/modules/mpeval.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- modules/mpeval.c	26 Sep 2006 13:19:26 -0000	1.20
+++ modules/mpeval.c	3 Jan 2007 14:44:11 -0000	1.21
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 2000, 2001, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2006, 2007 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
@@ -40,41 +40,57 @@
 
 
 
-#define numb_set(ans,i) mpq_set(ans,i)
-#define numb_set_si(ans,i) mpq_set_si(*(ans),(long)i,(unsigned long)1)
+#define numb_set(ans, i) mpq_set (ans, i)
+#define numb_set_si(ans, i) mpq_set_si (*(ans), (long) i, (unsigned long) 1)
 
-#define numb_init(x) mpq_init((x))
-#define numb_fini(x) mpq_clear((x))
+#define numb_init(x) mpq_init (x)
+#define numb_fini(x) mpq_clear (x)
 
-#define numb_zerop(x)     (mpq_cmp(x,numb_ZERO) == 0)
-#define numb_positivep(x) (mpq_cmp(x,numb_ZERO) >  0)
-#define numb_negativep(x) (mpq_cmp(x,numb_ZERO) <  0)
-
-#define numb_eq(x,y) numb_set(x,mpq_cmp(x,y)==0? numb_ONE: numb_ZERO)
-#define numb_ne(x,y) numb_set(x,mpq_cmp(x,y)!=0? numb_ONE: numb_ZERO)
-#define numb_lt(x,y) numb_set(x,mpq_cmp(x,y)< 0? numb_ONE: numb_ZERO)
-#define numb_le(x,y) numb_set(x,mpq_cmp(x,y)<=0? numb_ONE: numb_ZERO)
-#define numb_gt(x,y) numb_set(x,mpq_cmp(x,y)> 0? numb_ONE: numb_ZERO)
-#define numb_ge(x,y) numb_set(x,mpq_cmp(x,y)>=0? numb_ONE: numb_ZERO)
-
-#define numb_lnot(x)   numb_set(x,numb_zerop(x)? numb_ONE: numb_ZERO)
-#define numb_lior(x,y) numb_set(x,numb_zerop(x)? y: numb_ONE)
-#define numb_land(x,y) numb_set(x,numb_zerop(x)? numb_ZERO: y)
-
-#define reduce1(f1,x) \
-  { number T; mpq_init(T); f1(T,x);   mpq_set(x,T); mpq_clear(T); }
+#define numb_zerop(x)     (mpq_cmp (x, numb_ZERO) == 0)
+#define numb_positivep(x) (mpq_cmp (x, numb_ZERO) >  0)
+#define numb_negativep(x) (mpq_cmp (x, numb_ZERO) <  0)
+
+#define numb_eq(x, y) numb_set (x, mpq_cmp (x, y) == 0 ? numb_ONE : numb_ZERO)
+#define numb_ne(x, y) numb_set (x, mpq_cmp (x, y) != 0 ? numb_ONE : numb_ZERO)
+#define numb_lt(x, y) numb_set (x, mpq_cmp (x, y) <  0 ? numb_ONE : numb_ZERO)
+#define numb_le(x, y) numb_set (x, mpq_cmp (x, y) <= 0 ? numb_ONE : numb_ZERO)
+#define numb_gt(x, y) numb_set (x, mpq_cmp (x, y) >  0 ? numb_ONE : numb_ZERO)
+#define numb_ge(x, y) numb_set (x, mpq_cmp (x, y) >= 0 ? numb_ONE : numb_ZERO)
+
+#define numb_lnot(x)    numb_set (x, numb_zerop (x) ? numb_ONE : numb_ZERO)
+#define numb_lior(x, y) numb_set (x, numb_zerop (x) ? y : numb_ONE)
+#define numb_land(x, y) numb_set (x, numb_zerop (x) ? numb_ZERO : y)
+
+#define reduce1(f1, x)							\
+  do									\
+    {									\
+      number T;								\
+      mpq_init (T);							\
+      f1 (T, x);							\
+      mpq_set (x, T);							\
+      mpq_clear (T);							\
+    }									\
+  while (0)
 #define reduce2(f2,x,y) \
-  { number T; mpq_init(T); f2(T,(x),(y)); mpq_set((x),T); mpq_clear(T); }
-
-#define numb_plus(x,y)  reduce2(mpq_add,x,y)
-#define numb_minus(x,y) reduce2(mpq_sub,x,y)
-#define numb_negate(x)  reduce1(mpq_neg,x)
-
-#define numb_times(x,y) reduce2(mpq_mul,x,y)
-#define numb_ratio(x,y) reduce2(mpq_div,x,y)
-#define numb_invert(x)  reduce1(mpq_inv,x)
+  do									\
+    {									\
+      number T;								\
+      mpq_init (T);							\
+      f2 (T, (x), (y));							\
+      mpq_set ((x), T);							\
+      mpq_clear (T);							\
+    }									\
+  while (0)
+
+#define numb_plus(x, y)  reduce2 (mpq_add, x, y)
+#define numb_minus(x, y) reduce2 (mpq_sub, x, y)
+#define numb_negate(x)   reduce1 (mpq_neg, x)
+
+#define numb_times(x, y) reduce2 (mpq_mul, x, y)
+#define numb_ratio(x, y) reduce2 (mpq_div, x, y)
+#define numb_invert(x)   reduce1 (mpq_inv, x)
 
-#define numb_decr(n) numb_minus(n,numb_ONE)
+#define numb_decr(n) numb_minus (n, numb_ONE)
 
 /* Generate prototypes for each builtin handler function. */
 #define BUILTIN(handler, macros, blind, side, min, max)  M4BUILTIN(handler)



From MAILER-DAEMON Wed Jan 03 09:44:34 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H27M1-0004TY-R3
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:34 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H27Lx-0004Pl-6V
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:29 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H27Lv-0004Nx-2D
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:27 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H27Lu-0004Na-Me
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:26 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27Lm-0003K7-Mm
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:19 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H27LS-00031q-3n
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:43:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H27Lk-0003Ix-Do
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H27Lh-0003HZ-VR
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H27Lh-0000s8-5X
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H27Lg-0000ry-Vi
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H27Lg-0000ry-Vi@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 14:44:12 +0000
Cc: 
Subject: Changes to m4/modules/m4.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 14:44:29 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/03 14:44:11

Index: modules/m4.c
===================================================================
RCS file: /sources/m4/m4/modules/m4.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -b -r1.98 -r1.99
--- modules/m4.c	27 Dec 2006 14:14:27 -0000	1.98
+++ modules/m4.c	3 Jan 2007 14:44:11 -0000	1.99
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 2000, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002, 2003, 2004, 2006, 2007 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
@@ -1065,52 +1065,49 @@
 /* The rest of this  file contains the functions to evaluate integer
  * expressions for the "eval" macro.  `number' should be at least 32 bits.
  */
-#define int2numb(i) ((number)(i))
-#define numb2int(n) ((n))
+#define numb_set(ans, x) ((ans) = (x))
+#define numb_set_si(ans, si) (*(ans) = (number) (si))
 
-#define numb_set(ans,x) ((ans) = x)
-#define numb_set_si(ans,si) (*(ans) = int2numb(si))
+#define numb_ZERO ((number) 0)
+#define numb_ONE  ((number) 1)
 
-#define numb_init(x) x=((number)0)
+#define numb_init(x) ((x) = numb_ZERO)
 #define numb_fini(x)
 
-#define numb_decr(n) (n) -= 1
-
-#define numb_ZERO ((number)0)
-#define numb_ONE  ((number)1)
+#define numb_decr(n) ((n) -= numb_ONE)
 
 #define numb_zerop(x)     ((x) == numb_ZERO)
 #define numb_positivep(x) ((x) >  numb_ZERO)
 #define numb_negativep(x) ((x) <  numb_ZERO)
 
-#define numb_eq(x,y) ((x) = ((x) == (y)))
-#define numb_ne(x,y) ((x) = ((x) != (y)))
-#define numb_lt(x,y) ((x) = ((x) <  (y)))
-#define numb_le(x,y) ((x) = ((x) <= (y)))
-#define numb_gt(x,y) ((x) = ((x) >  (y)))
-#define numb_ge(x,y) ((x) = ((x) >= (y)))
+#define numb_eq(x, y) ((x) = ((x) == (y)))
+#define numb_ne(x, y) ((x) = ((x) != (y)))
+#define numb_lt(x, y) ((x) = ((x) <  (y)))
+#define numb_le(x, y) ((x) = ((x) <= (y)))
+#define numb_gt(x, y) ((x) = ((x) >  (y)))
+#define numb_ge(x, y) ((x) = ((x) >= (y)))
 
 #define numb_lnot(x)   ((x) = (! (x)))
-#define numb_lior(x,y) ((x) = ((x) || (y)))
-#define numb_land(x,y) ((x) = ((x) && (y)))
+#define numb_lior(x, y) ((x) = ((x) || (y)))
+#define numb_land(x, y) ((x) = ((x) && (y)))
 
-#define numb_not(c,x)   (*(x) = int2numb(~numb2int(*(x))))
-#define numb_eor(c,x,y) (*(x) = int2numb(numb2int(*(x)) ^ numb2int(*(y))))
-#define numb_ior(c,x,y) (*(x) = int2numb(numb2int(*(x)) | numb2int(*(y))))
-#define numb_and(c,x,y) (*(x) = int2numb(numb2int(*(x)) & numb2int(*(y))))
+#define numb_not(c, x)    (*(x) = ~ *(x))
+#define numb_eor(c, x, y) (*(x) = *(x) ^ *(y))
+#define numb_ior(c, x, y) (*(x) = *(x) | *(y))
+#define numb_and(c, x, y) (*(x) = *(x) & *(y))
 
-#define numb_plus(x,y)  ((x) = ((x) + (y)))
-#define numb_minus(x,y) ((x) = ((x) - (y)))
+#define numb_plus(x, y)  ((x) = ((x) + (y)))
+#define numb_minus(x, y) ((x) = ((x) - (y)))
 #define numb_negate(x)  ((x) = (- (x)))
 
-#define numb_times(x,y)  ((x) = ((x) * (y)))
-#define numb_ratio(x,y)  ((x) = ((x) / ((y))))
-#define numb_divide(x,y) (*(x) = (*(x) / (*(y))))
-#define numb_modulo(c,x,y) (*(x) = (*(x) % *(y)))
-#define numb_invert(x)   ((x) = 1 / (x))
+#define numb_times(x, y)     ((x) = ((x) * (y)))
+#define numb_ratio(x, y)     ((x) = ((x) / ((y))))
+#define numb_divide(x, y)    (*(x) = (*(x) / (*(y))))
+#define numb_modulo(c, x, y) (*(x) = (*(x) % *(y)))
+#define numb_invert(x)       ((x) = numb_ONE / (x))
 
-#define numb_lshift(c,x,y) (*(x) = (*(x) << *(y)))
-#define numb_rshift(c,x,y) (*(x) = (*(x) >> *(y)))
+#define numb_lshift(c, x, y) (*(x) = (*(x) << *(y)))
+#define numb_rshift(c, x, y) (*(x) = (*(x) >> *(y)))
 
 
 /* The function ntoa () converts VALUE to a signed ascii representation in



From MAILER-DAEMON Wed Jan 03 09:44:35 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H27M3-0004Uy-EL
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:35 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H27Lx-0004Pw-Bt
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:29 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H27Lw-0004Ot-8j
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:28 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H27Lv-0004OG-ES
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:27 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27Lr-0003LX-B1
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:24 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H27LW-000322-PT
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:02 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H27Lk-0003J5-Dn
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:18 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H27Lh-0003HV-Ir
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H27Lg-0000rw-Qn
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H27Lg-0000re-KX
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H27Lg-0000re-KX@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 14:44:12 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 14:44:30 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/03 14:44:11

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -b -r1.87 -r1.88
--- doc/m4.texinfo	27 Dec 2006 14:14:27 -0000	1.87
+++ doc/m4.texinfo	3 Jan 2007 14:44:11 -0000	1.88
@@ -46,7 +46,7 @@
 a package containing an implementation of the m4 macro language.
 
 Copyright @copyright{} 1989, 1990, 1991, 1992, 1993, 1994, 1998, 1999,
-2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc.
+2000, 2001, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 
 @quotation
 Permission is granted to copy, distribute and/or modify this document
@@ -5619,14 +5619,16 @@
 
 @cindex formatted output
 @cindex output, formatted
-@cindex GNU extensions
+@cindex @acronym{GNU} extensions
+Formatted output can be made with @code{format}:
+
 @deffn {Builtin (gnu)} format (@var{format-string}, @dots{})
-Formatted output can be made with @code{format}, which works much like
-the C function @code{printf}.  The first argument is a format string,
-which can contain @samp{%} specifications, and the expansion of
-@code{format} is the formatted string.
+Works much like the C function @code{printf}.  The first argument
+@var{format-string} can contain @samp{%} specifications which are
+satisfied by additional arguments, and the expansion of @code{format} is
+the formatted string.
 
-The builtin macros @code{format} is recognized only when given arguments.
+The macro @code{format} is recognized only with parameters.
 @end deffn
 
 Its use is best described by a few examples:
@@ -5642,12 +5644,15 @@
 @result{}5000
 @end example
 
-Using the @code{forloop} macro defined in @xref{Forloop}, this
+Using the @code{forloop} macro defined earlier (@pxref{Forloop}), this
 example shows how @code{format} can be used to produce tabular output.
 
-@comment ignore
+@comment examples
 @example
-forloop(`i', 1, 10, `format(`%6d squared is %10d
+$ @kbd{m4 -I examples}
+include(`forloop.m4')
+@result{}
+forloop(`i', `1', `10', `format(`%6d squared is %10d
 ', i, eval(i**2))')
 @result{}     1 squared is          1
 @result{}     2 squared is          4
@@ -5659,18 +5664,23 @@
 @result{}     8 squared is         64
 @result{}     9 squared is         81
 @result{}    10 squared is        100
+@result{}
 @end example
 
 The builtin @code{format} is modeled after the ANSI C @samp{printf}
-function, and supports the normal @samp{%} specifiers: @samp{c},
+function, and supports these @samp{%} specifiers: @samp{c},
 @samp{s}, @samp{d}, @samp{o}, @samp{x}, @samp{X}, @samp{u}, @samp{e},
-@samp{E}, @samp{f}, @samp{F}, @samp{g}, and @samp{G}; it supports
-field widths and precisions, and the
+@samp{E}, @samp{f}, @samp{F}, @samp{g}, @samp{G}, and @samp{%}; it
+supports field widths and precisions, and the
 modifiers @samp{+}, @samp{-}, @samp{@w{ }}, @samp{0}, @samp{#}, @samp{h} and
 @samp{l}.  For more details on the functioning of @code{printf}, see the
 C Library Manual.
 
 @c FIXME - format still needs some improvements.
+For now, unrecognized specifiers are silently ignored, but it is
+anticipated that a future release of @acronym{GNU} @code{m4} will support more
+specifiers, and give warnings when problems are encountered.  Likewise,
+escape sequences are not yet recognized.
 
 @node Arithmetic
 @chapter Macros for doing arithmetic
@@ -5692,22 +5702,34 @@
 
 @cindex decrement operator
 @cindex increment operator
+Increment and decrement of integers are supported using the builtins
+@code{incr} and @code{decr}:
+
 @deffn {Builtin (m4)} incr (@var{number})
 @deffnx {Builtin (m4)} decr (@var{number})
-Increment and decrement of integers are supported using the builtins
-@code{incr} and @code{decr}, which expand to the numerical value of
-@var{number}, incremented, or decremented, respectively, by one.
+Expand to the numerical value of @var{number}, incremented
+or decremented, respectively, by one.  Except for the empty string, the
+expansion is empty if @var{number} could not be parsed.
+
+The macros @code{incr} and @code{decr} are recognized only with
+parameters.
+@end deffn
 
 @example
-incr(4)
+incr(`4')
 @result{}5
-decr(7)
+decr(`7')
 @result{}6
+incr()
+@error{}m4:stdin:3: Warning: incr: empty string treated as 0
+@result{}1
+decr()
+@error{}m4:stdin:4: Warning: decr: empty string treated as 0
+@result{}-1
 @end example
 
 The builtin macros @code{incr} and @code{decr} are recognized only when
 given arguments.
-@end deffn
 
 @node Eval
 @section Evaluating integer expressions
@@ -5715,30 +5737,37 @@
 @cindex integer expression evaluation
 @cindex evaluation, of integer expressions
 @cindex expressions, evaluation of integer
-@deffn {Builtin (m4)} eval (@var{expression}, @ovar{radix}, @ovar{width})
-Integer expressions are evaluated with @code{eval}, which expands to the
-value of @var{expression}.
+Integer expressions are evaluated with @code{eval}:
+
+@deffn {Builtin (m4)} eval (@var{expression}, @dvar{radix, 10}, @ovar{width})
+Expands to the value of @var{expression}.  The expansion is empty
+if an error is encountered while parsing the arguments.  If specified,
+@var{radix} and @var{width} control the format of the output.  An error
+is issued if division by zero is attempted.
+
+The macro @code{eval} is recognized only with parameters.
+@end deffn
 
 Expressions can contain the following operators, listed in order of
 decreasing precedence.
 
 @table @code
-@item -
-Unary minus
+@item ()
+Parenthesis
+@item +  -  ~  !
+Unary plus and minus, and bitwise and logical negation
 @item **
 Exponentiation
-@item *  /  %  :
-Multiplication, division, modulo and ratio
+@item *  /  %
+Multiplication, division, and modulo
 @item +  -
 Addition and subtraction
 @item <<  >>
 Shift left or right
-@item ==  !=  >  >=  <  <=
+@item >  >=  <  <=
 Relational operators
-@item !
-Logical negation
-@item ~
-Bitwise negation
+@item ==  !=
+Equality operators
 @item &
 Bitwise and
 @item ^
@@ -5751,12 +5780,67 @@
 Logical or
 @end table
 
-All operators, except exponentiation, are left associative.
+All operators, except exponentiation, are left associative.  C
+operators that perform variable assignment, such as @samp{=} or
+@samp{--}, are forbidden, since @code{eval} only operates on constants,
+not variables.
+
+Note that some older @code{m4} implementations use @samp{^} as an
+alternate operator for the exponentiation, although @acronym{POSIX}
+requires the C behavior of bitwise exclusive-or.  The precedence of the
+negation operators, @samp{~} and @samp{!}, was traditionally lower than
+equality.  The unary operators @samp{-} and @samp{+} could not be used
+more than once on the same term.  The traditional precedence of the
+equality operators @samp{==} and @samp{!=} was identical instead of
+lower than the relational operators such as @samp{<}, even in
+@acronym{GNU} M4 1.4.x.  Starting with version 2.0, @acronym{GNU} M4
+correctly follows @acronym{POSIX} precedence rules.  M4 scripts designed
+to be portable between releases must be aware that parentheses may be
+required to enforce C precedence rules.  Likewise, division by zero,
+even in the unused branch of a short-circuiting operator, is not always
+well-defined in other implementations.
+
+Following are some examples where the current version of M4 follows C
+precedence rules, but where older versions and some other
+implementations of @code{m4} require explicit parenthesis to get the
+correct result:
 
-Note that many @code{m4} implementations use @samp{^} as an alternate
-operator for the exponentiation, while many others use @samp{^} for the
-bitwise exclusive-or.  GNU @code{m4} changed its behavior: it used to
-exponentiate for @samp{^}, it now computes the bitwise exclusive-or.
+@comment status: 1
+@example
+eval(`1 == 2 > 0')
+@result{}1
+eval(`(1 == 2) > 0')
+@result{}0
+eval(`! 0 * 2')
+@result{}2
+eval(`! (0 * 2)')
+@result{}1
+eval(`1 | 1 ^ 1')
+@result{}1
+eval(`(1 | 1) ^ 1')
+@result{}0
+eval(`+ + - ~ ! ~ 0')
+@result{}1
+eval(`++0')
+@error{}m4:stdin:8: eval: invalid operator: ++0
+@result{}
+eval(`1 = 1')
+@error{}m4:stdin:9: eval: invalid operator: 1 = 1
+@result{}
+eval(`0 |= 1')
+@error{}m4:stdin:10: eval: invalid operator: 0 |= 1
+@result{}
+eval(`2 || 1 / 0')
+@result{}1
+eval(`0 || 1 / 0')
+@error{}m4:stdin:12: eval: divide by zero: 0 || 1 / 0
+@result{}
+eval(`0 && 1 % 0')
+@result{}0
+eval(`2 && 1 % 0')
+@error{}m4:stdin:14: eval: modulo by zero: 2 && 1 % 0
+@result{}
+@end example
 
 Numbers without special prefix are given decimal.  A simple @samp{0}
 prefix introduces an octal number.  @samp{0x} introduces a hexadecimal
@@ -5776,7 +5860,6 @@
 relation return @code{0}.
 
 The builtin macro @code{eval} is recognized only when given arguments.
-@end deffn
 
 Here are a few examples of use of @code{eval}.
 
@@ -5786,18 +5869,18 @@
 @result{}-15
 eval(index(`Hello world', `llo') >= 0)
 @result{}1
-define(`square', `eval(`($1)**2')')
+define(`square', `eval(`($1) ** 2')')
 @result{}
 square(`9')
 @result{}81
-square(square(5)+1)
+square(square(`5')` + 1')
 @result{}676
 define(`foo', `666')
 @result{}
 eval(`foo / 6')
 @error{}m4:stdin:7: eval: bad expression: foo / 6
 @result{}
-eval(foo/6)
+eval(foo / 6)
 @result{}111
 @end example
 
@@ -5837,7 +5920,9 @@
 It is almost identical to @code{eval}, except the calculations are done
 with infinite precision.  Numbers may be of any length.
 
-The @code{:} operator rationally divides two numbers and canonicalizes
+@comment `:' as ratio conflicts with `?:' - is it worth using `\' instead?
+A new operator, @code{:}, is provided with the same precedence as
+division, and rationally divides two numbers and canonicalizes
 the result.  The @code{/} operator always returns the quotient of the
 division.  To convert a rational value to integral, divide (@code{/}) by
 1.  Some operators such as @code{%}, @code{<<}, @code{>>}, @code{~},



From MAILER-DAEMON Wed Jan 03 09:44:36 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H27M3-0004VD-Kk
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:35 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H27M0-0004SS-37
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:32 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H27Ly-0004Qq-Hu
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:30 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H27Ly-0004QR-2l
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:30 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27Lx-0003Nm-6u
	for m4-commit@gnu.org; Wed, 03 Jan 2007 09:44:29 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H27Lc-000333-Dj
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:08 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H27Lm-0003IO-Ka
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:23 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H27Lh-0003HR-4U
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 09:44:13 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H27Lg-0000rY-E7
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H27Lg-0000rR-7l
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 14:44:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H27Lg-0000rR-7l@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 14:44:12 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 14:44:32 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/03 14:44:11

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.469
retrieving revision 1.470
diff -u -b -r1.469 -r1.470
--- ChangeLog	27 Dec 2006 14:14:27 -0000	1.469
+++ ChangeLog	3 Jan 2007 14:44:11 -0000	1.470
@@ -1,3 +1,23 @@
+2007-01-03  Eric Blake  <ebb9@byu.net>
+
+	* doc/m4.texinfo (Format, Incr): More merges.
+	(Eval): Ensure C precedence rules are met.
+	* modules/evalparse.c (BADOP, INVALID_OPERATOR): New enumerators.
+	(not_term, logical_not_term): Delete; these are same precedence
+	as other unary operators.
+	(equality_term): New; these are lower precedence than relational
+	operators.
+	(eval_lex, simple_term, m4_evaluate): Recognize forbidden C
+	operators for better error messages.
+	(logical_or_term, logical_and_term): Short-circuit out the error
+	of division by zero.
+	(unary_term): Allow consecutive unary operators.
+	* modules/m4.c (int2numb, numb2int): Delete; these potentially
+	truncate bits.
+	(numb_not, numb_eor, numb_ior, numb_and): Update callers.
+	* modules/mpeval.c (reduce1, reduce2): Protect macros better.
+	* NEWS: Document this change.
+
 2006-12-27  Eric Blake  <ebb9@byu.net>
 
 	* doc/m4.texinfo (Substr, Patsubst): Merge more sections from the
@@ -8383,7 +8403,7 @@
 
 	-----
 
-	$Revision: 1.469 $ $Date: 2006/12/27 14:14:27 $
+	$Revision: 1.470 $ $Date: 2007/01/03 14:44:11 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Wed Jan 03 16:09:30 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2DMY-0005Rq-G1
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:30 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2DMX-0005Qg-08
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:29 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2DMV-0005Pq-H3
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2DMV-0005PZ-A2
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2DMU-00011J-Ud
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2DMA-00033V-2u
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:06 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2DMT-00010u-Mb
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:26 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2DMT-00010g-7N
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:25 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2DMS-0002oa-IV
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2DMS-0002oU-BU
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2DMS-0002oU-BU@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 21:09:24 +0000
Cc: 
Subject: Changes to m4/m4/Attic/gnulib-cache.m4,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 21:09:29 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/03 21:09:23

Index: m4/gnulib-cache.m4
===================================================================
RCS file: /sources/m4/m4/m4/Attic/gnulib-cache.m4,v
retrieving revision 1.1.2.20
retrieving revision 1.1.2.21
diff -u -b -r1.1.2.20 -r1.1.2.21
--- m4/gnulib-cache.m4	13 Nov 2006 19:10:56 -0000	1.1.2.20
+++ m4/gnulib-cache.m4	3 Jan 2007 21:09:23 -0000	1.1.2.21
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2006 Free Software Foundation, Inc.
+# Copyright (C) 2004-2007 Free Software Foundation, Inc.
 #
 # This file is free software, distributed under the terms of the GNU
 # General Public License.  As a special exception to the GNU General
@@ -15,11 +15,11 @@
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --aux-dir=. --no-libtool --macro-prefix=M4 avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdlib-safer strstr strtol unlocked-io verror xalloc xvasprintf
+#   gnulib-tool --import --dir=. --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --aux-dir=. --no-libtool --macro-prefix=M4 avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdlib-safer strstr strtol unlocked-io verror version-etc-fsf xalloc xvasprintf
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([])
-gl_MODULES([avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdlib-safer strstr strtol unlocked-io verror xalloc xvasprintf])
+gl_MODULES([avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdlib-safer strstr strtol unlocked-io verror version-etc-fsf xalloc xvasprintf])
 gl_AVOID([])
 gl_SOURCE_BASE([lib])
 gl_M4_BASE([m4])



From MAILER-DAEMON Wed Jan 03 16:09:31 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2DMY-0005SV-W4
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:31 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2DMX-0005R6-Eq
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:29 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2DMW-0005QA-CY
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:28 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2DMV-0005Pw-Kg
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2DMV-00011Q-A4
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2DMA-00033X-6G
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:06 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2DMT-000114-Ns
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:26 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2DMT-00010e-78
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:25 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2DMS-0002oW-Bk
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2DMS-0002oM-55
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2DMS-0002oM-55@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 21:09:24 +0000
Cc: 
Subject: Changes to m4/src/Attic/m4.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 21:09:29 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/03 21:09:23

Index: src/m4.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/m4.c,v
retrieving revision 1.1.1.1.2.39
retrieving revision 1.1.1.1.2.40
diff -u -b -r1.1.1.1.2.39 -r1.1.1.1.2.40
--- src/m4.c	17 Dec 2006 04:22:34 -0000	1.1.1.1.2.39
+++ src/m4.c	3 Jan 2007 21:09:23 -0000	1.1.1.1.2.40
@@ -1,7 +1,7 @@
 /* GNU m4 -- A simple macro processor
 
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006 Free
-   Software Foundation, Inc.
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006, 2007
+   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
@@ -25,6 +25,10 @@
 #include <limits.h>
 #include <signal.h>
 
+#include "version-etc.h"
+
+#define AUTHORS "Rene' Seindal"
+
 static void usage (int);
 
 /* Enable sync output for /lib/cpp (-s).  */
@@ -452,14 +456,7 @@
 	break;
 
       case VERSION_OPTION:
-	printf ("%s\n", PACKAGE_STRING);
-	fputs ("\
-Copyright (C) 2006 Free Software Foundation, Inc.\n\
-This is free software; see the source for copying conditions.  There is NO\n\
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
-\n\
-Written by Rene' Seindal.\n\
-", stdout);
+	version_etc (stdout, PACKAGE, PACKAGE_NAME, VERSION, AUTHORS, NULL);
 	exit (EXIT_SUCCESS);
 	break;
 



From MAILER-DAEMON Wed Jan 03 16:09:31 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2DMY-0005S9-Ll
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:30 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2DMW-0005Qd-Pb
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:28 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2DMV-0005Pk-Dc
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2DMV-0005Pa-9w
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2DMU-00011K-Uu
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2DMA-00033W-3E
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:06 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2DMT-00010z-MH
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:26 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2DMT-00010X-8k
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:25 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2DMS-0002oP-57
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2DMR-0002oI-Vu
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2DMR-0002oI-Vu@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 21:09:23 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 21:09:29 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/03 21:09:23

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.228
retrieving revision 1.1.1.1.2.229
diff -u -b -r1.1.1.1.2.228 -r1.1.1.1.2.229
--- ChangeLog	27 Dec 2006 14:15:11 -0000	1.1.1.1.2.228
+++ ChangeLog	3 Jan 2007 21:09:23 -0000	1.1.1.1.2.229
@@ -1,3 +1,10 @@
+2007-01-03  Eric Blake  <ebb9@byu.net>
+
+	* m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
+	version-etc-fsf'.
+	* src/m4.c (AUTHORS, main): Use FSF wording for --version (plus
+	it bumps the copyright year).
+
 2006-12-27  Eric Blake  <ebb9@byu.net>
 
 	* doc/m4.texinfo (Patsubst): Fix typo.
@@ -3388,7 +3395,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.228 $ $Date: 2006/12/27 14:15:11 $
+	$Revision: 1.1.1.1.2.229 $ $Date: 2007/01/03 21:09:23 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Wed Jan 03 16:09:31 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2DMZ-0005Sf-5R
	for mharc-m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:31 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2DMX-0005Qw-DN
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:29 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2DMV-0005QF-V3
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:28 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2DMV-0005Pu-Jj
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2DMV-00011R-AA
	for m4-commit@gnu.org; Wed, 03 Jan 2007 16:09:27 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2DMA-00033Y-7h
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:06 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2DMT-00010p-OC
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:26 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2DMT-00010W-7I
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 16:09:25 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2DMR-0002oK-W4
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2DMR-0002oG-O4
	for m4-cvs-logs@gnu.org; Wed, 03 Jan 2007 21:09:23 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2DMR-0002oG-O4@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Wed, 03 Jan 2007 21:09:23 +0000
Cc: 
Subject: m4 ChangeLog src/m4.c m4/gnulib-cache.m4 [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jan 2007 21:09:30 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/03 21:09:23

Modified files:
	.              : ChangeLog 
	src            : m4.c 
	m4             : gnulib-cache.m4 

Log message:
	* m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
	version-etc-fsf'.
	* src/m4.c (AUTHORS, main): Use FSF wording for --version (plus
	it bumps the copyright year).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.228&r2=1.1.1.1.2.229
http://cvs.savannah.gnu.org/viewcvs/m4/src/m4.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.39&r2=1.1.1.1.2.40
http://cvs.savannah.gnu.org/viewcvs/m4/m4/gnulib-cache.m4?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.2.20&r2=1.1.2.21



From MAILER-DAEMON Thu Jan 04 21:50:10 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2f9m-0001pu-9j
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:10 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2f9j-0001p8-Qu
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:07 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2f9i-0001o8-Cs
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2f9i-0001o4-5W
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2f9h-0000hT-Qu
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:05 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2f9L-0004YS-67
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:49:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2f9g-0000h3-TF
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:05 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2f9g-0000gj-C1
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:04 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2f9f-0004kJ-Lt
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:03 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2f9f-0004kF-HC
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:03 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2f9f-0004kF-HC@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:50:03 +0000
Cc: 
Subject: m4 ChangeLog NEWS configure.ac [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:50:08 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:50:03

Modified files:
	.              : ChangeLog NEWS configure.ac 

Log message:
	Fix regression from 1.4.7 in large file handling on some
	platforms, introduced on 2006-10-13.
	* configure.ac (AC_LARGE_SYSFILE): Guarantee that large files
	will be handled.
	* NEWS: Document this fix.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.229&r2=1.1.1.1.2.230
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.84&r2=1.1.1.1.2.85
http://cvs.savannah.gnu.org/viewcvs/m4/configure.ac?cvsroot=m4&only_with_tag=branch-1_4&r1=1.36.2.32&r2=1.36.2.33



From MAILER-DAEMON Thu Jan 04 21:50:10 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2f9m-0001q0-Gk
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:10 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2f9j-0001p7-PJ
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:07 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2f9i-0001oP-Op
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2f9i-0001oE-Fo
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2f9i-0000hd-4i
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2f9L-0004Yb-IC
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:49:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2f9h-0000hA-Au
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:05 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2f9g-0000gp-LF
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:04 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2f9g-0004kU-1i
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:04 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2f9f-0004kL-RP
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:03 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2f9f-0004kL-RP@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:50:03 +0000
Cc: 
Subject: Changes to m4/NEWS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:50:08 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:50:03

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.1.1.1.2.84
retrieving revision 1.1.1.1.2.85
diff -u -b -r1.1.1.1.2.84 -r1.1.1.1.2.85
--- NEWS	9 Dec 2006 17:06:30 -0000	1.1.1.1.2.84
+++ NEWS	5 Jan 2007 02:50:03 -0000	1.1.1.1.2.85
@@ -1,10 +1,11 @@
 GNU M4 NEWS - User visible changes.
-Copyright (C) 1992, 1993, 1994, 2004, 2005, 2006 Free Software
+Copyright (C) 1992, 1993, 1994, 2004, 2005, 2006, 2007 Free Software
 Foundation, Inc.
 
-Version 1.4.9 - ?? ??? 200?, by ????  (CVS version 1.4.8a)
+Version 1.4.9 - ?? ??? 2007, by ????  (CVS version 1.4.8a)
 
-* No user visible changes so far...
+* Fix a regression introduced in 1.4.8 that made m4 unable to process
+  files larger than 2GiB on some platforms.
 
 Version 1.4.8 - 20 November 2006, by Eric Blake  (CVS version 1.4.7a)
 



From MAILER-DAEMON Thu Jan 04 21:50:11 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2f9n-0001qh-GP
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:11 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2f9k-0001pd-CF
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:08 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2f9j-0001op-2x
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:07 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2f9i-0001oY-SX
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2f9i-0000hm-Eq
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2f9L-0004Ye-TC
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:49:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2f9h-0000hP-O4
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2f9g-0000gs-V2
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:05 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2f9g-0004kd-EL
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:04 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2f9g-0004kS-1c
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:04 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2f9g-0004kS-1c@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:50:04 +0000
Cc: 
Subject: Changes to m4/configure.ac,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:50:09 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:50:03

Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.36.2.32
retrieving revision 1.36.2.33
diff -u -b -r1.36.2.32 -r1.36.2.33
--- configure.ac	9 Dec 2006 17:06:30 -0000	1.36.2.32
+++ configure.ac	5 Jan 2007 02:50:03 -0000	1.36.2.33
@@ -1,5 +1,5 @@
 # Configure template for GNU M4.			-*-Autoconf-*-
-# Copyright (C) 1991, 1993, 1994, 2004, 2005, 2006 Free Software
+# Copyright (C) 1991, 1993, 1994, 2004, 2005, 2006, 2007 Free Software
 # Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -33,6 +33,7 @@
 AC_PROG_CC
 M4_EARLY
 
+AC_SYS_LARGEFILE
 AC_CHECK_HEADERS_ONCE([limits.h siginfo.h sys/wait.h])
 AC_CHECK_TYPES([siginfo_t], [], [],
 [[#include <signal.h>



From MAILER-DAEMON Thu Jan 04 21:50:11 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2f9m-0001qR-Sa
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:10 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2f9j-0001p5-OO
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:07 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2f9i-0001oH-IO
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2f9i-0001o6-BG
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:06 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2f9h-0000hV-RC
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:50:05 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2f9L-0004YT-7R
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:49:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2f9g-0000gy-Pl
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:05 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2f9g-0000gl-DK
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:50:04 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2f9f-0004kO-Qx
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:03 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2f9f-0004kH-M9
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:50:03 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2f9f-0004kH-M9@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:50:03 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:50:08 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:50:03

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.229
retrieving revision 1.1.1.1.2.230
diff -u -b -r1.1.1.1.2.229 -r1.1.1.1.2.230
--- ChangeLog	3 Jan 2007 21:09:23 -0000	1.1.1.1.2.229
+++ ChangeLog	5 Jan 2007 02:50:03 -0000	1.1.1.1.2.230
@@ -1,3 +1,11 @@
+2007-01-04  Eric Blake  <ebb9@byu.net>
+
+	Fix regression from 1.4.7 in large file handling on some
+	platforms, introduced on 2006-10-13.
+	* configure.ac (AC_LARGE_SYSFILE): Guarantee that large files
+	will be handled.
+	* NEWS: Document this fix.
+
 2007-01-03  Eric Blake  <ebb9@byu.net>
 
 	* m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
@@ -3395,7 +3403,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.229 $ $Date: 2007/01/03 21:09:23 $
+	$Revision: 1.1.1.1.2.230 $ $Date: 2007/01/05 02:50:03 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Thu Jan 04 21:58:38 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fHy-00062r-5O
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:38 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fHw-00061v-FJ
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fHw-00061b-0Q
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fHv-00061Y-UM
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:35 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fHv-0002sC-FK
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:35 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fHY-0004zx-Rl
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:12 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fHt-0002ri-Vy
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:34 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fHt-0002re-Oz
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:33 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fHt-0004wi-Cr
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:33 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fHt-0004we-6X
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fHt-0004we-6X@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:58:33 +0000
Cc: 
Subject: m4 ChangeLog THANKS src/m4.c [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:58:36 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:58:33

Modified files:
	.              : ChangeLog THANKS 
	src            : m4.c 

Log message:
	Fix Debian bug 405594, introduced 2006-11-01 from a bad
	copy-n-paste from head.
	* src/m4.c (main): Use correct file name after --.
	* THANKS: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.230&r2=1.1.1.1.2.231
http://cvs.savannah.gnu.org/viewcvs/m4/THANKS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.22&r2=1.1.1.1.2.23
http://cvs.savannah.gnu.org/viewcvs/m4/src/m4.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.40&r2=1.1.1.1.2.41



From MAILER-DAEMON Thu Jan 04 21:58:38 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fHy-000637-98
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:38 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fHx-00062b-4u
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:37 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fHw-00061j-78
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fHw-00061g-3O
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fHv-0002sJ-MD
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:35 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fHZ-000500-29
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:13 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fHu-0002rs-KJ
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:35 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fHu-0002rk-92
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:34 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fHt-0004wv-QR
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:33 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fHt-0004wk-I4
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fHt-0004wk-I4@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:58:33 +0000
Cc: 
Subject: Changes to m4/THANKS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:58:37 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:58:33

Index: THANKS
===================================================================
RCS file: /sources/m4/m4/THANKS,v
retrieving revision 1.1.1.1.2.22
retrieving revision 1.1.1.1.2.23
diff -u -b -r1.1.1.1.2.22 -r1.1.1.1.2.23
--- THANKS	14 Oct 2006 04:15:26 -0000	1.1.1.1.2.22
+++ THANKS	5 Jan 2007 02:58:32 -0000	1.1.1.1.2.23
@@ -83,6 +83,7 @@
 Robert Bihlmeyer	robbe@orcus.priv.at
 Roland H. Pesch		roland@wrs.com
 Roland McGrath		roland@gnu.ai.mit.edu
+Sami Liedes		sliedes@cc.hut.fi
 Santiago Vila		sanvila@debian.org
 Scott Bartram		deneb!scottb
 Simon Leinen		simon@lia.di.epfl.ch



From MAILER-DAEMON Thu Jan 04 21:58:39 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fHz-00064A-JI
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:39 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fHx-00062p-Jt
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:37 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fHw-000629-SR
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fHw-00061x-Hg
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fHw-0002sT-5w
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fHZ-000504-IE
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:13 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fHv-0002s6-AC
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:35 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fHu-0002ro-IF
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:34 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fHu-0004wz-0y
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fHt-0004wt-QT
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fHt-0004wt-QT@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:58:33 +0000
Cc: 
Subject: Changes to m4/src/Attic/m4.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:58:38 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:58:33

Index: src/m4.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/m4.c,v
retrieving revision 1.1.1.1.2.40
retrieving revision 1.1.1.1.2.41
diff -u -b -r1.1.1.1.2.40 -r1.1.1.1.2.41
--- src/m4.c	3 Jan 2007 21:09:23 -0000	1.1.1.1.2.40
+++ src/m4.c	5 Jan 2007 02:58:32 -0000	1.1.1.1.2.41
@@ -548,8 +548,7 @@
     read_stdin = process_file ("-");
   else
     for (; optind < argc; optind++)
-      if (process_file (defines->arg))
-	read_stdin = true;
+      read_stdin |= process_file (argv[optind]);
 
   /* Now handle wrapup text.  */
 



From MAILER-DAEMON Thu Jan 04 21:58:39 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fHz-00063y-EJ
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:39 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fHx-00062o-J2
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:38 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fHw-00062A-NW
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:37 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fHw-00061w-Gf
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fHw-0002sS-54
	for m4-commit@gnu.org; Thu, 04 Jan 2007 21:58:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fHZ-000503-Gu
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:13 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fHu-0002rz-RS
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:35 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fHt-0002rf-Vc
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:58:34 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fHt-0004wo-IA
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:33 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fHt-0004wg-Co
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 02:58:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fHt-0004wg-Co@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 02:58:33 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 02:58:38 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 02:58:33

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.230
retrieving revision 1.1.1.1.2.231
diff -u -b -r1.1.1.1.2.230 -r1.1.1.1.2.231
--- ChangeLog	5 Jan 2007 02:50:03 -0000	1.1.1.1.2.230
+++ ChangeLog	5 Jan 2007 02:58:32 -0000	1.1.1.1.2.231
@@ -1,3 +1,10 @@
+2007-01-04  Sami Liedes  <sliedes@cc.hut.fi>  (tiny change)
+
+	Fix Debian bug 405594, introduced 2006-11-01 from a bad
+	copy-n-paste from head.
+	* src/m4.c (main): Use correct file name after --.
+	* THANKS: Update.
+
 2007-01-04  Eric Blake  <ebb9@byu.net>
 
 	Fix regression from 1.4.7 in large file handling on some
@@ -3403,7 +3410,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.230 $ $Date: 2007/01/05 02:50:03 $
+	$Revision: 1.1.1.1.2.231 $ $Date: 2007/01/05 02:58:32 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Thu Jan 04 22:00:18 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fJZ-0007Y3-Vf
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:17 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fJY-0007XA-FN
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:16 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fJX-0007Wg-QP
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:16 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fJX-0007Wb-MJ
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:15 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fJX-00034x-7t
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:15 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fJA-00054k-HW
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:59:52 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fJW-00034j-CD
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:14 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fJV-00034U-U1
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fJV-00054e-Fl
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:00:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fJV-00054T-AU
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:00:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fJV-00054T-AU@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:00:13 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:00:16 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 03:00:13

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.231
retrieving revision 1.1.1.1.2.232
diff -u -b -r1.1.1.1.2.231 -r1.1.1.1.2.232
--- ChangeLog	5 Jan 2007 02:58:32 -0000	1.1.1.1.2.231
+++ ChangeLog	5 Jan 2007 03:00:12 -0000	1.1.1.1.2.232
@@ -3410,14 +3410,14 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.231 $ $Date: 2007/01/05 02:58:32 $
+	$Revision: 1.1.1.1.2.232 $ $Date: 2007/01/05 03:00:12 $
 
 	Local Variables:
 	coding: utf-8
 	End:
 
 	Copyright (C) 1990, 1991, 1992, 1993, 1994, 2000, 2001, 2003,
-	2005, 2006 Free Software Foundation, Inc.
+	2005, 2006, 2007 Free Software Foundation, Inc.
 
 	Copying and distribution of this file, with or without
 	modification, are permitted provided the copyright notice



From MAILER-DAEMON Thu Jan 04 22:00:18 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fJa-0007Y9-2r
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:18 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fJY-0007XI-NA
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:16 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fJX-0007Wm-Vb
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:16 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fJX-0007Wc-My
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:15 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fJX-00034y-86
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:15 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fJA-00054l-Ig
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:59:52 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fJW-00034p-Hv
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:14 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fJW-00034X-9X
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fJV-00054k-Ll
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:00:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fJV-00054c-Ft
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:00:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fJV-00054c-Ft@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:00:13 +0000
Cc: 
Subject: Changes to m4/THANKS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:00:16 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 03:00:13

Index: THANKS
===================================================================
RCS file: /sources/m4/m4/THANKS,v
retrieving revision 1.1.1.1.2.23
retrieving revision 1.1.1.1.2.24
diff -u -b -r1.1.1.1.2.23 -r1.1.1.1.2.24
--- THANKS	5 Jan 2007 02:58:32 -0000	1.1.1.1.2.23
+++ THANKS	5 Jan 2007 03:00:12 -0000	1.1.1.1.2.24
@@ -108,7 +108,7 @@
 coding: utf-8
 End:
 
-Copyright (C) 2000, 2006 Free Software Foundation, Inc.
+Copyright (C) 2000, 2006, 2007 Free Software Foundation, Inc.
 
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.2 or



From MAILER-DAEMON Thu Jan 04 22:00:19 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fJb-0007Yu-9t
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:19 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fJZ-0007Xh-Hz
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:17 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fJY-0007Wv-7a
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:17 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fJY-0007Wr-3L
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:16 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fJX-000357-Pl
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:00:15 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fJB-00054q-64
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 21:59:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fJV-00034c-T1
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:15 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fJV-00034P-LF
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:13 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fJV-00054W-AY
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:00:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fJV-00054F-4s
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:00:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fJV-00054F-4s@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:00:13 +0000
Cc: 
Subject: m4 ChangeLog THANKS [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:00:17 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 03:00:13

Modified files:
	.              : ChangeLog THANKS 

Log message:
	* Bump copyright.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.231&r2=1.1.1.1.2.232
http://cvs.savannah.gnu.org/viewcvs/m4/THANKS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.23&r2=1.1.1.1.2.24



From MAILER-DAEMON Thu Jan 04 22:01:08 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fKN-00089M-Im
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:07 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fKL-00086u-Pb
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:05 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fKJ-00085D-8u
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:04 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fKI-00084s-RX
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:03 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fKI-0003CP-8c
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:02 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fJv-00057F-Kv
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:39 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fKH-0003Bv-Ce
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:01:01 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fKH-0003Bo-03
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:01:01 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fKG-00058t-Hq
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:01:00 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fKG-00058p-6G
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:01:00 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fKG-00058p-6G@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:01:00 +0000
Cc: 
Subject: m4 ChangeLog configure.ac
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:01:06 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/05 03:01:00

Modified files:
	.              : ChangeLog configure.ac 

Log message:
	* configure.ac (AC_SYS_LARGEFILE): Guarantee large file support.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.470&r2=1.471
http://cvs.savannah.gnu.org/viewcvs/m4/configure.ac?cvsroot=m4&r1=1.62&r2=1.63



From MAILER-DAEMON Thu Jan 04 22:01:08 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fKO-00089l-7k
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:08 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fKL-00087u-W1
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fKK-00085g-2h
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:04 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fKJ-00085S-Cl
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:03 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fKI-0003Cd-UJ
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:03 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fJw-00057N-9T
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:40 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fKI-0003CI-0A
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:01:02 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fKH-0003C0-NU
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:01:01 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fKH-00059E-4y
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:01:01 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fKG-00058y-Sn
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:01:00 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fKG-00058y-Sn@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:01:00 +0000
Cc: 
Subject: Changes to m4/configure.ac,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:01:06 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/05 03:01:00

Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -b -r1.62 -r1.63
--- configure.ac	16 Nov 2006 19:01:15 -0000	1.62
+++ configure.ac	5 Jan 2007 03:01:00 -0000	1.63
@@ -1,6 +1,6 @@
 # Configure template for GNU m4.			-*-Autoconf-*-
-# Copyright (C) 1991, 1992, 1993, 1994, 2000, 2001, 2002, 2004, 2005, 2006
-# Free Software Foundation, Inc.
+# Copyright (C) 1991, 1992, 1993, 1994, 2000, 2001, 2002, 2004, 2005, 2006,
+# 2007 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
@@ -77,6 +77,7 @@
 AC_PROG_CC
 M4_EARLY
 
+AC_SYS_LARGEFILE
 AC_PROG_CPP
 AM_PROG_CC_C_O
 M4_CHECK_DEBUGGING



From MAILER-DAEMON Thu Jan 04 22:01:09 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fKP-0008B1-FZ
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:09 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fKM-00088P-Op
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fKJ-00085n-Tw
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:04 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fKJ-00085R-CH
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:03 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fKI-0003Cc-U7
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:01:03 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fJw-00057M-8y
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:00:40 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fKH-0003CB-R9
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:01:02 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fKH-0003Bs-9S
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:01:01 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fKG-000590-Sx
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:01:00 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fKG-00058r-I0
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:01:00 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fKG-00058r-I0@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:01:00 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:01:07 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/05 03:01:00

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.470
retrieving revision 1.471
diff -u -b -r1.470 -r1.471
--- ChangeLog	3 Jan 2007 14:44:11 -0000	1.470
+++ ChangeLog	5 Jan 2007 03:00:59 -0000	1.471
@@ -1,3 +1,21 @@
+2007-01-04  Eric Blake  <ebb9@byu.net>
+
+	* modules/m4.c (numb_invert): Detect unsupported x**-y.
+	* modules/evalparse.c (URSHIFT, NEGATIVE_EXPONENT): New
+	enumerators.
+	(eval_error): Rearrange, so that all ignorable errors are less
+	than SYNTAX_ERROR.
+	(numb_pow): Change return type.
+	(exp_term): Adjust caller.
+	(m4_evaluate): Fail on bad exponent.
+	(logical_or_term, logical_and_term): Ignore failed ** in short
+	circuit.
+	(eval_lex): Fix typos when detecting <<= and >>=.  Use \ instead
+	of : for ratio.  Support >>>.
+	* doc/m4.texinfo (Eval): Document these changes.
+
+	* configure.ac (AC_SYS_LARGEFILE): Guarantee large file support.
+
 2007-01-03  Eric Blake  <ebb9@byu.net>
 
 	* doc/m4.texinfo (Format, Incr): More merges.
@@ -8403,14 +8421,14 @@
 
 	-----
 
-	$Revision: 1.470 $ $Date: 2007/01/03 14:44:11 $
+	$Revision: 1.471 $ $Date: 2007/01/05 03:00:59 $
 
 	Local Variables:
 	coding: utf-8
 	End:
 
 	Copyright (C) 1990, 1991, 1992, 1993, 1994, 2000, 2001, 2003,
-	2005, 2006 Free Software Foundation, Inc.
+	2005, 2006, 2007 Free Software Foundation, Inc.
 
 	Copying and distribution of this file, with or without
 	modification, are permitted provided the copyright notice



From MAILER-DAEMON Thu Jan 04 22:03:45 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fMu-000309-NM
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:44 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fMr-0002w7-KI
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fMq-0002tj-4b
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:40 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fMp-0002tc-CQ
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:39 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fMo-0003Vm-NN
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:38 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fMS-0005FN-4p
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:16 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fMn-0003VL-LE
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:38 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fMn-0003VC-8w
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:37 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fMm-0005Ju-Vu
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:03:37 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fMm-0005Jq-Nc
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:03:36 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fMm-0005Jq-Nc@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:03:36 +0000
Cc: 
Subject: m4 ChangeLog NEWS [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:03:42 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 03:03:36

Modified files:
	.              : ChangeLog NEWS 

Log message:
	* NEWS: Document previous fix.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.232&r2=1.1.1.1.2.233
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.85&r2=1.1.1.1.2.86



From MAILER-DAEMON Thu Jan 04 22:03:45 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fMv-00030T-1B
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fMs-0002we-4I
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:42 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fMq-0002tq-HN
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:40 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fMp-0002tO-8V
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:39 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fMo-0003Vl-N7
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:38 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fMS-0005FM-4c
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:16 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fMn-0003VR-Q2
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:38 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fMn-0003VE-Eq
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:37 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fMn-0005Jy-4d
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:03:37 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fMm-0005Js-Vp
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:03:37 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fMm-0005Js-Vp@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:03:36 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:03:42 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 03:03:36

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.232
retrieving revision 1.1.1.1.2.233
diff -u -b -r1.1.1.1.2.232 -r1.1.1.1.2.233
--- ChangeLog	5 Jan 2007 03:00:12 -0000	1.1.1.1.2.232
+++ ChangeLog	5 Jan 2007 03:03:36 -0000	1.1.1.1.2.233
@@ -1,9 +1,13 @@
+2007-01-04  Eric Blake  <ebb9@byu.net>
+
+	* NEWS: Document previous fix.
+	* THANKS: Update.
+
 2007-01-04  Sami Liedes  <sliedes@cc.hut.fi>  (tiny change)
 
 	Fix Debian bug 405594, introduced 2006-11-01 from a bad
 	copy-n-paste from head.
 	* src/m4.c (main): Use correct file name after --.
-	* THANKS: Update.
 
 2007-01-04  Eric Blake  <ebb9@byu.net>
 
@@ -3410,7 +3414,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.232 $ $Date: 2007/01/05 03:00:12 $
+	$Revision: 1.1.1.1.2.233 $ $Date: 2007/01/05 03:03:36 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Thu Jan 04 22:03:48 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2fMy-00033c-61
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:48 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2fMt-0002xf-83
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:43 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2fMq-0002tx-2s
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:40 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2fMp-0002te-M2
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:39 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2fMo-0003Vu-UU
	for m4-commit@gnu.org; Thu, 04 Jan 2007 22:03:39 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2fMS-0005FR-Cf
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:16 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2fMo-0003VY-7z
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:38 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2fMn-0003VF-M1
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 22:03:37 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2fMn-0005K3-At
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:03:37 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2fMn-0005Jw-4L
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 03:03:37 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2fMn-0005Jw-4L@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 03:03:37 +0000
Cc: 
Subject: Changes to m4/NEWS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 03:03:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/05 03:03:36

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.1.1.1.2.85
retrieving revision 1.1.1.1.2.86
diff -u -b -r1.1.1.1.2.85 -r1.1.1.1.2.86
--- NEWS	5 Jan 2007 02:50:03 -0000	1.1.1.1.2.85
+++ NEWS	5 Jan 2007 03:03:36 -0000	1.1.1.1.2.86
@@ -6,6 +6,8 @@
 
 * Fix a regression introduced in 1.4.8 that made m4 unable to process
   files larger than 2GiB on some platforms.
+* Fix a regression introduced in 1.4.8 that made m4 dump core when
+  invoked as 'm4 -- file'.
 
 Version 1.4.8 - 20 November 2006, by Eric Blake  (CVS version 1.4.7a)
 



From MAILER-DAEMON Thu Jan 04 23:07:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2gN3-0002JS-ME
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2gN1-0002JF-OQ
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:55 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2gN0-0002Is-7u
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:54 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2gN0-0002Io-3G
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:54 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2gMz-0005eo-Q4
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:53 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2gMd-0000Ds-7k
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 23:07:31 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2gMz-0005ea-50
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 23:07:53 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2gMy-0005eW-Uu
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 23:07:53 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2gMy-0000A4-Hy
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 04:07:52 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2gMy-0000A0-7E
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 04:07:52 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2gMy-0000A0-7E@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 04:07:52 +0000
Cc: 
Subject: m4 ChangeLog
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 04:07:55 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/05 04:07:52

Modified files:
	.              : ChangeLog 

Log message:
	Revert over-large ChangeLog entry

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.471&r2=1.472



From MAILER-DAEMON Thu Jan 04 23:07:58 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H2gN4-0002K1-PI
	for mharc-m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:58 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H2gN2-0002JN-L5
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:56 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H2gN0-0002Iz-Hw
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:55 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H2gN0-0002Ip-6B
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:54 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2gMz-0005eq-US
	for m4-commit@gnu.org; Thu, 04 Jan 2007 23:07:53 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H2gMd-0000Du-Bq
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 23:07:31 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H2gMz-0005eg-B7
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 23:07:53 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H2gMz-0005eX-35
	for m4-cvs-logs@gnu.org; Thu, 04 Jan 2007 23:07:53 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H2gMy-0000A7-LF
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 04:07:52 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H2gMy-0000A2-Ex
	for m4-cvs-logs@gnu.org; Fri, 05 Jan 2007 04:07:52 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H2gMy-0000A2-Ex@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 05 Jan 2007 04:07:52 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2007 04:07:57 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/05 04:07:52

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -b -r1.471 -r1.472
--- ChangeLog	5 Jan 2007 03:00:59 -0000	1.471
+++ ChangeLog	5 Jan 2007 04:07:51 -0000	1.472
@@ -1,19 +1,5 @@
 2007-01-04  Eric Blake  <ebb9@byu.net>
 
-	* modules/m4.c (numb_invert): Detect unsupported x**-y.
-	* modules/evalparse.c (URSHIFT, NEGATIVE_EXPONENT): New
-	enumerators.
-	(eval_error): Rearrange, so that all ignorable errors are less
-	than SYNTAX_ERROR.
-	(numb_pow): Change return type.
-	(exp_term): Adjust caller.
-	(m4_evaluate): Fail on bad exponent.
-	(logical_or_term, logical_and_term): Ignore failed ** in short
-	circuit.
-	(eval_lex): Fix typos when detecting <<= and >>=.  Use \ instead
-	of : for ratio.  Support >>>.
-	* doc/m4.texinfo (Eval): Document these changes.
-
 	* configure.ac (AC_SYS_LARGEFILE): Guarantee large file support.
 
 2007-01-03  Eric Blake  <ebb9@byu.net>
@@ -8421,7 +8407,7 @@
 
 	-----
 
-	$Revision: 1.471 $ $Date: 2007/01/05 03:00:59 $
+	$Revision: 1.472 $ $Date: 2007/01/05 04:07:51 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 06 14:56:22 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeQ-0002aW-9S
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:22 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeM-0002Xp-Tq
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeM-0002X2-22
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeL-0002Wz-TT
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeK-0001Xh-G4
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdv-0006H1-9B
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:51 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeH-0001WW-Fm
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:15 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeH-0001WI-39
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:13 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeG-0002L3-Ef
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeG-0002Kx-9l
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeG-0002Kx-9l@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:12 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:20 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.233
retrieving revision 1.1.1.1.2.234
diff -u -b -r1.1.1.1.2.233 -r1.1.1.1.2.234
--- ChangeLog	5 Jan 2007 03:03:36 -0000	1.1.1.1.2.233
+++ ChangeLog	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.234
@@ -1,3 +1,22 @@
+2007-01-06  Eric Blake  <ebb9@byu.net>
+
+	* m4/gnulib-cache.m4: Augment with 'gnulib-tool --import stdint'.
+	* checks/check-them: Record expected exit status.
+	* checks/get-them: Check exit status.
+	* src/m4.h (eval_t, unsigned_eval_t): Delete, use POSIX int32_t
+	instead.
+	* src/builtin.c: All users changed.
+	* src/eval.c: Likewise.  Also document where we are triggering
+	undefined or implementation-defined behavior.
+	(BADOP, NEGATIVE_EXPONENT, INVALID_OPERATOR, eval_lex, evaluate)
+	(logical_or_term, logical_and_term, logical_not_term, not_term)
+	(equality_term, unary_term): Port from head to follow POSIX
+	semantics.
+	(exp_term): Reject 0**0 as undefined.
+	* doc/m4.texinfo (History): Mention 1.4.9.
+	(Format, Incompatibilities): Update to document POSIX compliance.
+	* NEWS: Document this change.
+
 2007-01-04  Eric Blake  <ebb9@byu.net>
 
 	* NEWS: Document previous fix.
@@ -3414,7 +3433,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.233 $ $Date: 2007/01/05 03:03:36 $
+	$Revision: 1.1.1.1.2.234 $ $Date: 2007/01/06 19:56:11 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 06 14:56:22 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeQ-0002ag-Ex
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:22 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeN-0002Xw-1C
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:19 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeL-0002Wo-MV
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeL-0002Wd-HQ
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeK-0001Xe-3u
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:16 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdv-0006Gw-1H
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:51 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeH-0001Wf-VV
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:15 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeH-0001WK-7g
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:13 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeG-0002LA-LP
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeG-0002L1-EZ
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeG-0002L1-EZ@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:12 +0000
Cc: 
Subject: Changes to m4/NEWS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:20 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.1.1.1.2.86
retrieving revision 1.1.1.1.2.87
diff -u -b -r1.1.1.1.2.86 -r1.1.1.1.2.87
--- NEWS	5 Jan 2007 03:03:36 -0000	1.1.1.1.2.86
+++ NEWS	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.87
@@ -8,6 +8,11 @@
   files larger than 2GiB on some platforms.
 * Fix a regression introduced in 1.4.8 that made m4 dump core when
   invoked as 'm4 -- file'.
+* The `eval' builtin now follows C precedence rules.  Additionally,
+  short-circuit operators correctly short-circuit division by zero.
+  The undocumented alias of '=' meaning '==' in eval now triggers
+  an error, so that a future version of M4 can implement a form of
+  variable assignment as an extension.
 
 Version 1.4.8 - 20 November 2006, by Eric Blake  (CVS version 1.4.7a)
 



From MAILER-DAEMON Sat Jan 06 14:56:25 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeT-0002c0-21
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeO-0002Yo-Eb
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:20 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeM-0002XT-JQ
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeM-0002XN-DQ
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeM-0001Y0-1r
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdx-0006H9-0I
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeJ-0001X9-Lq
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeI-0001Wk-P9
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:15 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeH-0002MH-Ub
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:14 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeH-0002M9-PS
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeH-0002M9-PS@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:13 +0000
Cc: 
Subject: Changes to m4/src/m4.h,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:21 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: src/m4.h
===================================================================
RCS file: /sources/m4/m4/src/m4.h,v
retrieving revision 1.1.1.1.2.35
retrieving revision 1.1.1.1.2.36
diff -u -b -r1.1.1.1.2.35 -r1.1.1.1.2.36
--- src/m4.h	11 Nov 2006 13:36:56 -0000	1.1.1.1.2.35
+++ src/m4.h	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.36
@@ -1,7 +1,7 @@
 /* GNU m4 -- A simple macro processor
 
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006 Free
-   Software Foundation, Inc.
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006, 2007
+   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
@@ -28,6 +28,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <stdbool.h>
+#include <stdint.h>
 #include <string.h>
 #include <sys/types.h>
 
@@ -415,11 +416,7 @@
 
 /* File: eval.c  --- expression evaluation.  */
 
-/* eval_t and unsigned_eval_t should be at least 32 bits.  */
-typedef int eval_t;
-typedef unsigned int unsigned_eval_t;
-
-bool evaluate (const char *, eval_t *);
+bool evaluate (const char *, int32_t *);
 
 /* File: format.c  --- printf like formatting.  */
 



From MAILER-DAEMON Sat Jan 06 14:56:25 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeT-0002c9-Kl
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeO-0002Z3-V8
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:21 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeN-0002Xv-0q
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:19 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeM-0002Xn-Sd
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeM-0001Y4-7V
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdx-0006HB-5N
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeK-0001XO-HV
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeI-0001Wd-KR
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeH-0002Le-JU
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeH-0002LW-Eh
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeH-0002LW-Eh@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:13 +0000
Cc: 
Subject: Changes to m4/src/Attic/builtin.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:21 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: src/builtin.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/builtin.c,v
retrieving revision 1.1.1.1.2.52
retrieving revision 1.1.1.1.2.53
diff -u -b -r1.1.1.1.2.52 -r1.1.1.1.2.53
--- src/builtin.c	11 Nov 2006 16:26:58 -0000	1.1.1.1.2.52
+++ src/builtin.c	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.53
@@ -1,6 +1,6 @@
 /* GNU m4 -- A simple macro processor
 
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2000, 2004, 2006
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2000, 2004, 2006, 2007
    Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -359,10 +359,10 @@
 static char const digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
 
 static const char *
-ntoa (eval_t value, int radix)
+ntoa (int32_t value, int radix)
 {
   bool negative;
-  unsigned_eval_t uvalue;
+  uint32_t uvalue;
   static char str[256];
   char *s = &str[sizeof str];
 
@@ -371,12 +371,12 @@
   if (value < 0)
     {
       negative = true;
-      uvalue = (unsigned_eval_t) -value;
+      uvalue = -(uint32_t) value;
     }
   else
     {
       negative = false;
-      uvalue = (unsigned_eval_t) value;
+      uvalue = (uint32_t) value;
     }
 
   do
@@ -401,7 +401,7 @@
 {
   const char *s;
 
-  s = ntoa ((eval_t) val, 10);
+  s = ntoa ((int32_t) val, 10);
   obstack_grow (obs, s, strlen (s));
 }
 
@@ -940,7 +940,7 @@
 static void
 m4_eval (struct obstack *obs, int argc, token_data **argv)
 {
-  eval_t value = 0;
+  int32_t value = 0;
   int radix = 10;
   int min = 1;
   const char *s;
@@ -954,8 +954,8 @@
   if (radix < 1 || radix > (int) strlen (digits))
     {
       M4ERROR ((warning_status, 0,
-		"radix in builtin `%s' out of range (radix = %d)",
-		ARG (0), radix));
+		"radix %d in builtin `%s' out of range",
+		radix, ARG (0)));
       return;
     }
 
@@ -1304,7 +1304,7 @@
 	if (str[i - 1] != 'X')
 	  break;
       obstack_grow (obs, str, i);
-      str = ntoa ((eval_t) getpid (), 10);
+      str = ntoa ((int32_t) getpid (), 10);
       len2 = strlen (str);
       if (len2 > len - i)
 	obstack_grow0 (obs, str + len2 - (len - i), len - i);



From MAILER-DAEMON Sat Jan 06 14:56:25 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeT-0002cS-SZ
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeP-0002Zv-NA
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:21 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeN-0002YV-LE
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeN-0002Y0-0p
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:19 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeM-0001YB-BR
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdx-0006HG-Aw
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeL-0001Wr-Or
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeH-0001WL-El
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:13 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeG-0002LH-SK
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeG-0002L7-LQ
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeG-0002L7-LQ@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:12 +0000
Cc: 
Subject: Changes to m4/checks/Attic/check-them,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: checks/check-them
===================================================================
RCS file: /sources/m4/m4/checks/Attic/check-them,v
retrieving revision 1.1.1.1.2.13
retrieving revision 1.1.1.1.2.14
diff -u -b -r1.1.1.1.2.13 -r1.1.1.1.2.14
--- checks/check-them	7 Sep 2006 13:08:54 -0000	1.1.1.1.2.13
+++ checks/check-them	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.14
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Check GNU m4 against examples from the manual source.
-# Copyright (C) 1992, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1992, 2006, 2007 Free Software Foundation, Inc.
 
 # Sanity check what we are testing
 m4 --version
@@ -59,12 +59,22 @@
   echo "Checking $file"
   sed -e '/^dnl @/d' -e '/^\^D$/q' "$file" \
     | LC_MESSAGES=C m4 -d -I "$examples" - >$out 2>$err
+  stat=$?
 
-  if test $? = 77 ; then
+  xstat=`sed -ne '2s/^dnl @ expected status: //p;2q' "$file"`
+  case $stat in
+    77)
     skipped="$skipped $file"
     cat $err
     continue
-  fi
+      ;;
+    $xstat) ;;
+    *)
+      failed="$failed $file:status"
+      echo `sed -e 's/^dnl //' -e 1q $file`
+      echo "$file: status was $stat, expected $xstat"
+      ;;
+  esac
 
   sed -e '/^dnl @result{}/!d' -e 's///' -e "s|\.\./examples|$examples|" \
     "$file" > $xout



From MAILER-DAEMON Sat Jan 06 14:56:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeU-0002cv-5t
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeP-0002Zq-RQ
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:21 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeN-0002YI-N0
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeN-0002Y1-1Z
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:19 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeM-0001YG-Kt
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdx-0006HR-Kc
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeK-0001XE-RB
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeI-0001Wa-3B
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeH-0002LR-86
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeH-0002LL-2L
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeH-0002LL-2L@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:13 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.105
retrieving revision 1.1.1.1.2.106
diff -u -b -r1.1.1.1.2.105 -r1.1.1.1.2.106
--- doc/m4.texinfo	27 Dec 2006 14:15:12 -0000	1.1.1.1.2.105
+++ doc/m4.texinfo	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.106
@@ -44,7 +44,7 @@
 a package containing an implementation of the m4 macro language.
 
 Copyright @copyright{} 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005,
-2006 Free Software Foundation, Inc.
+2006, 2007 Free Software Foundation, Inc.
 
 @quotation
 Permission is granted to copy, distribute and/or modify this document
@@ -376,11 +376,13 @@
 limitations.
 
 More recently, in 2004, Paul Eggert released 1.4.1 and 1.4.2 which
-addressed some long standing bugs in the venerable 1.4 release.
-Then in 2005 Gary V. Vaughan collected together the many
-patches to @acronym{GNU} @code{m4} 1.4 that were floating around the net and
+addressed some long standing bugs in the venerable 1.4 release.  Then in
+2005 Gary V. Vaughan collected together the many patches to
+@acronym{GNU} @code{m4} 1.4 that were floating around the net and
 released 1.4.3 and 1.4.4.  And in 2006, Eric Blake joined the team and
-prepared patches for the release of 1.4.5, 1.4.6, 1.4.7, and 1.4.8.
+prepared patches for the release of 1.4.5, 1.4.6, 1.4.7, and 1.4.8.  The
+1.4.x series remains open for bug fixes, including release 1.4.9 in
+2007.
 
 Meanwhile, development has continued on new features for @code{m4}, such
 as dynamic module loading and additional builtins.  When complete,
@@ -1189,6 +1191,7 @@
 
 It is an error if the end of file occurs while collecting arguments.
 
+@comment status: 1
 @example
 hello world
 @result{}hello world
@@ -2990,6 +2993,7 @@
 
 It is an error if the end of file occurs within a quoted string.
 
+@comment status: 1
 @example
 `hello world'
 @result{}hello world
@@ -3133,6 +3137,7 @@
 
 It is an error if the end of file occurs within a comment.
 
+@comment status: 1
 @example
 changecom(`/*', `*/')
 @result{}
@@ -3440,6 +3445,7 @@
 however, the transition between recursion levels behaves like an end of
 file condition between two input files.
 
+@comment status: 1
 @example
 m4wrap(`m4wrap(`)')len(abc')
 @result{}
@@ -4298,7 +4304,7 @@
 @end example
 
 @node Format
-@section Formatted output
+@section Formatting strings (printf-like)
 
 @cindex formatted output
 @cindex output, formatted
@@ -4417,32 +4423,33 @@
 
 @deffn Builtin eval (@var{expression}, @dvar{radix, 10}, @ovar{width})
 Expands to the value of @var{expression}.  The expansion is empty
-if an error is encountered while parsing the arguments.  If specified,
+if a problem is encountered while parsing the arguments.  If specified,
 @var{radix} and @var{width} control the format of the output.
 
-The macro @code{eval} is recognized only with parameters.
-@end deffn
+Calculations are done with 32-bit signed numbers.  Overflow silently
+results in wraparound.  A warning is issued if division by zero is
+attempted, or if @var{expression} could not be parsed.
 
 Expressions can contain the following operators, listed in order of
 decreasing precedence.
 
-@table @code
-@item + -
-Unary plus and minus
+@table @samp
+@item ()
+Parentheses
+@item +  -  ~  !
+Unary plus and minus, and bitwise and logical negation
 @item **
 Exponentiation
 @item *  /  %
-Multiplication, division and modulo
+Multiplication, division, and modulo
 @item +  -
 Addition and subtraction
 @item <<  >>
 Shift left or right
-@item ==  !=  >  >=  <  <=
+@item >  >=  <  <=
 Relational operators
-@item !
-Logical negation
-@item ~
-Bitwise negation
+@item ==  !=
+Equality operators
 @item &
 Bitwise and
 @item ^
@@ -4455,30 +4462,108 @@
 Logical or
 @end table
 
-All operators, except exponentiation, are left associative.
+The macro @code{eval} is recognized only with parameters.
+@end deffn
+
+All binary operators, except exponentiation, are left associative.  C
+operators that perform variable assignment, such as @samp{=} or
+@samp{--}, are forbidden by @acronym{POSIX}, since @code{eval} only
+operates on constants, not variables.  Attempting to use them results
+in an error.
 
 Note that some older @code{m4} implementations use @samp{^} as an
-alternate operator for exponentiation, although @acronym{POSIX} requires
-the C behavior of bitwise exclusive-or.  On the other hand, the
-precedence of @samp{~} and @samp{!} are different in @acronym{GNU}
-@code{m4} than
-they are in C, matching the precedence in traditional @code{m4}
-implementations.  This behavior is likely to change in a future
-version to match @acronym{POSIX}, so use parentheses to force the
-desired precedence.
-
-Within @var{expression}, (but not @var{radix} or @var{width}),
-numbers without a special prefix are decimal.  A simple @samp{0}
-prefix introduces an octal number.  @samp{0x} introduces a hexadecimal
-number.  @samp{0b} introduces a binary number.  @samp{0r} introduces a
-number expressed in any radix between 1 and 36: the prefix should be
-immediately followed by the decimal expression of the radix, a colon,
-then the digits making the number.  For radix 1, leading zeros are
-ignored and all remaining digits must be @samp{1}; for all other
-radices, the digits are
-@samp{0}, @samp{1}, @samp{2}, @dots{}.  Beyond @samp{9}, the digits are
-@samp{a}, @samp{b} @dots{} up to @samp{z}.  Lower and upper case letters
-can be used interchangeably in numbers prefixes and as number digits.
+alternate operator for the exponentiation, although @acronym{POSIX}
+requires the C behavior of bitwise exclusive-or.  The precedence of the
+negation operators, @samp{~} and @samp{!}, was traditionally lower than
+equality.  The unary operators could not be used reliably more than once
+on the same term without intervening parentheses.  The traditional
+precedence of the equality operators @samp{==} and @samp{!=} was
+identical instead of lower than the relational operators such as
+@samp{<}, even through @acronym{GNU} M4 1.4.8.  Starting with version
+1.4.9, @acronym{GNU} M4 correctly follows @acronym{POSIX} precedence
+rules.  M4 scripts designed to be portable between releases must be
+aware that parentheses may be required to enforce C precedence rules.
+Likewise, division by zero, even in the unused branch of a
+short-circuiting operator, is not always well-defined in other
+implementations.
+
+Following are some examples where the current version of M4 follows C
+precedence rules, but where older versions and some other
+implementations of @code{m4} require explicit parentheses to get the
+correct result:
+
+@comment status: 1
+@example
+eval(`1 == 2 > 0')
+@result{}1
+eval(`(1 == 2) > 0')
+@result{}0
+eval(`! 0 * 2')
+@result{}2
+eval(`! (0 * 2)')
+@result{}1
+eval(`1 | 1 ^ 1')
+@result{}1
+eval(`(1 | 1) ^ 1')
+@result{}0
+eval(`+ + - ~ ! ~ 0')
+@result{}1
+eval(`++0')
+@error{}m4:stdin:8: invalid operator in eval: ++0
+@result{}
+eval(`1 = 1')
+@error{}m4:stdin:9: invalid operator in eval: 1 = 1
+@result{}
+eval(`0 |= 1')
+@error{}m4:stdin:10: invalid operator in eval: 0 |= 1
+@result{}
+eval(`2 || 1 / 0')
+@result{}1
+eval(`0 || 1 / 0')
+@error{}m4:stdin:12: divide by zero in eval: 0 || 1 / 0
+@result{}
+eval(`0 && 1 % 0')
+@result{}0
+eval(`2 && 1 % 0')
+@error{}m4:stdin:14: modulo by zero in eval: 2 && 1 % 0
+@result{}
+@end example
+
+@cindex @acronym{GNU} extensions
+As a @acronym{GNU} extension, the operator @samp{**} performs integral
+exponentiation.  The operator is right-associative, and if evaluated,
+the exponent must be non-negative, and at least one of the arguments
+must be non-zero, or a warning is issued.
+
+@example
+eval(`2 ** 3 ** 2')
+@result{}512
+eval(`(2 ** 3) ** 2')
+@result{}64
+eval(`0 ** 1')
+@result{}0
+eval(`2 ** 0')
+@result{}1
+eval(`0 ** 0')
+@result{}
+@error{}m4:stdin:5: divide by zero in eval: 0 ** 0
+eval(`4 ** -2')
+@error{}m4:stdin:6: negative exponent in eval: 4 ** -2
+@result{}
+@end example
+
+Within @var{expression}, (but not @var{radix} or @var{width}), numbers
+without a special prefix are decimal.  A simple @samp{0} prefix
+introduces an octal number.  @samp{0x} introduces a hexadecimal number.
+As @acronym{GNU} extensions, @samp{0b} introduces a binary number.
+@samp{0r} introduces a number expressed in any radix between 1 and 36:
+the prefix should be immediately followed by the decimal expression of
+the radix, a colon, then the digits making the number.  For radix 1,
+leading zeros are ignored, and all remaining digits must be @samp{1};
+for all other radices, the digits are @samp{0}, @samp{1}, @samp{2},
+@dots{}.  Beyond @samp{9}, the digits are @samp{a}, @samp{b} @dots{} up
+to @samp{z}.  Lower and upper case letters can be used interchangeably
+in numbers prefixes and as number digits.
 
 Parentheses may be used to group subexpressions whenever needed.  For the
 relational operators, a true relation returns @code{1}, and a false
@@ -4493,18 +4578,18 @@
 @result{}1
 eval(`0r1:0111 + 0b100 + 0r3:12')
 @result{}12
-define(`square', `eval(`('$1`)**2')')
+define(`square', `eval(`($1) ** 2')')
 @result{}
 square(`9')
 @result{}81
-square(square(`5')`+1')
+square(square(`5')` + 1')
 @result{}676
 define(`foo', `666')
 @result{}
-eval(`foo/6')
-@error{}m4:stdin:8: bad expression in eval: foo/6
+eval(`foo / 6')
+@error{}m4:stdin:8: bad expression in eval: foo / 6
 @result{}
-eval(foo/6)
+eval(foo / 6)
 @result{}111
 @end example
 
@@ -4513,34 +4598,43 @@
 expression).  Therefore all macros must be expanded before they are
 passed to @code{eval}.
 
-All evaluation is done with 32-bit signed integers, assuming
-2's-complement with wrap-around.  The shift operators are defined in
-@acronym{GNU}
-@code{m4} by doing an implicit bit-wise and of the right-hand operand
-with 0x1f, and sign-extension with right shift.
+Some calculations are not portable to other implementations, since they
+have undefined semantics in C, but @acronym{GNU} @code{m4} has
+well-defined behavior on overflow.  When shifting, an out-of-range shift
+amount is implicitly brought into the range of 32-bit signed integers
+using an implicit bit-wise and with 0x1f).
 
 @example
-eval(0x80000000 / -1)
+define(`max_int', eval(`0x7fffffff'))
+@result{}
+define(`min_int', incr(max_int))
+@result{}
+eval(min_int` < 0')
+@result{}1
+eval(max_int` > 0')
+@result{}1
+ifelse(eval(min_int` / -1'), min_int, `overflow occurred')
+@result{}overflow occurred
+min_int
 @result{}-2147483648
-eval(0x80000000 % -1)
+eval(`0x80000000 % -1')
 @result{}0
-eval(0x7fffffff)
-@result{}2147483647
-incr(eval(0x7fffffff))
-@result{}-2147483648
-eval(-4 >> 33)
+eval(`-4 >> 1')
+@result{}-2
+eval(`-4 >> 33')
 @result{}-2
 @end example
 
 If @var{radix} is specified, it specifies the radix to be used in the
 expansion.  The default radix is 10; this is also the case if
-@var{radix} is the empty string.  It is an error if the radix is outside
-the range of 1 through 36, inclusive.  The result of @code{eval} is
-always taken to be signed.  No radix prefix is output, and for radices
-greater than 10, the digits are lower case.  The @var{width} argument
-specifies the minimum output width, excluding any negative sign.  The
-result is zero-padded to extend the expansion to the requested width.
-It is an error if the width is negative.  On error, the expansion of
+@var{radix} is the empty string.  A warning results if the radix is
+outside the range of 1 through 36, inclusive.  The result of @code{eval}
+is always taken to be signed.  No radix prefix is output, and for
+radices greater than 10, the digits are lower case.  The @var{width}
+argument specifies the minimum output width, excluding any negative
+sign.  The result is zero-padded to extend the expansion to the
+requested width.  A warning results if the width is negative.  If
+@var{radix} or @var{width} is out of bounds, the expansion of
 @code{eval} is empty.
 
 @example
@@ -4560,6 +4654,15 @@
 @result{}0r1:01111111111
 eval(`10', `16')
 @result{}a
+eval(`1', `37')
+@error{}m4:stdin:9: radix 37 in builtin `eval' out of range
+@result{}
+eval(`1', , `-1')
+@error{}m4:stdin:10: negative width to builtin `eval'
+@result{}
+eval()
+@error{}m4:stdin:11: empty string treated as 0 in builtin `eval'
+@result{}0
 @end example
 
 @node Shell commands
@@ -5081,6 +5184,7 @@
 resulting string to standard error.
 @end deffn
 
+@comment status: 1
 @example
 define(`fatal_error',
        `errprint(__program__:__file__:__line__`: fatal error: $*
@@ -5559,15 +5663,16 @@
 
 @item
 @acronym{POSIX} requires @code{eval} (@pxref{Eval}) to treat all
-operators with the same precedence as C.  However, @acronym{GNU} @code{m4}
-currently follows the traditional precedence of other @code{m4}
-implementations, where bitwise and logical negation (@samp{~} and
-@samp{!}) have lower precedence than equality operators, rather than
-equal precedence with other unary operators.  Use explicit parentheses
-to ensure proper precedence.  As extensions to @acronym{POSIX}, @acronym{GNU}
-@code{m4} treats the shift operators @samp{<<} and @samp{>>} as
-well-defined on signed integers (even though they are not in C), and
-adds the exponentiation operator @samp{**}.
+operators with the same precedence as C.  However, earlier versions of
+@acronym{GNU} @code{m4} followed the traditional behavior of other
+@code{m4} implementations, where bitwise and logical negation (@samp{~}
+and @samp{!}) have lower precedence than equality operators; and where
+equality operators (@samp{==} and @samp{!=}) had the same precedence as
+relational operators (such as @samp{<}).  Use explicit parentheses to
+ensure proper precedence.  As extensions to @acronym{POSIX},
+@acronym{GNU} @code{m4} gives well-defined semantics to operations that
+C leaves undefined, such as when overflow occurs, when shifting negative
+numbers, or when performing division by zero.
 
 @item
 @acronym{POSIX} requires @code{translit} (@pxref{Translit}) to treat
@@ -5962,6 +6067,7 @@
 @code{fatal_error} to work across the entire 1.4.x release series, a
 better implementation would be:
 
+@comment status: 1
 @example
 define(`fatal_error',
   `errprint(ifdef(`__program__', `__program__', ``m4'')'dnl



From MAILER-DAEMON Sat Jan 06 14:56:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeU-0002cj-10
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeP-0002Za-6K
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:21 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeN-0002Y8-Em
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeM-0002Xm-Se
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeM-0001Y5-8p
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdx-0006HA-3n
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeJ-0001XI-IA
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeI-0001Wb-GC
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeH-0002LZ-F7
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeH-0002LP-80
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeH-0002LP-80@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:13 +0000
Cc: 
Subject: Changes to m4/m4/Attic/gnulib-cache.m4,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: m4/gnulib-cache.m4
===================================================================
RCS file: /sources/m4/m4/m4/Attic/gnulib-cache.m4,v
retrieving revision 1.1.2.21
retrieving revision 1.1.2.22
diff -u -b -r1.1.2.21 -r1.1.2.22
--- m4/gnulib-cache.m4	3 Jan 2007 21:09:23 -0000	1.1.2.21
+++ m4/gnulib-cache.m4	6 Jan 2007 19:56:11 -0000	1.1.2.22
@@ -15,11 +15,11 @@
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --aux-dir=. --no-libtool --macro-prefix=M4 avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdlib-safer strstr strtol unlocked-io verror version-etc-fsf xalloc xvasprintf
+#   gnulib-tool --import --dir=. --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --aux-dir=. --no-libtool --macro-prefix=M4 avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdint stdlib-safer strstr strtol unlocked-io verror version-etc-fsf xalloc xvasprintf
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([])
-gl_MODULES([avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdlib-safer strstr strtol unlocked-io verror version-etc-fsf xalloc xvasprintf])
+gl_MODULES([avltree-oset binary-io clean-temp cloexec close-stream closeout config-h error fdl fopen-safer free gendocs getopt gnupload mkstemp obstack regex stdbool stdint stdlib-safer strstr strtol unlocked-io verror version-etc-fsf xalloc xvasprintf])
 gl_AVOID([])
 gl_SOURCE_BASE([lib])
 gl_M4_BASE([m4])



From MAILER-DAEMON Sat Jan 06 14:56:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeU-0002dJ-HU
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeP-0002aF-Uq
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeN-0002YP-EO
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeM-0002Xq-Uw
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:19 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeM-0001Y7-9D
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdx-0006HC-5z
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeL-0001XW-K4
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeI-0001Wj-KW
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:15 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeH-0002MB-PU
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeH-0002Lc-JK
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeH-0002Lc-JK@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:13 +0000
Cc: 
Subject: Changes to m4/src/Attic/eval.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: src/eval.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/eval.c,v
retrieving revision 1.1.1.1.2.7
retrieving revision 1.1.1.1.2.8
diff -u -b -r1.1.1.1.2.7 -r1.1.1.1.2.8
--- src/eval.c	1 Nov 2006 22:29:08 -0000	1.1.1.1.2.7
+++ src/eval.c	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.8
@@ -1,6 +1,6 @@
 /* GNU m4 -- A simple macro processor
 
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2006
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2006, 2007
    Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -22,8 +22,7 @@
 /* This file contains the functions to evaluate integer expressions for
    the "eval" macro.  It is a little, fairly self-contained module, with
    its own scanner, and a recursive descent parser.  The only entry point
-   is evaluate ().  For POSIX semantics of the "eval" macro, the type
-   eval_t must be a 32-bit signed integer.  */
+   is evaluate ().  */
 
 #include "m4.h"
 
@@ -31,7 +30,7 @@
 
 typedef enum eval_token
   {
-    ERROR,
+    ERROR, BADOP,
     PLUS, MINUS,
     EXPONENT,
     TIMES, DIVIDE, MODULO,
@@ -49,29 +48,33 @@
 typedef enum eval_error
   {
     NO_ERROR,
-    MISSING_RIGHT,
+    DIVIDE_ZERO,
+    MODULO_ZERO,
+    NEGATIVE_EXPONENT,
+    /* All errors prior to SYNTAX_ERROR can be ignored in a dead
+       branch of && and ||.  All errors after are just more details
+       about a syntax error.  */
     SYNTAX_ERROR,
+    MISSING_RIGHT,
     UNKNOWN_INPUT,
     EXCESS_INPUT,
-    DIVIDE_ZERO,
-    MODULO_ZERO
+    INVALID_OPERATOR
   }
 eval_error;
 
-static eval_error logical_or_term (eval_token, eval_t *);
-static eval_error logical_and_term (eval_token, eval_t *);
-static eval_error or_term (eval_token, eval_t *);
-static eval_error xor_term (eval_token, eval_t *);
-static eval_error and_term (eval_token, eval_t *);
-static eval_error not_term (eval_token, eval_t *);
-static eval_error logical_not_term (eval_token, eval_t *);
-static eval_error cmp_term (eval_token, eval_t *);
-static eval_error shift_term (eval_token, eval_t *);
-static eval_error add_term (eval_token, eval_t *);
-static eval_error mult_term (eval_token, eval_t *);
-static eval_error exp_term (eval_token, eval_t *);
-static eval_error unary_term (eval_token, eval_t *);
-static eval_error simple_term (eval_token, eval_t *);
+static eval_error logical_or_term (eval_token, int32_t *);
+static eval_error logical_and_term (eval_token, int32_t *);
+static eval_error or_term (eval_token, int32_t *);
+static eval_error xor_term (eval_token, int32_t *);
+static eval_error and_term (eval_token, int32_t *);
+static eval_error equality_term (eval_token, int32_t *);
+static eval_error cmp_term (eval_token, int32_t *);
+static eval_error shift_term (eval_token, int32_t *);
+static eval_error add_term (eval_token, int32_t *);
+static eval_error mult_term (eval_token, int32_t *);
+static eval_error exp_term (eval_token, int32_t *);
+static eval_error unary_term (eval_token, int32_t *);
+static eval_error simple_term (eval_token, int32_t *);
 
 /*--------------------.
 | Lexical functions.  |
@@ -100,7 +103,7 @@
 /* VAL is numerical value, if any.  */
 
 static eval_token
-eval_lex (eval_t *val)
+eval_lex (int32_t *val)
 {
   while (isspace (to_uchar (*eval_text)))
     eval_text++;
@@ -149,7 +152,8 @@
       else
 	base = 10;
 
-      (*val) = 0;
+      /* FIXME - this calculation can overflow.  Consider xstrtol.  */
+      *val = 0;
       for (; *eval_text; eval_text++)
 	{
 	  if (isdigit (to_uchar (*eval_text)))
@@ -173,7 +177,7 @@
 	  else if (digit >= base)
 	    break;
 	  else
-	    (*val) = (*val) * base + digit;
+	    *val = *val * base + digit;
 	}
       return NUMBER;
     }
@@ -181,8 +185,12 @@
   switch (*eval_text++)
     {
     case '+':
+      if (*eval_text == '+' || *eval_text == '=')
+	return BADOP;
       return PLUS;
     case '-':
+      if (*eval_text == '-' || *eval_text == '=')
+	return BADOP;
       return MINUS;
     case '*':
       if (*eval_text == '*')
@@ -190,23 +198,30 @@
 	  eval_text++;
 	  return EXPONENT;
 	}
-      else
+      else if (*eval_text == '=')
+	return BADOP;
 	return TIMES;
     case '/':
+      if (*eval_text == '=')
+	return BADOP;
       return DIVIDE;
     case '%':
+      if (*eval_text == '=')
+	return BADOP;
       return MODULO;
     case '=':
       if (*eval_text == '=')
+	{
 	eval_text++;
       return EQ;
+	}
+      return BADOP;
     case '!':
       if (*eval_text == '=')
 	{
 	  eval_text++;
 	  return NOTEQ;
 	}
-      else
 	return LNOT;
     case '>':
       if (*eval_text == '=')
@@ -216,10 +231,10 @@
 	}
       else if (*eval_text == '>')
 	{
-	  eval_text++;
+	  if (*++eval_text == '=')
+	    return BADOP;
 	  return RSHIFT;
 	}
-      else
 	return GT;
     case '<':
       if (*eval_text == '=')
@@ -229,12 +244,14 @@
 	}
       else if (*eval_text == '<')
 	{
-	  eval_text++;
+	  if (*++eval_text == '=')
+	    return BADOP;
 	  return LSHIFT;
 	}
-      else
 	return LS;
     case '^':
+      if (*eval_text == '=')
+	return BADOP;
       return XOR;
     case '~':
       return NOT;
@@ -244,7 +261,8 @@
 	  eval_text++;
 	  return LAND;
 	}
-      else
+      else if (*eval_text == '=')
+	return BADOP;
 	return AND;
     case '|':
       if (*eval_text == '|')
@@ -252,7 +270,8 @@
 	  eval_text++;
 	  return LOR;
 	}
-      else
+      else if (*eval_text == '=')
+	return BADOP;
 	return OR;
     case '(':
       return LEFTP;
@@ -268,7 +287,7 @@
 `---------------------------------------*/
 
 bool
-evaluate (const char *expr, eval_t *val)
+evaluate (const char *expr, int32_t *val)
 {
   eval_token et;
   eval_error err;
@@ -278,7 +297,12 @@
   err = logical_or_term (et, val);
 
   if (err == NO_ERROR && *eval_text != '\0')
+    {
+      if (eval_lex (val) == BADOP)
+	err = INVALID_OPERATOR;
+      else
     err = EXCESS_INPUT;
+    }
 
   switch (err)
     {
@@ -306,6 +330,12 @@
 		"bad expression in eval (excess input): %s", expr));
       break;
 
+    case INVALID_OPERATOR:
+      M4ERROR ((warning_status, 0,
+		"invalid operator in eval: %s", expr));
+      retcode = EXIT_FAILURE;
+      break;
+
     case DIVIDE_ZERO:
       M4ERROR ((warning_status, 0,
 		"divide by zero in eval: %s", expr));
@@ -316,6 +346,11 @@
 		"modulo by zero in eval: %s", expr));
       break;
 
+    case NEGATIVE_EXPONENT:
+      M4ERROR ((warning_status, 0,
+		"negative exponent in eval: %s", expr));
+      break;
+
     default:
       M4ERROR ((warning_status, 0,
 		"INTERNAL ERROR: bad error code in evaluate ()"));
@@ -330,9 +365,9 @@
 `---------------------------*/
 
 static eval_error
-logical_or_term (eval_token et, eval_t *v1)
+logical_or_term (eval_token et, int32_t *v1)
 {
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   if ((er = logical_and_term (et, v1)) != NO_ERROR)
@@ -344,10 +379,14 @@
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = logical_and_term (et, &v2)) != NO_ERROR)
-	return er;
-
+      /* Implement short-circuiting of valid syntax.  */
+      er = logical_and_term (et, &v2);
+      if (er == NO_ERROR)
       *v1 = *v1 || v2;
+      else if (*v1 != 0 && er < SYNTAX_ERROR)
+	*v1 = 1;
+      else
+	return er;
     }
   if (et == ERROR)
     return UNKNOWN_INPUT;
@@ -357,9 +396,9 @@
 }
 
 static eval_error
-logical_and_term (eval_token et, eval_t *v1)
+logical_and_term (eval_token et, int32_t *v1)
 {
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   if ((er = or_term (et, v1)) != NO_ERROR)
@@ -371,10 +410,14 @@
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = or_term (et, &v2)) != NO_ERROR)
-	return er;
-
+      /* Implement short-circuiting of valid syntax.  */
+      er = or_term (et, &v2);
+      if (er == NO_ERROR)
       *v1 = *v1 && v2;
+      else if (*v1 == 0 && er < SYNTAX_ERROR)
+	; /* v1 is already 0 */
+      else
+	return er;
     }
   if (et == ERROR)
     return UNKNOWN_INPUT;
@@ -384,9 +427,9 @@
 }
 
 static eval_error
-or_term (eval_token et, eval_t *v1)
+or_term (eval_token et, int32_t *v1)
 {
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   if ((er = xor_term (et, v1)) != NO_ERROR)
@@ -401,7 +444,7 @@
       if ((er = xor_term (et, &v2)) != NO_ERROR)
 	return er;
 
-      *v1 = *v1 | v2;
+      *v1 |= v2;
     }
   if (et == ERROR)
     return UNKNOWN_INPUT;
@@ -411,9 +454,9 @@
 }
 
 static eval_error
-xor_term (eval_token et, eval_t *v1)
+xor_term (eval_token et, int32_t *v1)
 {
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   if ((er = and_term (et, v1)) != NO_ERROR)
@@ -428,7 +471,7 @@
       if ((er = and_term (et, &v2)) != NO_ERROR)
 	return er;
 
-      *v1 = *v1 ^ v2;
+      *v1 ^= v2;
     }
   if (et == ERROR)
     return UNKNOWN_INPUT;
@@ -438,12 +481,12 @@
 }
 
 static eval_error
-and_term (eval_token et, eval_t *v1)
+and_term (eval_token et, int32_t *v1)
 {
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
-  if ((er = not_term (et, v1)) != NO_ERROR)
+  if ((er = equality_term (et, v1)) != NO_ERROR)
     return er;
 
   while ((et = eval_lex (&v2)) == AND)
@@ -452,10 +495,10 @@
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = not_term (et, &v2)) != NO_ERROR)
+      if ((er = equality_term (et, &v2)) != NO_ERROR)
 	return er;
 
-      *v1 = *v1 & v2;
+      *v1 &= v2;
     }
   if (et == ERROR)
     return UNKNOWN_INPUT;
@@ -465,61 +508,43 @@
 }
 
 static eval_error
-not_term (eval_token et, eval_t *v1)
+equality_term (eval_token et, int32_t *v1)
 {
+  eval_token op;
+  int32_t v2;
   eval_error er;
 
-  if (et == NOT)
-    {
-      et = eval_lex (v1);
-      if (et == ERROR)
-	return UNKNOWN_INPUT;
-
-      if ((er = not_term (et, v1)) != NO_ERROR)
-	return er;
-      *v1 = ~*v1;
-    }
-  else
-    if ((er = logical_not_term (et, v1)) != NO_ERROR)
+  if ((er = cmp_term (et, v1)) != NO_ERROR)
       return er;
 
-  return NO_ERROR;
-}
-
-static eval_error
-logical_not_term (eval_token et, eval_t *v1)
-{
-  eval_error er;
-
-  if (et == LNOT)
+  while ((op = eval_lex (&v2)) == EQ || op == NOTEQ)
     {
-      et = eval_lex (v1);
+      et = eval_lex (&v2);
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = logical_not_term (et, v1)) != NO_ERROR)
+      if ((er = cmp_term (et, &v2)) != NO_ERROR)
 	return er;
-      *v1 = !*v1;
+      *v1 = (op == EQ) == (*v1 == v2);
     }
-  else
-    if ((er = cmp_term (et, v1)) != NO_ERROR)
-      return er;
+  if (op == ERROR)
+    return UNKNOWN_INPUT;
 
+  eval_undo ();
   return NO_ERROR;
 }
 
 static eval_error
-cmp_term (eval_token et, eval_t *v1)
+cmp_term (eval_token et, int32_t *v1)
 {
   eval_token op;
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   if ((er = shift_term (et, v1)) != NO_ERROR)
     return er;
 
-  while ((op = eval_lex (&v2)) == EQ || op == NOTEQ
-	 || op == GT || op == GTEQ
+  while ((op = eval_lex (&v2)) == GT || op == GTEQ
 	 || op == LS || op == LSEQ)
     {
 
@@ -532,14 +557,6 @@
 
       switch (op)
 	{
-	case EQ:
-	  *v1 = *v1 == v2;
-	  break;
-
-	case NOTEQ:
-	  *v1 = *v1 != v2;
-	  break;
-
 	case GT:
 	  *v1 = *v1 > v2;
 	  break;
@@ -570,10 +587,11 @@
 }
 
 static eval_error
-shift_term (eval_token et, eval_t *v1)
+shift_term (eval_token et, int32_t *v1)
 {
   eval_token op;
-  eval_t v2;
+  int32_t v2;
+  uint32_t u1;
   eval_error er;
 
   if ((er = add_term (et, v1)) != NO_ERROR)
@@ -589,20 +607,24 @@
       if ((er = add_term (et, &v2)) != NO_ERROR)
 	return er;
 
-      /* Shifting by a negative number, or by greater than the width, is
-	 undefined in C, but POSIX requires eval to operate on 32-bit signed
-	 numbers.  Explicitly mask the right argument to ensure defined
-	 behavior.  */
+      /* Minimize undefined C behavior (shifting by a negative number,
+	 shifting by the width or greater, left shift overflow, or
+	 right shift of a negative number).  Implement Java 32-bit
+	 wrap-around semantics.  This code assumes that the
+	 implementation-defined overflow when casting unsigned to
+	 signed is a silent twos-complement wrap-around.  */
       switch (op)
 	{
 	case LSHIFT:
-	  *v1 = *v1 << (v2 & 0x1f);
+	  u1 = *v1;
+	  u1 <<= (uint32_t) (v2 & 0x1f);
+	  *v1 = u1;
 	  break;
 
 	case RSHIFT:
-	  /* This assumes 2's-complement with sign-extension, since shifting
-	     a negative number right is implementation-defined in C.  */
-	  *v1 = *v1 >> (v2 & 0x1f);
+	  u1 = *v1 < 0 ? ~*v1 : *v1;
+	  u1 >>= (uint32_t) (v2 & 0x1f);
+	  *v1 = *v1 < 0 ? ~u1 : u1;
 	  break;
 
 	default:
@@ -619,10 +641,10 @@
 }
 
 static eval_error
-add_term (eval_token et, eval_t *v1)
+add_term (eval_token et, int32_t *v1)
 {
   eval_token op;
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   if ((er = mult_term (et, v1)) != NO_ERROR)
@@ -637,10 +659,14 @@
       if ((er = mult_term (et, &v2)) != NO_ERROR)
 	return er;
 
+      /* Minimize undefined C behavior on overflow.  This code assumes
+	 that the implementation-defined overflow when casting
+	 unsigned to signed is a silent twos-complement
+	 wrap-around.  */
       if (op == PLUS)
-	*v1 = *v1 + v2;
+	*v1 = (int32_t) ((uint32_t) *v1 + (uint32_t) v2);
       else
-	*v1 = *v1 - v2;
+	*v1 = (int32_t) ((uint32_t) *v1 - (uint32_t) v2);
     }
   if (op == ERROR)
     return UNKNOWN_INPUT;
@@ -650,10 +676,10 @@
 }
 
 static eval_error
-mult_term (eval_token et, eval_t *v1)
+mult_term (eval_token et, int32_t *v1)
 {
   eval_token op;
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   if ((er = exp_term (et, v1)) != NO_ERROR)
@@ -668,10 +694,14 @@
       if ((er = exp_term (et, &v2)) != NO_ERROR)
 	return er;
 
+      /* Minimize undefined C behavior on overflow.  This code assumes
+	 that the implementation-defined overflow when casting
+	 unsigned to signed is a silent twos-complement
+	 wrap-around.  */
       switch (op)
 	{
 	case TIMES:
-	  *v1 = *v1 * v2;
+	  *v1 = (int32_t) ((uint32_t) *v1 * (uint32_t) v2);
 	  break;
 
 	case DIVIDE:
@@ -679,9 +709,9 @@
 	    return DIVIDE_ZERO;
 	  else if (v2 == -1)
 	    /* Avoid the x86 SIGFPE on INT_MIN / -1.  */
-	    *v1 = -*v1;
+	    *v1 = (int32_t) -(uint32_t) *v1;
 	  else
-	    *v1 = *v1 / v2;
+	    *v1 = (int32_t) ((uint32_t) *v1 / (uint32_t) v2);
 	  break;
 
 	case MODULO:
@@ -691,7 +721,7 @@
 	    /* Avoid the x86 SIGFPE on INT_MIN % -1.  */
 	    *v1 = 0;
 	  else
-	    *v1 = *v1 % v2;
+	    *v1 %= v2;
 	  break;
 
 	default:
@@ -708,15 +738,14 @@
 }
 
 static eval_error
-exp_term (eval_token et, eval_t *v1)
+exp_term (eval_token et, int32_t *v1)
 {
-  register eval_t result;
-  eval_t v2;
+  uint32_t result;
+  int32_t v2;
   eval_error er;
 
   if ((er = unary_term (et, v1)) != NO_ERROR)
     return er;
-  result = *v1;
 
   while ((et = eval_lex (&v2)) == EXPONENT)
     {
@@ -727,9 +756,17 @@
       if ((er = exp_term (et, &v2)) != NO_ERROR)
 	return er;
 
+      /* Minimize undefined C behavior on overflow.  This code assumes
+	 that the implementation-defined overflow when casting
+	 unsigned to signed is a silent twos-complement
+	 wrap-around.  */
       result = 1;
+      if (v2 < 0)
+	return NEGATIVE_EXPONENT;
+      if (*v1 == 0 && v2 == 0)
+	return DIVIDE_ZERO;
       while (v2-- > 0)
-	result *= *v1;
+	result *= (uint32_t) *v1;
       *v1 = result;
     }
   if (et == ERROR)
@@ -740,34 +777,41 @@
 }
 
 static eval_error
-unary_term (eval_token et, eval_t *v1)
+unary_term (eval_token et, int32_t *v1)
 {
   eval_token et2 = et;
   eval_error er;
 
-  if (et == PLUS || et == MINUS)
+  if (et == PLUS || et == MINUS || et == NOT || et == LNOT)
     {
       et2 = eval_lex (v1);
       if (et2 == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = simple_term (et2, v1)) != NO_ERROR)
+      if ((er = unary_term (et2, v1)) != NO_ERROR)
 	return er;
 
+      /* Minimize undefined C behavior on overflow.  This code assumes
+	 that the implementation-defined overflow when casting
+	 unsigned to signed is a silent twos-complement
+	 wrap-around.  */
       if (et == MINUS)
-	*v1 = -*v1;
+	*v1 = (int32_t) -(uint32_t) *v1;
+      else if (et == NOT)
+	*v1 = ~*v1;
+      else if (et == LNOT)
+	*v1 = *v1 == 0 ? 1 : 0;
     }
-  else
-    if ((er = simple_term (et, v1)) != NO_ERROR)
+  else if ((er = simple_term (et, v1)) != NO_ERROR)
       return er;
 
   return NO_ERROR;
 }
 
 static eval_error
-simple_term (eval_token et, eval_t *v1)
+simple_term (eval_token et, int32_t *v1)
 {
-  eval_t v2;
+  int32_t v2;
   eval_error er;
 
   switch (et)
@@ -792,6 +836,9 @@
     case NUMBER:
       break;
 
+    case BADOP:
+      return INVALID_OPERATOR;
+
     default:
       return SYNTAX_ERROR;
     }



From MAILER-DAEMON Sat Jan 06 14:56:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeU-0002d4-BS
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeP-0002a8-UP
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeN-0002YE-ND
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeN-0002Xs-0O
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:19 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeM-0001Y8-9V
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdx-0006HF-8L
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeK-0001X2-Hy
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeH-0001WQ-QT
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:14 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeH-0002LN-2P
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:13 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeG-0002LF-SC
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeG-0002LF-SC@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:12 +0000
Cc: 
Subject: Changes to m4/checks/Attic/get-them,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Index: checks/get-them
===================================================================
RCS file: /sources/m4/m4/checks/Attic/get-them,v
retrieving revision 1.1.1.1.2.7
retrieving revision 1.1.1.1.2.8
diff -u -b -r1.1.1.1.2.7 -r1.1.1.1.2.8
--- checks/get-them	21 Oct 2006 02:55:56 -0000	1.1.1.1.2.7
+++ checks/get-them	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.8
@@ -1,6 +1,7 @@
 #!/bin/sh
+# -*- AWK -*-
 # Extract all examples from the manual source.
-# Copyright (C) 1992, 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1992, 2005, 2006, 2007 Free Software Foundation, Inc.
 
 # This script is for use with GNU awk.
 
@@ -13,6 +14,7 @@
   seq = -1;
   count = 0;
   file = "NONE";
+  status = 0;
 }
 
 /^@node / {
@@ -34,9 +36,14 @@
 
 /^@comment ignore$/ {
   getline;
+  status = 0;
   next;
 }
 
+/^@comment status: / {
+  status = $3;
+}
+
 /^@example$/, /^@end example$/ {
   if (seq < 0)
     next;
@@ -47,11 +54,13 @@
     count++;
     file = sprintf("%03d.%s", count, node);
     printf("dnl @ %s:%d: Origin of test\n"\
-	   "dnl @ Copyright (C) 2006 Free Software Foundation\n"\
+	   "dnl @ expected status: %d\n"\
+	   "dnl @ Copyright (C) 2006, 2007 Free Software Foundation\n"\
 	   "dnl @ This file is free software; the Free Software Foundation\n"\
 	   "dnl @ gives unlimited permission to copy and/or distribute it\n"\
 	   "dnl @ with or without modifications, as long as this notice\n"\
-	   "dnl @ is preserved.\n", FILENAME, NR) > file;
+	   "dnl @ is preserved.\n", FILENAME, NR, status) > file;
+    status = 0;
     next;
   }
   if ($0 ~ /^@end example$/) {



From MAILER-DAEMON Sat Jan 06 14:56:21 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HeP-0002ZY-51
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:21 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3HeM-0002XM-GC
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3HeL-0002Wh-Ke
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:18 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3HeK-0002Wb-VG
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:17 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3HeJ-0001Xb-Ly
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:16 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hdu-0006Gv-H8
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:55:50 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3HeH-0001WP-By
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:14 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3HeG-0001WH-UE
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:13 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3HeG-0002Kz-9o
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3HeG-0002Kv-5f
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:12 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3HeG-0002Kv-5f@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:12 +0000
Cc: 
Subject: m4 ChangeLog NEWS checks/check-them checks/get-... [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:19 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:11

Modified files:
	.              : ChangeLog NEWS 
	checks         : check-them get-them 
	doc            : m4.texinfo 
	m4             : gnulib-cache.m4 
	src            : builtin.c eval.c m4.h 

Log message:
	* m4/gnulib-cache.m4: Augment with 'gnulib-tool --import stdint'.
	* checks/check-them: Record expected exit status.
	* checks/get-them: Check exit status.
	* src/m4.h (eval_t, unsigned_eval_t): Delete, use POSIX int32_t
	instead.
	* src/builtin.c: All users changed.
	* src/eval.c: Likewise.  Also document where we are triggering
	undefined or implementation-defined behavior.
	(BADOP, NEGATIVE_EXPONENT, INVALID_OPERATOR, eval_lex, evaluate)
	(logical_or_term, logical_and_term, logical_not_term, not_term)
	(equality_term, unary_term): Port from head to follow POSIX
	semantics.
	(exp_term): Reject 0**0 as undefined.
	* doc/m4.texinfo (History): Mention 1.4.9.
	(Format, Incompatibilities): Update to document POSIX compliance.
	* NEWS: Document this change.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.233&r2=1.1.1.1.2.234
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.86&r2=1.1.1.1.2.87
http://cvs.savannah.gnu.org/viewcvs/m4/checks/check-them?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.13&r2=1.1.1.1.2.14
http://cvs.savannah.gnu.org/viewcvs/m4/checks/get-them?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.7&r2=1.1.1.1.2.8
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.105&r2=1.1.1.1.2.106
http://cvs.savannah.gnu.org/viewcvs/m4/m4/gnulib-cache.m4?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.2.21&r2=1.1.2.22
http://cvs.savannah.gnu.org/viewcvs/m4/src/builtin.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.52&r2=1.1.1.1.2.53
http://cvs.savannah.gnu.org/viewcvs/m4/src/eval.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.7&r2=1.1.1.1.2.8
http://cvs.savannah.gnu.org/viewcvs/m4/src/m4.h?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.35&r2=1.1.1.1.2.36



From MAILER-DAEMON Sat Jan 06 14:57:01 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3Hf2-0002i0-PY
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf0-0002hC-Ps
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:58 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf0-0002gz-AA
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:58 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf0-0002gw-6M
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:58 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hez-0001ct-HX
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hea-0006J6-E7
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:32 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hex-0001cV-Os
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:56 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hex-0001cI-Eg
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:55 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hew-0002Np-Tb
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hew-0002Ni-OS
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:54 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hew-0002Ni-OS@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:54 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:56:59 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.472
retrieving revision 1.473
diff -u -b -r1.472 -r1.473
--- ChangeLog	5 Jan 2007 04:07:51 -0000	1.472
+++ ChangeLog	6 Jan 2007 19:56:53 -0000	1.473
@@ -1,3 +1,35 @@
+2007-01-06  Eric Blake  <ebb9@byu.net>
+
+	* m4/m4private.h (to_uchar): Move...
+	* m4/m4module.h: here, so modules can use it.
+	* src/main.c (usage, long_options): Support --posix as a synonym
+	for --traditional.
+	* modules/m4.c (numb_invert): Detect unsupported x**-y.
+	(numb_incr, numb_urshift, numb_extension): New macros.
+	(numb_obstack): Port patch from branch to support radix 1 output.
+	* modules/mpeval.c (numb_obstack): Use \ for ratios.
+	(numb_incr, numb_urshift, numb_extension): New macros.
+	(mpq2mpz): Warn rather than error.
+	* modules/evalparse.c (URSHIFT, NEGATIVE_EXPONENT): New
+	enumerators.
+	(eval_error): Rearrange, so that all ignorable errors are less
+	than SYNTAX_ERROR.
+	(eval_text, last_text): Obey C++ type safety rules.
+	(numb_pow): Change return type.
+	(exp_term): Adjust caller.
+	(m4_evaluate): Fail on bad exponent.
+	(logical_or_term, logical_and_term): Ignore failed ** in short
+	circuit.
+	(eval_lex): Fix typos when detecting <<= and >>=.  Use \ instead
+	of : for ratio.  Support >>>, ,, and ?:.  Port patch from branch
+	to parse radix 1 numbers.
+	(condition_term, comma_term): New parse functions.
+	(shift_term): Support >>>.
+	(m4_evaluate): Port patch from branch to output radix 1 numbers.
+	Warn instead of error for most parse problems.
+	* doc/m4.texinfo (Limits control, Eval): Document these changes.
+	* NEWS: Document new operators and new command line option.
+
 2007-01-04  Eric Blake  <ebb9@byu.net>
 
 	* configure.ac (AC_SYS_LARGEFILE): Guarantee large file support.
@@ -8407,7 +8439,7 @@
 
 	-----
 
-	$Revision: 1.472 $ $Date: 2007/01/05 04:07:51 $
+	$Revision: 1.473 $ $Date: 2007/01/06 19:56:53 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 06 14:57:06 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3Hf7-0002lE-Qq
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:06 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf4-0002jG-AQ
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:02 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf3-0002iF-37
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf2-0002hz-Nt
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf1-0001dj-Am
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:59 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hec-0006JC-7o
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:34 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hez-0001cm-4Z
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:58 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hex-0001cK-Uo
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:56 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hex-0002Nu-3P
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hew-0002Nm-TE
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:54 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hew-0002Nm-TE@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:54 +0000
Cc: 
Subject: Changes to m4/NEWS,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:03 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- NEWS	3 Jan 2007 14:44:11 -0000	1.34
+++ NEWS	6 Jan 2007 19:56:53 -0000	1.35
@@ -39,13 +39,13 @@
 *** New `-g'/`--gnu' command-line option overrides `-G'/`--traditional',
     allowing the GNU module to be selected even when POSIXLY_CORRECT.
 
-*** The `-H'/`--hashsize' options, which were made no-ops in a previous
-    beta, now issue a deprecation warning.
+*** The `-H'/`--hashsize' command-line options, which were made no-ops in
+    a previous beta, now issue a deprecation warning.
 
 *** The `-L'/`--nesting-limit' command-line option now performs argument
     validation and accepts an optional multiplier suffix.
 
-*** The `-o'/`--error-output' options, which were replaced by
+*** The `-o'/`--error-output' command-line options, which were replaced by
     `--debugfile' in M4 1.4.7, now issue a deprecation warning.  This
     warning interferes with all versions of Autoconf prior to 2.61, so plan
     on installing an updated Autoconf when installing M4 2.0.
@@ -54,6 +54,8 @@
     control over macro definitions from the command line between input
     files.
 
+*** New `--posix' command-line option is a synonym for `-G'/`--traditional'.
+
 *** New `-r'/`--regexp-syntax' command-line option changes the default
     regular expression syntax used by M4.  Without this option, M4
     continues to use EMACS style expressions.  A new section in the info
@@ -109,15 +111,15 @@
     regular expression flavor, to match `-r'/`--regexp-syntax' command-line
     option.
 
-*** A new builtin `debuglen' is introduced which allows runtime setting
-    of debug output length, previously controlled only by the `-l' command
+*** New `debuglen' builtin is introduced which allows runtime setting of
+    debug output length, previously controlled only by the `-l' command
     line argument.  Additionally, whether using the new macro or the
     command line argument, the length limitation now affects dumpdef output
     as well as trace output, undergoes argument validation, and accepts an
     optional multiplier suffix.
   - FIXME the multiplier suffix isn't reliable yet
 
-*** New builtin `mkdtemp' parallels `mkstemp', but allows the creation of
+*** New `mkdtemp' builtin parallels `mkstemp', but allows the creation of
     temporary directories instead of files.
 
 *** New `renamesyms' builtin allows programmatic renaming of all symbols
@@ -152,19 +154,23 @@
     and remove characters from a syntax class without having to specify the
     entire set of characters in that class.
 
-*** New `m' flag to `-d'/`--debug' option or `debugmode' macro traces
-    actions related to module loading and unloading, and affects `dumpdef'
-    and trace output to show where builtins come from.  New `s' flag shows
-    the entire stack of `pushdef' definitions during `dumpdef'.  The `c'
-    flag has been updated to output two lines instead of three (since the
-    last two had always been paired), and to add information to the first
-    line to show the definition of the macro being expanded.  The 'e' flag
-    has been updated to output non-text expansions.
+*** New `m' flag to `-d'/`--debug' command-line option or `debugmode'
+    builtin traces actions related to module loading and unloading, and
+    affects `dumpdef' and trace output to show where builtins come from.
+    New `s' flag shows the entire stack of `pushdef' definitions during
+    `dumpdef'.  The `c' flag has been updated to output two lines instead
+    of three (since the last two had always been paired), and to add
+    information to the first line to show the definition of the macro being
+    expanded.  The 'e' flag has been updated to output non-text expansions.
 
-*** The `dumpdef' macro now always outputs to standard error, rather than
+*** The `dumpdef' builtin now always outputs to standard error, rather than
     the debug file specified by the `--debugfile' option or `debugfile'
     macro.
 
+*** The `eval' and `mpeval' builtins now support the following new
+    operators: `>>>', `\', `?:', and  `,'.  However, when complying
+    strictly with POSIX, `?:' and `,' are rejected inside `eval'.
+
 *** The `maketemp' builtin now always warns that it is obsolete, even in GNU
     mode where it uses the same secure algorithm as `mkstemp', because of
     the recommendation of POSIX to obsolete `maketemp' as inherently
@@ -174,10 +180,11 @@
     to use a different regular expression syntax for the duration of that
     invocation.
 
-*** The semantics of `traceon' and `traceoff' now match traditional
-    implementations: when called without arguments, they affect global
-    state rather than affecting only the macros defined at that moment.
-    The manual includes an example of how to recover 1.4.x semantics.
+*** The semantics of the `traceon' and `traceoff' builtins now match
+    traditional implementations: when called without arguments, they affect
+    global state rather than affecting only the macros defined at that
+    moment.  The manual includes an example of how to recover 1.4.x
+    semantics.
 
 ** Other changes
 
@@ -189,6 +196,7 @@
 
 FIXME: include the (long) list of changes in 1.4.x that were not already
   in earlier betas.
+* Version 1.4.9
 * Version 1.4.8
 * Version 1.4.7
 * Version 1.4.6



From MAILER-DAEMON Sat Jan 06 14:57:11 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfD-0002q0-Ah
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:11 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf5-0002jM-OV
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:03 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf3-0002iL-2m
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf2-0002i8-Um
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf2-0001dw-CM
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hed-0006JM-9V
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:35 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hex-0001cN-IU
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hex-0001cH-AQ
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:55 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hew-0002Nk-OU
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:54 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hew-0002Ng-D9
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:54 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hew-0002Ng-D9@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:54 +0000
Cc: 
Subject: m4 ChangeLog NEWS doc/m4.texinfo m4/m4module.h ...
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:05 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Modified files:
	.              : ChangeLog NEWS 
	doc            : m4.texinfo 
	m4             : m4module.h m4private.h 
	modules        : evalparse.c m4.c mpeval.c 
	src            : main.c 

Log message:
	* m4/m4private.h (to_uchar): Move...
	* m4/m4module.h: here, so modules can use it.
	* src/main.c (usage, long_options): Support --posix as a synonym
	for --traditional.
	* modules/m4.c (numb_invert): Detect unsupported x**-y.
	(numb_incr, numb_urshift, numb_extension): New macros.
	(numb_obstack): Port patch from branch to support radix 1 output.
	* modules/mpeval.c (numb_obstack): Use  for ratios.
	(numb_incr, numb_urshift, numb_extension): New macros.
	(mpq2mpz): Warn rather than error.
	* modules/evalparse.c (URSHIFT, NEGATIVE_EXPONENT): New
	enumerators.
	(eval_error): Rearrange, so that all ignorable errors are less
	than SYNTAX_ERROR.
	(eval_text, last_text): Obey C++ type safety rules.
	(numb_pow): Change return type.
	(exp_term): Adjust caller.
	(m4_evaluate): Fail on bad exponent.
	(logical_or_term, logical_and_term): Ignore failed ** in short
	circuit.
	(eval_lex): Fix typos when detecting <<= and >>=.  Use  instead
	of : for ratio.  Support >>>, ,, and ?:.  Port patch from branch
	to parse radix 1 numbers.
	(condition_term, comma_term): New parse functions.
	(shift_term): Support >>>.
	(m4_evaluate): Port patch from branch to output radix 1 numbers.
	Warn instead of error for most parse problems.
	* doc/m4.texinfo (Limits control, Eval): Document these changes.
	* NEWS: Document new operators and new command line option.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.472&r2=1.473
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&r1=1.34&r2=1.35
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&r1=1.88&r2=1.89
http://cvs.savannah.gnu.org/viewcvs/m4/m4/m4module.h?cvsroot=m4&r1=1.102&r2=1.103
http://cvs.savannah.gnu.org/viewcvs/m4/m4/m4private.h?cvsroot=m4&r1=1.74&r2=1.75
http://cvs.savannah.gnu.org/viewcvs/m4/modules/evalparse.c?cvsroot=m4&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/m4/modules/m4.c?cvsroot=m4&r1=1.99&r2=1.100
http://cvs.savannah.gnu.org/viewcvs/m4/modules/mpeval.c?cvsroot=m4&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/m4/src/main.c?cvsroot=m4&r1=1.105&r2=1.106



From MAILER-DAEMON Sat Jan 06 14:57:12 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfD-0002qt-Nu
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:11 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf6-0002kf-FM
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:04 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf5-0002jR-Ds
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:03 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf4-0002j5-69
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:02 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf3-0001eM-DD
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hee-0006JZ-8u
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:36 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hf0-0001dI-27
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hez-0001ch-9E
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hey-0002Oe-GD
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:56 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hey-0002OW-99
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:56 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hey-0002OW-99@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:56 +0000
Cc: 
Subject: Changes to m4/src/main.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:06 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: src/main.c
===================================================================
RCS file: /sources/m4/m4/src/main.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -b -r1.105 -r1.106
--- src/main.c	17 Dec 2006 04:34:32 -0000	1.105
+++ src/main.c	6 Jan 2007 19:56:54 -0000	1.106
@@ -1,7 +1,7 @@
 /* GNU m4 -- A simple macro processor
 
    Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1999, 2000, 2003,
-   2004, 2005, 2006 Free Software Foundation, Inc.
+   2004, 2005, 2006, 2007 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
@@ -129,7 +129,7 @@
       fputs (_("\
 Limits control:\n\
   -g, --gnu                    override -G to re-enable GNU extensions\n\
-  -G, --traditional            suppress all GNU extensions\n\
+  -G, --traditional, --posix   suppress all GNU extensions\n\
   -L, --nesting-limit=NUMBER   change artificial nesting limit [1024]\n\
 "), stdout);
       puts ("");
@@ -229,6 +229,7 @@
   {"load-module", required_argument, NULL, 'm'},
   {"module-directory", required_argument, NULL, 'M'},
   {"nesting-limit", required_argument, NULL, 'L'},
+  {"posix", no_argument, NULL, 'G'},
   {"prefix-builtins", no_argument, NULL, 'P'},
   {"pushdef", required_argument, NULL, 'p'},
   {"quiet", no_argument, NULL, 'Q'},



From MAILER-DAEMON Sat Jan 06 14:57:12 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfE-0002rB-E4
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:12 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf8-0002lh-9K
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf4-0002j9-9h
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:03 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf3-0002iz-Sg
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:02 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf2-0001e7-O5
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hed-0006JP-Mh
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:35 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hez-0001d1-MQ
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:59 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hey-0001cS-5l
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hex-0002O0-AP
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hex-0002Ns-3O
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hex-0002Ns-3O@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:55 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:06 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -b -r1.88 -r1.89
--- doc/m4.texinfo	3 Jan 2007 14:44:11 -0000	1.88
+++ doc/m4.texinfo	6 Jan 2007 19:56:53 -0000	1.89
@@ -508,6 +508,7 @@
 m4 extensions), and @samp{traditional} (for compatibility with System V
 m4).  @xref{Modules}.
 
+@cindex numbers
 All macro arguments in @code{m4} are strings, but some are given
 special interpretation, e.g., as numbers, file names, regular
 expressions, etc.  The documentation for each macro will state how the
@@ -812,6 +813,7 @@
 exists to allow overriding @option{--traditional}.
 
 @item -G
+@itemx --posix
 @itemx --traditional
 Suppress all the extensions made in this implementation, compared to the
 System V version.  @xref{Compatibility}, for a list of these.  This
@@ -4646,6 +4648,7 @@
 @acronym{GNU} @code{m4} allows included files to be found in other directories
 than the current working directory.
 
+@cindex @env{M4PATH}
 If the @option{--prepend-include} or @option{-B} command-line option was
 provided (@pxref{Preprocessor features, , Invoking m4}), those
 directories are searched first, in reverse order that those options were
@@ -4667,6 +4670,7 @@
 reinserted into the output stream, @dfn{undiverted}, again at a later
 time.
 
+@cindex @env{TMPDIR}
 Numbered diversions are counted from 0 upwards, diversion number 0
 being the normal output stream.  The number of simultaneous diversions
 is limited mainly by the memory used to describe them, because @acronym{GNU}
@@ -5741,29 +5745,32 @@
 
 @deffn {Builtin (m4)} eval (@var{expression}, @dvar{radix, 10}, @ovar{width})
 Expands to the value of @var{expression}.  The expansion is empty
-if an error is encountered while parsing the arguments.  If specified,
-@var{radix} and @var{width} control the format of the output.  An error
-is issued if division by zero is attempted.
+if a problem is encountered while parsing the arguments.  If specified,
+@var{radix} and @var{width} control the format of the output.
 
-The macro @code{eval} is recognized only with parameters.
-@end deffn
+Calculations are done with signed numbers, using at least 31-bit
+precision, but as a @acronym{GNU} extension, @code{m4} will use wider
+integers if available.  Precision is finite, based on the platform's
+notion of @code{intmax_t}, and overflow silently results in wraparound.
+A warning is issued if division by zero is attempted, or if
+@var{expression} could not be parsed.
 
 Expressions can contain the following operators, listed in order of
 decreasing precedence.
 
-@table @code
+@table @samp
 @item ()
-Parenthesis
+Parentheses
 @item +  -  ~  !
 Unary plus and minus, and bitwise and logical negation
 @item **
 Exponentiation
-@item *  /  %
-Multiplication, division, and modulo
+@item *  /  %  \
+Multiplication, division, modulo, and ratio
 @item +  -
 Addition and subtraction
-@item <<  >>
-Shift left or right
+@item <<  >>  >>>
+Shift left, shift right, unsigned shift right
 @item >  >=  <  <=
 Relational operators
 @item ==  !=
@@ -5778,31 +5785,42 @@
 Logical and
 @item ||
 Logical or
+@item ?:
+Conditional ternary
+@item ,
+Sequential evaluation
 @end table
 
-All operators, except exponentiation, are left associative.  C
+The macro @code{eval} is recognized only with parameters.
+@end deffn
+
+All binary operators, except exponentiation, are left associative.  C
 operators that perform variable assignment, such as @samp{=} or
-@samp{--}, are forbidden, since @code{eval} only operates on constants,
-not variables.
+@samp{--}, are forbidden by @acronym{POSIX}, since @code{eval} only
+operates on constants, not variables.  Attempting to use them results
+in an error.
+@comment fixme If XCU ERN 137 is approved, then we could provide an
+@comment extension that supported assignment operators.
 
 Note that some older @code{m4} implementations use @samp{^} as an
 alternate operator for the exponentiation, although @acronym{POSIX}
 requires the C behavior of bitwise exclusive-or.  The precedence of the
 negation operators, @samp{~} and @samp{!}, was traditionally lower than
-equality.  The unary operators @samp{-} and @samp{+} could not be used
-more than once on the same term.  The traditional precedence of the
-equality operators @samp{==} and @samp{!=} was identical instead of
-lower than the relational operators such as @samp{<}, even in
-@acronym{GNU} M4 1.4.x.  Starting with version 2.0, @acronym{GNU} M4
-correctly follows @acronym{POSIX} precedence rules.  M4 scripts designed
-to be portable between releases must be aware that parentheses may be
-required to enforce C precedence rules.  Likewise, division by zero,
-even in the unused branch of a short-circuiting operator, is not always
-well-defined in other implementations.
+equality.  The unary operators could not be used reliably more than once
+on the same term without intervening parentheses.  The traditional
+precedence of the equality operators @samp{==} and @samp{!=} was
+identical instead of lower than the relational operators such as
+@samp{<}, even through @acronym{GNU} M4 1.4.8.  Starting with version
+1.4.9, @acronym{GNU} M4 correctly follows @acronym{POSIX} precedence
+rules.  M4 scripts designed to be portable between releases must be
+aware that parentheses may be required to enforce C precedence rules.
+Likewise, division by zero, even in the unused branch of a
+short-circuiting operator, is not always well-defined in other
+implementations.
 
 Following are some examples where the current version of M4 follows C
 precedence rules, but where older versions and some other
-implementations of @code{m4} require explicit parenthesis to get the
+implementations of @code{m4} require explicit parentheses to get the
 correct result:
 
 @comment status: 1
@@ -5833,42 +5851,110 @@
 eval(`2 || 1 / 0')
 @result{}1
 eval(`0 || 1 / 0')
-@error{}m4:stdin:12: eval: divide by zero: 0 || 1 / 0
+@error{}m4:stdin:12: Warning: eval: divide by zero: 0 || 1 / 0
 @result{}
 eval(`0 && 1 % 0')
 @result{}0
 eval(`2 && 1 % 0')
-@error{}m4:stdin:14: eval: modulo by zero: 2 && 1 % 0
+@error{}m4:stdin:14: Warning: eval: modulo by zero: 2 && 1 % 0
+@result{}
+@end example
+
+@cindex @acronym{GNU} extensions
+As a @acronym{GNU} extension, @code{eval} supports several operators
+that do not appear in C.  A right-associative exponentiation operator
+@samp{**} computes the value of the left argument raised to the right,
+modulo the numeric precision width.  If evaluated, the exponent must be
+non-negative, and at least one of the arguments must be non-zero, or a
+warning is issued.  An unsigned shift operator @samp{>>>} allows
+shifting a negative number as though it were an unsigned bit pattern,
+which shifts in 0 bits rather than twos-complement sign-extension.  A
+ratio operator @samp{\} behaves like normal division @samp{/} on
+integers, but is provided for symmetry with @code{mpeval}.
+
+@example
+eval(`2 ** 3 ** 2')
+@result{}512
+eval(`(2 ** 3) ** 2')
+@result{}64
+eval(`0 ** 1')
+@result{}0
+eval(`2 ** 0')
+@result{}1
+eval(`0 ** 0')
+@result{}
+@error{}m4:stdin:5: Warning: eval: divide by zero: 0 ** 0
+eval(`4 ** -2')
+@error{}m4:stdin:6: Warning: eval: negative exponent: 4 ** -2
 @result{}
+eval(`2 || 4 ** -2')
+@result{}1
+eval(`(-1 >> 1) == -1')
+@result{}1
+eval(`(-1 >>> 1) > (1 << 30)')
+@result{}1
+eval(`6 \ 3')
+@result{}2
+@end example
+
+Furthermore, when you do not use the @option{--traditional} command line
+option (or @option{-G}, @pxref{Limits control, , Invoking m4}), the C
+operators @samp{,} and @samp{?:} are supported.  But in traditional
+mode, @acronym{POSIX} requires that the use of these two operators cause
+an error.
+
+@example
+$ @kbd{m4}
+eval(`1?2:3')
+@result{}2
+eval(`0?2:3')
+@result{}3
+eval(`1?2:1/0')
+@result{}2
+eval(`0?1/0:3')
+@result{}3
+eval(`4,5')
+@result{}5
 @end example
 
-Numbers without special prefix are given decimal.  A simple @samp{0}
-prefix introduces an octal number.  @samp{0x} introduces a hexadecimal
-number.  @samp{0b} introduces a binary number.  @samp{0r} introduces a
-number expressed in any radix between 1 and 36: the prefix should be
-immediately followed by the decimal expression of the radix, a colon,
-then the digits making the number.  For any radix, the digits are
-@samp{0}, @samp{1}, @samp{2}, @dots{}.  Beyond @samp{9}, the digits are
-@samp{a}, @samp{b} @dots{} up to @samp{z}.  Lower and upper case letters
-can be used interchangeably in numbers prefixes and as number digits.
+@comment options: -G
+@comment status: 1
+@example
+$ @kbd{m4 --posix}
+eval(`1?2:3')
+@error{}m4:stdin:1: eval: invalid operator: 1?2:3
+@result{}
+eval(`4,5')
+@error{}m4:stdin:2: eval: invalid operator: 4,5
+@result{}
+@end example
 
-Calculations are done in at least 32 bit, but @code{m4} will use wider
-integers if available.
+Within @var{expression}, (but not @var{radix} or @var{width}), numbers
+without a special prefix are decimal.  A simple @samp{0} prefix
+introduces an octal number.  @samp{0x} introduces a hexadecimal number.
+As @acronym{GNU} extensions, @samp{0b} introduces a binary number.
+@samp{0r} introduces a number expressed in any radix between 1 and 36:
+the prefix should be immediately followed by the decimal expression of
+the radix, a colon, then the digits making the number.  For radix 1,
+leading zeros are ignored, and all remaining digits must be @samp{1};
+for all other radices, the digits are @samp{0}, @samp{1}, @samp{2},
+@dots{}.  Beyond @samp{9}, the digits are @samp{a}, @samp{b} @dots{} up
+to @samp{z}.  Lower and upper case letters can be used interchangeably
+in numbers prefixes and as number digits.
 
 Parentheses may be used to group subexpressions whenever needed.  For the
 relational operators, a true relation returns @code{1}, and a false
 relation return @code{0}.
 
-The builtin macro @code{eval} is recognized only when given arguments.
-
 Here are a few examples of use of @code{eval}.
 
-@comment status: 1
 @example
 eval(`-3 * 5')
 @result{}-15
 eval(index(`Hello world', `llo') >= 0)
 @result{}1
+eval(`0r1:0111 + 0b100 + 0r3:12')
+@result{}12
 define(`square', `eval(`($1) ** 2')')
 @result{}
 square(`9')
@@ -5878,60 +5964,121 @@
 define(`foo', `666')
 @result{}
 eval(`foo / 6')
-@error{}m4:stdin:7: eval: bad expression: foo / 6
+@error{}m4:stdin:8: Warning: eval: bad expression: foo / 6
 @result{}
 eval(foo / 6)
 @result{}111
 @end example
 
-As the second to last example shows, @code{eval} does not handle macro
+As the last two lines show, @code{eval} does not handle macro
 names, even if they expand to a valid expression (or part of a valid
 expression).  Therefore all macros must be expanded before they are
 passed to @code{eval}.
+@comment update this if we add support for variables.
+
+Some calculations are not portable to other implementations, since they
+have undefined semantics in C, but @acronym{GNU} @code{m4} has
+well-defined behavior on overflow.  When shifting, an out-of-range shift
+amount is implicitly brought into the range of the precision using
+modulo arithmetic (for example, on 32-bit integers, this would be an
+implicit bit-wise and with 0x1f).  This example should work whether your
+platform uses 32-bit integers, 64-bit integers, or even some other
+atypical size.
+
+@example
+define(`max_int', eval(`-1 >>> 1'))
+@result{}
+define(`min_int', eval(max_int` + 1'))
+@result{}
+eval(min_int` < 0')
+@result{}1
+eval(max_int` > 0')
+@result{}1
+ifelse(eval(min_int` / -1'), min_int, `overflow occurred')
+@result{}overflow occurred
+eval(`0x80000000 % -1')
+@result{}0
+eval(`-4 >> 1')
+@result{}-2
+eval(`-4 >> 'eval(len(eval(max_int, `2'))` + 2'))
+@result{}-2
+@end example
 
 If @var{radix} is specified, it specifies the radix to be used in the
-expansion.  The default radix is 10.  The result of @code{eval} is
-always taken to be signed.  The @var{width} argument specifies a minimum
-output width.  The result is zero-padded to extend the expansion to the
-requested width.
+expansion.  The default radix is 10; this is also the case if
+@var{radix} is the empty string.  A warning results if the radix is
+outside the range of 1 through 36, inclusive.  The result of @code{eval}
+is always taken to be signed.  No radix prefix is output, and for
+radices greater than 10, the digits are lower case.  The @var{width}
+argument specifies the minimum output width, excluding any negative
+sign.  The result is zero-padded to extend the expansion to the
+requested width.  A warning results if the width is negative.  If
+@var{radix} or @var{width} is out of bounds, the expansion of
+@code{eval} is empty.
 
 @example
-eval(666, 10)
+eval(`666', `10')
 @result{}666
-eval(666, 11)
+eval(`666', `11')
 @result{}556
-eval(666, 6)
+eval(`666', `6')
 @result{}3030
-eval(666, 6, 10)
+eval(`666', `6', `10')
 @result{}0000003030
-eval(-666, 6, 10)
-@result{}-000003030
+eval(`-666', `6', `10')
+@result{}-0000003030
+eval(`10', `', `0')
+@result{}10
+`0r1:'eval(`10', `1', `11')
+@result{}0r1:01111111111
+eval(`10', `16')
+@result{}a
+eval(`1', `37')
+@error{}m4:stdin:9: Warning: eval: radix out of range: 37
+@result{}
+eval(`1', , `-1')
+@error{}m4:stdin:10: Warning: eval: negative width: -1
+@result{}
+eval()
+@error{}m4:stdin:11: Warning: eval: empty string treated as zero
+@result{}0
 @end example
 
-Take note that @var{radix} cannot be larger than 36.
-
 @node Mpeval
 @section Multiple precision arithmetic
 
 When @code{m4} is compiled with a multiple precision arithmetic library
 (@pxref{Experiments}), a builtin @code{mpeval} is defined.
 
-@deffn {Builtin (mpeval)} mpeval (@var{expression}, @ovar{radix}, @ovar{width})
-It is almost identical to @code{eval}, except the calculations are done
-with infinite precision.  Numbers may be of any length.
-
-@comment `:' as ratio conflicts with `?:' - is it worth using `\' instead?
-A new operator, @code{:}, is provided with the same precedence as
-division, and rationally divides two numbers and canonicalizes
-the result.  The @code{/} operator always returns the quotient of the
-division.  To convert a rational value to integral, divide (@code{/}) by
-1.  Some operators such as @code{%}, @code{<<}, @code{>>}, @code{~},
-@code{&}, @code{|} and @code{^} operate only on integers and will
-truncate any rational remainder.  @code{**} assumes that the exponent is
-integral.
+@deffn {Builtin (mpeval)} mpeval (@var{expression}, @dvar{radix, 10}, @
+  @ovar{width})
+Behaves similarly to @code{eval}, except the calculations are done with
+infinite precision, and rational numbers are supported.  Numbers may be
+of any length.
+
+The macro @code{mpeval} is recognized only with parameters.
+@end deffn
+
+The ratio operator, @samp{\}, is provided with the same precedence as
+division, and rationally divides two numbers and canonicalizes the
+result, whereas the division operator @samp{/} always returns the
+integer quotient of the division.  To convert a rational value to
+integral, divide (@samp{/}) by 1.  Some operators, such as @samp{%},
+@samp{<<}, @samp{>>}, @samp{~}, @samp{&}, @samp{|} and @samp{^} operate
+only on integers and will truncate any rational remainder.  The unsigned
+shift operator, @samp{>>>}, behaves identically with regular right
+shifts, @samp{>>}, since with infinite precision, it is not possible to
+convert a negative number to a positive using shifts.  The
+exponentiation operator, @samp{**}, assumes that the exponent is
+integral, but allows negative exponents.  With the short-circuit logical
+operators, @samp{||} and @samp{&&}, a non-zero result preserves the
+value of the argument that ended evaluation, rather than collapsing to
+@samp{1}.  The operators @samp{?:} and @samp{,} are always available,
+even in @acronym{POSIX} mode, since @code{mpeval} does not have to
+conform to the @acronym{POSIX} rules for @code{eval}.
 
-The builtin macro @code{mpeval} is recognized only when given arguments.
-@end deffn
+@comment fixme - need some examples, but conditional on whether modules
+@comment and mpeval are both supported
 
 @node Shell commands
 @chapter Macros for running shell commands
@@ -6003,7 +6150,7 @@
 @node Esyscmd
 @section Reading the output of commands
 
-@cindex GNU extensions
+@cindex @acronym{GNU} extensions
 @deffn {Builtin (gnu)} esyscmd (@var{shell-command})
 If you want @code{m4} to read the output of a shell command, use
 @code{esyscmd}, which expands to the standard output of the shell
@@ -6495,7 +6642,7 @@
 @cindex initialization, frozen state
 @cindex dumping into frozen file
 @cindex reloading a frozen file
-@cindex GNU extensions
+@cindex @acronym{GNU} extensions
 Reading the common base of a big application, over and over again, may
 be time consuming.  GNU @code{m4} offers some machinery to speed up
 the start of an application using lengthy common bases.  Presume the
@@ -6689,7 +6836,7 @@
 @node Extensions
 @section Extensions in @acronym{GNU} M4
 
-@cindex GNU extensions
+@cindex @acronym{GNU} extensions
 @cindex @acronym{POSIX}
 @cindex @env{POSIXLY_CORRECT}
 This version of @code{m4} contains a few facilities that do not exist
@@ -6954,7 +7101,6 @@
 not need to be passed to the helper @code{@w{_forloop}}.
 
 @comment examples
-@comment status: 1
 @example
 $ @kbd{m4 -I examples}
 undivert(`forloop2.m4')dnl
@@ -6979,7 +7125,7 @@
 forloop(`i', `5 + 5', `0xc', ` 0x`'eval(i, `16')')
 @result{} 0xa 0xb 0xc
 forloop(`i', `a', `b', `non-numeric bounds')
-@error{}m4:stdin:6: eval: bad input: (b) >= (a)
+@error{}m4:stdin:6: Warning: eval: bad input: (b) >= (a)
 @result{}
 @end example
 



From MAILER-DAEMON Sat Jan 06 14:57:13 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfE-0002rT-W4
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:13 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf7-0002lF-9y
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:05 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf4-0002jL-Kg
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:03 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf4-0002j1-64
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:02 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf3-0001eI-3u
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hed-0006JW-UB
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:36 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hf1-0001dA-0X
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:59 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hey-0001cb-LS
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hex-0002OE-Mt
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hex-0002O4-HI
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hex-0002O4-HI@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:55 +0000
Cc: 
Subject: Changes to m4/m4/m4private.h,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:06 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: m4/m4private.h
===================================================================
RCS file: /sources/m4/m4/m4/m4private.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -b -r1.74 -r1.75
--- m4/m4private.h	23 Dec 2006 00:02:20 -0000	1.74
+++ m4/m4private.h	6 Jan 2007 19:56:54 -0000	1.75
@@ -1,7 +1,7 @@
 /* GNU m4 -- A simple macro processor
 
    Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1998, 1999, 2004, 2005,
-   2006 Free Software Foundation, Inc.
+   2006, 2007 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
@@ -358,16 +358,6 @@
 extern void m4__include_init (m4 *);
 
 
-/* Convert a possibly-signed character to an unsigned character.  This is
-   a bit safer than casting to unsigned char, since it catches some type
-   errors that the cast doesn't.  */
-#if HAVE_INLINE
-static inline unsigned char to_uchar (char ch) { return ch; }
-#else
-# define to_uchar(C) ((unsigned char) (C))
-#endif
-
-
 /* Debugging the memory allocator.  */
 
 #if WITH_DMALLOC



From MAILER-DAEMON Sat Jan 06 14:57:14 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfF-0002sY-Oi
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:13 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf7-0002lI-Dx
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:05 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf3-0002iq-Mn
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:02 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf3-0002ia-FC
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf2-0001eA-PW
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hed-0006JQ-Og
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:35 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hf1-0001da-2G
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:59 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hez-0001ce-1a
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hey-0002OU-3L
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:56 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hex-0002OK-UK
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:56 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hex-0002OK-UK@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:55 +0000
Cc: 
Subject: Changes to m4/modules/m4.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:08 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: modules/m4.c
===================================================================
RCS file: /sources/m4/m4/modules/m4.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -b -r1.99 -r1.100
--- modules/m4.c	3 Jan 2007 14:44:11 -0000	1.99
+++ modules/m4.c	6 Jan 2007 19:56:54 -0000	1.100
@@ -119,8 +119,8 @@
 static void *	dump_symbol_CB  (m4_symbol_table *ignored, const char *name,
 				 m4_symbol *symbol, void *userdata);
 static const char *ntoa		(number value, int radix);
-static void	numb_obstack	(m4_obstack *obs, const number value,
-				 const int radix, int min);
+static void	numb_obstack	(m4_obstack *obs, number value,
+				 int radix, int min);
 
 
 /* Generate prototypes for each builtin handler function. */
@@ -1074,6 +1074,7 @@
 #define numb_init(x) ((x) = numb_ZERO)
 #define numb_fini(x)
 
+#define numb_incr(n) ((n) += numb_ONE)
 #define numb_decr(n) ((n) -= numb_ONE)
 
 #define numb_zerop(x)     ((x) == numb_ZERO)
@@ -1104,10 +1105,23 @@
 #define numb_ratio(x, y)     ((x) = ((x) / ((y))))
 #define numb_divide(x, y)    (*(x) = (*(x) / (*(y))))
 #define numb_modulo(c, x, y) (*(x) = (*(x) % *(y)))
-#define numb_invert(x)       ((x) = numb_ONE / (x))
+/* numb_invert is only used in the context of x**-y, which integral math
+   does not support.  */
+#define numb_invert(x)       return NEGATIVE_EXPONENT
 
 #define numb_lshift(c, x, y) (*(x) = (*(x) << *(y)))
 #define numb_rshift(c, x, y) (*(x) = (*(x) >> *(y)))
+#define numb_urshift(c, x, y)				\
+   (*(x) = (number) ((unumber) *(x) >> (unumber) *(y)))
+
+#define numb_extension(c)			      \
+  do						      \
+    {						      \
+      /* Revisit this if XCU ERN 137 is approved.  */ \
+      if (m4_get_posixly_correct_opt (context))	      \
+	return INVALID_OPERATOR;		      \
+    }						      \
+  while (0)
 
 
 /* The function ntoa () converts VALUE to a signed ascii representation in
@@ -1149,15 +1163,30 @@
 }
 
 static void
-numb_obstack(m4_obstack *obs, const number value,
-	     const int radix, int min)
+numb_obstack(m4_obstack *obs, number value, int radix, int min)
 {
-  const char *s = ntoa (value, radix);
+  const char *s;
+  if (radix == 1)
+    {
+      /* FIXME - this code currently depends on undefined behavior.  */
+      if (value < 0)
+	{
+	  obstack_1grow (obs, '-');
+	  value = -value;
+	}
+      while (min-- - value > 0)
+	obstack_1grow (obs, '0');
+      while (value-- != 0)
+	obstack_1grow (obs, '1');
+      obstack_1grow (obs, '\0');
+      return;
+    }
+
+  s = ntoa (value, radix);
 
   if (*s == '-')
     {
       obstack_1grow (obs, '-');
-      min--;
       s++;
     }
   for (min -= strlen (s); --min >= 0;)



From MAILER-DAEMON Sat Jan 06 14:57:14 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfF-0002sF-E8
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:13 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf7-0002lS-Vv
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf4-0002jD-A1
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:03 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf3-0002iy-VX
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:02 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf3-0001eH-1f
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hed-0006JR-Q2
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:35 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hf1-0001dh-GS
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hez-0001cf-0Q
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hey-0002OZ-9g
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:56 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hey-0002OR-3X
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:56 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hey-0002OR-3X@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:56 +0000
Cc: 
Subject: Changes to m4/modules/mpeval.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:07 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: modules/mpeval.c
===================================================================
RCS file: /sources/m4/m4/modules/mpeval.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- modules/mpeval.c	3 Jan 2007 14:44:11 -0000	1.21
+++ modules/mpeval.c	6 Jan 2007 19:56:54 -0000	1.22
@@ -20,6 +20,7 @@
 #include <config.h>
 
 #include <m4module.h>
+#include <m4private.h>
 
 #if HAVE_GMP_H
 #  include <gmp.h>
@@ -58,7 +59,7 @@
 #define numb_ge(x, y) numb_set (x, mpq_cmp (x, y) >= 0 ? numb_ONE : numb_ZERO)
 
 #define numb_lnot(x)    numb_set (x, numb_zerop (x) ? numb_ONE : numb_ZERO)
-#define numb_lior(x, y) numb_set (x, numb_zerop (x) ? y : numb_ONE)
+#define numb_lior(x, y) numb_set (x, numb_zerop (x) ? y : x)
 #define numb_land(x, y) numb_set (x, numb_zerop (x) ? numb_ZERO : y)
 
 #define reduce1(f1, x)							\
@@ -90,6 +91,7 @@
 #define numb_ratio(x, y) reduce2 (mpq_div, x, y)
 #define numb_invert(x)   reduce1 (mpq_inv, x)
 
+#define numb_incr(n) numb_plus  (n, numb_ONE)
 #define numb_decr(n) numb_minus (n, numb_ONE)
 
 /* Generate prototypes for each builtin handler function. */
@@ -140,6 +142,8 @@
 static void numb_not (m4 *context, number *x);
 static void numb_lshift (m4 *context, number *x, number *y);
 static void numb_rshift (m4 *context, number *x, number *y);
+#define numb_urshift(c, x, y) numb_rshift (c, x, y)
+#define numb_extension(c) /* no-op */
 
 
 static number numb_ZERO;
@@ -172,12 +176,11 @@
   mpz_init (i);
 
   mpq_get_num (i, value);
-  s = mpz_get_str ((char *) 0, radix, i);
+  s = mpz_get_str (NULL, radix, i);
 
   if (*s == '-')
     {
       obstack_1grow (obs, '-');
-      min--;
       s++;
     }
   for (min -= strlen (s); --min >= 0;)
@@ -188,7 +191,7 @@
   mpq_get_den (i, value);
   if (mpz_cmp_si (i, (long) 1) != 0)
     {
-      obstack_1grow (obs, ':');
+      obstack_1grow (obs, '\\');
       s = mpz_get_str ((char *) 0, radix, i);
       obstack_grow (obs, s, strlen (s));
     }
@@ -203,7 +206,7 @@
 mpq2mpz (m4 *context, mpz_t z, const number q, const char *noisily)
 {
   if (noisily && mpz_cmp_si (mpq_denref (q), (long) 1) != 0)
-    m4_error (context, 0, 0, _("loss of precision in eval: %s"), noisily);
+    m4_warn (context, 0, _("loss of precision in eval: %s"), noisily);
 
   mpz_div (z, mpq_numref (q), mpq_denref (q));
 }



From MAILER-DAEMON Sat Jan 06 14:57:14 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfG-0002st-4K
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:14 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf9-0002n2-I5
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:07 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf5-0002jp-Ft
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:05 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf4-0002jk-VL
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:03 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf4-0001el-AB
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:02 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hef-0006Jh-3G
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:37 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hf1-0001dC-P2
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hey-0001cd-MF
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:57 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hex-0002ON-UV
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:56 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hex-0002OC-NI
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hex-0002OC-NI@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:55 +0000
Cc: 
Subject: Changes to m4/modules/evalparse.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:08 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: modules/evalparse.c
===================================================================
RCS file: /sources/m4/m4/modules/evalparse.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- modules/evalparse.c	3 Jan 2007 14:44:11 -0000	1.15
+++ modules/evalparse.c	6 Jan 2007 19:56:54 -0000	1.16
@@ -45,10 +45,11 @@
     EXPONENT,
     TIMES, DIVIDE, MODULO, RATIO,
     EQ, NOTEQ, GT, GTEQ, LS, LSEQ,
-    LSHIFT, RSHIFT,
+    LSHIFT, RSHIFT, URSHIFT,
     LNOT, LAND, LOR,
     NOT, AND, OR, XOR,
     LEFTP, RIGHTP,
+    QUESTION, COLON, COMMA,
     NUMBER, EOTEXT
   }
 eval_token;
@@ -58,16 +59,23 @@
 typedef enum eval_error
   {
     NO_ERROR,
-    MISSING_RIGHT,
+    DIVIDE_ZERO,
+    MODULO_ZERO,
+    NEGATIVE_EXPONENT,
+    /* All errors prior to SYNTAX_ERROR can be ignored in a dead
+       branch of && and ||.  All errors after are just more details
+       about a syntax error.  */
     SYNTAX_ERROR,
+    MISSING_RIGHT,
+    MISSING_COLON,
     UNKNOWN_INPUT,
     EXCESS_INPUT,
-    INVALID_OPERATOR,
-    DIVIDE_ZERO,
-    MODULO_ZERO
+    INVALID_OPERATOR
   }
 eval_error;
 
+static eval_error comma_term		(m4 *, eval_token, number *);
+static eval_error condition_term	(m4 *, eval_token, number *);
 static eval_error logical_or_term   (m4 *, eval_token, number *);
 static eval_error logical_and_term  (m4 *, eval_token, number *);
 static eval_error or_term	    (m4 *, eval_token, number *);
@@ -81,21 +89,21 @@
 static eval_error exp_term	    (m4 *, eval_token, number *);
 static eval_error unary_term	    (m4 *, eval_token, number *);
 static eval_error simple_term	    (m4 *, eval_token, number *);
-static void	  numb_pow	    (number *x, number *y);
+static eval_error numb_pow		(number *, number *);
 
 
 
 /* --- LEXICAL FUNCTIONS --- */
 
 /* Pointer to next character of input text.  */
-static const unsigned char *eval_text;
+static const char *eval_text;
 
 /* Value of eval_text, from before last call of eval_lex ().  This is so we
    can back up, if we have read too much.  */
-static const unsigned char *last_text;
+static const char *last_text;
 
 static void
-eval_init_lex (const unsigned char *text)
+eval_init_lex (const char *text)
 {
   eval_text = text;
   last_text = NULL;
@@ -114,7 +122,7 @@
 static eval_token
 eval_lex (number *val)
 {
-  while (isspace (*eval_text))
+  while (isspace (to_uchar (*eval_text)))
     eval_text++;
 
   last_text = eval_text;
@@ -122,7 +130,7 @@
   if (*eval_text == '\0')
     return EOTEXT;
 
-  if (isdigit (*eval_text))
+  if (isdigit (to_uchar (*eval_text)))
     {
       int base, digit;
 
@@ -147,7 +155,7 @@
 	    case 'R':
 	      base = 0;
 	      eval_text++;
-	      while (isdigit (*eval_text) && base <= 36)
+	      while (isdigit (to_uchar (*eval_text)) && base <= 36)
 		base = 10 * base + *eval_text++ - '0';
 	      if (base == 0 || base > 36 || *eval_text != ':')
 		return ERROR;
@@ -164,27 +172,37 @@
       numb_set_si (val, 0);
       for (; *eval_text; eval_text++)
 	{
-	  if (isdigit (*eval_text))
+	  if (isdigit (to_uchar (*eval_text)))
 	    digit = *eval_text - '0';
-	  else if (islower (*eval_text))
+	  else if (islower (to_uchar (*eval_text)))
 	    digit = *eval_text - 'a' + 10;
-	  else if (isupper (*eval_text))
+	  else if (isupper (to_uchar (*eval_text)))
 	    digit = *eval_text - 'A' + 10;
 	  else
 	    break;
 
-	  if (digit >= base)
+	  if (base == 1)
+	    {
+	      if (digit == 1)
+		numb_incr (*val);
+	      else if (digit == 0 && numb_zerop (*val))
+		continue;
+	      else
 	    break;
-
-	  { /* (*val) = (*val) * base; */
+	    }
+	  else if (digit >= base)
+	    break;
+	  else
+	    {
 	    number xbase;
+	      number xdigit;
+
+	      /* (*val) = (*val) * base; */
 	    numb_init (xbase);
 	    numb_set_si (&xbase, base);
 	    numb_times (*val, xbase);
 	    numb_fini (xbase);
-	  }
-	  { /* (*val) = (*val) + digit; */
-	    number xdigit;
+	      /* (*val) = (*val) + digit; */
 	    numb_init (xdigit);
 	    numb_set_si (&xdigit, digit);
 	    numb_plus (*val, xdigit);
@@ -221,8 +239,8 @@
       if (*eval_text == '=')
 	return BADOP;
       return MODULO;
-    case ':':
-      return RATIO; /* FIXME - this clashes with supporting ?:.  */
+    case '\\':
+      return RATIO;
     case '=':
       if (*eval_text == '=')
 	{
@@ -245,8 +263,14 @@
 	}
       else if (*eval_text == '>')
 	{
-	  if (*eval_text++ == '=')
+	  eval_text++;
+	  if (*eval_text == '=')
 	    return BADOP;
+	  else if (*eval_text == '>')
+	    {
+	      eval_text++;
+	      return URSHIFT;
+	    }
 	  return RSHIFT;
 	}
       else
@@ -259,7 +283,7 @@
 	}
       else if (*eval_text == '<')
 	{
-	  if (*eval_text++ == '=')
+	  if (*++eval_text == '=')
 	    return BADOP;
 	  return LSHIFT;
 	}
@@ -293,6 +317,12 @@
       return LEFTP;
     case ')':
       return RIGHTP;
+    case '?':
+      return QUESTION;
+    case ':':
+      return COLON;
+    case ',':
+      return COMMA;
     default:
       return ERROR;
     }
@@ -300,6 +330,90 @@
 
 /* Recursive descent parser.  */
 static eval_error
+comma_term (m4 *context, eval_token et, number *v1)
+{
+  number v2;
+  eval_error er;
+
+  if ((er = condition_term (context, et, v1)) != NO_ERROR)
+    return er;
+
+  numb_init (v2);
+  while ((et = eval_lex (&v2)) == COMMA)
+    {
+      /* Unless XCU ERN 137 is approved, eval must reject this in
+	 POSIX mode.  */
+      numb_extension (context);
+      et = eval_lex (&v2);
+      if (et == ERROR)
+	return UNKNOWN_INPUT;
+
+      if ((er = condition_term (context, et, &v2)) != NO_ERROR)
+	return er;
+      numb_set (*v1, v2);
+    }
+  numb_fini (v2);
+  if (et == ERROR)
+    return UNKNOWN_INPUT;
+
+  eval_undo ();
+  return NO_ERROR;
+}
+
+static eval_error
+condition_term (m4 *context, eval_token et, number *v1)
+{
+  number v2;
+  number v3;
+  eval_error er;
+
+  if ((er = logical_or_term (context, et, v1)) != NO_ERROR)
+    return er;
+
+  numb_init (v2);
+  numb_init (v3);
+  if ((et = eval_lex (&v2)) == QUESTION)
+    {
+      /* Unless XCU ERN 137 is approved, eval must reject this in
+	 POSIX mode.  */
+      numb_extension (context);
+      et = eval_lex (&v2);
+      if (et == ERROR)
+	return UNKNOWN_INPUT;
+
+      /* Implement short-circuiting of valid syntax.  */
+      er = comma_term (context, et, &v2);
+      if (er != NO_ERROR
+	  && !(numb_zerop (*v1) && er < SYNTAX_ERROR))
+	return er;
+
+      et = eval_lex (&v3);
+      if (et == ERROR)
+	return UNKNOWN_INPUT;
+      if (et != COLON)
+	return MISSING_COLON;
+
+      et = eval_lex (&v3);
+      if (et == ERROR)
+	return UNKNOWN_INPUT;
+
+      er = condition_term (context, et, &v3);
+      if (er != NO_ERROR
+	  && !(! numb_zerop (*v1) && er < SYNTAX_ERROR))
+	return er;
+
+      numb_set (*v1, ! numb_zerop (*v1) ? v2 : v3);
+    }
+  numb_fini (v2);
+  numb_fini (v3);
+  if (et == ERROR)
+    return UNKNOWN_INPUT;
+
+  eval_undo ();
+  return NO_ERROR;
+}
+
+static eval_error
 logical_or_term (m4 *context, eval_token et, number *v1)
 {
   number v2;
@@ -319,8 +433,7 @@
       er = logical_and_term (context, et, &v2);
       if (er == NO_ERROR)
 	numb_lior (*v1, v2);
-      else if (! numb_zerop (*v1)
-	       && (er == DIVIDE_ZERO || er == MODULO_ZERO))
+      else if (! numb_zerop (*v1) && er < SYNTAX_ERROR)
 	numb_set (*v1, numb_ONE);
       else
 	return er;
@@ -353,8 +466,7 @@
       er = or_term (context, et, &v2);
       if (er == NO_ERROR)
 	numb_land (*v1, v2);
-      else if (numb_zerop (*v1)
-	       && (er == DIVIDE_ZERO || er == MODULO_ZERO))
+      else if (numb_zerop (*v1) && er < SYNTAX_ERROR)
 	numb_set (*v1, numb_ZERO);
       else
 	return er;
@@ -551,7 +663,7 @@
     return er;
 
   numb_init (v2);
-  while ((op = eval_lex (&v2)) == LSHIFT || op == RSHIFT)
+  while ((op = eval_lex (&v2)) == LSHIFT || op == RSHIFT || op == URSHIFT)
     {
 
       et = eval_lex (&v2);
@@ -571,6 +683,10 @@
 	  numb_rshift (context, v1, &v2);
 	  break;
 
+	case URSHIFT:
+	  numb_urshift (context, v1, &v2);
+	  break;
+
 	default:
 	  assert (!"INTERNAL ERROR: bad shift operator in shift_term ()");
 	  abort ();
@@ -684,13 +800,11 @@
 static eval_error
 exp_term (m4 *context, eval_token et, number *v1)
 {
-  number result;
   number v2;
   eval_error er;
 
   if ((er = unary_term (context, et, v1)) != NO_ERROR)
     return er;
-  memcpy (&result, v1, sizeof(number));
 
   numb_init (v2);
   while ((et = eval_lex (&v2)) == EXPONENT)
@@ -702,7 +816,8 @@
       if ((er = exp_term (context, et, &v2)) != NO_ERROR)
 	return er;
 
-      numb_pow (v1, &v2);
+      if ((er = numb_pow (v1, &v2)) != NO_ERROR)
+	return er;
     }
   numb_fini (v2);
   if (et == ERROR)
@@ -734,8 +849,7 @@
       else if (et == LNOT)
 	numb_lnot (*v1);
     }
-  else
-    if ((er = simple_term (context, et, v1)) != NO_ERROR)
+  else if ((er = simple_term (context, et, v1)) != NO_ERROR)
       return er;
 
   return NO_ERROR;
@@ -754,7 +868,7 @@
       if (et == ERROR)
 	return UNKNOWN_INPUT;
 
-      if ((er = logical_or_term (context, et, v1)) != NO_ERROR)
+      if ((er = comma_term (context, et, v1)) != NO_ERROR)
 	return er;
 
       et = eval_lex (&v2);
@@ -786,14 +900,14 @@
   int		min	= 1;
   number	val;
   eval_token	et;
-  eval_error	err;
+  eval_error	err	= NO_ERROR;
 
-  if (argc >= 3 && !m4_numeric_arg (context, argc, argv, 2, &radix))
+  if (*M4ARG (2) && !m4_numeric_arg (context, argc, argv, 2, &radix))
     return;
 
-  if (radix <= 1 || radix > 36)
+  if (radix < 1 || radix > 36)
     {
-      m4_error (context, 0, 0, _("%s: radix out of range: %d"),
+      m4_warn (context, 0, _("%s: radix out of range: %d"),
 		M4ARG (0), radix);
       return;
     }
@@ -801,9 +915,9 @@
   if (argc >= 4 && !m4_numeric_arg (context, argc, argv, 3, &min))
     return;
 
-  if (min <= 0)
+  if (min < 0)
     {
-      m4_error (context, 0, 0, _("%s: negative width: %d"), M4ARG (0), min);
+      m4_warn (context, 0, _("%s: negative width: %d"), M4ARG (0), min);
       return;
     }
 
@@ -812,7 +926,13 @@
 
   numb_init (val);
   et = eval_lex (&val);
-  err = logical_or_term (context, et, &val);
+  if (et == EOTEXT)
+    {
+      m4_warn (context, 0, _("%s: empty string treated as zero"), M4ARG (0));
+      numb_set (val, numb_ZERO);
+    }
+  else
+    err = comma_term (context, et, &val);
 
   if (err == NO_ERROR && *eval_text != '\0')
     {
@@ -829,36 +949,47 @@
       break;
 
     case MISSING_RIGHT:
-      m4_error (context, 0, 0, _("%s: missing right parenthesis: %s"),
+      m4_warn (context, 0, _("%s: missing right parenthesis: %s"),
+	       M4ARG (0), M4ARG (1));
+      break;
+
+    case MISSING_COLON:
+      m4_warn (context, 0, _("%s: missing colon: %s"),
 		M4ARG (0), M4ARG (1));
       break;
 
     case SYNTAX_ERROR:
-      m4_error (context, 0, 0, _("%s: bad expression: %s"),
+      m4_warn (context, 0, _("%s: bad expression: %s"),
 		M4ARG (0), M4ARG (1));
       break;
 
     case UNKNOWN_INPUT:
-      m4_error (context, 0, 0, _("%s: bad input: %s"), M4ARG (0), M4ARG (1));
+      m4_warn (context, 0, _("%s: bad input: %s"), M4ARG (0), M4ARG (1));
       break;
 
     case EXCESS_INPUT:
-      m4_error (context, 0, 0, _("%s: excess input: %s"), M4ARG (0),
+      m4_warn (context, 0, _("%s: excess input: %s"), M4ARG (0),
 		M4ARG (1));
       break;
 
     case INVALID_OPERATOR:
+      /* POSIX requires an error here, unless XCU ERN 137 is approved.  */
       m4_error (context, 0, 0, _("%s: invalid operator: %s"), M4ARG (0),
 		M4ARG (1));
       break;
 
     case DIVIDE_ZERO:
-      m4_error (context, 0, 0, _("%s: divide by zero: %s"), M4ARG (0),
+      m4_warn (context, 0, _("%s: divide by zero: %s"), M4ARG (0),
 		M4ARG (1));
       break;
 
     case MODULO_ZERO:
-      m4_error (context, 0, 0, _("%s: modulo by zero: %s"), M4ARG (0),
+      m4_warn (context, 0, _("%s: modulo by zero: %s"), M4ARG (0),
+	       M4ARG (1));
+      break;
+
+    case NEGATIVE_EXPONENT:
+      m4_warn (context, 0, _("%s: negative exponent: %s"), M4ARG (0),
 		M4ARG (1));
       break;
 
@@ -870,7 +1001,7 @@
   numb_fini (val);
 }
 
-static void
+static eval_error
 numb_pow (number *x, number *y)
 {
   /* y should be integral */
@@ -880,13 +1011,16 @@
   numb_init (ans);
   numb_set_si (&ans, 1);
 
+  if (numb_zerop (*x) && numb_zerop (*y))
+    return DIVIDE_ZERO;
+
   numb_init (yy);
   numb_set (yy, *y);
 
   if (numb_negativep (yy))
     {
-      numb_invert (*x);
       numb_negate (yy);
+      numb_invert (*x);
     }
 
   while (numb_positivep (yy))
@@ -898,4 +1032,5 @@
 
   numb_fini (ans);
   numb_fini (yy);
+  return NO_ERROR;
 }



From MAILER-DAEMON Sat Jan 06 14:57:11 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H3HfD-0002qE-HS
	for mharc-m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:11 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H3Hf6-0002kl-LE
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:04 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H3Hf2-0002i5-UC
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:01 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H3Hf2-0002hy-N9
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:57:00 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3Hf1-0001di-C8
	for m4-commit@gnu.org; Sat, 06 Jan 2007 14:56:59 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H3Hec-0006JB-4S
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:34 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H3Hez-0001cw-Ly
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:58 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H3Hey-0001ca-B2
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 14:56:56 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H3Hex-0002O7-HP
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H3Hex-0002Ny-AE
	for m4-cvs-logs@gnu.org; Sat, 06 Jan 2007 19:56:55 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H3Hex-0002Ny-AE@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 06 Jan 2007 19:56:55 +0000
Cc: 
Subject: Changes to m4/m4/m4module.h,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jan 2007 19:57:05 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/06 19:56:54

Index: m4/m4module.h
===================================================================
RCS file: /sources/m4/m4/m4/m4module.h,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -b -r1.102 -r1.103
--- m4/m4module.h	23 Dec 2006 00:02:20 -0000	1.102
+++ m4/m4module.h	6 Jan 2007 19:56:53 -0000	1.103
@@ -1,7 +1,7 @@
 /* GNU m4 -- A simple macro processor
 
    Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1999, 2000, 2003,
-   2004, 2005, 2006 Free Software Foundation, Inc.
+   2004, 2005, 2006, 2007 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
@@ -440,6 +440,16 @@
 #define obstack_chunk_alloc	xmalloc
 #define obstack_chunk_free	free
 
+
+/* Convert a possibly-signed character to an unsigned character.  This is
+   a bit safer than casting to unsigned char, since it catches some type
+   errors that the cast doesn't.  */
+#if HAVE_INLINE
+static inline unsigned char to_uchar (char ch) { return ch; }
+#else
+# define to_uchar(C) ((unsigned char) (C))
+#endif
+
 END_C_DECLS
 
 #endif /* !M4MODULE_H */



From MAILER-DAEMON Tue Jan 09 00:05:27 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49As-0005k3-V3
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:27 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49Ar-0005jL-Bm
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:25 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Aq-0005ig-OE
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Aq-0005ic-Eu
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Aq-00089n-3A
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49AN-0007K4-Na
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:04:55 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Ap-00089K-8F
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:23 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Ao-000894-Lz
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:22 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49An-0003LB-Si
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:22 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49An-0003L3-IB
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:21 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49An-0003L3-IB@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:05:21 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:05:25 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:05:21

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.473
retrieving revision 1.474
diff -u -b -r1.473 -r1.474
--- ChangeLog	6 Jan 2007 19:56:53 -0000	1.473
+++ ChangeLog	9 Jan 2007 05:05:20 -0000	1.474
@@ -1,3 +1,9 @@
+2007-01-08  Eric Blake  <ebb9@byu.net>
+
+	* ltdl/m4/gnulib-cache.m4: Update for new year.
+	* ltdl/m4/gmp.m4 (_M4_LIB_GMP): Cover all error cases.
+	Reported by Ralf Wildenhues.
+
 2007-01-06  Eric Blake  <ebb9@byu.net>
 
 	* m4/m4private.h (to_uchar): Move...
@@ -8439,7 +8445,7 @@
 
 	-----
 
-	$Revision: 1.473 $ $Date: 2007/01/06 19:56:53 $
+	$Revision: 1.474 $ $Date: 2007/01/09 05:05:20 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Tue Jan 09 00:05:28 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Au-0005kx-6x
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:28 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49Ar-0005jT-IS
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:25 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Aq-0005iX-CQ
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Aq-0005iU-7p
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Ap-00089e-Oj
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:23 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49AN-0007K1-A7
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:04:55 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Ao-00089A-MW
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:23 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Ao-000893-Dc
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:22 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49An-0003L5-II
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:21 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49An-0003L0-BD
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:21 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49An-0003L0-BD@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:05:21 +0000
Cc: 
Subject: m4 ChangeLog ltdl/m4/gmp.m4 ltdl/m4/gnulib-cach...
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:05:26 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:05:21

Modified files:
	.              : ChangeLog 
	ltdl/m4        : gmp.m4 gnulib-cache.m4 

Log message:
	* ltdl/m4/gnulib-cache.m4: Update for new year.
	* ltdl/m4/gmp.m4 (_M4_LIB_GMP): Cover all error cases.
	Reported by Ralf Wildenhues.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.473&r2=1.474
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/gmp.m4?cvsroot=m4&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/gnulib-cache.m4?cvsroot=m4&r1=1.20&r2=1.21



From MAILER-DAEMON Tue Jan 09 00:05:28 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Au-0005l9-GE
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:28 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49As-0005ji-6e
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:26 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Ar-0005j4-6S
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:25 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Aq-0005iu-Op
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Aq-00089s-C6
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49AN-0007K6-U8
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:04:55 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Ap-00089R-DO
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:23 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Ao-000897-TM
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:23 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49Ao-0003LJ-5u
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:22 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49An-0003L9-Sb
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:21 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49An-0003L9-Sb@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:05:21 +0000
Cc: 
Subject: Changes to m4/ltdl/m4/gmp.m4,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:05:26 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:05:21

Index: ltdl/m4/gmp.m4
===================================================================
RCS file: /sources/m4/m4/ltdl/m4/gmp.m4,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ltdl/m4/gmp.m4	16 Jun 2006 03:51:29 -0000	1.2
+++ ltdl/m4/gmp.m4	9 Jan 2007 05:05:21 -0000	1.3
@@ -1,5 +1,5 @@
 # -*- Autoconf -*-
-# Copyright (C) 2000, 2001, 2003, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2003, 2006, 2007 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
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 # 02110-1301  USA
 
-# serial 8
+# serial 9
 
 m4_define([_M4_LIB_GMP],
 [AC_ARG_WITH([gmp],
@@ -25,6 +25,9 @@
 [use_gmp=$withval], [use_gmp=yes])
 
 case $use_gmp:$LIBADD_GMP:$ac_cv_header_gmp_h in
+  no:*)
+    M4_cv_using_lib_gmp=no
+    ;;
   *::yes)
     AC_MSG_WARN([gmp library not found or does not appear to work
                  but `gmp.h' is present])
@@ -37,8 +40,9 @@
   yes:*:yes)
     M4_cv_using_lib_gmp=yes
     ;;
-  no:*)
+  *)
     M4_cv_using_lib_gmp=no
+    AC_MSG_WARN([could not detect gmp library])
     ;;
 esac
 ])# _M4_LIB_GMP



From MAILER-DAEMON Tue Jan 09 00:05:29 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Av-0005li-Q7
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:29 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49As-0005k5-TH
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:27 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Ar-0005j9-8A
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:26 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Aq-0005iq-OR
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Aq-00089t-CE
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:05:24 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49AN-0007K8-VD
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:04:56 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Ap-00089a-RM
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:23 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Ap-00089H-Db
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:05:23 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49Ao-0003LW-FJ
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:22 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49Ao-0003LH-5q
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:05:22 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49Ao-0003LH-5q@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:05:22 +0000
Cc: 
Subject: Changes to m4/ltdl/m4/gnulib-cache.m4,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:05:28 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:05:21

Index: ltdl/m4/gnulib-cache.m4
===================================================================
RCS file: /sources/m4/m4/ltdl/m4/gnulib-cache.m4,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- ltdl/m4/gnulib-cache.m4	15 Nov 2006 00:45:07 -0000	1.20
+++ ltdl/m4/gnulib-cache.m4	9 Jan 2007 05:05:21 -0000	1.21
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2006 Free Software Foundation, Inc.
+# Copyright (C) 2004-2007 Free Software Foundation, Inc.
 #
 # This file is free software, distributed under the terms of the GNU
 # General Public License.  As a special exception to the GNU General



From MAILER-DAEMON Tue Jan 09 00:07:25 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Cn-0006Ft-2E
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49Cl-0006Er-Qb
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:23 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Ck-0006Dp-Tu
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:23 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Ck-0006Dh-FY
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:22 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Ck-0008Mi-5h
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:22 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49CH-0007P0-Ps
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:06:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Cj-0008MT-Be
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:07:21 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Cj-0008MH-4R
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:07:21 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49Ch-0003W8-VN
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:07:20 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49Ch-0003W3-Ct
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:07:19 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49Ch-0003W3-Ct@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:07:19 +0000
Cc: 
Subject: Changes to m4/ltdl/m4/.cvsignore,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:07:24 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:07:18

Index: .cvsignore
===================================================================
RCS file: /sources/m4/m4/ltdl/m4/.cvsignore,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- .cvsignore	22 Dec 2006 14:18:23 -0000	1.15
+++ .cvsignore	9 Jan 2007 05:07:18 -0000	1.16
@@ -26,6 +26,7 @@
 gl_list.m4
 glibc2.m4
 glibc21.m4
+gnulib-common.m4
 gnulib-comp.m4
 gnulib-tool.m4
 gnulib.m4



From MAILER-DAEMON Tue Jan 09 00:07:24 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Cm-0006Fe-Ps
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:24 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49Cl-0006Eq-Oz
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:23 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Ck-0006DM-No
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:22 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Ck-0006DC-2l
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:22 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Cj-0008MZ-Mz
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:07:21 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49CH-0007Ox-B9
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:06:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Ci-0008MC-Lk
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:07:21 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Ci-0008M4-D6
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:07:20 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49Ch-0003W5-DO
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:07:19 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49Cg-0003Vz-T0
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:07:19 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49Cg-0003Vz-T0@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:07:18 +0000
Cc: 
Subject: m4/ltdl/m4 .cvsignore
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:07:24 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:07:18

Modified files:
	ltdl/m4        : .cvsignore 

Log message:
	* ltdl/m4/.cvsignore: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/.cvsignore?cvsroot=m4&r1=1.15&r2=1.16



From MAILER-DAEMON Tue Jan 09 00:10:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Fh-0008N3-Qy
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49Ff-0008Lz-J9
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:23 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Fe-0008LP-L5
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:23 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Fe-0008LF-F4
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:22 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Fe-0000Hs-6a
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:22 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49FB-0007cY-QN
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:09:53 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Fd-0000Hd-E6
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:10:21 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Fd-0000HU-6F
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:10:21 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49Fc-0003jl-BQ
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:10:20 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49Fb-0003jh-Sm
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:10:20 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49Fb-0003jh-Sm@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:10:19 +0000
Cc: 
Subject: m4 ChangeLog doc/m4.texinfo
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:10:23 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:10:19

Modified files:
	.              : ChangeLog 
	doc            : m4.texinfo 

Log message:
	* doc/m4.texinfo: Fix a couple of typos.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.474&r2=1.475
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&r1=1.89&r2=1.90



From MAILER-DAEMON Tue Jan 09 00:10:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Fi-0008NB-05
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49Ff-0008MM-W8
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:24 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Ff-0008Le-27
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:23 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Fe-0008LX-SD
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:22 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Fe-0000I2-LN
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:22 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49FC-0007cb-8V
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:09:54 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Fd-0000Hk-Qv
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:10:22 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Fd-0000HW-D2
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:10:21 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49Fc-0003jq-R5
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:10:20 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49Fc-0003jj-BJ
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:10:20 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49Fc-0003jj-BJ@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:10:20 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:10:24 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:10:19

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.474
retrieving revision 1.475
diff -u -b -r1.474 -r1.475
--- ChangeLog	9 Jan 2007 05:05:20 -0000	1.474
+++ ChangeLog	9 Jan 2007 05:10:19 -0000	1.475
@@ -1,3 +1,7 @@
+2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	* doc/m4.texinfo: Fix a couple of typos.
+
 2007-01-08  Eric Blake  <ebb9@byu.net>
 
 	* ltdl/m4/gnulib-cache.m4: Update for new year.
@@ -8445,7 +8449,7 @@
 
 	-----
 
-	$Revision: 1.474 $ $Date: 2007/01/09 05:05:20 $
+	$Revision: 1.475 $ $Date: 2007/01/09 05:10:19 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Tue Jan 09 00:10:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H49Fi-0008NN-70
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H49Fg-0008MU-Do
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:24 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H49Ff-0008Lt-AM
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:23 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H49Ff-0008Lp-5u
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:23 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H49Fe-0000I8-Va
	for m4-commit@gnu.org; Tue, 09 Jan 2007 00:10:23 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H49FC-0007ce-JR
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:09:54 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H49Fe-0000Hu-7r
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:10:22 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H49Fd-0000Hh-Sz
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 00:10:21 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H49Fd-0003jy-4H
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:10:21 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H49Fc-0003jo-Rk
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 05:10:20 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H49Fc-0003jo-Rk@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 05:10:20 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 05:10:24 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/09 05:10:19

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -b -r1.89 -r1.90
--- doc/m4.texinfo	6 Jan 2007 19:56:53 -0000	1.89
+++ doc/m4.texinfo	9 Jan 2007 05:10:19 -0000	1.90
@@ -4010,7 +4010,7 @@
 the value of @var{resyntax}, equivalent to passing @var{resyntax} as the
 argument to the command line option @option{--regexp-syntax}
 (@pxref{Operation modes, , Invoking m4}).  If @var{resyntax} is empty,
-the default flaver is reverted to emacs style.
+the default flavor is reverted to emacs style.
 
 @var{resyntax} can be any one of the values in the table below.  Case is
 not important, and @kbd{-} or @kbd{ } can be substituted for @kbd{_} in
@@ -4208,7 +4208,7 @@
 appears in isolation.
 
 @item End comment
-The set of characters that can end a single-character commet.  The
+The set of characters that can end a single-character comment.  The
 default is the single character @kbd{newline}.  For multiple-character
 comment delimiters, use @code{changecom} (@pxref{Changecom}).  Note that
 newline also defaults to the syntax category `White space', when it



From MAILER-DAEMON Tue Jan 09 10:58:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H4JN9-0001SB-43
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H4JN6-0001Q4-SC
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:45 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H4JN5-0001Ob-Jj
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:43 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H4JN5-0001O6-1K
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:43 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4JN3-0007uq-CM
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:41 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H4JMZ-00065A-Tl
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 10:58:11 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H4JN0-0007tk-UW
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 10:58:39 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H4JMz-0007tJ-Od
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 10:58:38 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H4JMy-0006pY-8B
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 15:58:36 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H4JMy-0006pU-2O
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 15:58:36 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H4JMy-0006pU-2O@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 15:58:36 +0000
Cc: 
Subject: m4/m4 .cvsignore [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 15:58:46 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/09 15:58:36

Modified files:
	m4             : .cvsignore 

Log message:
	* m4/.cvsignore: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/m4/.cvsignore?cvsroot=m4&only_with_tag=branch-1_4&r1=1.4.2.1&r2=1.4.2.2



From MAILER-DAEMON Tue Jan 09 10:58:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H4JN9-0001SJ-AK
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H4JN6-0001Q3-Re
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:45 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H4JN4-0001Nt-T5
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:43 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H4JN4-0001NZ-Ex
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:42 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4JN2-0007uc-LN
	for m4-commit@gnu.org; Tue, 09 Jan 2007 10:58:40 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H4JMZ-000656-Fn
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 10:58:11 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H4JN1-0007tu-0E
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 10:58:39 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H4JMz-0007tP-Qm
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 10:58:38 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H4JMy-0006pc-Do
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 15:58:36 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H4JMy-0006pW-84
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 15:58:36 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H4JMy-0006pW-84@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 15:58:36 +0000
Cc: 
Subject: Changes to m4/m4/.cvsignore,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 15:58:46 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/09 15:58:36

Index: .cvsignore
===================================================================
RCS file: /sources/m4/m4/m4/.cvsignore,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -u -b -r1.4.2.1 -r1.4.2.2
--- .cvsignore	15 Jun 2006 13:21:44 -0000	1.4.2.1
+++ .cvsignore	9 Jan 2007 15:58:35 -0000	1.4.2.2
@@ -1,4 +1,5 @@
 [a-fh-z]*
 g[a-mo-z]*
+gnulib-common.m4
 gnulib-comp.m4
 gnulib-tool.m4



From MAILER-DAEMON Tue Jan 09 11:12:52 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H4Jam-0005xE-1n
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:52 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H4Jak-0005wH-S4
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:51 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H4Jak-0005vQ-3A
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:50 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H4Jaj-0005vJ-Ox
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:49 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4Jai-0003l2-Hs
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:48 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H4JaF-0007Mo-Cr
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:19 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H4Jag-0003kO-HQ
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:47 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H4Jaf-0003jx-Ms
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:45 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H4Jae-0007UM-Qp
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:44 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H4Jae-0007UD-KI
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:44 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H4Jae-0007UD-KI@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 16:12:44 +0000
Cc: 
Subject: Changes to m4/NEWS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 16:12:51 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/09 16:12:43

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.1.1.1.2.87
retrieving revision 1.1.1.1.2.88
diff -u -b -r1.1.1.1.2.87 -r1.1.1.1.2.88
--- NEWS	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.87
+++ NEWS	9 Jan 2007 16:12:43 -0000	1.1.1.1.2.88
@@ -8,11 +8,11 @@
   files larger than 2GiB on some platforms.
 * Fix a regression introduced in 1.4.8 that made m4 dump core when
   invoked as 'm4 -- file'.
-* The `eval' builtin now follows C precedence rules.  Additionally,
-  short-circuit operators correctly short-circuit division by zero.
-  The undocumented alias of '=' meaning '==' in eval now triggers
-  an error, so that a future version of M4 can implement a form of
-  variable assignment as an extension.
+* The `eval' builtin now follows C precedence rules.  Additionally, the
+  short-circuit operators correctly short-circuit division by zero.  The
+  previously undocumented alias of '=' meaning '==' in eval now triggers a
+  deprecation warning, so that a future version of M4 can implement a form
+  of variable assignment as an extension.
 
 Version 1.4.8 - 20 November 2006, by Eric Blake  (CVS version 1.4.7a)
 



From MAILER-DAEMON Tue Jan 09 11:12:53 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H4Jan-0005yG-9U
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:53 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H4Jal-0005wk-EJ
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:51 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H4Jak-0005vR-5E
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:50 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H4Jaj-0005vK-Q4
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:49 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4Jai-0003l1-Jx
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:48 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H4JaF-0007Mn-AP
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:19 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H4Jag-0003k7-30
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:47 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H4Jaf-0003ju-5s
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:45 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H4Jae-0007UA-EE
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:44 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H4Jae-0007U5-4a
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:44 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H4Jae-0007U5-4a@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 16:12:44 +0000
Cc: 
Subject: m4 ChangeLog NEWS doc/m4.texinfo src/eval.c [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 16:12:51 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/09 16:12:43

Modified files:
	.              : ChangeLog NEWS 
	doc            : m4.texinfo 
	src            : eval.c 

Log message:
	* src/eval.c (ASSIGN): New enumerator.
	(eval_lex): Recognize '='.
	(equality_term): Treat '=' like '==', but warn that it is
	deprecated.
	* doc/m4.texinfo (Eval): Document and test this.
	(Incompatibilities): Document the POSIX incompatibility.
	* NEWS: Document this change.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.234&r2=1.1.1.1.2.235
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.87&r2=1.1.1.1.2.88
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.106&r2=1.1.1.1.2.107
http://cvs.savannah.gnu.org/viewcvs/m4/src/eval.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.8&r2=1.1.1.1.2.9



From MAILER-DAEMON Tue Jan 09 11:12:54 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H4Jan-0005yZ-Kv
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:53 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H4Jal-0005xP-VK
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:52 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H4Jak-0005vW-8h
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:50 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H4Jaj-0005vI-Or
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:49 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4Jaj-0003lN-Bn
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:49 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H4JaG-0007My-Bi
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:20 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H4Jah-0003kU-F6
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:47 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H4Jaf-0003jv-DE
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:45 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H4Jae-0007UG-KO
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:44 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H4Jae-0007U8-EA
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:44 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H4Jae-0007U8-EA@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 16:12:44 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 16:12:52 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/09 16:12:43

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.234
retrieving revision 1.1.1.1.2.235
diff -u -b -r1.1.1.1.2.234 -r1.1.1.1.2.235
--- ChangeLog	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.234
+++ ChangeLog	9 Jan 2007 16:12:43 -0000	1.1.1.1.2.235
@@ -1,3 +1,13 @@
+2007-01-09  Eric Blake  <ebb9@byu.net>
+
+	* src/eval.c (ASSIGN): New enumerator.
+	(eval_lex): Recognize '='.
+	(equality_term): Treat '=' like '==', but warn that it is
+	deprecated.
+	* doc/m4.texinfo (Eval): Document and test this.
+	(Incompatibilities): Document the POSIX incompatibility.
+	* NEWS: Document this change.
+
 2007-01-06  Eric Blake  <ebb9@byu.net>
 
 	* m4/gnulib-cache.m4: Augment with 'gnulib-tool --import stdint'.
@@ -3433,7 +3443,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.234 $ $Date: 2007/01/06 19:56:11 $
+	$Revision: 1.1.1.1.2.235 $ $Date: 2007/01/09 16:12:43 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Tue Jan 09 11:12:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H4Jar-000612-DV
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H4Jao-0005zD-9n
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:54 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H4Jal-0005x4-P2
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:52 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H4Jal-0005wu-KS
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:51 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4Jak-0003lk-8d
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:50 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H4JaH-0007N5-3Y
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:21 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H4Jah-0003ki-CQ
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:48 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H4Jaf-0003k0-Pu
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:45 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H4Jaf-0007Ue-8y
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:45 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H4Jaf-0007UW-2R
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:45 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H4Jaf-0007UW-2R@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 16:12:45 +0000
Cc: 
Subject: Changes to m4/src/Attic/eval.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 16:12:55 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/09 16:12:43

Index: src/eval.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/eval.c,v
retrieving revision 1.1.1.1.2.8
retrieving revision 1.1.1.1.2.9
diff -u -b -r1.1.1.1.2.8 -r1.1.1.1.2.9
--- src/eval.c	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.8
+++ src/eval.c	9 Jan 2007 16:12:43 -0000	1.1.1.1.2.9
@@ -34,7 +34,7 @@
     PLUS, MINUS,
     EXPONENT,
     TIMES, DIVIDE, MODULO,
-    EQ, NOTEQ, GT, GTEQ, LS, LSEQ,
+    ASSIGN, EQ, NOTEQ, GT, GTEQ, LS, LSEQ,
     LSHIFT, RSHIFT,
     LNOT, LAND, LOR,
     NOT, AND, OR, XOR,
@@ -215,7 +215,7 @@
 	  eval_text++;
 	  return EQ;
 	}
-      return BADOP;
+      return ASSIGN;
     case '!':
       if (*eval_text == '=')
 	{
@@ -517,7 +517,10 @@
   if ((er = cmp_term (et, v1)) != NO_ERROR)
     return er;
 
-  while ((op = eval_lex (&v2)) == EQ || op == NOTEQ)
+  /* In the 1.4.x series, we maintain the traditional behavior that
+     '=' is a synonym for '=='; however, this is contrary to POSIX and
+     we hope to convert '=' to mean assignment in 2.0.  */
+  while ((op = eval_lex (&v2)) == EQ || op == NOTEQ || op == ASSIGN)
     {
       et = eval_lex (&v2);
       if (et == ERROR)
@@ -525,6 +528,13 @@
 
       if ((er = cmp_term (et, &v2)) != NO_ERROR)
 	return er;
+
+      if (op == ASSIGN)
+      {
+	M4ERROR ((warning_status, 0, "\
+Warning: recommend ==, not =, for equality operator"));
+	op = EQ;
+      }
       *v1 = (op == EQ) == (*v1 == v2);
     }
   if (op == ERROR)



From MAILER-DAEMON Tue Jan 09 11:12:59 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H4Jaq-00060h-V3
	for mharc-m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:56 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H4Jan-0005ye-Ob
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:53 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H4Jam-0005xu-PK
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:53 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H4Jam-0005xi-De
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:52 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4Jak-0003ll-8a
	for m4-commit@gnu.org; Tue, 09 Jan 2007 11:12:50 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H4JaH-0007N4-3T
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:21 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H4Jah-0003kc-EI
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:48 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H4Jaf-0003jy-Oi
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 11:12:45 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H4Jaf-0007UY-2u
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:45 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H4Jae-0007UJ-Qx
	for m4-cvs-logs@gnu.org; Tue, 09 Jan 2007 16:12:44 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H4Jae-0007UJ-Qx@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 09 Jan 2007 16:12:44 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2007 16:12:54 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/09 16:12:43

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.106
retrieving revision 1.1.1.1.2.107
diff -u -b -r1.1.1.1.2.106 -r1.1.1.1.2.107
--- doc/m4.texinfo	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.106
+++ doc/m4.texinfo	9 Jan 2007 16:12:43 -0000	1.1.1.1.2.107
@@ -4466,10 +4466,28 @@
 @end deffn
 
 All binary operators, except exponentiation, are left associative.  C
-operators that perform variable assignment, such as @samp{=} or
+operators that perform variable assignment, such as @samp{+=} or
 @samp{--}, are forbidden by @acronym{POSIX}, since @code{eval} only
 operates on constants, not variables.  Attempting to use them results
-in an error.
+in an error.  However, since traditional implementations treated
+@samp{=} as an undocumented alias for @samp{==} as opposed to an
+assignment operator, this usage is supported as a special case.  Be
+aware that a future version of @acronym{GNU} M4 may support assignment
+semantics as an extension when @acronym{POSIX} mode is not requested,
+and that using @samp{=} to check equality is not portable.
+
+@comment status: 1
+@example
+eval(`2 = 2')
+@error{}m4:stdin:1: Warning: recommend ==, not =, for equality operator
+@result{}1
+eval(`++0')
+@error{}m4:stdin:2: invalid operator in eval: ++0
+@result{}
+eval(`0 |= 1')
+@error{}m4:stdin:3: invalid operator in eval: 0 |= 1
+@result{}
+@end example
 
 Note that some older @code{m4} implementations use @samp{^} as an
 alternate operator for the exponentiation, although @acronym{POSIX}
@@ -4492,7 +4510,6 @@
 implementations of @code{m4} require explicit parentheses to get the
 correct result:
 
-@comment status: 1
 @example
 eval(`1 == 2 > 0')
 @result{}1
@@ -4508,24 +4525,15 @@
 @result{}0
 eval(`+ + - ~ ! ~ 0')
 @result{}1
-eval(`++0')
-@error{}m4:stdin:8: invalid operator in eval: ++0
-@result{}
-eval(`1 = 1')
-@error{}m4:stdin:9: invalid operator in eval: 1 = 1
-@result{}
-eval(`0 |= 1')
-@error{}m4:stdin:10: invalid operator in eval: 0 |= 1
-@result{}
 eval(`2 || 1 / 0')
 @result{}1
 eval(`0 || 1 / 0')
-@error{}m4:stdin:12: divide by zero in eval: 0 || 1 / 0
+@error{}m4:stdin:9: divide by zero in eval: 0 || 1 / 0
 @result{}
 eval(`0 && 1 % 0')
 @result{}0
 eval(`2 && 1 % 0')
-@error{}m4:stdin:14: modulo by zero in eval: 2 && 1 % 0
+@error{}m4:stdin:11: modulo by zero in eval: 2 && 1 % 0
 @result{}
 @end example
 
@@ -5672,7 +5680,9 @@
 ensure proper precedence.  As extensions to @acronym{POSIX},
 @acronym{GNU} @code{m4} gives well-defined semantics to operations that
 C leaves undefined, such as when overflow occurs, when shifting negative
-numbers, or when performing division by zero.
+numbers, or when performing division by zero.  @acronym{POSIX} also
+requires @samp{=} to cause an error, but many traditional
+implementations allowed it as an alias for @samp{==}.
 
 @item
 @acronym{POSIX} requires @code{translit} (@pxref{Translit}) to treat



From MAILER-DAEMON Fri Jan 12 18:07:36 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5VUm-0005KP-09
	for mharc-m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:36 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5VUi-0005HW-F8
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:32 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5VUh-0005GX-La
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:31 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5VUh-0005GM-BI
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:31 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5VUg-0001Y0-T5
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:31 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5VU9-0007J6-7s
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:06:57 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5VUf-0001Xg-M2
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:30 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5VUf-0001XF-64
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:29 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5VUe-0000Ty-8d
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5VUe-0000To-24
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:28 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5VUe-0000To-24@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 12 Jan 2007 23:07:28 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Jan 2007 23:07:33 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/12 23:07:27

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -b -r1.90 -r1.91
--- doc/m4.texinfo	9 Jan 2007 05:10:19 -0000	1.90
+++ doc/m4.texinfo	12 Jan 2007 23:07:27 -0000	1.91
@@ -1257,18 +1257,21 @@
 @code{m4} offers several mechanisms or techniques for inhibiting the
 recognition of names as macro calls.
 
-First of all, many builtin macros cannot meaningfully be called
-without arguments.  For any of these macros, whenever an opening
-parenthesis does not immediately follow their name, the builtin macro
-call is not triggered.  This solves the most usual cases, like for
-@samp{include} or @samp{eval}.  Later in this document, the sentence
-``This macro is recognized only with parameters'' refers to this
-specific provision.
-
-@comment FIXME - The feature of blind macros is incompatible with
-@comment @acronym{POSIX} and @comment traditional implementations.
-@comment Should we  suppress it with the @comment @option{--traditional}
-@comment or @option{-G} command line option?
+@cindex @acronym{GNU} extensions
+@cindex blind macro
+@cindex macro, blind
+First of all, many builtin macros cannot meaningfully be called without
+arguments.  As a @acronym{GNU} extension, for any of these macros,
+whenever an opening parenthesis does not immediately follow their name,
+the builtin macro call is not triggered.  This solves the most usual
+cases, like for @samp{include} or @samp{eval}.  Later in this document,
+the sentence ``This macro is recognized only with parameters'' refers to
+this specific provision of @acronym{GNU} M4, also known as a blind
+builtin macro.  For the builtins defined by @acronym{POSIX} that bear
+this disclaimer, @acronym{POSIX} specifically states that invoking those
+builtins without arguments is unspecified, because many other
+implementations simply invoke the builtin as though it were given one
+empty argument instead.
 
 @example
 $ @kbd{m4}
@@ -1278,16 +1281,6 @@
 @result{}1
 @end example
 
-@comment options: -G
-@comment xfail
-@example
-$ @kbd{m4 -G}
-eval
-@result{}0
-eval(`1')
-@result{}1
-@end example
-
 There is also a command line option (@option{--prefix-builtins}, or
 @option{-P}, @pxref{Operation modes, , Invoking m4}) that renames all
 builtin macros with a prefix of @samp{m4_} at startup.  The option has
@@ -2588,10 +2581,12 @@
 @result{}false
 @end example
 
+@cindex macro, blind
+@cindex blind macro
 Notice how the first argument was used unquoted; it is common to compare
 the expansion of a macro with a string.  With this macro, you can now
-reproduce the behavior of many of the builtins, where the macro is
-recognized only with arguments.
+reproduce the behavior of blind builtins, where the macro is recognized
+only with arguments.
 
 @example
 define(`foo', `ifelse(`$#', `0', ``$0'', `arguments:$#')')



From MAILER-DAEMON Fri Jan 12 18:07:36 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5VUm-0005Kg-9r
	for mharc-m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:36 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5VUj-0005I6-5A
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:33 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5VUh-0005Gb-LF
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:32 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5VUh-0005GL-B4
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:31 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5VUg-0001Xy-SP
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:30 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5VU9-0007J4-6g
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:06:57 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5VUf-0001XX-Ki
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:30 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5VUf-0001XE-5t
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:29 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5VUe-0000Tr-2B
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5VUd-0000Tk-So
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:27 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5VUd-0000Tk-So@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 12 Jan 2007 23:07:27 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Jan 2007 23:07:33 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/12 23:07:27

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.475
retrieving revision 1.476
diff -u -b -r1.475 -r1.476
--- ChangeLog	9 Jan 2007 05:10:19 -0000	1.475
+++ ChangeLog	12 Jan 2007 23:07:27 -0000	1.476
@@ -1,3 +1,12 @@
+2007-01-12  Eric Blake  <ebb9@byu.net>
+
+	* m4/syntax.c (m4_set_comment): XCU ERN 131 was approved by
+	POSIX, so update the comment.
+	* doc/m4.texinfo (Inhibiting Invocation): XCU ERN 130 was
+	approved by POSIX, so we can always have blind macros, even when
+	POSIXLY_CORRECT.
+	(Ifelse): Mention the term `blind builtin'.
+
 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	* doc/m4.texinfo: Fix a couple of typos.
@@ -8449,7 +8458,7 @@
 
 	-----
 
-	$Revision: 1.475 $ $Date: 2007/01/09 05:10:19 $
+	$Revision: 1.476 $ $Date: 2007/01/12 23:07:27 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Fri Jan 12 18:07:36 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5VUm-0005LD-ND
	for mharc-m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:36 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5VUj-0005I8-70
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:33 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5VUi-0005Gx-2P
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:32 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5VUh-0005Gq-S2
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:31 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5VUh-0001Y8-HH
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:31 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5VU9-0007JC-TI
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:06:57 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5VUf-0001Xb-L8
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:31 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5VUf-0001XG-5z
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:29 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5VUe-0000U3-Eb
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5VUe-0000Tw-8X
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:28 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5VUe-0000Tw-8X@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 12 Jan 2007 23:07:28 +0000
Cc: 
Subject: Changes to m4/m4/syntax.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Jan 2007 23:07:33 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/12 23:07:27

Index: m4/syntax.c
===================================================================
RCS file: /sources/m4/m4/m4/syntax.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- m4/syntax.c	23 Dec 2006 00:02:20 -0000	1.19
+++ m4/syntax.c	12 Jan 2007 23:07:27 -0000	1.20
@@ -1,6 +1,6 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2002, 2004, 2006 Free
-   Software Foundation, Inc.
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2002, 2004, 2006, 2007
+   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
@@ -611,13 +611,13 @@
   free (syntax->bcomm.string);
   free (syntax->ecomm.string);
 
-  /* POSIX requires no arguments to disable comments.  It requires
-     empty arguments to be used as-is, but this is counter to
-     traditional behavior, because a non-null begin and null end makes
-     it impossible to end a comment.  An aardvark has been filed:
-     http://www.opengroup.org/austin/mailarchives/ag-review/msg02168.html
-     This implementation assumes the aardvark will be approved.  See
-     the texinfo for what some other implementations do.  */
+  /* POSIX requires no arguments to disable comments, and that one
+     argument use newline as the close-comment.  POSIX XCU ERN 131
+     states that empty arguments invoke implementation-defined
+     behavior.  We allow an empty begin comment to disable comments,
+     and a non-empty begin comment will always create a non-empty end
+     comment.  See the texinfo for what some other implementations
+     do.  */
   if (!bc)
     bc = ec = "";
   else if (!ec || (*bc && !*ec))



From MAILER-DAEMON Fri Jan 12 18:07:37 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5VUm-0005La-Tb
	for mharc-m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:36 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5VUj-0005Hy-8L
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:33 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5VUh-0005Fv-2n
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:32 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5VUg-0005Fs-VG
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:30 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5VUg-0001Xv-MW
	for m4-commit@gnu.org; Fri, 12 Jan 2007 18:07:30 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5VU9-0007J3-10
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:06:57 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5VUf-0001XR-Qu
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:30 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5VUf-0001XD-61
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 18:07:29 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5VUd-0000Tm-Ss
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5VUd-0000Ti-Kp
	for m4-cvs-logs@gnu.org; Fri, 12 Jan 2007 23:07:27 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5VUd-0000Ti-Kp@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Fri, 12 Jan 2007 23:07:27 +0000
Cc: 
Subject: m4 ChangeLog doc/m4.texinfo m4/syntax.c
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Jan 2007 23:07:33 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/12 23:07:27

Modified files:
	.              : ChangeLog 
	doc            : m4.texinfo 
	m4             : syntax.c 

Log message:
	* m4/syntax.c (m4_set_comment): XCU ERN 131 was approved by
	POSIX, so update the comment.
	* doc/m4.texinfo (Inhibiting Invocation): XCU ERN 130 was
	approved by POSIX, so we can always have blind macros, even when
	POSIXLY_CORRECT.
	(Ifelse): Mention the term `blind builtin'.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.475&r2=1.476
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&r1=1.90&r2=1.91
http://cvs.savannah.gnu.org/viewcvs/m4/m4/syntax.c?cvsroot=m4&r1=1.19&r2=1.20



From MAILER-DAEMON Sat Jan 13 08:33:22 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5j0c-0000pe-50
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:22 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5j0Y-0000mj-7y
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5j0X-0000mP-MS
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:17 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5j0X-0000mL-Ft
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:17 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5j0W-0002il-S1
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:16 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5izy-0006Vp-BH
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:32:42 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5j0V-0002iP-Ih
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:15 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5j0V-0002iM-BY
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:15 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5j0U-0004nz-Ot
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:14 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5j0U-0004nb-7k
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:14 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5j0U-0004nb-7k@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:33:14 +0000
Cc: 
Subject: m4 ChangeLog NEWS THANKS configure.ac src/stack... [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:33:18 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/13 13:33:14

Modified files:
	.              : ChangeLog NEWS THANKS configure.ac 
	src            : stackovf.c 

Log message:
	* configure.ac (AC_CHECK_MEMBERS): Check for stack_t.ss_sp, and
	assume the fallback of ss_base for BSDI 4.0.1.
	* src/stackovf.c (setup_stackovf_trap) [HAVE_SIGALTSTACK &&
	! HAVE_STACK_T_SS_SP]: Use this check.
	Reported by Chris McGuire.
	* THANKS: Update.
	* NEWS: Document the improvement.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.235&r2=1.1.1.1.2.236
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.88&r2=1.1.1.1.2.89
http://cvs.savannah.gnu.org/viewcvs/m4/THANKS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.24&r2=1.1.1.1.2.25
http://cvs.savannah.gnu.org/viewcvs/m4/configure.ac?cvsroot=m4&only_with_tag=branch-1_4&r1=1.36.2.33&r2=1.36.2.34
http://cvs.savannah.gnu.org/viewcvs/m4/src/stackovf.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.6&r2=1.1.1.1.2.7



From MAILER-DAEMON Sat Jan 13 08:33:23 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5j0d-0000qc-4g
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:23 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5j0Z-0000nV-Ku
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:19 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5j0Y-0000mu-G1
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5j0Y-0000mn-98
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5j0X-0002jG-VA
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5izz-0006Vv-Be
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:32:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5j0W-0002ip-Vo
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5j0W-0002if-LO
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:16 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5j0V-0004oX-LA
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:15 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5j0V-0004oE-7M
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:15 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5j0V-0004oE-7M@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:33:15 +0000
Cc: 
Subject: Changes to m4/NEWS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:33:20 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/13 13:33:14

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.1.1.1.2.88
retrieving revision 1.1.1.1.2.89
diff -u -b -r1.1.1.1.2.88 -r1.1.1.1.2.89
--- NEWS	9 Jan 2007 16:12:43 -0000	1.1.1.1.2.88
+++ NEWS	13 Jan 2007 13:33:13 -0000	1.1.1.1.2.89
@@ -13,6 +13,7 @@
   previously undocumented alias of '=' meaning '==' in eval now triggers a
   deprecation warning, so that a future version of M4 can implement a form
   of variable assignment as an extension.
+* Improved portability to platforms such as BSD/OS.
 
 Version 1.4.8 - 20 November 2006, by Eric Blake  (CVS version 1.4.7a)
 



From MAILER-DAEMON Sat Jan 13 08:33:23 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5j0c-0000qJ-QS
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:22 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5j0Y-0000mz-Jo
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5j0X-0000mW-SE
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5j0X-0000mN-Mg
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:17 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5j0W-0002in-Uu
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:17 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5izy-0006Vq-F0
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:32:42 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5j0W-0002ib-74
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:16 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5j0V-0002iT-U2
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:16 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5j0V-0004oG-7i
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:15 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5j0U-0004nx-Pw
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:14 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5j0U-0004nx-Pw@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:33:14 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:33:19 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/13 13:33:14

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.235
retrieving revision 1.1.1.1.2.236
diff -u -b -r1.1.1.1.2.235 -r1.1.1.1.2.236
--- ChangeLog	9 Jan 2007 16:12:43 -0000	1.1.1.1.2.235
+++ ChangeLog	13 Jan 2007 13:33:13 -0000	1.1.1.1.2.236
@@ -1,3 +1,13 @@
+2007-01-13  Eric Blake  <ebb9@byu.net>
+
+	* configure.ac (AC_CHECK_MEMBERS): Check for stack_t.ss_sp, and
+	assume the fallback of ss_base for BSDI 4.0.1.
+	* src/stackovf.c (setup_stackovf_trap) [HAVE_SIGALTSTACK &&
+	! HAVE_STACK_T_SS_SP]: Use this check.
+	Reported by Chris McGuire.
+	* THANKS: Update.
+	* NEWS: Document the improvement.
+
 2007-01-09  Eric Blake  <ebb9@byu.net>
 
 	* src/eval.c (ASSIGN): New enumerator.
@@ -3443,7 +3453,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.235 $ $Date: 2007/01/09 16:12:43 $
+	$Revision: 1.1.1.1.2.236 $ $Date: 2007/01/13 13:33:13 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 13 08:33:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5j0g-0000sT-3p
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5j0a-0000om-QB
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:20 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5j0Z-0000nC-6Q
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:19 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5j0Y-0000n0-M3
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5j0Y-0002jQ-7u
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5izz-0006Vy-OG
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:32:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5j0X-0002j4-9k
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5j0W-0002ii-Qa
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:16 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5j0W-0004oq-4s
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:16 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5j0V-0004oU-Ke
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:15 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5j0V-0004oU-Ke@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:33:15 +0000
Cc: 
Subject: Changes to m4/THANKS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:33:21 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/13 13:33:14

Index: THANKS
===================================================================
RCS file: /sources/m4/m4/THANKS,v
retrieving revision 1.1.1.1.2.24
retrieving revision 1.1.1.1.2.25
diff -u -b -r1.1.1.1.2.24 -r1.1.1.1.2.25
--- THANKS	5 Jan 2007 03:00:12 -0000	1.1.1.1.2.24
+++ THANKS	13 Jan 2007 13:33:13 -0000	1.1.1.1.2.25
@@ -22,6 +22,7 @@
 Bob Badour		bob@badour.net
 Brendan Kehoe		brendan@cygnus.com
 Bruno Haible		bruno@clisp.org
+Chris McGuire		chris@wso.net
 Damian Menscher		menscher@uiuc.edu
 Dan Jacobson		jidanni@jidanni.org
 David J. MacKenzie	djm@uunet.uu.net



From MAILER-DAEMON Sat Jan 13 08:33:26 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5j0g-0000sa-DY
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5j0c-0000pR-0a
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5j0Z-0000nv-QF
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5j0Z-0000nd-Dw
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:19 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5j0Z-0002jr-4D
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:19 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5j00-0006W4-J7
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:32:44 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5j0Y-0002jV-BK
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5j0Y-0002jE-1c
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5j0X-0004pI-9O
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:17 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5j0W-0004p5-JS
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:16 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5j0W-0004p5-JS@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:33:16 +0000
Cc: 
Subject: Changes to m4/src/stackovf.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:33:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/13 13:33:14

Index: src/stackovf.c
===================================================================
RCS file: /sources/m4/m4/src/stackovf.c,v
retrieving revision 1.1.1.1.2.6
retrieving revision 1.1.1.1.2.7
diff -u -b -r1.1.1.1.2.6 -r1.1.1.1.2.7
--- src/stackovf.c	3 Aug 2006 12:51:05 -0000	1.1.1.1.2.6
+++ src/stackovf.c	13 Jan 2007 13:33:13 -0000	1.1.1.1.2.7
@@ -1,5 +1,5 @@
 /* Detect stack overflow (when getrlimit and sigaction or sigvec are available)
-   Copyright (C) 1993, 1994, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1994, 2006, 2007 Free Software Foundation, Inc.
    Jim Avera <jima@netcom.com>, October 1993.
 
    This program is free software; you can redistribute it and/or modify
@@ -341,6 +341,11 @@
 
   {
     stack_t ss;
+# ifndef HAVE_STACK_T_SS_SP
+    /* This workaround is for BSD/OS 4.0.1:
+       http://lists.gnu.org/archive/html/bug-m4/2006-12/msg00004.html  */
+#  define ss_sp ss_base
+# endif
 
     ss.ss_size = SIGSTKSZ;
     ss.ss_sp = xmalloc ((unsigned) ss.ss_size);



From MAILER-DAEMON Sat Jan 13 08:33:27 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5j0g-0000sz-O7
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:26 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5j0c-0000pW-0E
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5j0Z-0000nk-Pj
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:20 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5j0Z-0000nU-9B
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:19 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5j0Y-0002jj-Sg
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5j00-0006W1-CM
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:32:44 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5j0Y-0002jJ-08
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:18 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5j0X-0002iw-KF
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:33:17 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5j0W-0004p8-I1
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:16 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5j0W-0004oh-3L
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:33:16 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5j0W-0004oh-3L@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:33:16 +0000
Cc: 
Subject: Changes to m4/configure.ac,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:33:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/13 13:33:14

Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.36.2.33
retrieving revision 1.36.2.34
diff -u -b -r1.36.2.33 -r1.36.2.34
--- configure.ac	5 Jan 2007 02:50:03 -0000	1.36.2.33
+++ configure.ac	13 Jan 2007 13:33:13 -0000	1.36.2.34
@@ -44,6 +44,12 @@
 AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], [], [],
 [[#include <signal.h>
 ]])
+AC_CHECK_MEMBERS([stack_t.ss_sp], [], [],
+[[#include <signal.h>
+#if HAVE_SIGINFO_H
+# include <siginfo.h>
+#endif
+]])
 
 AC_TYPE_SIGNAL
 AC_TYPE_SIZE_T



From MAILER-DAEMON Sat Jan 13 08:55:51 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMN-0007DL-P9
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:51 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMK-0007Av-Sm
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:48 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMI-00077z-9b
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:46 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMH-000778-3v
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jME-0006QD-KD
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:43 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLf-0007ff-Jk
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:07 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jMB-0006Oi-AC
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:39 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMB-0006OU-0e
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:39 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMA-0007Eq-EJ
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMA-0007Ek-7f
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMA-0007Ek-7f@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:38 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:50 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.476
retrieving revision 1.477
diff -u -b -r1.476 -r1.477
--- ChangeLog	12 Jan 2007 23:07:27 -0000	1.476
+++ ChangeLog	13 Jan 2007 13:55:37 -0000	1.477
@@ -1,3 +1,19 @@
+2007-01-13  Eric Blake  <ebb9@byu.net>
+
+	* doc/m4.texinfo (Mpeval): Add tests.
+	* tests/testsuite.at (AT_CHECK_GMP): New filter, factored from...
+	* tests/builtins.at (gmp): ...here.  Rename test to...
+	(mpeval): ...this.
+	* tests/generate.awk (new_test): Filter out mpeval tests when gmp
+	is not available.
+	* m4/m4module.h (m4_get_no_gnu_extensions_opt): Merge
+	no_gnu_extensions with posixly_correct_opt, since they were set in
+	sync.
+	* m4/m4private.h (struct m4): Remove no_gnu_extensions.
+	* src/main.c (main): Update caller.
+	* src/freeze.c (reload_frozen_state): Likewise.
+	* modules/m4.c (m4wrap): Likewise.
+
 2007-01-12  Eric Blake  <ebb9@byu.net>
 
 	* m4/syntax.c (m4_set_comment): XCU ERN 131 was approved by
@@ -8458,7 +8474,7 @@
 
 	-----
 
-	$Revision: 1.476 $ $Date: 2007/01/12 23:07:27 $
+	$Revision: 1.477 $ $Date: 2007/01/13 13:55:37 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 13 08:55:52 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMN-0007DT-UE
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:51 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMK-0007AJ-94
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:48 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMI-00077v-3m
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:46 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMH-000771-2l
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMF-0006QK-Vf
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:44 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLh-0007fo-79
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:09 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jMC-0006P5-5X
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMB-0006Oj-MI
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:39 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMB-0007FA-1L
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMA-0007F0-SD
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMA-0007F0-SD@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:38 +0000
Cc: 
Subject: Changes to m4/m4/m4private.h,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:50 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: m4/m4private.h
===================================================================
RCS file: /sources/m4/m4/m4/m4private.h,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -b -r1.75 -r1.76
--- m4/m4private.h	6 Jan 2007 19:56:54 -0000	1.75
+++ m4/m4private.h	13 Jan 2007 13:55:37 -0000	1.76
@@ -64,7 +64,6 @@
   int		current_diversion;	/* Current output diversion.  */
 
   /* Option flags  (set in src/main.c).  */
-  bool		no_gnu_extensions;		/* -G */
   size_t	nesting_limit;			/* -L */
   int		debug_level;			/* -d */
   size_t	max_debug_arg_length;		/* -l */
@@ -80,7 +79,7 @@
 #define M4_OPT_DISCARD_COMMENTS_BIT	(1 << 2) /* -c */
 #define M4_OPT_INTERACTIVE_BIT		(1 << 3) /* -e */
 #define M4_OPT_SYNCOUTPUT_BIT		(1 << 4) /* -s */
-#define M4_OPT_POSIXLY_CORRECT_BIT	(1 << 5) /* POSIXLY_CORRECT */
+#define M4_OPT_POSIXLY_CORRECT_BIT	(1 << 5) /* -G/POSIXLY_CORRECT */
 #define M4_OPT_FATAL_WARN_BIT		(1 << 6) /* -E */
 #define M4_OPT_SAFER_BIT		(1 << 7) /* --safer */
 
@@ -105,8 +104,6 @@
 #  define m4_set_exit_status(C, V)		((C)->exit_status = (V))
 #  define m4_get_current_diversion(C)		((C)->current_diversion)
 #  define m4_set_current_diversion(C, V)	((C)->current_diversion = (V))
-#  define m4_get_no_gnu_extensions_opt(C)	((C)->no_gnu_extensions)
-#  define m4_set_no_gnu_extensions_opt(C, V)	((C)->no_gnu_extensions = (V))
 #  define m4_get_nesting_limit_opt(C)		((C)->nesting_limit)
 #  define m4_set_nesting_limit_opt(C, V)	((C)->nesting_limit = (V))
 #  define m4_get_debug_level_opt(C)		((C)->debug_level)



From MAILER-DAEMON Sat Jan 13 08:55:55 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMP-0007FA-RU
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:53 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jML-0007BR-N5
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:49 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMH-00077i-HO
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:46 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMH-000777-3r
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMF-0006QG-Ir
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:43 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLg-0007fi-Sj
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:09 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jMB-0006Oc-Cl
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMA-0006OS-Od
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:38 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMA-0007Em-7r
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jM9-0007Ei-Qo
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jM9-0007Ei-Qo@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:37 +0000
Cc: 
Subject: m4 ChangeLog doc/m4.texinfo m4/m4module.h m4/m4...
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:51 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Modified files:
	.              : ChangeLog 
	doc            : m4.texinfo 
	m4             : m4module.h m4private.h path.c 
	modules        : m4.c 
	src            : freeze.c main.c 
	tests          : builtins.at generate.awk testsuite.at 

Log message:
	* doc/m4.texinfo (Mpeval): Add tests.
	* tests/testsuite.at (AT_CHECK_GMP): New filter, factored from...
	* tests/builtins.at (gmp): ...here.  Rename test to...
	(mpeval): ...this.
	* tests/generate.awk (new_test): Filter out mpeval tests when gmp
	is not available.
	* m4/m4module.h (m4_get_no_gnu_extensions_opt): Merge
	no_gnu_extensions with posixly_correct_opt, since they were set in
	sync.
	* m4/m4private.h (struct m4): Remove no_gnu_extensions.
	* src/main.c (main): Update caller.
	* src/freeze.c (reload_frozen_state): Likewise.
	* modules/m4.c (m4wrap): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.476&r2=1.477
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&r1=1.91&r2=1.92
http://cvs.savannah.gnu.org/viewcvs/m4/m4/m4module.h?cvsroot=m4&r1=1.103&r2=1.104
http://cvs.savannah.gnu.org/viewcvs/m4/m4/m4private.h?cvsroot=m4&r1=1.75&r2=1.76
http://cvs.savannah.gnu.org/viewcvs/m4/m4/path.c?cvsroot=m4&r1=1.23&r2=1.24
http://cvs.savannah.gnu.org/viewcvs/m4/modules/m4.c?cvsroot=m4&r1=1.100&r2=1.101
http://cvs.savannah.gnu.org/viewcvs/m4/src/freeze.c?cvsroot=m4&r1=1.57&r2=1.58
http://cvs.savannah.gnu.org/viewcvs/m4/src/main.c?cvsroot=m4&r1=1.106&r2=1.107
http://cvs.savannah.gnu.org/viewcvs/m4/tests/builtins.at?cvsroot=m4&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/m4/tests/generate.awk?cvsroot=m4&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/m4/tests/testsuite.at?cvsroot=m4&r1=1.26&r2=1.27



From MAILER-DAEMON Sat Jan 13 08:55:55 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMQ-0007Fk-8V
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:54 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMK-0007AK-SM
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:48 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMI-000787-8Z
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:46 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMH-000779-46
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jME-0006Q7-L0
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:43 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLf-0007fe-HW
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:07 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jMB-0006Ox-St
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:40 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMB-0006OW-9d
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:39 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMA-0007Ew-Ky
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMA-0007Eo-DB
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMA-0007Eo-DB@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:38 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:52 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -b -r1.91 -r1.92
--- doc/m4.texinfo	12 Jan 2007 23:07:27 -0000	1.91
+++ doc/m4.texinfo	13 Jan 2007 13:55:37 -0000	1.92
@@ -6054,6 +6054,17 @@
 The macro @code{mpeval} is recognized only with parameters.
 @end deffn
 
+For the most part, using @code{mpeval} is similar to using @code{eval}:
+
+@comment options: -m mpeval
+@example
+$ @kbd{m4 -m mpeval}
+mpeval(`(1 << 70) + 2 ** 68 * 3', `16')
+@result{}700000000000000000
+`0r24:'mpeval(`0r36:zYx', `24', `5')
+@result{}0r24:038m9
+@end example
+
 The ratio operator, @samp{\}, is provided with the same precedence as
 division, and rationally divides two numbers and canonicalizes the
 result, whereas the division operator @samp{/} always returns the
@@ -6072,8 +6083,22 @@
 even in @acronym{POSIX} mode, since @code{mpeval} does not have to
 conform to the @acronym{POSIX} rules for @code{eval}.
 
-@comment fixme - need some examples, but conditional on whether modules
-@comment and mpeval are both supported
+@comment options: -m mpeval
+@example
+$ @kbd{m4 -m mpeval}
+mpeval(`2 / 4')
+@result{}0
+mpeval(`2 \ 4')
+@result{}1\2
+mpeval(`2 || 3')
+@result{}2
+mpeval(`1 && 3')
+@result{}3
+mpeval(`-1 >> 1')
+@result{}-1
+mpeval(`-1 >>> 1')
+@result{}-1
+@end example
 
 @node Shell commands
 @chapter Macros for running shell commands



From MAILER-DAEMON Sat Jan 13 08:55:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMS-0007IX-Uj
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:56 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMP-0007Dw-Eg
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:53 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMM-0007AU-1x
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:50 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMJ-000799-Ia
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:47 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMH-0006R3-EY
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLi-0007fz-Mj
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:10 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jME-0006Q9-BM
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:43 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMC-0006Os-Dn
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMB-0007FM-Ew
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMB-0007FC-7U
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMB-0007FC-7U@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:39 +0000
Cc: 
Subject: Changes to m4/modules/m4.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:54 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: modules/m4.c
===================================================================
RCS file: /sources/m4/m4/modules/m4.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -b -r1.100 -r1.101
--- modules/m4.c	6 Jan 2007 19:56:54 -0000	1.100
+++ modules/m4.c	13 Jan 2007 13:55:37 -0000	1.101
@@ -873,7 +873,7 @@
 M4BUILTIN_HANDLER (m4wrap)
 {
   assert (obstack_object_size (obs) == 0);
-  if (m4_get_no_gnu_extensions_opt (context))
+  if (m4_get_posixly_correct_opt (context))
     m4_shipout_string (context, obs, M4ARG (1), 0, false);
   else
     m4_dump_args (context, obs, argc, argv, " ", false);



From MAILER-DAEMON Sat Jan 13 08:55:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMT-0007In-5G
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMO-0007DX-4I
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:52 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMK-0007AC-Cw
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:49 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMJ-000795-IR
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:47 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMH-0006R1-Cw
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLi-0007g1-NU
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:10 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jMD-0006PT-U0
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:44 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMB-0006Oo-U8
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:40 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMB-0007FE-7a
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMB-0007F7-1I
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMB-0007F7-1I@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:39 +0000
Cc: 
Subject: Changes to m4/m4/path.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:55 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: m4/path.c
===================================================================
RCS file: /sources/m4/m4/m4/path.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- m4/path.c	9 Oct 2006 21:06:33 -0000	1.23
+++ m4/path.c	13 Jan 2007 13:55:37 -0000	1.24
@@ -1,6 +1,6 @@
 /* GNU m4 -- A simple macro processor
 
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1998, 2004, 2006
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1998, 2004, 2006, 2007
    Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -102,7 +102,7 @@
 {
   char *m4path;
 
-  if (m4_get_no_gnu_extensions_opt (context))
+  if (m4_get_posixly_correct_opt (context))
     return;
 
   m4path = getenv ("M4PATH");
@@ -115,7 +115,7 @@
 void
 m4_add_include_directory (m4 *context, const char *dir, bool prepend)
 {
-  if (m4_get_no_gnu_extensions_opt (context))
+  if (m4_get_posixly_correct_opt (context))
     return;
 
   search_path_add (m4__get_search_path (context), dir, prepend);
@@ -153,7 +153,7 @@
 
   /* If file is absolute, or if we are not searching a path, a single
      lookup will do the trick.  */
-  if (IS_ABSOLUTE_FILE_NAME (file) || m4_get_no_gnu_extensions_opt (context))
+  if (IS_ABSOLUTE_FILE_NAME (file) || m4_get_posixly_correct_opt (context))
     {
       fp = fopen (file, "r");
       if (fp != NULL)



From MAILER-DAEMON Sat Jan 13 08:55:58 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMT-0007Ji-LK
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMP-0007FG-NK
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:53 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMJ-00079Q-T9
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:49 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMJ-00078z-AN
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:47 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMH-0006R4-Ev
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLi-0007g2-OQ
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:10 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jME-0006Pu-31
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:44 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMC-0006P9-Rp
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMC-0007Fe-0A
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:40 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMB-0007FV-Q8
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMB-0007FV-Q8@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:39 +0000
Cc: 
Subject: Changes to m4/tests/builtins.at,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:55 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: tests/builtins.at
===================================================================
RCS file: /sources/m4/m4/tests/builtins.at,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- tests/builtins.at	16 Nov 2006 14:42:38 -0000	1.35
+++ tests/builtins.at	13 Jan 2007 13:55:37 -0000	1.36
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU M4.                               -*- Autotest -*-
-# Copyright (C) 2001, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2006, 2007 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
@@ -320,140 +320,6 @@
 
 
 
-## --- ##
-## gmp ##
-## --- ##
-
-AT_SETUP([gmp])
-AT_CHECK_DYNAMIC_MODULE
-
-# cannot perform test without --with-gmp
-AT_CHECK([test "$USE_GMP" = yes || exit 77])
-
-AT_DATA([[in]],
-[[divert(-1)
-# forloop(i, from, to, stmt)
-
-define(`forloop', `pushdef(`$1', `$2')_forloop(`$1', `$2', `$3', `$4')popdef(`$1')')
-define(`_forloop',
-       `$4`'ifelse($1, `$3', ,
-			 `define(`$1', incr($1))_forloop(`$1', `$2', `$3', `$4')')')
-divert
-forloop(`x', 1, 100, `2**x = mpeval(2**x)
-')
-]])
-
-AT_DATA([[expout]],
-[[
-2**1 = 2
-2**2 = 4
-2**3 = 8
-2**4 = 16
-2**5 = 32
-2**6 = 64
-2**7 = 128
-2**8 = 256
-2**9 = 512
-2**10 = 1024
-2**11 = 2048
-2**12 = 4096
-2**13 = 8192
-2**14 = 16384
-2**15 = 32768
-2**16 = 65536
-2**17 = 131072
-2**18 = 262144
-2**19 = 524288
-2**20 = 1048576
-2**21 = 2097152
-2**22 = 4194304
-2**23 = 8388608
-2**24 = 16777216
-2**25 = 33554432
-2**26 = 67108864
-2**27 = 134217728
-2**28 = 268435456
-2**29 = 536870912
-2**30 = 1073741824
-2**31 = 2147483648
-2**32 = 4294967296
-2**33 = 8589934592
-2**34 = 17179869184
-2**35 = 34359738368
-2**36 = 68719476736
-2**37 = 137438953472
-2**38 = 274877906944
-2**39 = 549755813888
-2**40 = 1099511627776
-2**41 = 2199023255552
-2**42 = 4398046511104
-2**43 = 8796093022208
-2**44 = 17592186044416
-2**45 = 35184372088832
-2**46 = 70368744177664
-2**47 = 140737488355328
-2**48 = 281474976710656
-2**49 = 562949953421312
-2**50 = 1125899906842624
-2**51 = 2251799813685248
-2**52 = 4503599627370496
-2**53 = 9007199254740992
-2**54 = 18014398509481984
-2**55 = 36028797018963968
-2**56 = 72057594037927936
-2**57 = 144115188075855872
-2**58 = 288230376151711744
-2**59 = 576460752303423488
-2**60 = 1152921504606846976
-2**61 = 2305843009213693952
-2**62 = 4611686018427387904
-2**63 = 9223372036854775808
-2**64 = 18446744073709551616
-2**65 = 36893488147419103232
-2**66 = 73786976294838206464
-2**67 = 147573952589676412928
-2**68 = 295147905179352825856
-2**69 = 590295810358705651712
-2**70 = 1180591620717411303424
-2**71 = 2361183241434822606848
-2**72 = 4722366482869645213696
-2**73 = 9444732965739290427392
-2**74 = 18889465931478580854784
-2**75 = 37778931862957161709568
-2**76 = 75557863725914323419136
-2**77 = 151115727451828646838272
-2**78 = 302231454903657293676544
-2**79 = 604462909807314587353088
-2**80 = 1208925819614629174706176
-2**81 = 2417851639229258349412352
-2**82 = 4835703278458516698824704
-2**83 = 9671406556917033397649408
-2**84 = 19342813113834066795298816
-2**85 = 38685626227668133590597632
-2**86 = 77371252455336267181195264
-2**87 = 154742504910672534362390528
-2**88 = 309485009821345068724781056
-2**89 = 618970019642690137449562112
-2**90 = 1237940039285380274899124224
-2**91 = 2475880078570760549798248448
-2**92 = 4951760157141521099596496896
-2**93 = 9903520314283042199192993792
-2**94 = 19807040628566084398385987584
-2**95 = 39614081257132168796771975168
-2**96 = 79228162514264337593543950336
-2**97 = 158456325028528675187087900672
-2**98 = 316912650057057350374175801344
-2**99 = 633825300114114700748351602688
-2**100 = 1267650600228229401496703205376
-
-]])
-
-AT_CHECK_M4([-m mpeval in], 0, expout)
-
-AT_CLEANUP
-
-
-
 ## ------- ##
 ## include ##
 ## ------- ##
@@ -630,6 +496,138 @@
 AT_CLEANUP
 
 
+## ------ ##
+## mpeval ##
+## ------ ##
+
+AT_SETUP([mpeval])
+AT_CHECK_DYNAMIC_MODULE
+AT_CHECK_GMP
+
+AT_DATA([[in]],
+[[divert(-1)
+# forloop(i, from, to, stmt)
+
+define(`forloop', `pushdef(`$1', `$2')_forloop(`$1', `$2', `$3', `$4')popdef(`$1')')
+define(`_forloop',
+       `$4`'ifelse($1, `$3', ,
+			 `define(`$1', incr($1))_forloop(`$1', `$2', `$3', `$4')')')
+divert
+forloop(`x', 1, 100, `2**x = mpeval(2**x)
+')
+]])
+
+AT_DATA([[expout]],
+[[
+2**1 = 2
+2**2 = 4
+2**3 = 8
+2**4 = 16
+2**5 = 32
+2**6 = 64
+2**7 = 128
+2**8 = 256
+2**9 = 512
+2**10 = 1024
+2**11 = 2048
+2**12 = 4096
+2**13 = 8192
+2**14 = 16384
+2**15 = 32768
+2**16 = 65536
+2**17 = 131072
+2**18 = 262144
+2**19 = 524288
+2**20 = 1048576
+2**21 = 2097152
+2**22 = 4194304
+2**23 = 8388608
+2**24 = 16777216
+2**25 = 33554432
+2**26 = 67108864
+2**27 = 134217728
+2**28 = 268435456
+2**29 = 536870912
+2**30 = 1073741824
+2**31 = 2147483648
+2**32 = 4294967296
+2**33 = 8589934592
+2**34 = 17179869184
+2**35 = 34359738368
+2**36 = 68719476736
+2**37 = 137438953472
+2**38 = 274877906944
+2**39 = 549755813888
+2**40 = 1099511627776
+2**41 = 2199023255552
+2**42 = 4398046511104
+2**43 = 8796093022208
+2**44 = 17592186044416
+2**45 = 35184372088832
+2**46 = 70368744177664
+2**47 = 140737488355328
+2**48 = 281474976710656
+2**49 = 562949953421312
+2**50 = 1125899906842624
+2**51 = 2251799813685248
+2**52 = 4503599627370496
+2**53 = 9007199254740992
+2**54 = 18014398509481984
+2**55 = 36028797018963968
+2**56 = 72057594037927936
+2**57 = 144115188075855872
+2**58 = 288230376151711744
+2**59 = 576460752303423488
+2**60 = 1152921504606846976
+2**61 = 2305843009213693952
+2**62 = 4611686018427387904
+2**63 = 9223372036854775808
+2**64 = 18446744073709551616
+2**65 = 36893488147419103232
+2**66 = 73786976294838206464
+2**67 = 147573952589676412928
+2**68 = 295147905179352825856
+2**69 = 590295810358705651712
+2**70 = 1180591620717411303424
+2**71 = 2361183241434822606848
+2**72 = 4722366482869645213696
+2**73 = 9444732965739290427392
+2**74 = 18889465931478580854784
+2**75 = 37778931862957161709568
+2**76 = 75557863725914323419136
+2**77 = 151115727451828646838272
+2**78 = 302231454903657293676544
+2**79 = 604462909807314587353088
+2**80 = 1208925819614629174706176
+2**81 = 2417851639229258349412352
+2**82 = 4835703278458516698824704
+2**83 = 9671406556917033397649408
+2**84 = 19342813113834066795298816
+2**85 = 38685626227668133590597632
+2**86 = 77371252455336267181195264
+2**87 = 154742504910672534362390528
+2**88 = 309485009821345068724781056
+2**89 = 618970019642690137449562112
+2**90 = 1237940039285380274899124224
+2**91 = 2475880078570760549798248448
+2**92 = 4951760157141521099596496896
+2**93 = 9903520314283042199192993792
+2**94 = 19807040628566084398385987584
+2**95 = 39614081257132168796771975168
+2**96 = 79228162514264337593543950336
+2**97 = 158456325028528675187087900672
+2**98 = 316912650057057350374175801344
+2**99 = 633825300114114700748351602688
+2**100 = 1267650600228229401496703205376
+
+]])
+
+AT_CHECK_M4([-m mpeval in], 0, expout)
+
+AT_CLEANUP
+
+
+
 ## ----------- ##
 ## multiquotes ##
 ## ----------- ##



From MAILER-DAEMON Sat Jan 13 08:55:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMT-0007JC-Fl
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMO-0007E2-RI
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:53 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jML-0007AZ-MV
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:49 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMJ-000797-F7
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:47 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMH-0006Qz-9C
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLi-0007fy-Lg
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:10 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jMD-0006PZ-SG
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:43 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMD-0006PB-09
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMC-0007Fo-DM
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:40 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMC-0007Fi-8g
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:40 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMC-0007Fi-8g@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:40 +0000
Cc: 
Subject: Changes to m4/tests/testsuite.at,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:55 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: tests/testsuite.at
===================================================================
RCS file: /sources/m4/m4/tests/testsuite.at,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- tests/testsuite.at	6 Oct 2006 18:24:32 -0000	1.26
+++ tests/testsuite.at	13 Jan 2007 13:55:37 -0000	1.27
@@ -1,7 +1,7 @@
 # Process with autom4te to create an -*- Autotest -*- test suite.
 
 # Test suite for GNU M4.
-# Copyright (C) 2001, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2006, 2007 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
@@ -117,6 +117,17 @@
   exit 77
 fi])])
 
+# AT_CHECK_GMP
+# -----------------------
+# Add keyword `gmp' to the test, and skip the test if the use of GMP
+# was disabled at configure time.
+m4_define([AT_CHECK_GMP],
+[AT_KEYWORDS([gmp])
+AT_CHECK([if test "x$USE_GMP" = xno ; then
+  echo libgmp support not detected, skipping this test.
+  exit 77
+fi])])
+
 ## ----------- ##
 ## The suite.  ##
 ## ----------- ##



From MAILER-DAEMON Sat Jan 13 08:55:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMQ-0007GP-Lu
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:54 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jML-0007BG-HJ
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:49 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMH-00077L-GV
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:46 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMH-000773-2c
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMG-0006QP-8a
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:44 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLh-0007fr-GO
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:09 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jMD-0006PE-6T
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMB-0006OY-IL
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:39 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMA-0007F3-SF
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMA-0007Eu-Ks
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:38 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMA-0007Eu-Ks@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:38 +0000
Cc: 
Subject: Changes to m4/m4/m4module.h,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:53 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: m4/m4module.h
===================================================================
RCS file: /sources/m4/m4/m4/m4module.h,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -b -r1.103 -r1.104
--- m4/m4module.h	6 Jan 2007 19:56:53 -0000	1.103
+++ m4/m4module.h	13 Jan 2007 13:55:37 -0000	1.104
@@ -142,7 +142,6 @@
 	M4FIELD(m4_obstack,	   trace_messages, trace_messages)	\
 	M4FIELD(int,		   exit_status,	   exit_status)		\
 	M4FIELD(int,	current_diversion,	   current_diversion)	\
-	M4FIELD(bool,	no_gnu_extensions_opt,	   no_gnu_extensions)	\
 	M4FIELD(size_t,	nesting_limit_opt,	   nesting_limit)	\
 	M4FIELD(int,	debug_level_opt,	   debug_level)		\
 	M4FIELD(size_t,	max_debug_arg_length_opt,  max_debug_arg_length)\



From MAILER-DAEMON Sat Jan 13 08:56:01 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMW-0007Mk-IT
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:56:00 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMS-0007Ib-Vc
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:57 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMM-0007Bi-AA
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:50 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMJ-000793-Ey
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:47 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMH-0006R0-CR
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLi-0007g3-PL
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:10 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jME-0006Ph-8X
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:44 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMC-0006P1-QG
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMB-0007FY-QN
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMB-0007FO-Jq
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMB-0007FO-Jq@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:39 +0000
Cc: 
Subject: Changes to m4/src/main.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:58 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: src/main.c
===================================================================
RCS file: /sources/m4/m4/src/main.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -b -r1.106 -r1.107
--- src/main.c	6 Jan 2007 19:56:54 -0000	1.106
+++ src/main.c	13 Jan 2007 13:55:37 -0000	1.107
@@ -364,7 +364,6 @@
 
   if (getenv ("POSIXLY_CORRECT"))
     {
-      m4_set_no_gnu_extensions_opt (context, true);
       m4_set_posixly_correct_opt (context, true);
       m4_set_suppress_warnings_opt (context, true);
     }
@@ -469,7 +468,6 @@
 	break;
 
       case 'G':
-	m4_set_no_gnu_extensions_opt (context, true);
 	m4_set_posixly_correct_opt (context, true);
 	break;
 
@@ -546,7 +544,6 @@
 	break;
 
       case 'g':
-	m4_set_no_gnu_extensions_opt (context, false);
 	m4_set_posixly_correct_opt (context, false);
 	break;
 
@@ -622,7 +619,7 @@
   else
     {
       m4_module_load (context, "m4", 0);
-      if (m4_get_no_gnu_extensions_opt (context))
+      if (m4_get_posixly_correct_opt (context))
 	m4_module_load (context, "traditional", 0);
       else
 	m4_module_load (context, "gnu", 0);



From MAILER-DAEMON Sat Jan 13 08:56:00 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMV-0007LE-Sn
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:59 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMS-0007Hk-6o
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:56 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jML-0007Bd-T1
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:52 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMJ-00079I-CK
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:47 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMH-0006R2-CL
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLi-0007g0-Na
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:10 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jME-0006Pp-9G
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:44 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMC-0006Ov-HC
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMB-0007FR-Ji
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMB-0007FI-EH
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:39 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMB-0007FI-EH@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:39 +0000
Cc: 
Subject: Changes to m4/src/freeze.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:57 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: src/freeze.c
===================================================================
RCS file: /sources/m4/m4/src/freeze.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -b -r1.57 -r1.58
--- src/freeze.c	23 Dec 2006 00:02:21 -0000	1.57
+++ src/freeze.c	13 Jan 2007 13:55:37 -0000	1.58
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006, 2007
    Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -462,7 +462,7 @@
     case 1:
       {
 	m4__module_open (context, "m4", NULL);
-	if (m4_get_no_gnu_extensions_opt (context))
+	if (m4_get_posixly_correct_opt (context))
 	  m4__module_open (context, "traditional", NULL);
 	else
 	  m4__module_open (context, "gnu", NULL);



From MAILER-DAEMON Sat Jan 13 08:56:02 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H5jMX-0007Oq-Tt
	for mharc-m4-commit@gnu.org; Sat, 13 Jan 2007 08:56:01 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H5jMQ-0007GD-FI
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:54 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H5jMK-0007A6-Do
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:50 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H5jMJ-000796-FK
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:47 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jMH-0006R6-FC
	for m4-commit@gnu.org; Sat, 13 Jan 2007 08:55:45 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H5jLi-0007g4-Pt
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:10 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H5jME-0006Q2-36
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:43 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H5jMC-0006PA-Vg
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 08:55:41 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H5jMC-0007Fl-7k
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:40 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H5jMC-0007Fc-0V
	for m4-cvs-logs@gnu.org; Sat, 13 Jan 2007 13:55:40 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H5jMC-0007Fc-0V@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 13 Jan 2007 13:55:40 +0000
Cc: 
Subject: Changes to m4/tests/generate.awk,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Jan 2007 13:55:59 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/13 13:55:37

Index: tests/generate.awk
===================================================================
RCS file: /sources/m4/m4/tests/generate.awk,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- tests/generate.awk	8 Nov 2006 19:06:00 -0000	1.24
+++ tests/generate.awk	13 Jan 2007 13:55:37 -0000	1.25
@@ -1,7 +1,7 @@
 # Extract all examples from the manual source.            -*- AWK -*-
 
 # This file is part of GNU M4
-# Copyright (C) 1992, 2000, 2001, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1992, 2000, 2001, 2006, 2007 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
@@ -172,6 +172,8 @@
 
   if (options ~ /-m/)
     printf ("AT_CHECK_DYNAMIC_MODULE\n");
+  if (options ~ /-m mpeval/)
+    printf ("AT_CHECK_GMP\n");
   if (xfail == 1)
     printf ("AT_XFAIL_IF([:])\n");
 



From MAILER-DAEMON Mon Jan 15 08:51:45 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SFV-0001kI-KO
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SFR-0001fX-SL
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:42 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SFQ-0001c5-70
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SFQ-0001bf-2E
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:40 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SFP-0008JB-1F
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:39 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SEn-0001gH-GL
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:01 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SFN-0008IM-6W
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:37 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SFM-0008GS-D4
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:36 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SFK-0001Fe-1M
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SFJ-0001Fa-Lb
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SFJ-0001Fa-Lb@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 13:51:33 +0000
Cc: 
Subject: m4 ChangeLog NEWS doc/m4.texinfo src/builtin.c [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 13:51:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/15 13:51:33

Modified files:
	.              : ChangeLog NEWS 
	doc            : m4.texinfo 
	src            : builtin.c 

Log message:
	* doc/m4.texinfo: Pull in various improvements from head.
	* src/builtin.c (include): Alter exit status on failure.
	* NEWS: Document this fix.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.236&r2=1.1.1.1.2.237
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.89&r2=1.1.1.1.2.90
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.107&r2=1.1.1.1.2.108
http://cvs.savannah.gnu.org/viewcvs/m4/src/builtin.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.53&r2=1.1.1.1.2.54



From MAILER-DAEMON Mon Jan 15 08:51:48 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SFX-0001mz-Rx
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SFV-0001jD-6G
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:45 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SFS-0001gM-JX
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:43 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SFR-0001fI-OB
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SFQ-0008JZ-Nf
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SEp-0001gO-83
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:03 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SFN-0008Ih-77
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:38 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SFM-0008GX-DH
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:36 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SFK-0001Fw-Ma
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SFK-0001Fm-Ea
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SFK-0001Fm-Ea@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 13:51:34 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 13:51:46 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/15 13:51:33

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.107
retrieving revision 1.1.1.1.2.108
diff -u -b -r1.1.1.1.2.107 -r1.1.1.1.2.108
--- doc/m4.texinfo	9 Jan 2007 16:12:43 -0000	1.1.1.1.2.107
+++ doc/m4.texinfo	15 Jan 2007 13:51:33 -0000	1.1.1.1.2.108
@@ -377,7 +377,7 @@
 
 More recently, in 2004, Paul Eggert released 1.4.1 and 1.4.2 which
 addressed some long standing bugs in the venerable 1.4 release.  Then in
-2005 Gary V. Vaughan collected together the many patches to
+2005, Gary V. Vaughan collected together the many patches to
 @acronym{GNU} @code{m4} 1.4 that were floating around the net and
 released 1.4.3 and 1.4.4.  And in 2006, Eric Blake joined the team and
 prepared patches for the release of 1.4.5, 1.4.6, 1.4.7, and 1.4.8.  The
@@ -551,8 +551,8 @@
 
 @item -E
 @itemx --fatal-warnings
-Stop execution and exit @code{m4} once the first warning has been
-issued, considering all of them to be fatal.
+Stop execution and exit @code{m4} once the first warning or error has
+been issued, considering all of them to be fatal.
 
 @item -i
 @itemx --interactive
@@ -805,7 +805,9 @@
 is not a part of either a name or a string.  Input to @code{m4} can also
 contain comments.  @acronym{GNU} @code{m4} does not yet understand
 locales; all operations are byte-oriented rather than
-character-oriented.  However, @code{m4} is eight-bit clean, so you can
+character-oriented (although if your locale uses a single byte
+encoding, such as @sc{ISO-8859-1}, you will not notice a difference).
+However, @code{m4} is eight-bit clean, so you can
 use non-@sc{ascii} characters in quoted strings (@pxref{Changequote}),
 comments (@pxref{Changecom}), and macro names (@pxref{Indir}), with the
 exception of the @sc{nul} character (the zero byte @samp{'\0'}).
@@ -1014,13 +1016,28 @@
 @code{m4} offers several mechanisms or techniques for inhibiting the
 recognition of names as macro calls.
 
-First of all, many builtin macros cannot meaningfully be called
-without arguments.  For any of these macros, whenever an opening
-parenthesis does not immediately follow their name, the builtin macro
-call is not triggered.  This solves the most usual cases, like for
-@samp{include} or @samp{eval}.  Later in this document, the sentence
-``This macro is recognized only with parameters'' refers to this
-specific provision.
+@cindex @acronym{GNU} extensions
+@cindex blind macro
+@cindex macro, blind
+First of all, many builtin macros cannot meaningfully be called without
+arguments.  As a @acronym{GNU} extension, for any of these macros,
+whenever an opening parenthesis does not immediately follow their name,
+the builtin macro call is not triggered.  This solves the most usual
+cases, like for @samp{include} or @samp{eval}.  Later in this document,
+the sentence ``This macro is recognized only with parameters'' refers to
+this specific provision of @acronym{GNU} M4, also known as a blind
+builtin macro.  For the builtins defined by @acronym{POSIX} that bear
+this disclaimer, @acronym{POSIX} specifically states that invoking those
+builtins without arguments is unspecified, because many other
+implementations simply invoke the builtin as though it were given one
+empty argument instead.
+
+@example
+eval
+@result{}eval
+eval(`1')
+@result{}1
+@end example
 
 There is also a command line option (@option{--prefix-builtins}, or
 @option{-P}, @pxref{Operation modes, , Invoking m4}) that renames all
@@ -2045,10 +2062,12 @@
 @result{}false
 @end example
 
+@cindex macro, blind
+@cindex blind macro
 Notice how the first argument was used unquoted; it is common to compare
 the expansion of a macro with a string.  With this macro, you can now
-reproduce the behavior of many of the builtins, where the macro is
-recognized only with arguments.
+reproduce the behavior of blind builtins, where the macro is recognized
+only with arguments.
 
 @example
 define(`foo', `ifelse(`$#', `0', ``$0'', `arguments:$#')')
@@ -2499,7 +2518,8 @@
 @deffn Builtin traceon (@ovar{names@dots{}})
 @deffnx Builtin traceoff (@ovar{names@dots{}})
 When called without any arguments, @code{traceon} and @code{traceoff}
-will turn tracing on and off, respectively, for all defined macros.
+will turn tracing on and off, respectively, for all currently defined
+macros.
 
 When called with arguments, only the macros listed in @var{names} are
 affected, whether or not they are currently defined.
@@ -2594,54 +2614,66 @@
 
 @cindex controlling debugging output
 @cindex debugging output, controlling
-The @option{-d} option to @code{m4} (@pxref{Debugging options, ,
-Invoking m4}) controls the amount of details presented, when using the
-macros described in the preceding sections.
+The @option{-d} option to @code{m4} (or @option{--debug},
+@pxref{Debugging options, , Invoking m4}) controls the amount of details
+presented in three
+categories of output.  Trace output is requested by @code{traceon}
+(@pxref{Trace}), and each line is prefixed by @samp{m4trace:} in
+relation to a macro invocation.  Debug output tracks useful events not
+associated with a macro invocation, and each line is prefixed by
+@samp{m4debug:}.  Finally, @code{dumpdef} (@pxref{Dumpdef}) output is
+affected, with no prefix added to the output lines.
 
 The @var{flags} following the option can be one or more of the
 following:
 
 @table @code
 @item a
-Show the actual arguments in each macro call.  This applies to all macro
-calls if the @samp{t} flag is used, otherwise only the macros covered by
-calls of @code{traceon}.
+In trace output, show the actual arguments that were collected before
+invoking the macro.  This applies to all macro calls if the @samp{t}
+flag is used, otherwise only the macros covered by calls of
+@code{traceon}.
 
 @item c
-Show several trace lines for each macro call.  A line is shown when the
-macro is seen, but before the arguments are collected; a second line
-when the arguments have been collected and a third line after the call
-has completed.
+In trace output, show several trace lines for each macro call.  A line
+is shown when the macro is seen, but before the arguments are collected;
+a second line when the arguments have been collected and a third line
+after the call has completed.
 
 @item e
-Show the expansion of each macro call, if it is not void.  This applies
-to all macro calls if the @samp{t} flag is used, otherwise only the
-macros covered by calls of @code{traceon}.
+In trace output, show the expansion of each macro call, if it is not
+void.  This applies to all macro calls if the @samp{t} flag is used,
+otherwise only the macros covered by calls of @code{traceon}.
 
 @item f
-Show the name of the current input file in each trace output line.
+In debug and trace output, include the name of the current input file in
+the output line.
 
 @item i
-Print a message each time the current input file is changed, giving file
-name and input line number.
+In debug output, print a message each time the current input file is
+changed.
 
 @item l
-Show the current input line number in each trace output line.
+In debug and trace output, include the current input line number in the
+output line.
 
 @item p
-Print a message when a named file is found through the path search
-mechanism (@pxref{Search Path}), giving the actual file name used.
+In debug output, print a message when a named file is found through the
+path search mechanism (@pxref{Search Path}), giving the actual file name
+used.
 
 @item q
-Quote actual arguments and macro expansions in the display with the
-current quotes.
+In trace and dumpdef output, quote actual arguments and macro expansions
+in the display with the current quotes.  This is useful in connection
+with the @samp{a} and @samp{e} flags above.
 
 @item t
-Trace all macro calls made in this invocation of @code{m4}.
+In trace output, trace all macro calls made in this invocation of
+@code{m4}, regardless of the settings of @code{traceon}.
 
 @item x
-Add a unique `macro call id' to each line of the trace output.  This is
-useful in connection with the @samp{c} flag above.
+In trace output, add a unique `macro call id' to each line of the trace
+output.  This is useful in connection with the @samp{c} flag above.
 
 @item V
 A shorthand for all of the above flags.
@@ -3488,6 +3520,7 @@
 parameters.
 @end deffn
 
+@comment status: 1
 @example
 include(`none')
 @error{}m4:stdin:1: cannot open `none': No such file or directory
@@ -4706,8 +4739,8 @@
 @section Determining the platform
 
 @cindex platform macros
-Sometimes it is desirable for an input file to know which
-platform @code{m4} is running on.  @acronym{GNU} @code{m4} provides several
+Sometimes it is desirable for an input file to know which platform
+@code{m4} is running on.  @acronym{GNU} @code{m4} provides several
 macros that are predefined to expand to the empty string; checking for
 their existence will confirm platform details.
 



From MAILER-DAEMON Mon Jan 15 08:51:51 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SFb-0001t8-4w
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:51 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SFW-0001lS-Eo
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:46 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SFT-0001hc-9a
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:44 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SFR-0001fH-O4
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SFQ-0008Jb-Nm
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SEp-0001gR-8K
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:03 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SFO-0008Ib-1c
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:38 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SFM-0008GV-DF
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:36 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SFK-0001Fq-FE
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SFK-0001Fg-74
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SFK-0001Fg-74@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 13:51:34 +0000
Cc: 
Subject: Changes to m4/NEWS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 13:51:48 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/15 13:51:33

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.1.1.1.2.89
retrieving revision 1.1.1.1.2.90
diff -u -b -r1.1.1.1.2.89 -r1.1.1.1.2.90
--- NEWS	13 Jan 2007 13:33:13 -0000	1.1.1.1.2.89
+++ NEWS	15 Jan 2007 13:51:33 -0000	1.1.1.1.2.90
@@ -13,6 +13,8 @@
   previously undocumented alias of '=' meaning '==' in eval now triggers a
   deprecation warning, so that a future version of M4 can implement a form
   of variable assignment as an extension.
+* The `include' builtin now affects exit status on failure, as required by
+  POSIX.  Use `sinclude' if you need a successful exit status.
 * Improved portability to platforms such as BSD/OS.
 
 Version 1.4.8 - 20 November 2006, by Eric Blake  (CVS version 1.4.7a)



From MAILER-DAEMON Mon Jan 15 08:51:51 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SFa-0001sa-Tr
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:51 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SFW-0001kp-CY
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:46 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SFR-0001fm-Uq
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:43 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SFR-0001f1-LQ
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SFP-0008JQ-Uy
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:40 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SEo-0001gK-FL
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:02 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SFN-0008IV-82
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:38 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SFM-0008Gi-D8
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:36 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SFK-0001G1-SJ
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SFK-0001Ft-Ml
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SFK-0001Ft-Ml@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 13:51:34 +0000
Cc: 
Subject: Changes to m4/src/Attic/builtin.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 13:51:47 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/15 13:51:33

Index: src/builtin.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/builtin.c,v
retrieving revision 1.1.1.1.2.53
retrieving revision 1.1.1.1.2.54
diff -u -b -r1.1.1.1.2.53 -r1.1.1.1.2.54
--- src/builtin.c	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.53
+++ src/builtin.c	15 Jan 2007 13:51:33 -0000	1.1.1.1.2.54
@@ -1209,8 +1209,10 @@
   if (fp == NULL)
     {
       if (!silent)
-	M4ERROR ((warning_status, errno,
-		  "cannot open `%s'", ARG (1)));
+	{
+	  M4ERROR ((warning_status, errno, "cannot open `%s'", ARG (1)));
+	  retcode = EXIT_FAILURE;
+	}
       return;
     }
 



From MAILER-DAEMON Mon Jan 15 08:51:51 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SFb-0001tQ-8M
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:51 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SFW-0001mD-Jw
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:47 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SFT-0001hI-6f
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:44 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SFR-0001fJ-O8
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SFQ-0008Ja-Nv
	for m4-commit@gnu.org; Mon, 15 Jan 2007 08:51:41 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SEp-0001gP-87
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:03 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SFN-0008IO-HK
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:38 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SFM-0008GU-DC
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 08:51:36 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SFK-0001Fj-7B
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SFK-0001Fc-0q
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 13:51:34 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SFK-0001Fc-0q@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 13:51:34 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 13:51:48 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/15 13:51:33

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.236
retrieving revision 1.1.1.1.2.237
diff -u -b -r1.1.1.1.2.236 -r1.1.1.1.2.237
--- ChangeLog	13 Jan 2007 13:33:13 -0000	1.1.1.1.2.236
+++ ChangeLog	15 Jan 2007 13:51:32 -0000	1.1.1.1.2.237
@@ -1,3 +1,9 @@
+2007-01-15  Eric Blake  <ebb9@byu.net>
+
+	* doc/m4.texinfo: Pull in various improvements from head.
+	* src/builtin.c (include): Alter exit status on failure.
+	* NEWS: Document this fix.
+
 2007-01-13  Eric Blake  <ebb9@byu.net>
 
 	* configure.ac (AC_CHECK_MEMBERS): Check for stack_t.ss_sp, and
@@ -3453,7 +3459,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.236 $ $Date: 2007/01/13 13:33:13 $
+	$Revision: 1.1.1.1.2.237 $ $Date: 2007/01/15 13:51:32 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Mon Jan 15 09:04:42 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS1-0005b1-8e
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SRx-0005Xx-70
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRw-0005XP-F1
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRw-0005XG-A7
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRu-0002W1-2w
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:34 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRI-0002U2-2G
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:56 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRp-0002UZ-OH
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:30 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRp-0002UA-3j
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:29 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRo-0001Vd-33
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRn-0001VW-TK
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:27 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRn-0001VW-TK@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:27 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:39 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.477
retrieving revision 1.478
diff -u -b -r1.477 -r1.478
--- ChangeLog	13 Jan 2007 13:55:37 -0000	1.477
+++ ChangeLog	15 Jan 2007 14:04:26 -0000	1.478
@@ -1,3 +1,20 @@
+2007-01-15  Eric Blake  <ebb9@byu.net>
+
+	* tests/builtins.at (__m4_version__): New test.
+	* modules/traditional.c (m4_macro_table): Provide windows and os2
+	macros, as appropriate.  Add __traditional__ macro.
+	* modules/mpeval.c (m4_macro_table): Name the macro __mpeval__,
+	not __gmp__, to match module name.
+	* modules/load.c (m4_macro_table): Name the macro __load__, not
+	__modules__, to match module name.
+	* doc/m4.texinfo (History, Shell commands, Platform macros): Merge
+	from the branch.
+	(Standard Modules): Improve wording.
+	(Incompatibilities): Move platform macros into their own node.
+	(Load, Unload): Use actual examples.
+	* NEWS: Document this change.
+	* THANKS: Update.
+
 2007-01-13  Eric Blake  <ebb9@byu.net>
 
 	* doc/m4.texinfo (Mpeval): Add tests.
@@ -8474,7 +8491,7 @@
 
 	-----
 
-	$Revision: 1.477 $ $Date: 2007/01/13 13:55:37 $
+	$Revision: 1.478 $ $Date: 2007/01/15 14:04:26 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Mon Jan 15 09:04:46 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS6-0005eS-3k
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:46 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005au-N4
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRy-0005Z2-M3
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:39 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Y3-CM
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002WW-4R
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRK-0002UC-FO
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRs-0002VF-Ji
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRr-0002Un-8w
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRq-0001WV-0A
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:30 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRp-0001WN-Nj
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRp-0001WN-Nj@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:29 +0000
Cc: 
Subject: Changes to m4/tests/modules.at,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:42 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: tests/modules.at
===================================================================
RCS file: /sources/m4/m4/tests/modules.at,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- tests/modules.at	3 Oct 2006 12:57:18 -0000	1.23
+++ tests/modules.at	15 Jan 2007 14:04:27 -0000	1.24
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU M4.                               -*- Autotest -*-
-# Copyright (C) 2001, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2006, 2007 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
@@ -67,6 +67,32 @@
 AT_CLEANUP([frozen.m4f])
 
 
+## ------------------ ##
+## module test macros ##
+## ------------------ ##
+
+AT_SETUP([module test macros])
+AT_CHECK_DYNAMIC_MODULE
+AT_CHECK_GMP
+
+AT_DATA([in], [[load(`mpeval')
+-__load__-__mpeval__-
+unload(`mpeval')
+-__load__-__mpeval__-
+unload(`load')
+-__load__-__mpeval__-
+]])
+
+AT_CHECK_M4([-m load in], [0], [[
+---
+
+--__mpeval__-
+
+-__load__-__mpeval__-
+]])
+
+AT_CLEANUP
+
 
 ## ---------------------------- ##
 ## Exercising the test module.  ##



From MAILER-DAEMON Mon Jan 15 09:04:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS6-0005ew-Lw
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:46 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005aw-Lx
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRy-0005Yi-4p
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Y4-CQ
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002Wc-Cr
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRK-0002UJ-Sp
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRs-0002VZ-Ky
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:33 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRq-0002UJ-I4
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRo-0001W2-Ts
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRo-0001Vu-Mw
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRo-0001Vu-Mw@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:28 +0000
Cc: 
Subject: Changes to m4/modules/gnu.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: modules/gnu.c
===================================================================
RCS file: /sources/m4/m4/modules/gnu.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -b -r1.70 -r1.71
--- modules/gnu.c	23 Dec 2006 00:02:20 -0000	1.70
+++ modules/gnu.c	15 Jan 2007 14:04:27 -0000	1.71
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 2000, 2004, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2004, 2005, 2006, 2007 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
@@ -89,10 +89,14 @@
 m4_macro m4_macro_table[] =
 {
   /* name			text */
-#ifdef _WIN32
+#if UNIX
+  { "__unix__",		"" },
+#elif W32_NATIVE
   { "__windows__",		"" },
+#elif OS2
+  { "__os2__",		"" },
 #else
-  { "__unix__",			"" },
+# warning Platform macro not provided
 #endif
   { "__gnu__",			"" },
   { "__m4_version__",		VERSION/**/TIMESTAMP },



From MAILER-DAEMON Mon Jan 15 09:04:46 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS6-0005ea-C8
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:46 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005ad-29
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:40 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRx-0005Xo-1F
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRw-0005Xh-TZ
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRu-0002W7-I7
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRI-0002U3-7C
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:56 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRq-0002Up-Iu
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRp-0002UD-Af
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:29 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRo-0001Vk-AS
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRo-0001Vb-2d
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRo-0001Vb-2d@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:28 +0000
Cc: 
Subject: Changes to m4/NEWS,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- NEWS	6 Jan 2007 19:56:53 -0000	1.35
+++ NEWS	15 Jan 2007 14:04:26 -0000	1.36
@@ -127,6 +127,9 @@
   - FIXME: This feature can cause core dumps when renaming multiple
   symbols to the same name.
 
+*** New `__traditional__' builtin identifies when the traditional module
+    is loaded instead of the gnu module.
+
 *** The `modules' and `symbols' builtins, introduced in previous betas,
     have been renamed `m4modules' and `m4symbols', in order to minimize
     problems when upgrading from 1.4.x and processing English text.  To



From MAILER-DAEMON Mon Jan 15 09:04:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS6-0005fE-SZ
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:46 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005av-Jb
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRy-0005Yn-6F
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Xv-7Y
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002WY-4s
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRJ-0002U7-BJ
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRq-0002Ui-IK
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRp-0002UE-Hv
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:29 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRo-0001Vp-GY
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRo-0001Vh-AX
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRo-0001Vh-AX@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:28 +0000
Cc: 
Subject: Changes to m4/THANKS,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: THANKS
===================================================================
RCS file: /sources/m4/m4/THANKS,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- THANKS	14 Oct 2006 14:16:23 -0000	1.10
+++ THANKS	15 Jan 2007 14:04:26 -0000	1.11
@@ -29,6 +29,7 @@
 Brian D. Carlstrom	bdc@clark.lcs.mit.edu
 Bruno Haible		bruno@clisp.org
 Charles Wilson		cygwin@cwilson.fastmail.fm
+Chris McGuire		chris@wso.net
 Damian Menscher		menscher@uiuc.edu
 Dan Jacobson		jidanni@jidanni.org
 David J. MacKenzie	djm@uunet.uu.net
@@ -108,6 +109,7 @@
 Roderick Koehle		Roderick.Koehle@infineon.com
 Roland H. Pesch		roland@wrs.com
 Roland McGrath		roland@gnu.org
+Sami Liedes		sliedes@cc.hut.fi
 Santiago Vila		sanvila@debian.org
 Scott Bartram		deneb!scottb
 Simon Leinen		simon@lia.di.epfl.ch
@@ -136,7 +138,7 @@
 coding: utf-8
 End:
 
-Copyright (C) 2000, 2006 Free Software Foundation, Inc.
+Copyright (C) 2000, 2006, 2007 Free Software Foundation, Inc.
 
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.2 or



From MAILER-DAEMON Mon Jan 15 09:04:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS7-0005fW-56
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005ax-NA
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRy-0005YV-6O
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Y1-CN
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002WX-4T
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRK-0002UD-FV
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRs-0002VK-9F
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRr-0002Uf-1G
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRp-0001WJ-HR
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRp-0001WB-Ap
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRp-0001WB-Ap@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:29 +0000
Cc: 
Subject: Changes to m4/modules/traditional.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: modules/traditional.c
===================================================================
RCS file: /sources/m4/m4/modules/traditional.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- modules/traditional.c	26 Sep 2006 13:19:26 -0000	1.5
+++ modules/traditional.c	15 Jan 2007 14:04:27 -0000	1.6
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 2000, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2006, 2007 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
@@ -28,6 +28,15 @@
 m4_macro m4_macro_table[] =
 {
   /* name		text */
+#if UNIX
   { "unix",		"" },
-  { 0,			0 },
+#elif W32_NATIVE
+  { "windows",		"" },
+#elif OS2
+  { "os2",		"" },
+#else
+# warning Platform macro not provided
+#endif
+  { "__traditional__",	"" },
+  { NULL,		NULL },
 };



From MAILER-DAEMON Mon Jan 15 09:04:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS7-0005fy-Eh
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005az-Nq
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRy-0005ZA-H9
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:39 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Y2-CO
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002Wb-Br
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRK-0002UK-Sk
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRs-0002Vj-Ll
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:33 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRq-0002UP-Hb
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRp-0001W7-46
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRo-0001W0-Tk
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRo-0001W0-Tk@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:28 +0000
Cc: 
Subject: Changes to m4/modules/load.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: modules/load.c
===================================================================
RCS file: /sources/m4/m4/modules/load.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- modules/load.c	26 Sep 2006 13:19:26 -0000	1.20
+++ modules/load.c	15 Jan 2007 14:04:27 -0000	1.21
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 2000, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2005, 2006, 2007 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
@@ -63,7 +63,7 @@
 m4_macro m4_macro_table[] =
 {
   /* name			text */
-  { "__modules__",		"" },
+  { "__load__",		"" },
   { NULL, NULL },
 };
 



From MAILER-DAEMON Mon Jan 15 09:04:48 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS7-0005gQ-OQ
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005af-HK
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRx-0005YN-U2
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Xw-7b
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002WN-2l
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRJ-0002U8-GX
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:57 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRp-0002UK-Bg
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRo-0002U9-Po
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:28 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRn-0001VY-T2
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:27 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRn-0001VU-GM
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:27 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRn-0001VU-GM@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:27 +0000
Cc: 
Subject: m4 ChangeLog NEWS THANKS doc/m4.texinfo modules...
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Modified files:
	.              : ChangeLog NEWS THANKS 
	doc            : m4.texinfo 
	modules        : gnu.c load.c mpeval.c traditional.c 
	tests          : builtins.at modules.at 

Log message:
	* tests/builtins.at (__m4_version__): New test.
	* modules/traditional.c (m4_macro_table): Provide windows and os2
	macros, as appropriate.  Add __traditional__ macro.
	* modules/mpeval.c (m4_macro_table): Name the macro __mpeval__,
	not __gmp__, to match module name.
	* modules/load.c (m4_macro_table): Name the macro __load__, not
	__modules__, to match module name.
	* doc/m4.texinfo (History, Shell commands, Platform macros): Merge
	from the branch.
	(Standard Modules): Improve wording.
	(Incompatibilities): Move platform macros into their own node.
	(Load, Unload): Use actual examples.
	* NEWS: Document this change.
	* THANKS: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.477&r2=1.478
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/m4/THANKS?cvsroot=m4&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&r1=1.92&r2=1.93
http://cvs.savannah.gnu.org/viewcvs/m4/modules/gnu.c?cvsroot=m4&r1=1.70&r2=1.71
http://cvs.savannah.gnu.org/viewcvs/m4/modules/load.c?cvsroot=m4&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/m4/modules/mpeval.c?cvsroot=m4&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/m4/modules/traditional.c?cvsroot=m4&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/m4/tests/builtins.at?cvsroot=m4&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/m4/tests/modules.at?cvsroot=m4&r1=1.23&r2=1.24



From MAILER-DAEMON Mon Jan 15 09:04:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS7-0005gG-Jj
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005ap-OO
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRy-0005Yb-6r
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Y5-CS
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002We-Cv
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRK-0002UI-T3
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRs-0002Ve-Qj
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:33 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRr-0002Um-8r
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRp-0001WP-Nq
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRp-0001WG-HN
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRp-0001WG-HN@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:29 +0000
Cc: 
Subject: Changes to m4/tests/builtins.at,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: tests/builtins.at
===================================================================
RCS file: /sources/m4/m4/tests/builtins.at,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- tests/builtins.at	13 Jan 2007 13:55:37 -0000	1.36
+++ tests/builtins.at	15 Jan 2007 14:04:27 -0000	1.37
@@ -71,6 +71,23 @@
 AT_CLEANUP
 
 
+## -------------- ##
+## __m4_version__ ##
+## -------------- ##
+
+AT_SETUP([__m4_@&t@version__])
+
+AT_DATA([in], [[__m4_version__
+]])
+AT_CHECK_M4([--version], [0], [stdout])
+AT_CHECK([[sed -e 's/.*(GNU M4 \(.*\)) \([^ ]*\).*/\2 \1/;q' < stdout]],
+[0], [stdout])
+mv stdout expout
+AT_CHECK_M4([in], [0], [expout])
+
+AT_CLEANUP
+
+
 ## ----- ##
 ## debug ##
 ## ----- ##



From MAILER-DAEMON Mon Jan 15 09:04:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS7-0005fn-9Q
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:47 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS0-0005at-Mn
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SRx-0005YI-Jo
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SRx-0005Xy-7d
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:37 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRw-0002WO-2o
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRJ-0002U9-Ga
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:03:57 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRq-0002Ux-P2
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRp-0002UF-U8
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:30 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRo-0001Vw-No
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRo-0001Vn-Gd
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:28 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRo-0001Vn-Gd@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:28 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:43 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -b -r1.92 -r1.93
--- doc/m4.texinfo	13 Jan 2007 13:55:37 -0000	1.92
+++ doc/m4.texinfo	15 Jan 2007 14:04:26 -0000	1.93
@@ -396,11 +396,13 @@
 limitations.
 
 More recently, in 2004, Paul Eggert released 1.4.1 and 1.4.2 which
-addressed some long standing bugs in the venerable 1.4 release.
-Then in 2005 Gary V. Vaughan collected together the many
-patches to @acronym{GNU} @code{m4} 1.4 that were floating around the net and
+addressed some long standing bugs in the venerable 1.4 release.  Then in
+2005, Gary V. Vaughan collected together the many patches to
+@acronym{GNU} @code{m4} 1.4 that were floating around the net and
 released 1.4.3 and 1.4.4.  And in 2006, Eric Blake joined the team and
-prepared patches for the release of 1.4.5, 1.4.6, 1.4.7, and 1.4.8.
+prepared patches for the release of 1.4.5, 1.4.6, 1.4.7, and 1.4.8.  The
+1.4.x series remains open for bug fixes, including release 1.4.9 in
+2007.
 
 Meanwhile, development was underway for new features for @code{m4},
 such as dynamic module loading and additional builtins, practically
@@ -629,8 +631,8 @@
 @itemx --prefix-builtins
 Internally modify @emph{all} builtin macro names so they all start with
 the prefix @samp{m4_}.  For example, using this option, one should write
-@samp{m4_define} instead of @samp{define}, and @samp{m4___file__}
-instead of @samp{__file__}.  This option has no effect if @option{-R}
+@samp{m4_define} instead of @samp{define}, and @samp{@w{m4___file__}}
+instead of @samp{@w{__file__}}.  This option has no effect if @option{-R}
 is also specified.
 
 @item -Q
@@ -5115,7 +5117,7 @@
 @end deffn
 
 For example, if @acronym{GNU} @code{m4} is started with the
-@option{-mload} option to load the module @samp{load} and make this
+@option{-m load} option to load the module @samp{load} and make this
 builtin available, @code{m4modules} will yield the following:
 
 @comment options: -m load
@@ -5141,14 +5143,17 @@
 @samp{load} macro is entirely equivalent to the @option{-m} command line
 option.
 
-@comment ignore
+@c The -mmpeval/--unload=mpeval pair allows the testsuite to skip this
+@c test if mpeval was not configured for usage.
+@comment options: -m load -m mpeval --unload-module=mpeval
 @example
+$ @kbd{m4 -m load}
 m4modules
 @result{}load,gnu,m4
-load(`mymodule')
+load(`mpeval')
 @result{}
 m4modules
-@result{}mymodule,load,gnu,m4
+@result{}mpeval,load,gnu,m4
 @end example
 
 @node Unload
@@ -5164,63 +5169,101 @@
 The macro @code{unload} is recognized only with parameters.
 @end deffn
 
+@comment options: -m mpeval -m load
+@example
+$ @kbd{m4 -m mpeval -m load}
+m4modules
+@result{}load,mpeval,gnu,m4
+unload(`mpeval')
+@result{}
+m4modules
+@result{}load,gnu,m4
+@end example
+
 @node Standard Modules
 @section Standard bundled modules
 
 @acronym{GNU} @code{m4} ships with several bundled modules as standard.
-By convention these modules define a text macro that can be tested with
-@code{ifdef} when they have loaded.
+By convention, these modules define a text macro that can be tested
+with @code{ifdef} when they are loaded; only the @code{m4} module lacks
+this feature test macro.
 
 @table @code
 @item m4
-Provides all of the builtins defined by System V @code{m4}.  This module
-is always loaded -- @acronym{GNU} @code{m4} would only be a very slow
-version of @samp{cat} without the builtins supplied by this module.
+Provides all of the builtins defined by @acronym{POSIX}.  This module
+is always loaded --- @acronym{GNU} @code{m4} would only be a very slow
+version of @command{cat} without the builtins supplied by this module.
 
 @item gnu
 Provides all of the @acronym{GNU} extensions, as defined by
-@acronym{GNU} M4 through the 1.4.x release series.  In addition to the
-@samp{__gnu__} text macro, this module also defines either
-@samp{__unix__} or @samp{__windows__} as appropriate, and the following:
+@acronym{GNU} M4 through the 1.4.x release series.  It also provides a
+couple of feature test macros:
+
+@deffn {Macro (gnu)} __gnu__
+Expands to the empty string, as an indication that the @samp{gnu}
+module is loaded.
+@end deffn
 
 @deffn {Macro (gnu)} __m4_version__
-This macro expand to the release version number of the running GNU
-@code{m4} executable.
+Expands to a quoted string containing the release version number of the
+running @acronym{GNU} @code{m4} executable.
 @end deffn
 
-This module is always loaded, unless the @option{-G} option is supplied
-at startup.
+This module is always loaded, unless the @option{-G} command line
+option is supplied at startup (@pxref{Limits control, , Invoking m4}).
 
 @item traditional
-This module defines a single text macro for compatibility with System V
-@code{m4}, and is loaded instead of the @samp{gnu} module if @option{-G}
-is specified.
-
-@deffn {Macro (traditional)} unix
-Expands to the empty string.
+This module provides compatibility with System V @code{m4}, for anything
+not specified by @acronym{POSIX}, and is loaded instead of the
+@samp{gnu} module if the @option{-G} command line option is specified.
+
+@deffn {Macro (traditional)} __traditional__
+Expands to the empty string, as an indication that the
+@samp{traditional} module is loaded.
 @end deffn
 
 @item load
 This module supplies the builtins required to use modules from within a
-GNU @code{m4} program.  @xref{Modules}, for more details.  The module
-also defines the following macro:
+@acronym{GNU} @code{m4} program.  @xref{Modules}, for more details.  The
+module also defines the following macro:
 
-@deffn {Macro (load)} __modules__
-Expands to the empty string.
+@deffn {Macro (load)} __load__
+Expands to the empty string, as an indication that the @samp{load}
+module is loaded.
 @end deffn
 
 @item mpeval
 This module provides the implementation for the experimental
-@code{mpeval} feature.  If the host machine does not have the GNU gmp
-library, the builtin will generate an error if called.  @xref{Mpeval},
-for more details.  The module also defines the following macro:
-
-@deffn {Macro (mpeval)} __gmp__
-Expands to the empty string.
+@code{mpeval} feature.  If the host machine does not have the
+@acronym{GNU} gmp library, the builtin will generate an error if called.
+@xref{Mpeval}, for more details.  The module also defines the following
+macro:
+
+@deffn {Macro (mpeval)} __mpeval__
+Expands to the empty string, as an indication that the @samp{mpeval}
+module is loaded.
 @end deffn
-
 @end table
 
+Here is an example of using the feature test macros.
+
+@example
+$ @kbd{m4}
+__gnu__-__traditional__
+@result{}-__traditional__
+ifdef(`__gnu__', `Extensions are active', `Minimal features')
+@result{}Extensions are active
+@end example
+
+@comment options: -G
+@example
+$ @kbd{m4 --traditional}
+__gnu__-__traditional__
+@result{}__gnu__-
+ifdef(`__gnu__', `Extensions are active', `Minimal features')
+@result{}Minimal features
+@end example
+
 @node Text handling
 @chapter Macros for text handling
 
@@ -6111,6 +6154,13 @@
 There are a few builtin macros in @code{m4} that allow you to run shell
 commands from within @code{m4}.
 
+Note that the definition of a valid shell command is system dependent.
+On UNIX systems, this is the typical @code{/bin/sh}.  But on other
+systems, such as native Windows, the shell has a different syntax of
+commands that it understands.  Some examples in this chapter assume
+@code{/bin/sh}, and also demonstrate how to quit early with a known
+exit value if this is not the case.
+
 @menu
 * Platform macros::             Determining the platform
 * Syscmd::                      Executing simple commands
@@ -6122,7 +6172,50 @@
 
 @node Platform macros
 @section Determining the platform
-@comment FIXME - port from branch
+Sometimes it is desirable for an input file to know which platform
+@code{m4} is running on.  @acronym{GNU} @code{m4} provides several
+macros that are predefined to expand to the empty string; checking for
+their existence will confirm platform details.
+
+@deffn {Optional builtin (gnu)} __os2__
+@deffnx {Optional builtin (traditional)} os2
+@deffnx {Optional builtin (gnu)} __unix__
+@deffnx {Optional builtin (traditional)} unix
+@deffnx {Optional builtin (gnu)} __windows__
+@deffnx {Optional builtin (traditional)} windows
+Each of these macros is conditionally defined as needed to describe the
+environment of @code{m4}.  If defined, each macro expands to the empty
+string.
+@end deffn
+
+@cindex platform macro
+On UNIX systems, @acronym{GNU} @code{m4} will define @code{@w{__unix__}}
+in the @samp{gnu} module, and @code{unix} in the @samp{traditional}
+module.
+
+On native Windows systems, @acronym{GNU} @code{m4} will define
+@code{@w{__windows__}} in the @samp{gnu} module, and @code{windows} in
+the @samp{traditional} module.
+
+On OS/2 systems, @acronym{GNU} @code{m4} will define @code{@w{__os2__}}
+in the @samp{gnu} module, and @code{os2} in the @samp{traditional}
+module.
+
+If @acronym{GNU} M4 does not provide a platform macro for your system,
+please report that as a bug.
+
+@example
+define(`provided', `0')
+@result{}
+ifdef(`__unix__', `define(`provided', incr(provided))')
+@result{}
+ifdef(`__windows__', `define(`provided', incr(provided))')
+@result{}
+ifdef(`__os2__', `define(`provided', incr(provided))')
+@result{}
+provided
+@result{}1
+@end example
 
 @node Syscmd
 @section Executing simple commands
@@ -7020,24 +7113,6 @@
 traditional implementations also ignore all whitespace (formfeed,
 carriage return, and vertical tab).  @acronym{GNU} @code{m4} follows
 tradition and ignores all leading unquoted whitespace.
-
-@item
-@findex __gnu__
-GNU @code{m4} without @samp{-G} option will define the macro
-@code{@w{__gnu__}} to expand to the empty string.
-
-@item
-@findex unix
-@findex __unix__
-On UNIX systems, GNU @code{m4} without the @option{-G} option will
-define the macro @code{@w{__unix__}}, otherwise the macro @code{unix}.
-Both will expand to the empty string.
-
-@item
-@findex __windows__
-On Windows systems, GNU @code{m4} without the @option{-G} option will
-define the macro @code{@w{__windows__}}, which expands to the empty
-string.
 @end itemize
 
 @node  Experiments



From MAILER-DAEMON Mon Jan 15 09:04:48 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SS8-0005gf-1T
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:48 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SS3-0005dN-VO
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:44 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SS2-0005bq-Go
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:42 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SS0-0005al-CG
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:41 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SRz-0002Xe-NK
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:04:39 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SRN-0002Uf-Tr
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:01 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SRs-0002VU-B6
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:35 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SRq-0002UV-Ta
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:31 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SRp-0001WE-BC
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SRp-0001W4-4D
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:04:29 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SRp-0001W4-4D@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:04:29 +0000
Cc: 
Subject: Changes to m4/modules/mpeval.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:04:44 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:04:27

Index: modules/mpeval.c
===================================================================
RCS file: /sources/m4/m4/modules/mpeval.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- modules/mpeval.c	6 Jan 2007 19:56:54 -0000	1.22
+++ modules/mpeval.c	15 Jan 2007 14:04:27 -0000	1.23
@@ -120,8 +120,8 @@
 m4_macro m4_macro_table[] =
 {
   /* name                      text */
-  { "__gmp__",                 "" },
-  { 0, 0 },
+  { "__mpeval__",	"" },
+  { NULL,		NULL },
 };
 
 



From MAILER-DAEMON Mon Jan 15 09:05:37 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SSu-0006J2-CZ
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:36 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SSs-0006IB-Iv
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:34 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SSr-0006HO-Hf
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:33 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SSr-0006HC-B4
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:33 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SSq-0002jx-UF
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:33 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SSF-0002Z7-I1
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:55 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SSq-0002jf-1B
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:05:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SSp-0002jR-Ji
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:05:31 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SSp-0001YL-4b
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:05:31 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SSo-0001YG-Sb
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:05:31 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SSo-0001YG-Sb@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:05:30 +0000
Cc: 
Subject: m4/ltdl/m4 .cvsignore
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:05:35 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:05:30

Modified files:
	ltdl/m4        : .cvsignore 

Log message:
	* ltdl/m4/.cvsignore: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/.cvsignore?cvsroot=m4&r1=1.16&r2=1.17



From MAILER-DAEMON Mon Jan 15 09:05:37 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6SSv-0006JT-GM
	for mharc-m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:37 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6SSs-0006II-S9
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:35 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6SSs-0006He-1P
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:34 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6SSr-0006HW-KB
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:33 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6SSr-0002k7-5J
	for m4-commit@gnu.org; Mon, 15 Jan 2007 09:05:33 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6SSF-0002ZD-P4
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:04:55 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6SSq-0002jl-Dw
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:05:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6SSp-0002jS-T5
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 09:05:32 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6SSp-0001YQ-CU
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:05:31 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6SSp-0001YJ-4R
	for m4-cvs-logs@gnu.org; Mon, 15 Jan 2007 14:05:31 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6SSp-0001YJ-4R@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Mon, 15 Jan 2007 14:05:31 +0000
Cc: 
Subject: Changes to m4/ltdl/m4/.cvsignore,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2007 14:05:35 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/15 14:05:30

Index: .cvsignore
===================================================================
RCS file: /sources/m4/m4/ltdl/m4/.cvsignore,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- .cvsignore	9 Jan 2007 05:07:18 -0000	1.16
+++ .cvsignore	15 Jan 2007 14:05:30 -0000	1.17
@@ -101,6 +101,7 @@
 vasnprintf.m4
 vasprintf.m4
 visibility.m4
+wchar.m4
 wchar_t.m4
 wctype.m4
 wcwidth.m4



From MAILER-DAEMON Tue Jan 16 15:23:41 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6uqL-0006cf-Lh
	for mharc-m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:41 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6uqJ-0006bl-9z
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6uqI-0006bI-Oj
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6uqI-0006b6-DS
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:38 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6uqH-0000kk-Fz
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:37 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6upe-0005Mh-7X
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:22:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6uqG-0000kS-E4
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:36 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6uqF-0000jo-6s
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:35 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6uqD-0002lc-RC
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:33 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6uqD-0002lT-JV
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6uqD-0002lT-JV@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 16 Jan 2007 20:23:33 +0000
Cc: 
Subject: Changes to m4/ltdl/m4/stackovf.m4,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Jan 2007 20:23:39 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/16 20:23:33

Index: ltdl/m4/stackovf.m4
===================================================================
RCS file: /sources/m4/m4/ltdl/m4/stackovf.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ltdl/m4/stackovf.m4	22 Jul 2006 22:38:14 -0000	1.3
+++ ltdl/m4/stackovf.m4	16 Jan 2007 20:23:32 -0000	1.4
@@ -1,7 +1,7 @@
 #                                                            -*- Autoconf -*-
 # stackovf.m4 -- how do we deal with stack overflow?
 #
-# Copyright (C) 2000, 2003, 2006 Gary V. Vaughan <gary@gnu.org>
+# Copyright (C) 2000, 2003, 2006, 2007 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
@@ -18,7 +18,7 @@
 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-# serial 4
+# serial 5
 
 # M4_SYS_STACKOVF
 # ---------------
@@ -28,6 +28,13 @@
 
 AC_CHECK_HEADERS_ONCE([siginfo.h])
 AC_CHECK_FUNCS_ONCE([sigaction sigaltstack sigstack sigvec])
+AC_CHECK_MEMBERS([stack_t.ss_sp], [], [],
+[[#include <signal.h>
+#if HAVE_SIGINFO_H
+# include <siginfo.h>
+#endif
+]])
+
 # Code from Jim Avera <jima@netcom.com>.
 # stackovf.c requires:
 #  1. Either sigaction with SA_ONSTACK, or sigvec with SV_ONSTACK



From MAILER-DAEMON Tue Jan 16 15:23:42 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6uqL-0006cm-Ss
	for mharc-m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:41 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6uqJ-0006bz-Pk
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6uqI-0006bC-IN
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6uqI-0006b7-E1
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:38 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6uqH-0000km-G2
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:37 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6upe-0005Mg-6K
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:22:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6uqG-0000kI-14
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:37 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6uqF-0000jl-6i
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:35 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6uqD-0002lR-E4
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:33 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6uqD-0002lN-6m
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6uqD-0002lN-6m@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 16 Jan 2007 20:23:33 +0000
Cc: 
Subject: m4 ChangeLog ltdl/m4/stackovf.m4 src/stackovf.c
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Jan 2007 20:23:40 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/16 20:23:33

Modified files:
	.              : ChangeLog 
	ltdl/m4        : stackovf.m4 
	src            : stackovf.c 

Log message:
	Port patch from branch for stack overflow detection on BSD/OS.
	* ltdl/m4/stackovf.m4 (M4_SYS_STACKOVF): Check for stack_t.ss_sp.
	* src/stackovf.c (setup_stackovf_trap) [HAVE_SIGALTSTACK &&
	! HAVE_STACK_T_SS_SP]: Use this check.
	Reported by Chris McGuire.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.478&r2=1.479
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/stackovf.m4?cvsroot=m4&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/m4/src/stackovf.c?cvsroot=m4&r1=1.20&r2=1.21



From MAILER-DAEMON Tue Jan 16 15:23:42 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6uqM-0006dR-Im
	for mharc-m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:42 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6uqJ-0006bj-Az
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6uqI-0006b0-4R
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:38 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6uqI-0006aq-12
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:38 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6uqH-0000kj-Fp
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:37 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6upe-0005Mi-7O
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:22:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6uqF-0000kD-RB
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:36 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6uqF-0000jq-6v
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:35 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6uqD-0002li-Vu
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6uqD-0002la-RE
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6uqD-0002la-RE@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 16 Jan 2007 20:23:33 +0000
Cc: 
Subject: Changes to m4/src/stackovf.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Jan 2007 20:23:40 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/16 20:23:33

Index: src/stackovf.c
===================================================================
RCS file: /sources/m4/m4/src/stackovf.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- src/stackovf.c	3 Aug 2006 13:15:43 -0000	1.20
+++ src/stackovf.c	16 Jan 2007 20:23:33 -0000	1.21
@@ -1,5 +1,5 @@
 /* Detect stack overflow (when getrlimit and sigaction or sigvec are available)
-   Copyright (C) 1993, 1994, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1994, 2006, 2007 Free Software Foundation, Inc.
    Jim Avera <jima@netcom.com>, October 1993.
 
    This program is free software; you can redistribute it and/or modify
@@ -364,6 +364,11 @@
 
   {
     stack_t ss;
+# ifndef HAVE_STACK_T_SS_SP
+    /* This workaround is for BSD/OS 4.0.1:
+       http://lists.gnu.org/archive/html/bug-m4/2006-12/msg00004.html  */
+#  define ss_sp ss_base
+# endif /* ! HAVE_STACK_T_SS_SP */
 
     stackbuf = xmalloc (SIGSTKSZ);
 



From MAILER-DAEMON Tue Jan 16 15:23:43 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H6uqM-0006dA-5l
	for mharc-m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:42 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H6uqJ-0006c5-TT
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H6uqI-0006au-8M
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:39 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H6uqI-0006ar-1V
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:38 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6uqH-0000ki-Fv
	for m4-commit@gnu.org; Tue, 16 Jan 2007 15:23:37 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H6upe-0005Mf-6E
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:22:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H6uqG-0000kN-1r
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:36 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H6uqF-0000jn-6n
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 15:23:35 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H6uqD-0002lW-Jb
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:33 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H6uqD-0002lP-Dx
	for m4-cvs-logs@gnu.org; Tue, 16 Jan 2007 20:23:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H6uqD-0002lP-Dx@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 16 Jan 2007 20:23:33 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Jan 2007 20:23:40 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/16 20:23:33

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.478
retrieving revision 1.479
diff -u -b -r1.478 -r1.479
--- ChangeLog	15 Jan 2007 14:04:26 -0000	1.478
+++ ChangeLog	16 Jan 2007 20:23:32 -0000	1.479
@@ -1,3 +1,11 @@
+2007-01-16  Eric Blake  <ebb9@byu.net>
+
+	Port patch from branch for stack overflow detection on BSD/OS.
+	* ltdl/m4/stackovf.m4 (M4_SYS_STACKOVF): Check for stack_t.ss_sp.
+	* src/stackovf.c (setup_stackovf_trap) [HAVE_SIGALTSTACK &&
+	! HAVE_STACK_T_SS_SP]: Use this check.
+	Reported by Chris McGuire.
+
 2007-01-15  Eric Blake  <ebb9@byu.net>
 
 	* tests/builtins.at (__m4_version__): New test.
@@ -8491,7 +8499,7 @@
 
 	-----
 
-	$Revision: 1.478 $ $Date: 2007/01/15 14:04:26 $
+	$Revision: 1.479 $ $Date: 2007/01/16 20:23:32 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Thu Jan 18 11:38:25 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H7aHR-00056j-1k
	for mharc-m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H7aHN-00054l-QZ
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H7aHN-00053n-3z
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:21 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H7aHM-00053g-Qp
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:20 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7aHL-0005YH-Cv
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:19 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H7aGf-000388-BT
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 11:37:37 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H7aH8-0005Vg-0r
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 11:38:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H7aH7-0005VH-NI
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 11:38:05 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H7aH4-0003rB-15
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 16:38:02 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H7aGx-0003qj-CC
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 16:37:55 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H7aGx-0003qj-CC@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Thu, 18 Jan 2007 16:37:55 +0000
Cc: 
Subject: Changes to m4/ltdl/m4/.cvsignore,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Jan 2007 16:38:23 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/18 16:37:45

Index: .cvsignore
===================================================================
RCS file: /sources/m4/m4/ltdl/m4/.cvsignore,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- .cvsignore	15 Jan 2007 14:05:30 -0000	1.17
+++ .cvsignore	18 Jan 2007 16:37:45 -0000	1.18
@@ -23,6 +23,7 @@
 free.m4
 getopt.m4
 gettext.m4
+gettimeofday.m4
 gl_list.m4
 glibc2.m4
 glibc21.m4
@@ -91,6 +92,7 @@
 strstr.m4
 strtol.m4
 sys_stat_h.m4
+sys_time_h.m4
 tempname.m4
 tmpdir.m4
 uintmax_t.m4



From MAILER-DAEMON Thu Jan 18 11:38:25 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H7aHR-000574-AJ
	for mharc-m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H7aHO-00055n-Sy
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:23 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H7aHN-00054a-NB
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:22 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H7aHM-00053t-Vs
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:21 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7aHL-0005YK-Ti
	for m4-commit@gnu.org; Thu, 18 Jan 2007 11:38:20 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H7aGf-00038A-Io
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 11:37:37 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H7aH5-0005V1-Ol
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 11:38:17 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H7aH5-0005Sp-FZ
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 11:38:03 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H7aGs-0003qy-CA
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 16:37:50 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H7aGn-0003qh-4Y
	for m4-cvs-logs@gnu.org; Thu, 18 Jan 2007 16:37:45 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H7aGn-0003qh-4Y@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Thu, 18 Jan 2007 16:37:45 +0000
Cc: 
Subject: m4/ltdl/m4 .cvsignore
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Jan 2007 16:38:23 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/18 16:37:45

Modified files:
	ltdl/m4        : .cvsignore 

Log message:
	* ltdl/m4/.cvsignore: Update to latest gnulib.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/.cvsignore?cvsroot=m4&r1=1.17&r2=1.18



From MAILER-DAEMON Sat Jan 20 23:09:15 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H8U15-0001rx-8w
	for mharc-m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:15 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H8U12-0001mW-7D
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H8U10-0001k0-MV
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:11 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H8U10-0001ja-Em
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:10 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H8U0z-0002w6-Re
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:10 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H8U0G-0001ML-EQ
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:08:24 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H8U0y-0002vM-Dm
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:08 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H8U0x-0002v0-Ho
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:07 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H8U0w-0000YQ-VI
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:07 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H8U0w-0000YJ-Pr
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:06 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H8U0w-0000YJ-Pr@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 21 Jan 2007 04:09:06 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Jan 2007 04:09:13 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/21 04:09:06

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.479
retrieving revision 1.480
diff -u -b -r1.479 -r1.480
--- ChangeLog	16 Jan 2007 20:23:32 -0000	1.479
+++ ChangeLog	21 Jan 2007 04:09:06 -0000	1.480
@@ -1,3 +1,15 @@
+2007-01-20  Eric Blake  <ebb9@byu.net>
+
+	* src/freeze.c (produce_char_dump): Delete.  Replace with...
+	(produce_mem_dump): ...this new function, to encode more strings.
+	Also make the coding easier to read and slightly more compact.
+	(produce_syntax_dump): Only dump non-default syntax codes.
+	(produce_module_dump, dump_symbol_CB, produce_frozen_state):
+	Encode non-ASCII characters in user-supplied strings.
+	(GET_STRING): Accept escape sequences in version 2.
+	* NEWS: Document this change.
+	* TODO: Update.
+
 2007-01-16  Eric Blake  <ebb9@byu.net>
 
 	Port patch from branch for stack overflow detection on BSD/OS.
@@ -8499,7 +8511,7 @@
 
 	-----
 
-	$Revision: 1.479 $ $Date: 2007/01/16 20:23:32 $
+	$Revision: 1.480 $ $Date: 2007/01/21 04:09:06 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 20 23:09:16 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H8U15-0001t4-W4
	for mharc-m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:16 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H8U13-0001oB-20
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:13 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H8U11-0001ls-Vt
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H8U11-0001kw-CT
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:11 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H8U10-0002wB-KO
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:10 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H8U0H-0001MT-Ad
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:08:25 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H8U0x-0002vF-Tb
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:08 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H8U0x-0002uy-Fh
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:07 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H8U0w-0000YL-Pw
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:06 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H8U0w-0000YH-J6
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:06 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H8U0w-0000YH-J6@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 21 Jan 2007 04:09:06 +0000
Cc: 
Subject: m4 ChangeLog NEWS TODO src/freeze.c
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Jan 2007 04:09:14 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/21 04:09:06

Modified files:
	.              : ChangeLog NEWS TODO 
	src            : freeze.c 

Log message:
	* src/freeze.c (produce_char_dump): Delete.  Replace with...
	(produce_mem_dump): ...this new function, to encode more strings.
	Also make the coding easier to read and slightly more compact.
	(produce_syntax_dump): Only dump non-default syntax codes.
	(produce_module_dump, dump_symbol_CB, produce_frozen_state):
	Encode non-ASCII characters in user-supplied strings.
	(GET_STRING): Accept escape sequences in version 2.
	* NEWS: Document this change.
	* TODO: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.479&r2=1.480
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/m4/TODO?cvsroot=m4&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/m4/src/freeze.c?cvsroot=m4&r1=1.58&r2=1.59



From MAILER-DAEMON Sat Jan 20 23:09:18 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H8U17-0001vd-Au
	for mharc-m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:17 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H8U14-0001ps-4Z
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:14 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H8U12-0001n0-OP
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H8U12-0001mN-9c
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H8U11-0002wM-5n
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:11 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H8U0H-0001MW-Th
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:08:25 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H8U0z-0002vV-74
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:10 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H8U0x-0002v2-Sk
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:08 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H8U0x-0000YX-5Y
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:07 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H8U0w-0000YN-V9
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:07 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H8U0w-0000YN-V9@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 21 Jan 2007 04:09:06 +0000
Cc: 
Subject: Changes to m4/NEWS,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Jan 2007 04:09:15 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/21 04:09:06

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- NEWS	15 Jan 2007 14:04:26 -0000	1.36
+++ NEWS	21 Jan 2007 04:09:06 -0000	1.37
@@ -192,10 +192,14 @@
 ** Other changes
 
 *** The syntax of frozen files format V2 has been improved to save
-    additional state.
-  - FIXME: format 2 still needs to be tweaked to allow complete ASCII
-  representation and to catch any more missing state; once 2.0 is released,
-  any further changes would introduce format 3.
+    additional state.  This includes the 'R' directive for default regular
+    expression syntax.  Also, a V2 file can now be represented completely
+    in ASCII, thanks to escape sequences.  Unfortunately, files frozen by
+    M4 1.4q that contain \ in macros cannot be read by 1.9b, but since 1.4q
+    was not widely distributed, this is not expected to be much of an
+    issue, and comes with the territory of using a beta release.
+  - FIXME: format 2 still needs to catch more missing state; once 2.0 is
+    released, any further changes would introduce format 3.
 
 FIXME: include the (long) list of changes in 1.4.x that were not already
   in earlier betas.



From MAILER-DAEMON Sat Jan 20 23:09:18 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H8U17-0001wV-Vd
	for mharc-m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:18 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H8U14-0001qO-66
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:14 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H8U12-0001nk-RM
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:13 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H8U12-0001nB-Hg
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H8U11-0002wl-Uq
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H8U0I-0001Mc-Kx
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:08:26 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H8U10-0002vu-9N
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:11 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H8U0y-0002v7-9I
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:08 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H8U0x-0000Yi-Iu
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:07 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H8U0x-0000Yb-Ba
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:07 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H8U0x-0000Yb-Ba@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 21 Jan 2007 04:09:07 +0000
Cc: 
Subject: Changes to m4/src/freeze.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Jan 2007 04:09:15 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/21 04:09:06

Index: src/freeze.c
===================================================================
RCS file: /sources/m4/m4/src/freeze.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- src/freeze.c	13 Jan 2007 13:55:37 -0000	1.58
+++ src/freeze.c	21 Jan 2007 04:09:06 -0000	1.59
@@ -23,57 +23,52 @@
 #include "m4/system.h"
 #include "m4.h"
 #include "m4private.h"
+#include "binary-io.h"
 
-static	int   decode_char	    (FILE *);
-static	void  issue_expect_message  (m4 *, int);
-static	int   produce_char_dump     (char *, int);
+static	void  produce_mem_dump		(FILE *, const char *, size_t);
 static	void  produce_resyntax_dump (m4 *, FILE *);
 static	void  produce_syntax_dump   (FILE *, m4_syntax_table *, char);
 static	void  produce_module_dump   (FILE *, lt_dlhandle);
 static	void  produce_symbol_dump   (m4 *, FILE *, m4_symbol_table *);
 static	void *dump_symbol_CB	    (m4_symbol_table *, const char *,
 				     m4_symbol *, void *);
+static	void  issue_expect_message	(m4 *, int);
+static	int   decode_char		(FILE *);
 
 
-/* Produce a frozen state to the given file NAME. */
-
-static int
-produce_char_dump (char *buf, int ch)
+/* Dump an ASCII-encoded representation of LEN bytes at MEM to FILE.
+   MEM may contain embedded NUL characters.  */
+static void
+produce_mem_dump (FILE *file, const char *mem, size_t len)
 {
-  char *p = buf;
-  int digit;
-
-  if (ch > 127 || ch < 32)
-    {
-      *p++  = '\\';
-
-      digit = ch / 64;
-      ch    = ch - (64 * digit);
-      *p++  = digit + '0';
-
-      digit = ch / 8;
-      ch    = ch - (8 * digit);
-      *p++  = digit + '0';
-
-      *p++  = ch + '0';
-    }
-  else
+  while (len--)
     {
+      int ch = to_uchar (*mem++);
       switch (ch)
 	{
-	case '\\':
-	  *p++ = '\\';
-	  *p++ = '\\';
-	  break;
-
+	case '\a': putc ('\\', file); putc ('a', file); break;
+	case '\b': putc ('\\', file); putc ('b', file); break;
+	case '\f': putc ('\\', file); putc ('f', file); break;
+	case '\n': putc ('\\', file); putc ('n', file); break;
+	case '\r': putc ('\\', file); putc ('r', file); break;
+	case '\t': putc ('\\', file); putc ('t', file); break;
+	case '\v': putc ('\\', file); putc ('v', file); break;
+	case '\\': putc ('\\', file); putc ('\\', file); break;
 	default:
-	  *p++ = ch;
+	  if (ch >= 0x7f || ch < 0x20)
+	    {
+	      int digit = ch / 16;
+	      ch %= 16;
+	      digit += digit > 9 ? 'a' - 10 : '0';
+	      ch += ch > 9 ? 'a' - 10 : '0';
+	      putc ('\\', file);
+	      putc ('x', file);
+	      putc (digit, file);
+	    }
+	  putc (ch, file);
 	  break;
 	}
     }
-  *p = '\0';
-
-  return strlen (buf);
 }
 
 
@@ -98,59 +93,67 @@
 	m4_error (context, EXIT_FAILURE, 0,
 		  _("invalid regexp syntax code `%d'"), code);
 
+      /* No need to use produce_mem_dump, since we know all resyntax
+	 names are already ASCII-encoded.  */
       fprintf (file, "R%d\n%s\n", strlen (resyntax), resyntax);
     }
 }
 
-#define MAX_CHAR_LENGTH 4	/* '\377' -> 4 characters */
-
 static void
 produce_syntax_dump (FILE *file, m4_syntax_table *syntax, char ch)
 {
-  char buf[1+ MAX_CHAR_LENGTH * sizeof (m4_syntax_table)];
+  char buf[256];
   int code = m4_syntax_code (ch);
   int count = 0;
-  int offset = 0;
   int i;
 
-  /* FIXME:  Can't set the syntax of '\000' since that character marks
-	     the end of a string, and when passed to `m4_set_syntax', tells
-	     it to set the syntax of every table entry. */
+  for (i = 0; i < 256; ++i)
+    if (m4_has_syntax (syntax, i, code) && code != syntax->orig[i])
+      buf[count++] = i;
+
+  /* If code falls in M4_SYNTAX_MASKS, then we must treat it
+     specially, since it will not be found in syntax->orig.  */
+  if (count == 1
+      && ((code == M4_SYNTAX_RQUOTE && *buf == *DEF_RQUOTE)
+	  || (code == M4_SYNTAX_ECOMM && *buf == *DEF_ECOMM)))
+    return;
 
-  for (i = 1; i < 256; ++i)
+  if (count || (code & M4_SYNTAX_MASKS))
     {
-      if (m4_has_syntax (syntax, i, code))
-	{
-	  offset += produce_char_dump (buf + offset, i);
-	  ++count;
-	}
+      fprintf (file, "S%c%d\n", ch, count);
+      produce_mem_dump (file, buf, count);
+      fputc ('\n', file);
     }
-
-  if (offset)
-      fprintf (file, "S%c%d\n%s\n", ch, count, buf);
 }
 
 /* The modules must be dumped in the order in which they will be
    reloaded from the frozen file.  libltdl stores handles in a push
    down stack, so we need to dump them in the reverse order to that.  */
-void
+static void
 produce_module_dump (FILE *file, lt_dlhandle handle)
 {
   const char *name = m4_get_module_name (handle);
+  size_t len = strlen (name);
 
   handle = m4__module_next (handle);
   if (handle)
     produce_module_dump (file, handle);
 
-  fprintf (file, "M%lu\n", (unsigned long int) strlen (name));
-  fputs (name, file);
+  /* GNU assumption: Although POSIX allows size_t to be just 16 bits,
+     independently of int, GNU assumes is at least as big as int.
+     Likewise, although POSIX allows size_t to be bigger than unsigned
+     long in some compilation environments, GNU assumes that size_t
+     always fits in unsigned long.  Unfortunately, GNU does not assume
+     that %zu is portable, yet.  */
+  fprintf (file, "M%lu\n", (unsigned long int) len);
+  produce_mem_dump (file, name, len);
   fputc ('\n', file);
 }
 
 /* Process all entries in one bucket, from the last to the first.
    This order ensures that, at reload time, pushdef's will be
    executed with the oldest definitions first.  */
-void
+static void
 produce_symbol_dump (m4 *context, FILE *file, m4_symbol_table *symtab)
 {
   if (m4_symtab_apply (symtab, dump_symbol_CB, file))
@@ -164,43 +167,43 @@
   lt_dlhandle   handle		= SYMBOL_HANDLE (symbol);
   const char   *module_name	= handle ? m4_get_module_name (handle) : NULL;
   FILE *	file		= (FILE *) userdata;
+  size_t	symbol_len	= strlen (symbol_name);
+  size_t	module_len	= module_name ? strlen (module_name) : 0;
 
   if (m4_is_symbol_text (symbol))
     {
-      fprintf (file, "T%lu,%lu",
-	       (unsigned long int) strlen (symbol_name),
-	       (unsigned long int) strlen (m4_get_symbol_text (symbol)));
+      const char *text = m4_get_symbol_text (symbol);
+      size_t text_len = strlen (text);
+      fprintf (file, "T%lu,%lu", (unsigned long int) symbol_len,
+	       (unsigned long int) text_len);
       if (handle)
-	fprintf (file, ",%lu", (unsigned long int) strlen (module_name));
+	fprintf (file, ",%lu", (unsigned long int) module_len);
       fputc ('\n', file);
 
-      fputs (symbol_name, file);
-      fputs (m4_get_symbol_text (symbol), file);
+      produce_mem_dump (file, symbol_name, symbol_len);
+      produce_mem_dump (file, text, text_len);
       if (handle)
-	fputs (module_name, file);
+	produce_mem_dump (file, module_name, module_len);
       fputc ('\n', file);
     }
   else if (m4_is_symbol_func (symbol))
     {
-      const m4_builtin *bp = m4_builtin_find_by_func (SYMBOL_HANDLE (symbol),
-						m4_get_symbol_func (symbol));
-
+      const m4_builtin *bp = m4_get_symbol_builtin (symbol);
+      size_t bp_len;
       if (bp == NULL)
 	assert (!"INTERNAL ERROR: builtin not found in builtin table!");
+      bp_len = strlen (bp->name);
 
-      fprintf (file, "F%lu,%lu",
-	       (unsigned long int) strlen (symbol_name),
-	       (unsigned long int) strlen (bp->name));
-
+      fprintf (file, "F%lu,%lu", (unsigned long int) symbol_len,
+	       (unsigned long int) bp_len);
       if (handle)
-	fprintf (file, ",%lu",
-		 (unsigned long int) strlen (module_name));
+	fprintf (file, ",%lu", (unsigned long int) module_len);
       fputc ('\n', file);
 
-      fputs (symbol_name, file);
-      fputs (bp->name, file);
+      produce_mem_dump (file, symbol_name, symbol_len);
+      produce_mem_dump (file, bp->name, bp_len);
       if (handle)
-	fputs (module_name, file);
+	produce_mem_dump (file, module_name, module_len);
       fputc ('\n', file);
     }
   else if (m4_is_symbol_placeholder (symbol))
@@ -211,18 +214,13 @@
   return NULL;
 }
 
+/* Produce a frozen state to the given file NAME. */
 void
 produce_frozen_state (m4 *context, const char *name)
 {
-  FILE *file;
+  FILE *file = fopen (name, O_BINARY ? "wb" : "w");
+  const char *str;
 
-#ifdef WIN32
-# define FROZEN_WRITE "wb"
-#else
-# define FROZEN_WRITE "w"
-#endif
-
-  file = fopen (name, FROZEN_WRITE);
   if (!file)
     {
       m4_error (context, 0, errno, _("cannot open `%s'"), name);
@@ -243,8 +241,10 @@
       fprintf (file, "Q%lu,%lu\n",
 	       (unsigned long int) context->syntax->lquote.length,
 	       (unsigned long int) context->syntax->rquote.length);
-      fputs (context->syntax->lquote.string, file);
-      fputs (context->syntax->rquote.string, file);
+      produce_mem_dump (file, context->syntax->lquote.string,
+			context->syntax->lquote.length);
+      produce_mem_dump (file, context->syntax->rquote.string,
+			context->syntax->rquote.length);
       fputc ('\n', file);
     }
 
@@ -256,8 +256,10 @@
       fprintf (file, "C%lu,%lu\n",
 	       (unsigned long int) context->syntax->bcomm.length,
 	       (unsigned long int) context->syntax->ecomm.length);
-      fputs (context->syntax->bcomm.string, file);
-      fputs (context->syntax->ecomm.string, file);
+      produce_mem_dump (file, context->syntax->bcomm.string,
+			context->syntax->bcomm.length);
+      produce_mem_dump (file, context->syntax->ecomm.string,
+			context->syntax->ecomm.length);
       fputc ('\n', file);
     }
 
@@ -267,23 +269,9 @@
 
   /* Dump syntax table. */
 
-  produce_syntax_dump (file, M4SYNTAX, 'I');
-  produce_syntax_dump (file, M4SYNTAX, 'S');
-  produce_syntax_dump (file, M4SYNTAX, '(');
-  produce_syntax_dump (file, M4SYNTAX, ')');
-  produce_syntax_dump (file, M4SYNTAX, ',');
-  produce_syntax_dump (file, M4SYNTAX, '$');
-  produce_syntax_dump (file, M4SYNTAX, 'A');
-  produce_syntax_dump (file, M4SYNTAX, '@');
-  produce_syntax_dump (file, M4SYNTAX, 'O');
-
-  produce_syntax_dump (file, M4SYNTAX, 'W');
-  produce_syntax_dump (file, M4SYNTAX, 'D');
-
-  produce_syntax_dump (file, M4SYNTAX, 'L');
-  produce_syntax_dump (file, M4SYNTAX, 'R');
-  produce_syntax_dump (file, M4SYNTAX, 'B');
-  produce_syntax_dump (file, M4SYNTAX, 'E');
+  str = "IS(),$A@OWDLRBE";
+  while (*str)
+    produce_syntax_dump (file, M4SYNTAX, *str++);
 
   /* Dump all loaded modules.  */
   produce_module_dump (file, m4__module_next (0));
@@ -313,40 +301,78 @@
 	      _("expecting character `%c' in frozen file"), expected);
 }
 
-/* Reload a frozen state from the given file NAME. */
 
-/* Read the next character from the IN stream.  Octal characters of the
-   form ``\nnn'' are converted, and returned.  EOF is returned if the end
-   of file is reached whilst reading the character.  */
+/* Reload frozen state.  */
+
+/* Read the next character from the IN stream.  Various escape
+   sequences are converted, and returned.  EOF is returned if the end
+   of file is reached whilst reading the character, or on an
+   unrecognized escape sequence.  */
 
 static int
 decode_char (FILE *in)
 {
-  int ch = fgetc (in);
+  int ch = getc (in);
+  int next;
+  int value = 0;
 
   if (ch == '\\')
     {
-      ch = fgetc (in);
-      if ((ch != EOF) && (ch != '\\'))
+      ch = getc (in);
+      switch (ch)
 	{
-	  int next;
-
-	  /* first octal digit */
-	  ch = (ch - '0') * 64;
-
-	  /* second octal digit */
-	  next = fgetc (in);
-	  if (next == EOF)
-	    ch = EOF;
-	  else
-	    ch += 8 * (next - '0');
-
-	  /* third octal digit */
-	  next = fgetc (in);
-	  if (next == EOF)
-	    ch = EOF;
+	case 'a': return '\a';
+	case 'b': return '\b';
+	case 'f': return '\f';
+	case 'n': return '\n';
+	case 'r': return '\r';
+	case 't': return '\t';
+	case 'v': return '\v';
+	case '\\': return '\\';
+
+	case 'x': case 'X':
+	  next = getc (in);
+	  if (next >= '0' && next <= '9')
+	    ch = (next - '0') * 16;
+	  else if (next >= 'a' && next <= 'f')
+	    ch = (next - 'a' + 10) * 16;
+	  else if (next >= 'A' && next <= 'F')
+	    ch = (next - 'A' + 10) * 16;
+	  else
+	    return EOF;
+	  next = getc (in);
+	  if (next >= '0' && next <= '9')
+	    ch += next - '0';
+	  else if (next >= 'a' && next <= 'f')
+	    ch += next - 'a' + 10;
+	  else if (next >= 'A' && next <= 'F')
+	    ch += next - 'A' + 10;
 	  else
-	    ch += (next - '0');
+	    return EOF;
+	  return ch;
+	case '0': case '1': case '2': case '3':
+	  value = ch - '0';
+	  ch = getc (in);
+	  /* fall through */
+	case '4': case '5': case '6': case '7':
+	  if (ch >= '0' && ch <= '7')
+	    {
+	      value = value * 8 + ch - '0';
+	      ch = getc (in);
+	    }
+	  else
+	    {
+	      ungetc (ch, in);
+	      return value;
+	    }
+	  if (ch >= '0' && ch <= '7')
+	    value = value * 8 + ch - '0';
+	  else
+	    ungetc (ch, in);
+	  return value;
+
+	default:
+	  return EOF;
 	}
     }
 
@@ -354,7 +380,8 @@
 }
 
 
-/* We are seeking speed, here.  */
+/*  Reload state from the given file NAME.  We are seeking speed,
+    here.  */
 
 void
 reload_frozen_state (m4 *context, const char *name)
@@ -365,7 +392,7 @@
   int operation;
   char syntax;
   char *string[3];
-  int allocated[3];
+  size_t allocated[3];
   int number[3] = {0};
 
 #define GET_CHARACTER						\
@@ -386,12 +413,19 @@
 #define GET_STRING(File, Buf, BufSize, StrLen)			\
   do								\
     {								\
-      CHECK_ALLOCATION ((Buf), (BufSize), (StrLen));		\
-      if ((StrLen) > 0)						\
-	if (!fread ((Buf), (size_t) (StrLen), 1, (File)))	\
+      size_t len = (StrLen);					\
+      char *p = (Buf);						\
+      CHECK_ALLOCATION (p, (BufSize), len);			\
+      while (len-- > 0)						\
+	{							\
+	  int ch = (version > 1 ? decode_char (File)		\
+		    : getc (File));				\
+	  if (ch == EOF)					\
 	  m4_error (context, EXIT_FAILURE, 0,			\
 		    _("premature end of frozen file"));		\
-      (Buf)[(StrLen)] = '\0';					\
+	  *p++ = ch;						\
+	}							\
+      *p = '\0';						\
     }								\
   while (0)
 
@@ -410,7 +444,7 @@
 	{							\
 	  free (Where);						\
 	  (Allocated) = (Needed) + 1;				\
-	  (Where) = xmalloc ((size_t) (Allocated));		\
+	  (Where) = xmalloc (Allocated);			\
 	}							\
     }								\
   while (0)
@@ -436,11 +470,11 @@
     m4_error (context, EXIT_FAILURE, errno, _("cannot open `%s'"), name);
 
   allocated[0] = 100;
-  string[0] = xmalloc ((size_t) allocated[0]);
+  string[0] = xmalloc (allocated[0]);
   allocated[1] = 100;
-  string[1] = xmalloc ((size_t) allocated[1]);
+  string[1] = xmalloc (allocated[1]);
   allocated[2] = 100;
-  string[2] = xmalloc ((size_t) allocated[2]);
+  string[2] = xmalloc (allocated[2]);
 
   /* Validate format version.  Accept both `1' (m4 1.3 and 1.4.x) and
      `2' (m4 2.0).  */
@@ -451,22 +485,13 @@
   switch (version)
     {
     case 2:
-      {
-	int ch;
-
-	/* Take care not to mix frozen state with startup state.  */
-	for (ch = 256; --ch > 0;)
-	  context->syntax->table[ch] = 0;
-      }
       break;
     case 1:
-      {
 	m4__module_open (context, "m4", NULL);
 	if (m4_get_posixly_correct_opt (context))
 	  m4__module_open (context, "traditional", NULL);
 	else
 	  m4__module_open (context, "gnu", NULL);
-      }
       break;
     default:
       if (version > 2)
@@ -613,26 +638,13 @@
 	  GET_CHARACTER;
 	  GET_NUMBER (number[0]);
 	  VALIDATE ('\n');
+	  GET_STRING (file, string[0], allocated[0], number[0]);
 
-	  CHECK_ALLOCATION (string[0], allocated[0], number[0]);
-	  if (number[0] > 0)
-	    {
-	      int i;
-
-	      for (i = 0; i < number[0]; ++i)
-		{
-		  int ch = decode_char (file);
-
-		  if (ch < 0)
-		    m4_error (context, EXIT_FAILURE, 0,
-			      _("premature end of frozen file"));
-
-		  string[0][i] = ch;
-		}
-	    }
-	  string[0][number[0]] = '\0';
-
-	  if ((m4_set_syntax (context->syntax, syntax, '=', string[0]) < 0)
+	  /* Syntax under M4_SYNTAX_MASKS is handled specially; all
+	     other characters are additive.  */
+	  if ((m4_set_syntax (context->syntax, syntax,
+			      (m4_syntax_code (syntax) & M4_SYNTAX_MASKS
+			       ? '=' : '+'), string[0]) < 0)
 	      && (syntax != '\0'))
 	    {
 	      m4_error (context, 0, 0,



From MAILER-DAEMON Sat Jan 20 23:09:19 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H8U18-0001xE-Cv
	for mharc-m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:18 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H8U14-0001rL-R5
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:15 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H8U13-0001oP-AG
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:13 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H8U12-0001n7-Hf
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H8U11-0002wj-Pi
	for m4-commit@gnu.org; Sat, 20 Jan 2007 23:09:12 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H8U0I-0001MZ-Eg
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:08:26 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H8U10-0002vp-8r
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:10 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H8U0y-0002v4-6j
	for m4-cvs-logs@gnu.org; Sat, 20 Jan 2007 23:09:08 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H8U0x-0000Yd-Bi
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:07 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H8U0x-0000YU-5W
	for m4-cvs-logs@gnu.org; Sun, 21 Jan 2007 04:09:07 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H8U0x-0000YU-5W@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 21 Jan 2007 04:09:07 +0000
Cc: 
Subject: Changes to m4/TODO,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Jan 2007 04:09:15 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/21 04:09:06

Index: TODO
===================================================================
RCS file: /sources/m4/m4/TODO,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- TODO	5 Sep 2006 13:25:24 -0000	1.20
+++ TODO	21 Jan 2007 04:09:06 -0000	1.21
@@ -1,5 +1,5 @@
 GNU m4 TODO - Tasks that need implementing.		-*- outline -*-
-Copyright (C) 2000, 2001, 2006 Free Software Foundation, Inc.
+Copyright (C) 2000, 2001, 2006, 2007 Free Software Foundation, Inc.
 
 Tell the maintainers at <bug-m4@gnu.org> if you feel like volunteering
 for any of these ideas or if you have others to add.
@@ -66,10 +66,6 @@
   + Make m4 show include dependencies like gcc so Makefile targets are
     updated when their (included) input files are updated (Erick B).
 
-  + Sort out all the weird forms of interaction between changesyntax,
-    changecom and changequote.  What happens if you install a quote with
-    changequote and removes it with changesyntax and vice versa.
-
   + Add support for wide character sets.
 
 



From MAILER-DAEMON Tue Jan 23 09:28:41 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdb-0001mV-Hf
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:39 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9MdY-0001f6-Kh
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:36 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdW-0001ap-9h
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdW-0001a0-0t
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdU-0002eW-HK
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:32 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mch-0007jM-LA
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdR-0002d9-5T
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:31 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdP-0002c9-HM
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdM-0005X5-La
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdM-0005Wv-F3
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdM-0005Wv-F3@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:24 +0000
Cc: 
Subject: Changes to m4/m4/m4module.h,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:38 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: m4/m4module.h
===================================================================
RCS file: /sources/m4/m4/m4/m4module.h,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -b -r1.104 -r1.105
--- m4/m4module.h	13 Jan 2007 13:55:37 -0000	1.104
+++ m4/m4module.h	23 Jan 2007 14:28:22 -0000	1.105
@@ -355,30 +355,32 @@
 extern	bool		 m4_is_syntax_single_comments	(m4_syntax_table *);
 extern	bool		 m4_is_syntax_macro_escaped	(m4_syntax_table *);
 
-/* These are values to be assigned to syntax table entries, although they
-   are bit masks for fast categorisation in m4__next_token(), only one
-   value per syntax table entry is allowed.  */
+/* These are values to be assigned to syntax table entries.  Although
+   they are bit masks for fast categorization in m4__next_token(),
+   only one value per syntax table entry is allowed.  The enumeration
+   is currently sorted in order of parsing precedence.  */
 enum {
-  M4_SYNTAX_OTHER		= (1 << 0),
-  M4_SYNTAX_IGNORE		= (1 << 1),
-  M4_SYNTAX_SPACE		= (1 << 2),
-  M4_SYNTAX_OPEN		= (1 << 3),
-  M4_SYNTAX_CLOSE		= (1 << 4),
-  M4_SYNTAX_COMMA		= (1 << 5),
-  M4_SYNTAX_DOLLAR		= (1 << 6),
-  M4_SYNTAX_ACTIVE		= (1 << 7),
-  M4_SYNTAX_ESCAPE		= (1 << 8),
-  M4_SYNTAX_ASSIGN		= (1 << 9),
-  M4_SYNTAX_ALPHA		= (1 << 10),
-  M4_SYNTAX_NUM			= (1 << 11),
-  M4_SYNTAX_LQUOTE		= (1 << 12),
-  M4_SYNTAX_BCOMM		= (1 << 13),
+  M4_SYNTAX_IGNORE		= 0,
+  M4_SYNTAX_ESCAPE		= 1 << 0,
+  M4_SYNTAX_ALPHA		= 1 << 1,
+  M4_SYNTAX_LQUOTE		= 1 << 2,
+  M4_SYNTAX_BCOMM		= 1 << 3,
+  M4_SYNTAX_OTHER		= 1 << 4,
+  M4_SYNTAX_NUM			= 1 << 5,
+  M4_SYNTAX_DOLLAR		= 1 << 6,
+  M4_SYNTAX_LBRACE		= 1 << 7,
+  M4_SYNTAX_RBRACE		= 1 << 8,
+  M4_SYNTAX_SPACE		= 1 << 9,
+  M4_SYNTAX_ACTIVE		= 1 << 10,
+  M4_SYNTAX_OPEN		= 1 << 11,
+  M4_SYNTAX_CLOSE		= 1 << 12,
+  M4_SYNTAX_COMMA		= 1 << 13,
 
   /* These values are bit masks to OR with categories above, a syntax entry
      may have any number of these in addition to a maximum of one of the
      values above.  */
-  M4_SYNTAX_RQUOTE		= (1 << 14),
-  M4_SYNTAX_ECOMM		= (1 << 15),
+  M4_SYNTAX_RQUOTE		= 1 << 14,
+  M4_SYNTAX_ECOMM		= 1 << 15
 };
 
 #define M4_SYNTAX_MASKS		(M4_SYNTAX_RQUOTE | M4_SYNTAX_ECOMM)



From MAILER-DAEMON Tue Jan 23 09:28:44 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdg-0001v1-5k
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:44 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mda-0001l3-PU
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdX-0001cY-3N
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdW-0001bL-Gr
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdV-0002en-Af
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:33 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mci-0007jQ-Cy
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:44 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdR-0002dT-92
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdO-0002bu-NF
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdL-0005Wf-Rw
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:23 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdL-0005WZ-MK
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:23 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdL-0005WZ-MK@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:23 +0000
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:39 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.480
retrieving revision 1.481
diff -u -b -r1.480 -r1.481
--- ChangeLog	21 Jan 2007 04:09:06 -0000	1.480
+++ ChangeLog	23 Jan 2007 14:28:22 -0000	1.481
@@ -1,3 +1,30 @@
+2007-01-23  Eric Blake  <ebb9@byu.net>
+
+	* m4/m4module.h (M4_SYNTAX_ASSIGN): Delete this unused
+	extension to make enough room.
+	(M4_SYNTAX_IGNORE): Change value to zero, since the (commented)
+	code in input.c special cases this category.
+	(M4_SYNTAX_LBRACE, M4_SYNTAX_RBRACE): New values in preparation
+	for define(eleventh,${11}) extension.
+	* m4/syntax.c: Update comments accordingly.
+	(m4_syntax_create, m4_syntax_code): Handle { and }.
+	* m4/input.c (m4__next_token): Likewise.
+	* src/freeze.c (produce_frozen_state): Support new categories.
+	(reload_frozen_state): When loading version 1, disable syntax
+	features not present in 1.4.x.
+	* tests/freeze.at: Sort and rename existing tests.
+	(loading format 1): Ensure we don't break v1 frozen files that
+	used raw ${.
+	(loading format 2, reloading changecom, reloading changesyntax):
+	New tests.
+	* doc/m4.texinfo (Changesyntax, Frozen file format 1): Document
+	the new syntax categories.
+	(Arguments): Update the FIXME comment.
+	(M4wrap): Merge examples from branch, before worrying about fixing
+	m4wrap to obey POSIX.
+	(Using frozen files): Start merging from branch.
+	* NEWS: Update.
+
 2007-01-20  Eric Blake  <ebb9@byu.net>
 
 	* src/freeze.c (produce_char_dump): Delete.  Replace with...
@@ -8511,7 +8538,7 @@
 
 	-----
 
-	$Revision: 1.480 $ $Date: 2007/01/21 04:09:06 $
+	$Revision: 1.481 $ $Date: 2007/01/23 14:28:22 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Tue Jan 23 09:28:44 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdg-0001vT-DK
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:44 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mdb-0001lZ-Av
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdX-0001dS-Ni
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdX-0001cy-AB
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdW-0002fH-9C
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mcj-0007ji-Fo
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:45 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdU-0002dM-RD
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:33 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdO-0002cC-QA
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdN-0005XH-0L
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:25 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdM-0005X9-RZ
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdM-0005X9-RZ@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:24 +0000
Cc: 
Subject: Changes to m4/src/freeze.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:40 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: src/freeze.c
===================================================================
RCS file: /sources/m4/m4/src/freeze.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -b -r1.59 -r1.60
--- src/freeze.c	21 Jan 2007 04:09:06 -0000	1.59
+++ src/freeze.c	23 Jan 2007 14:28:22 -0000	1.60
@@ -269,7 +269,7 @@
 
   /* Dump syntax table. */
 
-  str = "IS(),$A@OWDLRBE";
+  str = "I@WLBOD${}SA(),RE";
   while (*str)
     produce_syntax_dump (file, M4SYNTAX, *str++);
 
@@ -492,6 +492,9 @@
 	m4__module_open (context, "traditional", NULL);
       else
 	m4__module_open (context, "gnu", NULL);
+      /* Disable { and } categories, since ${11} was not supported in
+         1.4.x.  */
+      m4_set_syntax (context->syntax, 'O', '+', "{}");
       break;
     default:
       if (version > 2)



From MAILER-DAEMON Tue Jan 23 09:28:45 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdg-0001vx-Kc
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:44 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mdb-0001m6-Ah
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdY-0001et-A3
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdX-0001dL-GC
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdX-0002fZ-0k
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mck-0007jx-5N
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:46 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdR-0002df-TS
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:33 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdP-0002bp-AI
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdL-0005Wb-MM
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:23 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdL-0005WX-9n
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:23 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdL-0005WX-9n@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:23 +0000
Cc: 
Subject: m4 ChangeLog NEWS doc/m4.texinfo m4/input.c m4/...
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:40 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Modified files:
	.              : ChangeLog NEWS 
	doc            : m4.texinfo 
	m4             : input.c m4module.h syntax.c 
	src            : freeze.c 
	tests          : freeze.at 

Log message:
	* m4/m4module.h (M4_SYNTAX_ASSIGN): Delete this unused
	extension to make enough room.
	(M4_SYNTAX_IGNORE): Change value to zero, since the (commented)
	code in input.c special cases this category.
	(M4_SYNTAX_LBRACE, M4_SYNTAX_RBRACE): New values in preparation
	for define(eleventh,${11}) extension.
	* m4/syntax.c: Update comments accordingly.
	(m4_syntax_create, m4_syntax_code): Handle { and }.
	* m4/input.c (m4__next_token): Likewise.
	* src/freeze.c (produce_frozen_state): Support new categories.
	(reload_frozen_state): When loading version 1, disable syntax
	features not present in 1.4.x.
	* tests/freeze.at: Sort and rename existing tests.
	(loading format 1): Ensure we don't break v1 frozen files that
	used raw ${.
	(loading format 2, reloading changecom, reloading changesyntax):
	New tests.
	* doc/m4.texinfo (Changesyntax, Frozen file format 1): Document
	the new syntax categories.
	(Arguments): Update the FIXME comment.
	(M4wrap): Merge examples from branch, before worrying about fixing
	m4wrap to obey POSIX.
	(Using frozen files): Start merging from branch.
	* NEWS: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.480&r2=1.481
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&r1=1.37&r2=1.38
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&r1=1.93&r2=1.94
http://cvs.savannah.gnu.org/viewcvs/m4/m4/input.c?cvsroot=m4&r1=1.59&r2=1.60
http://cvs.savannah.gnu.org/viewcvs/m4/m4/m4module.h?cvsroot=m4&r1=1.104&r2=1.105
http://cvs.savannah.gnu.org/viewcvs/m4/m4/syntax.c?cvsroot=m4&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/m4/src/freeze.c?cvsroot=m4&r1=1.59&r2=1.60
http://cvs.savannah.gnu.org/viewcvs/m4/tests/freeze.at?cvsroot=m4&r1=1.8&r2=1.9



From MAILER-DAEMON Tue Jan 23 09:28:45 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdh-0001wg-0u
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mdb-0001lu-Dv
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdX-0001cL-05
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdW-0001bU-JX
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdV-0002eo-Ds
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:33 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mci-0007jR-D5
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:44 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdT-0002e0-DX
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdP-0002c5-AN
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdM-0005Wy-F8
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdM-0005Wp-8p
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdM-0005Wp-8p@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:24 +0000
Cc: 
Subject: Changes to m4/m4/input.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:40 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: m4/input.c
===================================================================
RCS file: /sources/m4/m4/m4/input.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -b -r1.59 -r1.60
--- m4/input.c	23 Dec 2006 00:02:20 -0000	1.59
+++ m4/input.c	23 Jan 2007 14:28:22 -0000	1.60
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2006 Free Software
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2006, 2007 Free Software
    Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -1170,11 +1170,13 @@
 	obstack_1grow (&token_stack, ch);
 
 	if (m4_has_syntax (M4SYNTAX, ch,
-			   M4_SYNTAX_OTHER | M4_SYNTAX_NUM | M4_SYNTAX_DOLLAR))
+			   (M4_SYNTAX_OTHER | M4_SYNTAX_NUM | M4_SYNTAX_DOLLAR
+                            | M4_SYNTAX_LBRACE | M4_SYNTAX_RBRACE)))
 	  {
 	    consume_syntax (context, &token_stack,
 			    (M4_SYNTAX_OTHER | M4_SYNTAX_NUM
-			     | M4_SYNTAX_DOLLAR));
+                             | M4_SYNTAX_DOLLAR | M4_SYNTAX_LBRACE
+                             | M4_SYNTAX_RBRACE));
 	    type = M4_TOKEN_STRING;
 	  }
 	else if (m4_has_syntax (M4SYNTAX, ch, M4_SYNTAX_SPACE))
@@ -1192,7 +1194,8 @@
 	obstack_1grow (&token_stack, ch);
 
 	if (m4_has_syntax (M4SYNTAX, ch,
-			   M4_SYNTAX_OTHER | M4_SYNTAX_NUM | M4_SYNTAX_DOLLAR))
+			   (M4_SYNTAX_OTHER | M4_SYNTAX_NUM | M4_SYNTAX_DOLLAR
+                            | M4_SYNTAX_LBRACE | M4_SYNTAX_RBRACE)))
 	  type = M4_TOKEN_STRING;
 	else if (m4_has_syntax (M4SYNTAX, ch, M4_SYNTAX_SPACE))
 	  type = M4_TOKEN_SPACE;



From MAILER-DAEMON Tue Jan 23 09:28:46 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdi-0001yb-6X
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:46 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mdb-0001mh-N6
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdY-0001g9-RZ
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:37 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdX-0001dQ-JK
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdW-0002fF-71
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mcj-0007jh-Cz
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:45 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdR-0002dl-W6
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdO-0002cG-Q5
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:28 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdN-0005XK-7O
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:25 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdN-0005XE-0I
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:25 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdN-0005XE-0I@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:25 +0000
Cc: 
Subject: Changes to m4/tests/freeze.at,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:41 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: tests/freeze.at
===================================================================
RCS file: /sources/m4/m4/tests/freeze.at,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- tests/freeze.at	31 Aug 2006 03:21:35 -0000	1.8
+++ tests/freeze.at	23 Jan 2007 14:28:23 -0000	1.9
@@ -1,5 +1,5 @@
 # Hand crafted tests for GNU M4.                               -*- Autotest -*-
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2007 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
@@ -39,7 +39,7 @@
 $ cat frozen.m4
 divert(`-1')
 define(`foo', `\FOO')
-pushdef(`foo', `bar')
+pushdef(`foo', `bar${1}')
 define(`my_define', defn(`define'))
 define(`my_changeword', defn(`changeword'))
 pushdef(`my_define', `define')
@@ -72,12 +72,12 @@
 my_definedefine
 T3,4
 foo\FOO
-T3,3
-foobar
+T3,7
+foobar${1}
 F3,3
 dnldnl
-D1,4
-bar
+D1,8
+bar${1}
 
 D0,0
 
@@ -85,7 +85,7 @@
 ]])
 
 AT_DATA([input.m4],
-[[foo /* foo */ popdef([foo])foo
+[[foo([2]) /* foo */ popdef([foo])foo
 my_define([bar], [1])[]popdef([my_define]) bar
 my_define([bar], [2])[]popdef([my_define]) bar
 my_define([bar], [3])[]popdef([my_define]) bar
@@ -93,12 +93,12 @@
 ]])
 
 AT_CHECK_M4([-R frozen.m4f input.m4], [0],
-[[bar /* foo */ \FOO
+[[bar${1} /* foo */ \FOO
  1
 define 1
  3
 my_define(bar, 4) 3
-bar
+bar${1}
 ]],
 [[m4:input.m4:5: Warning: popdef: undefined macro `my_define'
 ]])
@@ -106,9 +106,162 @@
 AT_CLEANUP
 
 
-## -------------------------- ##
-## Reloading unknown builtins ##
-## -------------------------- ##
+## ---------------- ##
+## loading format 2 ##
+## ---------------- ##
+
+AT_SETUP([loading format 2])
+AT_KEYWORDS([frozen])
+
+AT_DATA([frozen.m4f],
+[[# Handcrafted file, obeying the version 2 spec
+V2
+# missing close quote should be supplied
+Q1,0
+>
+# missing close comment should be supplied
+C1,0
+<
+M2
+m4
+M3
+gnu
+F7,7,3
+builtinbuiltingnu
+# Testing escape sequences
+T4,5
+blah\t\477\040\X5C
+]])
+
+AT_DATA([input.m4],
+[[< comment: builtin()
+builtin(>define', foo, bar)
+foo
+blah
+]])
+
+AT_CHECK_M4([-R frozen.m4f input.m4], [0],
+[[< comment: builtin()
+
+bar
+	'7 \
+]])
+
+AT_CLEANUP
+
+
+## --------- ##
+## changecom ##
+## --------- ##
+
+AT_SETUP([reloading changecom])
+AT_KEYWORDS([frozen])
+
+# Check that changesyntax is maintained across freeze boundaries.
+
+AT_DATA([[frozen.m4]],
+[[changecom`'changequote(<,>)dnl
+]])
+
+AT_DATA([[unfrozen.m4]],
+[[define(<foo>, <bar>)
+foo # foo
+]])
+
+# First generate the `expout' output by running over the sources before
+# freezing.
+AT_CHECK_M4([frozen.m4 unfrozen.m4], [0],
+	    [stdout], [stderr])
+
+mv stdout expout
+mv stderr experr
+
+# Now freeze the first source file.
+AT_CHECK_M4([-F frozen.m4f frozen.m4], [0])
+
+# Now rerun the original sequence, but using the frozen file.
+AT_CHECK_M4([-R frozen.m4f unfrozen.m4], [0],
+	    [expout], [experr])
+
+AT_CLEANUP
+
+
+## ------------ ##
+## changesyntax ##
+## ------------ ##
+
+AT_SETUP([reloading changesyntax])
+AT_KEYWORDS([frozen])
+
+# Check that changesyntax is maintained across freeze boundaries.
+
+AT_DATA([[frozen.m4]],
+[[changesyntax(`W+.', `({', `)}')dnl
+define{`a.b', `hello $1'}dnl
+]])
+
+AT_DATA([[unfrozen.m4]],
+[[a.b{world}
+]])
+
+# First generate the `expout' output by running over the sources before
+# freezing.
+AT_CHECK_M4([frozen.m4 unfrozen.m4], [0],
+	    [stdout], [stderr])
+
+mv stdout expout
+mv stderr experr
+
+# Now freeze the first source file.
+AT_CHECK_M4([-F frozen.m4f frozen.m4], [0])
+
+# Now rerun the original sequence, but using the frozen file.
+AT_CHECK_M4([-R frozen.m4f unfrozen.m4], [0],
+	    [expout], [experr])
+
+AT_CLEANUP
+
+
+## ------------- ##
+## regexp syntax ##
+## ------------- ##
+
+AT_SETUP([reloading regexp syntax])
+AT_KEYWORDS([frozen])
+
+# Check that regular expression syntax is maintained across freeze boundaries.
+
+AT_DATA([[frozen.m4]],
+[[changeresyntax(`POSIX_EXTENDED')dnl
+]])
+
+AT_DATA([[unfrozen.m4]],
+[[regexp(`GNUs not Unix', `\w(\w*)$')
+regexp(`GNUs not Unix', `\w\(\w*\)$', `GNU_M4')
+]])
+
+# First generate the `expout' output by running over the sources before
+# freezing.
+AT_CHECK_M4([frozen.m4 unfrozen.m4], [0],
+	    [stdout], [stderr])
+
+mv stdout expout
+mv stderr experr
+
+# Now freeze the first source file.
+AT_CHECK_M4([-F frozen.m4f frozen.m4], [0],
+	    [ignore], [ignore])
+
+# Now rerun the original sequence, but using the frozen file.
+AT_CHECK_M4([-R frozen.m4f unfrozen.m4], [0],
+	    [expout], [experr])
+
+AT_CLEANUP
+
+
+## ---------------- ##
+## unknown builtins ##
+## ---------------- ##
 
 AT_SETUP([reloading unknown builtin])
 AT_KEYWORDS([frozen])
@@ -158,39 +311,3 @@
 ]])
 
 AT_CLEANUP
-
-## ---------------------- ##
-## Freezing regexp syntax ##
-## ---------------------- ##
-
-AT_SETUP([regexp syntax])
-AT_KEYWORDS([frozen])
-
-# Check that regular expression syntax is maintained across freeze baundaries.
-
-AT_DATA([[frozen.m4]],
-[[changeresyntax(`POSIX_EXTENDED')dnl
-]])
-
-AT_DATA([[unfrozen.m4]],
-[[regexp(`GNUs not Unix', `\w(\w*)$')
-regexp(`GNUs not Unix', `\w\(\w*\)$', `GNU_M4')
-]])
-
-# First generate the `expout' output by running over the sources before
-# freezing.
-AT_CHECK_M4([frozen.m4 unfrozen.m4], 0,
-	    [stdout], [stderr])
-
-mv stdout expout
-mv stderr experr
-
-# Now freeze the first source file.
-AT_CHECK_M4([-F frozen.m4f frozen.m4], 0,
-	    [ignore], [ignore])
-
-# Now rerun the original sequence, but using the frozen file.
-AT_CHECK_M4([-R frozen.m4f unfrozen.m4], 0,
-	    [expout], [experr])
-
-AT_CLEANUP([frozen.m4f])



From MAILER-DAEMON Tue Jan 23 09:28:47 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdi-0001z8-Fh
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:46 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mdb-0001nR-WE
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:40 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdY-0001g4-Qy
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:37 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdX-0001dB-Fl
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdW-0002fQ-M8
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mcj-0007js-Q5
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:45 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdU-0002ds-SE
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:33 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdO-0002bw-PM
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdM-0005Wl-2W
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdL-0005Wd-Rr
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:23 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdL-0005Wd-Rr@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:23 +0000
Cc: 
Subject: Changes to m4/NEWS,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:42 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- NEWS	21 Jan 2007 04:09:06 -0000	1.37
+++ NEWS	23 Jan 2007 14:28:22 -0000	1.38
@@ -155,7 +155,9 @@
 
 *** The `changesyntax' builtin has been improved, to make it easier to add
     and remove characters from a syntax class without having to specify the
-    entire set of characters in that class.
+    entire set of characters in that class.  It also supports two new
+    syntax categories, `{' and `}', for extended argument handling in macro
+    definitions.
 
 *** New `m' flag to `-d'/`--debug' command-line option or `debugmode'
     builtin traces actions related to module loading and unloading, and
@@ -192,7 +194,7 @@
 ** Other changes
 
 *** The syntax of frozen files format V2 has been improved to save
-    additional state.  This includes the 'R' directive for default regular
+    additional state.  This includes the `R' directive for default regular
     expression syntax.  Also, a V2 file can now be represented completely
     in ASCII, thanks to escape sequences.  Unfortunately, files frozen by
     M4 1.4q that contain \ in macros cannot be read by 1.9b, but since 1.4q



From MAILER-DAEMON Tue Jan 23 09:28:45 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdh-0001xA-82
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mdb-0001mZ-Mg
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:39 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdX-0001d9-Qb
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdX-0001cv-8z
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdW-0002f7-1X
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mcj-0007jd-47
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:45 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdS-0002dY-KS
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdO-0002bz-LB
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdM-0005Wr-8u
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdM-0005Wj-2Q
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdM-0005Wj-2Q@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:24 +0000
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:40 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- doc/m4.texinfo	15 Jan 2007 14:04:26 -0000	1.93
+++ doc/m4.texinfo	23 Jan 2007 14:28:22 -0000	1.94
@@ -1706,12 +1706,13 @@
 or more digits, allowing macros to have any number of arguments.  This
 is not so in UNIX implementations of @code{m4}, which only recognize
 one digit.
-@comment FIXME - See Austin group XCU ERN 111.  This is controversial,
-@comment and POSIX is moving to reserve ${ for implementation use.  We
-@comment should phase out $10 and replace it with ${10}, and consider
-@comment other extensions like ${1-default}.  There are existing m4
-@comment scripts that depend on $10 being the first parameter
-@comment concatenated with 0, not the tenth argument.
+@comment FIXME - See Austin group XCU ERN 111.  POSIX says that $11 must
+@comment be the first argument concatenated with 1, and instead reserves
+@comment ${11} for implementation use.  Once this is implemented, the
+@comment documentation needs to reflect how these extended arguments
+@comment are handled, as well as backwards compatibility issues with
+@comment 1.4.x.  Also, consider adding further extensions such as
+@comment ${1-default}, which expands to `default' if $1 is empty.
 
 As a special case, the zeroth argument, @code{$0}, is always the name
 of the macro being expanded.
@@ -4154,6 +4155,15 @@
 Characters that can introduce an argument reference in the body of a
 macro.  The default is the single character @samp{$}.
 
+@item Left brace
+Characters that introduce an extended argument reference in the body of
+a macro immediately after a character in the Dollar category.  The
+default is the single character @samp{@{}.
+
+@item Right brace
+Characters that conclude an extended argument reference in the body of a
+macro.  The default is the single character @samp{@}}.
+
 @item Left quote
 The set of characters that can start a single-character quoted string.
 The default is the single character @samp{`}.  For multiple-character
@@ -4523,11 +4533,54 @@
 The saved input is only reread when the end of normal input is seen, and
 not if @code{m4exit} is used to exit @code{m4}.
 
+@comment FIXME: this contradicts POSIX, which requires that "If the
+@comment m4wrap macro is used multiple times, the arguments specified
+@comment shall be processed in the order in which the m4wrap macros were
+@comment processed."
 It is safe to call @code{m4wrap} from saved text, but then the order in
 which the saved text is reread is undefined.  If @code{m4wrap} is not used
 recursively, the saved pieces of text are reread in the opposite order
 in which they were saved (LIFO---last in, first out).
 
+Here is an example of implementing a factorial function using
+@code{m4wrap}:
+
+@example
+define(`f', `ifelse(`$1', `0', `Answer: 0!=1
+', eval(`$1>1'), `0', `Answer: $2$1=eval(`$2$1')
+', `m4wrap(`f(decr(`$1'), `$2$1*')')')')
+@result{}
+f(`10')
+@result{}
+^D
+@result{}Answer: 10*9*8*7*6*5*4*3*2*1=3628800
+@end example
+
+Invocations of @code{m4wrap} at the same recursion level are
+concatenated and rescanned as usual:
+
+@example
+define(`aa', `AA
+')
+@result{}
+m4wrap(`a')m4wrap(`a')
+@result{}
+^D
+@result{}AA
+@end example
+
+@noindent
+however, the transition between recursion levels behaves like an end of
+file condition between two input files.
+
+@comment status: 1
+@example
+m4wrap(`m4wrap(`)')len(abc')
+@result{}
+^D
+@error{}m4:stdin:1: end of file in argument list
+@end example
+
 @node File Inclusion
 @chapter File inclusion
 
@@ -6739,7 +6792,11 @@
 containing hundreds of definitions and other costly initializations.
 Usually, the common base is kept in one or more declarative files,
 which files are listed on each @code{m4} invocation prior to the
-user's input file, or else, @code{include}'d from this input file.
+user's input file, or else each input file uses @code{include}.
+
+Reading the common base of a big application, over and over again, may
+be time consuming.  @acronym{GNU} @code{m4} offers some machinery to
+speed up the start of an application using lengthy common bases.
 
 @menu
 * Using frozen files::          Using frozen files
@@ -6756,23 +6813,22 @@
 @cindex dumping into frozen file
 @cindex reloading a frozen file
 @cindex @acronym{GNU} extensions
-Reading the common base of a big application, over and over again, may
-be time consuming.  GNU @code{m4} offers some machinery to speed up
-the start of an application using lengthy common bases.  Presume the
-user repeatedly uses:
+Suppose a user has a library of @code{m4} initializations in
+@file{base.m4}, which is then used with multiple input files:
 
 @comment ignore
 @example
-m4 base.m4 input.m4
+$ @kbd{m4 base.m4 input1.m4}
+$ @kbd{m4 base.m4 input2.m4}
+$ @kbd{m4 base.m4 input3.m4}
 @end example
 
-@noindent
-with a varying contents of @file{input.m4}, but a rather fixed contents
-for @file{base.m4}.  Then, the user might rather execute:
+Rather than spending time parsing the fixed contents of @file{base.m4}
+every time, the user might rather execute:
 
 @comment ignore
 @example
-m4 -F base.m4f base.m4
+$ @kbd{m4 -F base.m4f base.m4}
 @end example
 
 @noindent
@@ -6780,20 +6836,22 @@
 
 @comment ignore
 @example
-m4 -R base.m4f input.m4
+$ @kbd{m4 -R base.m4f input1.m4}
+$ @kbd{m4 -R base.m4f input2.m4}
+$ @kbd{m4 -R base.m4f input3.m4}
 @end example
 
 @noindent
 with the varying input.  The first call, containing the @code{-F}
-option, only reads and executes file @file{base.m4}, so defining
-various application macros and computing other initializations.  Only
-once the input file @file{base.m4} has been completely processed, GNU
-@code{m4} produces on @file{base.m4f} a @dfn{frozen} file, that is, a
+option, only reads and executes file @file{base.m4}, defining
+various application macros and computing other initializations.
+Once the input file @file{base.m4} has been completely processed, @acronym{GNU}
+@code{m4} produces in @file{base.m4f} a @dfn{frozen} file, that is, a
 file which contains a kind of snapshot of the @code{m4} internal state.
 
 Later calls, containing the @code{-R} option, are able to reload
-the internal state of @code{m4}'s memory, from @file{base.m4f},
-@emph{prior} to reading any other input files.  By this mean,
+the internal state of @code{m4}, from @file{base.m4f},
+@emph{prior} to reading any other input files.  This means
 instead of starting with a virgin copy of @code{m4}, input will be
 read after having effectively recovered the effect of a prior run.
 In our example, the effect is the same as if file @file{base.m4} has
@@ -6807,7 +6865,7 @@
 
 @comment ignore
 @example
-m4 file1.m4 file2.m4 file3.m4 file4.m4
+$ @kbd{m4 file1.m4 file2.m4 file3.m4 file4.m4}
 @end example
 
 @noindent
@@ -6816,20 +6874,13 @@
 
 @comment ignore
 @example
-m4 -F file1.m4f file1.m4
-m4 -R file1.m4f -F file2.m4f file2.m4
-m4 -R file2.m4f -F file3.m4f file3.m4
-m4 -R file3.m4f file4.m4
-@end example
-
-This could also be done in a simple way, if everything has been prepared
-before:
-
-@comment ignore
-@example
-m4 -F file1.m4f file1.m4 file2.m4 file3.m4 file4.m4
+$ @kbd{m4 -F file1.m4f file1.m4}
+$ @kbd{m4 -R file1.m4f -F file2.m4f file2.m4}
+$ @kbd{m4 -R file2.m4f -F file3.m4f file3.m4}
+$ @kbd{m4 -R file3.m4f file4.m4}
 @end example
 
+@comment FIXME - merge the rest of this section.
 Some care is necessary because not every effort has been made for
 this to work in all cases.  In particular, the trace attribute of
 macros is not handled.
@@ -6855,6 +6906,13 @@
 this text is not removed before a release.
 FIXME - split out the two formats into separate nodes.
 
+When loading format 1, the syntax categories @samp{@{} and @samp{@}} are
+disabled (reverting braces to be treated like plain characters).  This
+is because frozen files created with M4 1.4.x did not understand
+@samp{$@{@dots{}@}} extended argument notation, and a frozen macro that
+contained this character sequence should not behave differently just
+because a newer version of M4 reloaded the file.
+
 @node Frozen file format 2
 @section Frozen file format 2
 



From MAILER-DAEMON Tue Jan 23 09:28:46 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1H9Mdh-0001xp-JS
	for mharc-m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1H9Mdb-0001n5-Pf
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:40 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1H9MdX-0001cN-0a
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:35 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1H9MdW-0001be-Ke
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from [199.232.76.164] (helo=fencepost.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9MdV-0002ey-NU
	for m4-commit@gnu.org; Tue, 23 Jan 2007 09:28:34 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1H9Mci-0007ja-Tk
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:27:44 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1H9MdS-0002du-Ub
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:32 -0500
Received: from [199.232.41.3] (helo=savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1H9MdO-0002cA-VM
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 09:28:27 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1H9MdM-0005XB-Rf
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1H9MdM-0005X3-LV
	for m4-cvs-logs@gnu.org; Tue, 23 Jan 2007 14:28:24 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1H9MdM-0005X3-LV@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Tue, 23 Jan 2007 14:28:24 +0000
Cc: 
Subject: Changes to m4/m4/syntax.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2007 14:28:41 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/23 14:28:23

Index: m4/syntax.c
===================================================================
RCS file: /sources/m4/m4/m4/syntax.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- m4/syntax.c	12 Jan 2007 23:07:27 -0000	1.20
+++ m4/syntax.c	23 Jan 2007 14:28:22 -0000	1.21
@@ -36,9 +36,10 @@
    M4_SYNTAX_CLOSE	Close list of macro arguments
    M4_SYNTAX_COMMA	Separates macro arguments
    M4_SYNTAX_DOLLAR	Indicates macro argument in user macros
+   M4_SYNTAX_LBRACE	Indicates start of extended macro argument
+   M4_SYNTAX_RBRACE	Indicates end of extended macro argument
    M4_SYNTAX_ACTIVE	This character is a macro name by itself
    M4_SYNTAX_ESCAPE	Use this character to prefix all macro names
-   M4_SYNTAX_ASSIGN	*Used to assign defaults in parameter lists
 
    M4_SYNTAX_ALPHA	Alphabetic characters (can start macro names)
    M4_SYNTAX_NUM	Numeric characters (can form macro names)
@@ -75,22 +76,29 @@
    The precedence as implemented by next_token () is:
 
    M4_SYNTAX_IGNORE	*Filtered out below next_token ()
-   M4_SYNTAX_ESCAPE	Reads macro name iff set, else next
-   M4_SYNTAX_ALPHA	Reads macro name
+   M4_SYNTAX_ESCAPE	Reads macro name iff set, else next character
+   M4_SYNTAX_ALPHA	Reads M4_SYNTAX_ALPHA and M4_SYNTAX_NUM as macro name
    M4_SYNTAX_LQUOTE	Reads all until balanced M4_SYNTAX_RQUOTE
    M4_SYNTAX_BCOMM	Reads all until M4_SYNTAX_ECOMM
 
    M4_SYNTAX_OTHER  }	Reads all M4_SYNTAX_OTHER, M4_SYNTAX_NUM
-   M4_SYNTAX_NUM    }	and M4_SYNTAX_DOLLAR
+   M4_SYNTAX_NUM    }	M4_SYNTAX_DOLLAR, M4_SYNTAX_LBRACE, M4_SYNTAX_RBRACE
    M4_SYNTAX_DOLLAR }
+   M4_SYNTAX_LBRACE }
+   M4_SYNTAX_RBRACE }
 
-   M4_SYNTAX_SPACE	Reads all M4_SYNTAX_SPACE
-   M4_SYNTAX_ACTIVE	Returns a single char as a word
-   the rest		Returned as a single char
-
-   The $ is not really a part of m4's input syntax in the sense that a
-   string is parsed equally whether there is a $ or not.  The character
-   $ is used by convention in user macros.  */
+   M4_SYNTAX_SPACE	Reads all M4_SYNTAX_SPACE, depending on buffering
+   M4_SYNTAX_ACTIVE	Returns a single char as a macro name
+
+   M4_SYNTAX_OPEN   }	Returned as a single char
+   M4_SYNTAX_CLOSE  }
+   M4_SYNTAX_COMMA  }
+
+   The $, {, and } are not really a part of m4's input syntax, because a
+   a string is parsed equally whether there is a $ or not.  These characters
+   are instead used during user macro expansion.
+
+   M4_SYNTAX_RQUOTE and M4_SYNTAX_ECOMM do not start tokens.  */
 
 static bool	check_is_single_quotes		(m4_syntax_table *);
 static bool	check_is_single_comments	(m4_syntax_table *);
@@ -120,16 +128,18 @@
       case '$':
 	syntax->orig[ch] = M4_SYNTAX_DOLLAR;
 	break;
+      case '{':
+	syntax->orig[ch] = M4_SYNTAX_LBRACE;
+	break;
+      case '}':
+	syntax->orig[ch] = M4_SYNTAX_RBRACE;
+	break;
       case '`':
 	syntax->orig[ch] = M4_SYNTAX_LQUOTE;
 	break;
       case '#':
 	syntax->orig[ch] = M4_SYNTAX_BCOMM;
 	break;
-      case '=':
-	/* FIXME -revisit the assign syntax attribute.  */
-	/* syntax->orig[ch] = M4_SYNTAX_ASSIGN; */
-	/* break; */
       case '\0':
 	/* FIXME - revisit the ignore syntax attribute.  */
 	/* syntax->orig[ch] = M4_SYNTAX_IGNORE; */
@@ -169,26 +179,26 @@
 
   switch (ch)
     {
+       /* Sorted according to the order of M4_SYNTAX_* in m4module.h.  */
     /* FIXME - revisit the ignore syntax attribute.  */
     case 'I': case 'i': code = M4_SYNTAX_IGNORE; break;
-    case 'O': case 'o': code = M4_SYNTAX_OTHER;  break;
-    case 'S': case 's': code = M4_SYNTAX_SPACE;  break;
+    case '@':		code = M4_SYNTAX_ESCAPE; break;
     case 'W': case 'w': code = M4_SYNTAX_ALPHA;  break;
+    case 'L': case 'l':	code = M4_SYNTAX_LQUOTE; break;
+    case 'B': case 'b':	code = M4_SYNTAX_BCOMM;  break;
+    case 'O': case 'o':	code = M4_SYNTAX_OTHER;  break;
     case 'D': case 'd': code = M4_SYNTAX_NUM;    break;
-
+    case '$':		code = M4_SYNTAX_DOLLAR; break;
+    case '{':		code = M4_SYNTAX_LBRACE; break;
+    case '}':		code = M4_SYNTAX_RBRACE; break;
+    case 'S': case 's':	code = M4_SYNTAX_SPACE;  break;
+    case 'A': case 'a':	code = M4_SYNTAX_ACTIVE; break;
     case '(': code = M4_SYNTAX_OPEN;   break;
     case ')': code = M4_SYNTAX_CLOSE;  break;
     case ',': code = M4_SYNTAX_COMMA;  break;
-    /* FIXME - revisit the assign syntax attribute.  */
-    case '=': code = M4_SYNTAX_ASSIGN; break;
-    case '@': code = M4_SYNTAX_ESCAPE; break;
-    case '$': code = M4_SYNTAX_DOLLAR; break;
 
-    case 'L': case 'l': code = M4_SYNTAX_LQUOTE; break;
     case 'R': case 'r': code = M4_SYNTAX_RQUOTE; break;
-    case 'B': case 'b': code = M4_SYNTAX_BCOMM;  break;
     case 'E': case 'e': code = M4_SYNTAX_ECOMM;  break;
-    case 'A': case 'a': code = M4_SYNTAX_ACTIVE;  break;
 
     default: code = -1;  break;
     }



From MAILER-DAEMON Fri Jan 26 19:25:23 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAbNj-0007R7-Py
	for mharc-m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:23 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAbNi-0007Qc-7L
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAbNh-0007Q0-Mb
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:21 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAbNh-0007Po-5U
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:21 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAbNg-0002uk-Kg
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:20 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAbMo-0001Dv-VD
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:24:27 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAbNf-0002u4-IS
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:19 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAbNe-0002t0-P6
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:18 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAbNa-0004GY-Nf
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:14 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAbNa-0004GR-Hr
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:14 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAbNa-0004GR-Hr@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 27 Jan 2007 00:25:14 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/ChangeLog,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jan 2007 00:25:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/27 00:25:14

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.481
retrieving revision 1.482
diff -u -b -r1.481 -r1.482
--- ChangeLog	23 Jan 2007 14:28:22 -0000	1.481
+++ ChangeLog	27 Jan 2007 00:25:13 -0000	1.482
@@ -1,3 +1,8 @@
+2007-01-26  Eric Blake  <ebb9@byu.net>
+
+	* m4/symtab.c (includes): Adjust to latest gnulib.
+	* modules/m4.c (includes): Likewise.
+
 2007-01-23  Eric Blake  <ebb9@byu.net>
 
 	* m4/m4module.h (M4_SYNTAX_ASSIGN): Delete this unused
@@ -8538,7 +8543,7 @@
 
 	-----
 
-	$Revision: 1.481 $ $Date: 2007/01/23 14:28:22 $
+	$Revision: 1.482 $ $Date: 2007/01/27 00:25:13 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Fri Jan 26 19:25:25 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAbNl-0007S1-2G
	for mharc-m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAbNi-0007Qo-LG
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAbNh-0007Pt-Fr
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:21 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAbNh-0007Pn-54
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:21 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAbNg-0002ui-KS
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:20 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAbMp-0001Dx-0Z
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:24:27 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAbNf-0002tx-JY
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:20 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAbNe-0002su-P4
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:18 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAbNa-0004GT-Hy
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:14 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAbNa-0004GP-AW
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:14 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAbNa-0004GP-AW@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 27 Jan 2007 00:25:14 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: m4 ChangeLog m4/symtab.c modules/m4.c
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jan 2007 00:25:23 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/27 00:25:14

Modified files:
	.              : ChangeLog 
	m4             : symtab.c 
	modules        : m4.c 

Log message:
	* m4/symtab.c (includes): Adjust to latest gnulib.
	* modules/m4.c (includes): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.481&r2=1.482
http://cvs.savannah.gnu.org/viewcvs/m4/m4/symtab.c?cvsroot=m4&r1=1.69&r2=1.70
http://cvs.savannah.gnu.org/viewcvs/m4/modules/m4.c?cvsroot=m4&r1=1.101&r2=1.102



From MAILER-DAEMON Fri Jan 26 19:25:23 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAbNj-0007R2-NK
	for mharc-m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:23 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAbNi-0007QY-6r
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAbNh-0007PT-2S
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:21 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAbNg-0007PM-PL
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:20 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAbNg-0002uX-Di
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:20 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAbMo-0001Du-Tc
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:24:26 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAbNf-0002ts-6f
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:19 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAbNe-0002t4-Oz
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:18 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAbNb-0004Gk-3Y
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:15 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAbNa-0004Gc-Ua
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:15 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAbNa-0004Gc-Ua@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 27 Jan 2007 00:25:14 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/modules/m4.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jan 2007 00:25:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/27 00:25:14

Index: modules/m4.c
===================================================================
RCS file: /sources/m4/m4/modules/m4.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -b -r1.101 -r1.102
--- modules/m4.c	13 Jan 2007 13:55:37 -0000	1.101
+++ modules/m4.c	27 Jan 2007 00:25:14 -0000	1.102
@@ -23,7 +23,6 @@
 #include <errno.h>
 
 #include "stdlib--.h"
-#include "strstr.h"
 #include "tempname.h"
 #include "unistd--.h"
 



From MAILER-DAEMON Fri Jan 26 19:25:39 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAbNz-0007Uj-66
	for mharc-m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:39 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAbNw-0007To-TX
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:37 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAbNw-0007TZ-59
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:36 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAbNw-0007TW-1e
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:36 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAbNv-0002xS-Lg
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:35 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAbN4-0001EM-3b
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:24:42 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAbNu-0002x8-Th
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:35 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAbNu-0002x2-Nq
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:34 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAbNu-0004HV-0h
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAbNt-0004HR-Lv
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:33 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAbNt-0004HR-Lv@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 27 Jan 2007 00:25:33 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: m4 ChangeLog src/builtin.c [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jan 2007 00:25:37 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/27 00:25:33

Modified files:
	.              : ChangeLog 
	src            : builtin.c 

Log message:
	* src/builtin.c (includes): Adjust to gnulib changes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.237&r2=1.1.1.1.2.238
http://cvs.savannah.gnu.org/viewcvs/m4/src/builtin.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.54&r2=1.1.1.1.2.55



From MAILER-DAEMON Fri Jan 26 19:25:24 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAbNj-0007RF-Tt
	for mharc-m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:23 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAbNi-0007Qt-JV
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:22 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAbNh-0007Q4-GF
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:21 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAbNh-0007Pp-77
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:21 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAbNg-0002ul-Kl
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:20 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAbMo-0001Dw-W3
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:24:27 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAbNf-0002tn-HJ
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:19 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAbNe-0002t2-P9
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:18 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAbNa-0004Gf-Uh
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:15 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAbNa-0004GV-O9
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:14 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAbNa-0004GV-O9@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 27 Jan 2007 00:25:14 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/m4/symtab.c,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jan 2007 00:25:22 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/27 00:25:14

Index: m4/symtab.c
===================================================================
RCS file: /sources/m4/m4/m4/symtab.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -b -r1.69 -r1.70
--- m4/symtab.c	31 Oct 2006 02:24:50 -0000	1.69
+++ m4/symtab.c	27 Jan 2007 00:25:14 -0000	1.70
@@ -1,5 +1,5 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2001, 2005, 2006
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2001, 2005, 2006, 2007
    Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -20,8 +20,6 @@
 
 #include "m4private.h"
 
-#include "strnlen.h"
-
 /* Define this to see runtime debug info.  Implied by DEBUG.  */
 /*#define DEBUG_SYM */
 



From MAILER-DAEMON Fri Jan 26 19:25:41 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAbO1-0007W0-MF
	for mharc-m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:41 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAbNy-0007UR-97
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:38 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAbNx-0007U7-9Y
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:37 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAbNx-0007U4-6i
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:37 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAbNx-0002xt-0M
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:37 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAbN5-0001ES-Fb
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:24:43 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAbNw-0002xd-7E
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:36 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAbNw-0002xU-0H
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:36 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAbNu-0004He-W4
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:35 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAbNu-0004HX-D3
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:34 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAbNu-0004HX-D3@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 27 Jan 2007 00:25:34 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/src/Attic/builtin.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jan 2007 00:25:38 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/27 00:25:33

Index: src/builtin.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/builtin.c,v
retrieving revision 1.1.1.1.2.54
retrieving revision 1.1.1.1.2.55
diff -u -b -r1.1.1.1.2.54 -r1.1.1.1.2.55
--- src/builtin.c	15 Jan 2007 13:51:33 -0000	1.1.1.1.2.54
+++ src/builtin.c	27 Jan 2007 00:25:33 -0000	1.1.1.1.2.55
@@ -27,7 +27,6 @@
 extern FILE *popen ();
 
 #include "regex.h"
-#include "strstr.h"
 
 #if HAVE_SYS_WAIT_H
 # include <sys/wait.h>



From MAILER-DAEMON Fri Jan 26 19:25:39 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAbNz-0007Ur-GG
	for mharc-m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:39 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAbNx-0007UF-If
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:37 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAbNw-0007Tr-VX
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:37 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAbNw-0007Tm-Op
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:36 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAbNw-0002xh-Dl
	for m4-commit@gnu.org; Fri, 26 Jan 2007 19:25:36 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAbN4-0001EP-Qp
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:24:42 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAbNv-0002xM-Hl
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:35 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAbNv-0002xC-Bx
	for m4-cvs-logs@gnu.org; Fri, 26 Jan 2007 19:25:35 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAbNu-0004HZ-DC
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:34 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAbNu-0004HT-0a
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 00:25:34 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAbNu-0004HT-0a@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sat, 27 Jan 2007 00:25:34 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jan 2007 00:25:37 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/27 00:25:33

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.237
retrieving revision 1.1.1.1.2.238
diff -u -b -r1.1.1.1.2.237 -r1.1.1.1.2.238
--- ChangeLog	15 Jan 2007 13:51:32 -0000	1.1.1.1.2.237
+++ ChangeLog	27 Jan 2007 00:25:33 -0000	1.1.1.1.2.238
@@ -1,3 +1,7 @@
+2007-01-26  Eric Blake  <ebb9@byu.net>
+
+	* src/builtin.c (includes): Adjust to gnulib changes.
+
 2007-01-15  Eric Blake  <ebb9@byu.net>
 
 	* doc/m4.texinfo: Pull in various improvements from head.
@@ -3459,7 +3463,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.237 $ $Date: 2007/01/15 13:51:32 $
+	$Revision: 1.1.1.1.2.238 $ $Date: 2007/01/27 00:25:33 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 27 20:55:06 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzG6-0004yB-Bh
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG3-0004vo-H5
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG2-0004v1-CZ
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:02 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG2-0004uk-4v
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:02 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG1-0005Od-7q
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:01 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzF8-0006eN-05
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:06 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzFz-0005O9-SL
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:00 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzFz-0005Nv-KM
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:59 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzFz-0006ie-0B
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:59 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzFy-0006iU-Pi
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:58 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzFy-0006iU-Pi@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:54:58 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/NEWS,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:04 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: NEWS
===================================================================
RCS file: /sources/m4/m4/NEWS,v
retrieving revision 1.1.1.1.2.90
retrieving revision 1.1.1.1.2.91
diff -u -b -r1.1.1.1.2.90 -r1.1.1.1.2.91
--- NEWS	15 Jan 2007 13:51:33 -0000	1.1.1.1.2.90
+++ NEWS	28 Jan 2007 01:54:36 -0000	1.1.1.1.2.91
@@ -15,6 +15,14 @@
   of variable assignment as an extension.
 * The `include' builtin now affects exit status on failure, as required by
   POSIX.  Use `sinclude' if you need a successful exit status.
+* A new `--warn-syntax' command-line option allows detection of
+  non-portable syntax that might be broken when upgrading to M4 2.0.  For
+  example, POSIX requires a macro definition containing `$11' to expand to
+  the first argument concatenated with 1, rather than the eleventh
+  argument; and allows implementations to choose whether `${11}' is treated
+  as literal text, as in M4 1.4.x, or as the eleventh argument, as in the
+  eventual M4 2.0.  Be aware that Autoconf 2.61 will not work with this
+  option enabled.
 * Improved portability to platforms such as BSD/OS.
 
 Version 1.4.8 - 20 November 2006, by Eric Blake  (CVS version 1.4.7a)



From MAILER-DAEMON Sat Jan 27 20:55:08 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzG8-0004zw-7y
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:08 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG6-0004y5-6d
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG3-0004w1-TS
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG3-0004vp-HL
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG3-0005PV-0Z
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzF9-0006eT-NI
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:07 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG0-0005OP-FZ
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:01 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG0-0005O1-4V
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:00 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzFz-0006il-5l
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:59 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzFy-0006ib-WE
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:59 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzFy-0006ib-WE@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:54:58 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/checks/Attic/get-them,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:06 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: checks/get-them
===================================================================
RCS file: /sources/m4/m4/checks/Attic/get-them,v
retrieving revision 1.1.1.1.2.8
retrieving revision 1.1.1.1.2.9
diff -u -b -r1.1.1.1.2.8 -r1.1.1.1.2.9
--- checks/get-them	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.8
+++ checks/get-them	28 Jan 2007 01:54:41 -0000	1.1.1.1.2.9
@@ -73,6 +73,8 @@
   else
     prefix = "";
   gsub("@@", "@", $0);
+  gsub("@{", "{", $0);
+  gsub("@}", "}", $0);
   gsub("@w{ }", " ", $0);
   gsub("@tabchar{}", "\t", $0);
   printf("%s%s\n", prefix, $0) >> file;



From MAILER-DAEMON Sat Jan 27 20:55:09 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzG8-00050L-S8
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:09 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG6-0004yG-Ej
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG4-0004wc-Nw
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:05 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG3-0004w9-T1
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG3-0005PX-3R
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzF9-0006eU-RG
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:07 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG1-0005Or-By
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:02 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG0-0005OF-Li
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:00 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzFz-0006iv-Ky
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:59 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzFz-0006ii-7J
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:59 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzFz-0006ii-7J@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:54:59 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/doc/m4.texinfo,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:07 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.108
retrieving revision 1.1.1.1.2.109
diff -u -b -r1.1.1.1.2.108 -r1.1.1.1.2.109
--- doc/m4.texinfo	15 Jan 2007 13:51:33 -0000	1.1.1.1.2.108
+++ doc/m4.texinfo	28 Jan 2007 01:54:43 -0000	1.1.1.1.2.109
@@ -577,6 +577,13 @@
 Suppress warnings, such as missing or superfluous arguments in macro
 calls, or treating the empty string as zero.
 
+@item --warn-syntax
+Issue warnings when syntax is encountered that will change semantics in
+@acronym{GNU} M4 2.0.  For now, the only semantics that will change have
+to do with how more than 9 arguments in a macro definition are handled
+(@pxref{Arguments}).  This warning is disabled by default because it
+triggers spurious failures in @acronym{GNU} Autoconf 2.61.
+
 @item -W @var{REGEXP}
 @itemx --word-regexp=@var{REGEXP}
 Use @var{REGEXP} as an alternative syntax for macro names.  This
@@ -1354,8 +1361,8 @@
 not have to be a simple word.
 It can be any text string, even the empty string.  A macro with a
 non-standard name cannot be invoked in the normal way, as the name is
-not recognized.  It can only be referenced by the builtins @code{Indir}
-(@pxref{Indir}) and @code{Defn} (@pxref{Defn}).
+not recognized.  It can only be referenced by the builtins @code{indir}
+(@pxref{Indir}) and @code{defn} (@pxref{Defn}).
 
 @cindex arrays
 Arrays and associative arrays can be simulated by using this trick.
@@ -1375,7 +1382,7 @@
 @result{}array element no. 17
 @end example
 
-Change the @code{%d} to @code{%s} and it is an associative array.
+Change the @samp{%d} to @samp{%s} and it is an associative array.
 
 @node Arguments
 @section Arguments to macros
@@ -1412,13 +1419,6 @@
 (You should try and improve this example so that clients of @code{exch}
 do not have to double quote; or @pxref{Improved exch, , Answers}).
 
-@cindex @acronym{GNU} extensions
-@acronym{GNU} @code{m4} allows the number following the @samp{$} to
-consist of one
-or more digits, allowing macros to have any number of arguments.  This
-is not so in UNIX implementations of @code{m4}, which only recognize
-one digit.
-
 As a special case, the zeroth argument, @code{$0}, is always the name
 of the macro being expanded.
 
@@ -1443,6 +1443,51 @@
 The @samp{foo} in the expansion text is @emph{not} expanded, since it is
 a quoted string, and not a name.
 
+@cindex @acronym{GNU} extensions
+@cindex nine arguments, more than
+@cindex more than nine arguments
+@cindex arguments, more than nine
+@cindex positional parameters, more than nine
+@acronym{GNU} @code{m4} allows the number following the @samp{$} to
+consist of one or more digits, allowing macros to have any number of
+arguments.  The extension of accepting multiple digits is incompatible
+with @acronym{POSIX}, and is different than traditional implementations
+of @code{m4}, which only recognize one digit.  Therefore, future
+versions of @acronym{GNU} M4 will phase out this feature.
+@xref{Extensions}, for an example of how to portably access the eleventh
+argument.
+
+@acronym{POSIX} also states that @samp{$} followed immediately by
+@samp{@{} in a macro definition is implementation-defined.  This version
+of M4 passes the literal characters @samp{$@{} through unchanged, but M4
+2.0 will implement an optional feature similar to @command{sh}, where
+@samp{$@{11@}} expands to the eleventh argument, to replace the current
+recognition of @samp{$11}.  Meanwhile, if you want to guarantee that you
+will get a literal @samp{$@{} in output when expanding a macro, even
+when you upgrade to M4 2.0, you can use nested quoting to your
+advantage:
+
+@example
+define(`foo', `single quoted $`'@{1@} output')
+@result{}
+define(`bar', ``double quoted $'`@{2@} output'')
+@result{}
+foo(`a', `b')
+@result{}single quoted $@{1@} output
+bar(`a', `b')
+@result{}double quoted $@{2@} output
+@end example
+
+To help you detect places in your M4 input files that might change in
+behavior due to the changed behavior of M4 2.0, you can use the
+@option{--warn-syntax} command-line option (@pxref{Operation modes, ,
+Invoking m4}).  This will add a warning any time a macro definition
+includes @samp{$} followed by multiple digits, or by @samp{@{} and a
+digit.  The warning is not enabled by default, because it triggers a
+number of warnings in Autoconf 2.61 (and Autoconf uses @option{-E} to
+treat warnings as errors), and because it will still be possible to
+restore traditional behavior in M4 2.0.
+
 @node Pseudo Arguments
 @section Special arguments to macros
 
@@ -2588,7 +2633,7 @@
 @result{}blah
 @end example
 
-Tracing even works on builtins.  However, @command{defn} (@pxref{Defn})
+Tracing even works on builtins.  However, @code{defn} (@pxref{Defn})
 does not transfer tracing status.
 
 @example
@@ -4721,10 +4766,10 @@
 commands from within @code{m4}.
 
 Note that the definition of a valid shell command is system dependent.
-On UNIX systems, this is the typical @code{/bin/sh}.  But on other
+On UNIX systems, this is the typical @command{/bin/sh}.  But on other
 systems, such as native Windows, the shell has a different syntax of
 commands that it understands.  Some examples in this chapter assume
-@code{/bin/sh}, and also demonstrate how to quit early with a known
+@command{/bin/sh}, and also demonstrate how to quit early with a known
 exit value if this is not the case.
 
 @menu
@@ -4934,7 +4979,7 @@
 @result{}0
 @end example
 
-@command{sysval} results in 127 if there was a problem executing the
+@code{sysval} results in 127 if there was a problem executing the
 command, for example, if the system-imposed argument length is exceeded,
 or if there were not enough resources to fork.  It is not possible to
 distinguish between failed execution and successful execution that had
@@ -5262,8 +5307,8 @@
 user's input file, or else each input file uses @code{include}.
 
 Reading the common base of a big application, over and over again, may
-be time consuming.  @acronym{GNU} @code{m4} offers some machinery to speed up
-the start of an application using lengthy common bases.
+be time consuming.  @acronym{GNU} @code{m4} offers some machinery to
+speed up the start of an application using lengthy common bases.
 
 @menu
 * Using frozen files::          Using frozen files
@@ -5311,7 +5356,7 @@
 option, only reads and executes file @file{base.m4}, defining
 various application macros and computing other initializations.
 Once the input file @file{base.m4} has been completely processed, @acronym{GNU}
-@code{m4} produces on @file{base.m4f} a @dfn{frozen} file, that is, a
+@code{m4} produces in @file{base.m4f} a @dfn{frozen} file, that is, a
 file which contains a kind of snapshot of the @code{m4} internal state.
 
 Later calls, containing the @option{-R} option, are able to reload
@@ -5466,7 +5511,7 @@
 
 @itemize @bullet
 @item
-In the @code{$}@var{n} notation for macro arguments, @var{n} can contain
+In the @code{$@var{n}} notation for macro arguments, @var{n} can contain
 several digits, while the System V @code{m4} only accepts one digit.
 This allows macros in @acronym{GNU} @code{m4} to take any number of
 arguments, and not only nine (@pxref{Arguments}).
@@ -5623,10 +5668,11 @@
 @end example
 
 @item
-@acronym{POSIX} requires that all builtins that require arguments, but
-are called without arguments, behave as though empty strings had been
-passed.  For example, @code{a`'define`'b} would expand to @code{ab}.
-But @acronym{GNU} @code{m4} ignores certain builtins if they have missing
+@acronym{POSIX} states that builtins that require arguments, but are
+called without arguments, have undefined behavior.  Traditional
+implementations simply behave as though empty strings had been passed.
+For example, @code{a`'define`'b} would expand to @code{ab}.  But
+@acronym{GNU} @code{m4} ignores certain builtins if they have missing
 arguments, giving @code{adefineb} for the above example.
 
 @item



From MAILER-DAEMON Sat Jan 27 20:55:09 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzG8-0004zz-HM
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:08 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG6-0004y6-79
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG4-0004wO-9P
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG3-0004vz-P1
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG3-0005PZ-3b
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzF9-0006eV-RK
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:07 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG2-0005P4-Cj
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:02 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG1-0005Ob-9L
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:01 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzG0-0006j6-J7
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:55:00 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzFz-0006it-JL
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:59 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzFz-0006it-JL@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:54:59 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/src/Attic/builtin.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:06 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: src/builtin.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/builtin.c,v
retrieving revision 1.1.1.1.2.55
retrieving revision 1.1.1.1.2.56
diff -u -b -r1.1.1.1.2.55 -r1.1.1.1.2.56
--- src/builtin.c	27 Jan 2007 00:25:33 -0000	1.1.1.1.2.55
+++ src/builtin.c	28 Jan 2007 01:54:44 -0000	1.1.1.1.2.56
@@ -231,6 +231,7 @@
 define_user_macro (const char *name, const char *text, symbol_lookup mode)
 {
   symbol *s;
+  size_t len;
 
   s = lookup_symbol (name, mode);
   if (SYMBOL_TYPE (s) == TOKEN_TEXT)
@@ -238,6 +239,43 @@
 
   SYMBOL_TYPE (s) = TOKEN_TEXT;
   SYMBOL_TEXT (s) = xstrdup (text ? text : "");
+
+  /* In M4 2.0, $11 will mean the first argument concatenated with 1,
+     not the eleventh argument.  Also, ${1} will mean the first
+     argument, rather than literal text (although for compatibility
+     sake, it will be possible to restore the traditional meaning of
+     ${1} using changesyntax).  Needing more than 9 arguments is
+     somewhat rare, but using M4 to process shell code is quite
+     common; either way, warn on usages that will change in
+     semantics.  */
+  if (warn_syntax && text && (len = strlen (text)) >= 3)
+    {
+      static struct re_pattern_buffer buf;
+      static bool init = false;
+      regoff_t offset = 0;
+
+      if (! init)
+	{
+	  const char *msg = "\\$[{0-9][0-9]";
+	  init_pattern_buffer (&buf, NULL);
+	  msg = re_compile_pattern (msg, strlen (msg), &buf);
+	  if (msg != NULL)
+	    {
+	      M4ERROR ((EXIT_FAILURE, 0,
+			"unable to check --warn-syntax: %s", msg));
+	    }
+	  init = true;
+	}
+      while ((offset = re_search (&buf, text, len, offset, len - offset,
+				  NULL)) >= 0)
+	{
+	  M4ERROR ((warning_status, 0,
+		    "Warning: semantics of `$%c%c%s' in `%s' will change",
+		    text[offset + 1], text[offset + 2],
+		    text[offset + 1] == '{' ? "...}" : "", name));
+	  offset += 3;
+	}
+    }
 }
 
 /*-----------------------------------------------.
@@ -1828,15 +1866,18 @@
 | Initialize regular expression variables.  |
 `------------------------------------------*/
 
-static void
+void
 init_pattern_buffer (struct re_pattern_buffer *buf, struct re_registers *regs)
 {
   buf->translate = NULL;
   buf->fastmap = NULL;
   buf->buffer = NULL;
   buf->allocated = 0;
+  if (regs)
+    {
   regs->start = NULL;
   regs->end = NULL;
+    }
 }
 
 /*----------------------------------------.



From MAILER-DAEMON Sat Jan 27 20:55:08 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzG8-0004zh-1t
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:08 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG4-0004wq-EK
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG2-0004vQ-Ts
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG2-0004vH-HG
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:02 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG1-0005Ox-OP
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:01 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzF8-0006eQ-Hr
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:06 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG0-0005OU-Nh
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:01 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG0-0005O3-4a
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:00 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzFz-0006io-8E
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:59 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzFy-0006iO-Jo
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:58 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzFy-0006iO-Jo@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:54:58 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/ChangeLog,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:05 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: ChangeLog
===================================================================
RCS file: /sources/m4/m4/ChangeLog,v
retrieving revision 1.1.1.1.2.238
retrieving revision 1.1.1.1.2.239
diff -u -b -r1.1.1.1.2.238 -r1.1.1.1.2.239
--- ChangeLog	27 Jan 2007 00:25:33 -0000	1.1.1.1.2.238
+++ ChangeLog	28 Jan 2007 01:54:31 -0000	1.1.1.1.2.239
@@ -1,3 +1,18 @@
+2007-01-27  Eric Blake  <ebb9@byu.net>
+
+	* src/m4.h (warn_syntax): Declare.
+	(init_pattern_buffer): Export.
+	* src/m4.c (warn_syntax, usage, WARN_SYNTAX_OPTIONS)
+	(long_options, main): Implement new option.
+	* src/builtin.c (init_pattern_buffer): Allow NULL regs argument.
+	(define_user_macro): Warn on $11 and ${1} if requested.
+	* src/input.c (init_pattern_buffer): Delete duplicate method.
+	* doc/m4.texinfo (Operation modes): Document it.
+	(Arguments): Document future direction of ${11} vs. $11.
+	(Incompatibilities): Fix wording on POSIX limitations.
+	* checks/get-them: Parse @{ and @} correctly.
+	* NEWS: Document this change.
+
 2007-01-26  Eric Blake  <ebb9@byu.net>
 
 	* src/builtin.c (includes): Adjust to gnulib changes.
@@ -3463,7 +3478,7 @@
 
 	-----
 
-	$Revision: 1.1.1.1.2.238 $ $Date: 2007/01/27 00:25:33 $
+	$Revision: 1.1.1.1.2.239 $ $Date: 2007/01/28 01:54:31 $
 
 	Local Variables:
 	coding: utf-8



From MAILER-DAEMON Sat Jan 27 20:55:10 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzGA-00051K-4Z
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:10 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG7-0004yy-0V
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:07 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG4-0004wY-Hv
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG3-0004wM-WB
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG3-0005Py-Kj
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzFA-0006ed-HW
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:08 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG1-0005Ol-KQ
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG0-0005Nr-Pp
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:00 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzFy-0006iQ-KM
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:58 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzFy-0006iI-EB
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:54:58 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzFy-0006iI-EB@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:54:58 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: m4 ChangeLog NEWS checks/get-them doc/m4.texinf... [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:07 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Modified files:
	.              : ChangeLog NEWS 
	checks         : get-them 
	doc            : m4.texinfo 
	src            : builtin.c input.c m4.c m4.h 

Log message:
	* src/m4.h (warn_syntax): Declare.
	(init_pattern_buffer): Export.
	* src/m4.c (warn_syntax, usage, WARN_SYNTAX_OPTIONS)
	(long_options, main): Implement new option.
	* src/builtin.c (init_pattern_buffer): Allow NULL regs argument.
	(define_user_macro): Warn on $11 and ${1} if requested.
	* src/input.c (init_pattern_buffer): Delete duplicate method.
	* doc/m4.texinfo (Operation modes): Document it.
	(Arguments): Document future direction of ${11} vs. $11.
	(Incompatibilities): Fix wording on POSIX limitations.
	* checks/get-them: Parse @{ and @} correctly.
	* NEWS: Document this change.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.238&r2=1.1.1.1.2.239
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.90&r2=1.1.1.1.2.91
http://cvs.savannah.gnu.org/viewcvs/m4/checks/get-them?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.8&r2=1.1.1.1.2.9
http://cvs.savannah.gnu.org/viewcvs/m4/doc/m4.texinfo?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.108&r2=1.1.1.1.2.109
http://cvs.savannah.gnu.org/viewcvs/m4/src/builtin.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.55&r2=1.1.1.1.2.56
http://cvs.savannah.gnu.org/viewcvs/m4/src/input.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.32&r2=1.1.1.1.2.33
http://cvs.savannah.gnu.org/viewcvs/m4/src/m4.c?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.41&r2=1.1.1.1.2.42
http://cvs.savannah.gnu.org/viewcvs/m4/src/m4.h?cvsroot=m4&only_with_tag=branch-1_4&r1=1.1.1.1.2.36&r2=1.1.1.1.2.37



From MAILER-DAEMON Sat Jan 27 20:55:10 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzGA-00051d-KC
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:10 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG7-0004za-Ov
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:07 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG5-0004xd-JV
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG5-0004xP-8w
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:05 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG4-0005QJ-Nx
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzFB-0006ej-LM
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:09 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG3-0005Q5-Qw
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG3-0005PT-7d
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzG1-0006jO-QD
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:55:01 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzG0-0006j2-7V
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:55:00 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzG0-0006j2-7V@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:55:00 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/src/Attic/input.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:08 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: src/input.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/input.c,v
retrieving revision 1.1.1.1.2.32
retrieving revision 1.1.1.1.2.33
diff -u -b -r1.1.1.1.2.32 -r1.1.1.1.2.33
--- src/input.c	1 Nov 2006 22:29:08 -0000	1.1.1.1.2.32
+++ src/input.c	28 Jan 2007 01:54:44 -0000	1.1.1.1.2.33
@@ -1,6 +1,6 @@
 /* GNU m4 -- A simple macro processor
 
-   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005, 2006, 2007
    Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -752,15 +752,6 @@
 
 #ifdef ENABLE_CHANGEWORD
 
-static void
-init_pattern_buffer (struct re_pattern_buffer *buf)
-{
-  buf->translate = NULL;
-  buf->fastmap = NULL;
-  buf->buffer = NULL;
-  buf->allocated = 0;
-}
-
 void
 set_word_regexp (const char *regexp)
 {
@@ -776,7 +767,7 @@
     }
 
   /* Dry run to see whether the new expression is compilable.  */
-  init_pattern_buffer (&new_word_regexp);
+  init_pattern_buffer (&new_word_regexp, NULL);
   msg = re_compile_pattern (regexp, strlen (regexp), &new_word_regexp);
   regfree (&new_word_regexp);
 



From MAILER-DAEMON Sat Jan 27 20:55:10 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzGA-00051P-BE
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:10 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzG7-0004zU-J3
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:07 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG6-0004xt-6A
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG5-0004xO-6J
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:05 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG4-0005QL-Ot
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzFB-0006ek-MD
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:09 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG3-0005Pu-PT
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:04 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG3-0005PQ-1f
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:03 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzG1-0006jJ-DT
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:55:01 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzG0-0006j8-RJ
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:55:00 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzG0-0006j8-RJ@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:55:00 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/src/Attic/m4.c,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:08 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: src/m4.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/m4.c,v
retrieving revision 1.1.1.1.2.41
retrieving revision 1.1.1.1.2.42
diff -u -b -r1.1.1.1.2.41 -r1.1.1.1.2.42
--- src/m4.c	5 Jan 2007 02:58:32 -0000	1.1.1.1.2.41
+++ src/m4.c	28 Jan 2007 01:54:44 -0000	1.1.1.1.2.42
@@ -55,6 +55,9 @@
 /* If not zero, then value of exit status for warning diagnostics.  */
 int warning_status = 0;
 
+/* If true, then warn about usage of ${1} in macro definitions.  */
+bool warn_syntax = false;
+
 /* Artificial limit for expansion_level in macro.c.  */
 int nesting_limit = 1024;
 
@@ -142,10 +145,13 @@
 Operation modes:\n\
       --help                   display this help and exit\n\
       --version                output version information and exit\n\
+", stdout);
+      fputs ("\
   -E, --fatal-warnings         stop execution after first warning\n\
   -i, --interactive            unbuffer output, ignore interrupts\n\
   -P, --prefix-builtins        force a `m4_' prefix to all builtins\n\
   -Q, --quiet, --silent        suppress some warnings for builtins\n\
+      --warn-syntax            warn on syntax that will change in future\n\
 ", stdout);
 #ifdef ENABLE_CHANGEWORD
       fputs ("\
@@ -221,6 +227,7 @@
 {
   DEBUGFILE_OPTION = CHAR_MAX + 1,	/* no short opt */
   DIVERSIONS_OPTION,			/* not quite -N, because of message */
+  WARN_SYNTAX_OPTION,			/* no short opt */
 
   HELP_OPTION,				/* no short opt */
   VERSION_OPTION			/* no short opt */
@@ -250,6 +257,7 @@
 
   {"debugfile", required_argument, NULL, DEBUGFILE_OPTION},
   {"diversions", required_argument, NULL, DIVERSIONS_OPTION},
+  {"warn-syntax", no_argument, NULL, WARN_SYNTAX_OPTION},
 
   {"help", no_argument, NULL, HELP_OPTION},
   {"version", no_argument, NULL, VERSION_OPTION},
@@ -455,6 +463,10 @@
 	debugfile = optarg;
 	break;
 
+      case WARN_SYNTAX_OPTION:
+	warn_syntax = true;
+	break;
+
       case VERSION_OPTION:
 	version_etc (stdout, PACKAGE, PACKAGE_NAME, VERSION, AUTHORS, NULL);
 	exit (EXIT_SUCCESS);



From MAILER-DAEMON Sat Jan 27 20:55:13 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HAzGC-00052Y-Pk
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:12 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HAzGA-00051H-6W
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:10 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HAzG7-0004z8-Cn
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:08 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HAzG6-0004yx-W8
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:07 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAzG6-0005Ql-IQ
	for m4-commit@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HAzFD-0006es-GH
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:54:11 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HAzG5-0005QX-TX
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:06 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HAzG5-0005QR-O1
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 20:55:05 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HAzG5-0006k6-7N
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:55:05 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HAzG1-0006jH-Bd
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 01:55:01 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HAzG1-0006jH-Bd@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 01:55:01 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/src/m4.h,v [branch-1_4]
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 01:55:10 -0000

CVSROOT:	/sources/m4
Module name:	m4
Branch:		branch-1_4
Changes by:	Eric Blake <ericb>	07/01/28 01:54:44

Index: src/m4.h
===================================================================
RCS file: /sources/m4/m4/src/m4.h,v
retrieving revision 1.1.1.1.2.36
retrieving revision 1.1.1.1.2.37
diff -u -b -r1.1.1.1.2.36 -r1.1.1.1.2.37
--- src/m4.h	6 Jan 2007 19:56:11 -0000	1.1.1.1.2.36
+++ src/m4.h	28 Jan 2007 01:54:44 -0000	1.1.1.1.2.37
@@ -110,6 +110,7 @@
 extern int suppress_warnings;		/* -Q */
 extern int warning_status;		/* -E */
 extern int nesting_limit;		/* -L */
+extern bool warn_syntax;		/* --warn-syntax */
 #ifdef ENABLE_CHANGEWORD
 extern const char *user_word_regexp;	/* -W */
 #endif
@@ -396,6 +397,8 @@
 
 typedef struct builtin builtin;
 typedef struct predefined predefined;
+struct re_pattern_buffer;
+struct re_registers;
 
 void builtin_init (void);
 void define_builtin (const char *, const builtin *, symbol_lookup);
@@ -403,6 +406,7 @@
 void undivert_all (void);
 void expand_user_macro (struct obstack *, symbol *, int, token_data **);
 void m4_placeholder (struct obstack *, int, token_data **);
+void init_pattern_buffer (struct re_pattern_buffer *, struct re_registers *);
 
 const builtin *find_builtin_by_addr (builtin_func *);
 const builtin *find_builtin_by_name (const char *);



From MAILER-DAEMON Sat Jan 27 21:54:55 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HB0Bz-0003kX-Hw
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:55 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HB0By-0003jU-JT
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:54 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HB0By-0003jD-8S
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:54 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HB0By-0003j8-29
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:54 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HB0Bx-0002Vg-PA
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:53 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HB0B4-0007tf-JA
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 21:53:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HB0Bx-0002VU-0S
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 21:54:53 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HB0Bw-0002VI-QS
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 21:54:52 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HB0Bw-00027J-A0
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 02:54:52 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HB0Bw-00027D-4W
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 02:54:52 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HB0Bw-00027D-4W@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 02:54:52 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: Changes to m4/ltdl/m4/.cvsignore,v
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 02:54:54 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/28 02:54:51

Index: .cvsignore
===================================================================
RCS file: /sources/m4/m4/ltdl/m4/.cvsignore,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- .cvsignore	18 Jan 2007 16:37:45 -0000	1.18
+++ .cvsignore	28 Jan 2007 02:54:51 -0000	1.19
@@ -87,6 +87,7 @@
 stdlib-safer.m4
 strcase.m4
 strerror_r.m4
+string_h.m4
 strndup.m4
 strnlen.m4
 strstr.m4



From MAILER-DAEMON Sat Jan 27 21:54:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HB0C1-0003lK-OE
	for mharc-m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HB0Bz-0003kG-9k
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:55 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HB0By-0003jG-AQ
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:54 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HB0By-0003j7-2A
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:54 -0500
Received: from fencepost.gnu.org ([199.232.76.164])
	by monty-python.gnu.org with esmtp (Exim 4.52) id 1HB0Bx-0002Ve-P3
	for m4-commit@gnu.org; Sat, 27 Jan 2007 21:54:53 -0500
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ebb9@byu.net>) id 1HB0B4-0007te-IQ
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 21:53:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.52) id 1HB0Bw-0002VO-RX
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 21:54:53 -0500
Received: from savannah.gnu.org ([199.232.41.3])
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.52) id 1HB0Bw-0002VE-KT
	for m4-cvs-logs@gnu.org; Sat, 27 Jan 2007 21:54:52 -0500
Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=savannah.gnu.org)
	by savannah.gnu.org with esmtp (Exim 4.50) id 1HB0Bw-00027F-4P
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 02:54:52 +0000
Received: from ericb by savannah.gnu.org with local (Exim 4.50)
	id 1HB0Bw-00027B-0L
	for m4-cvs-logs@gnu.org; Sun, 28 Jan 2007 02:54:52 +0000
To: m4-cvs-logs@gnu.org
Message-Id: <E1HB0Bw-00027B-0L@savannah.gnu.org>
From: Eric Blake <ebb9@byu.net>
Date: Sun, 28 Jan 2007 02:54:52 +0000
X-detected-kernel: Linux 2.6 (newer, 1)
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
Cc: 
Subject: m4/ltdl/m4 .cvsignore
X-BeenThere: m4-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bug-m4@gnu.org
List-Id: CVS commit notices for  GNU m4 <m4-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/m4-commit>
List-Post: <mailto:m4-commit@gnu.org>
List-Help: <mailto:m4-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/m4-commit>,
	<mailto:m4-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Jan 2007 02:54:56 -0000

CVSROOT:	/sources/m4
Module name:	m4
Changes by:	Eric Blake <ericb>	07/01/28 02:54:51

Modified files:
	ltdl/m4        : .cvsignore 

Log message:
	* ltdl/m4/.cvsignore: Update to latest gnulib.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/.cvsignore?cvsroot=m4&r1=1.18&r2=1.19



