m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/modules/m4.c,v


From: Eric Blake
Subject: Changes to m4/modules/m4.c,v
Date: Sat, 23 Dec 2006 00:02:23 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/12/23 00:02:21

Index: modules/m4.c
===================================================================
RCS file: /sources/m4/m4/modules/m4.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- modules/m4.c        19 Dec 2006 17:23:46 -0000      1.96
+++ modules/m4.c        23 Dec 2006 00:02:20 -0000      1.97
@@ -665,7 +665,8 @@
   m4_dump_args (context, obs, argc - 1, argv + 1, ",", true);
 }
 
-/* Change the current quotes.  The function set_quotes () lives in input.c.  */
+/* Change the current quotes.  The function set_quotes () lives in
+   syntax.c.  */
 M4BUILTIN_HANDLER (changequote)
 {
   m4_set_quotes (M4SYNTAX,
@@ -674,13 +675,12 @@
 }
 
 /* Change the current comment delimiters.  The function set_comment ()
-   lives in input.c.  */
+   lives in syntax.c.  */
 M4BUILTIN_HANDLER (changecom)
 {
-  if (argc == 1)
-    m4_set_comment (M4SYNTAX, "", ""); /* disable comments */
-  else
-    m4_set_comment (M4SYNTAX, M4ARG (1), (argc >= 3) ? M4ARG (2) : NULL);
+  m4_set_comment (M4SYNTAX,
+                 (argc >= 2) ? M4ARG (1) : NULL,
+                 (argc >= 3) ? M4ARG (2) : NULL);
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]