[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/m4/syntax.c,v
From: |
Eric Blake |
Subject: |
Changes to m4/m4/syntax.c,v |
Date: |
Fri, 12 Jan 2007 23:07:28 +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))
- Changes to m4/m4/syntax.c,v,
Eric Blake <=