CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 06/10/29 15:22:42
Index: src/builtin.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/builtin.c,v
retrieving revision 1.1.1.1.2.46
retrieving revision 1.1.1.1.2.47
diff -u -b -r1.1.1.1.2.46 -r1.1.1.1.2.47
--- src/builtin.c 26 Oct 2006 21:11:56 -0000 1.1.1.1.2.46
+++ src/builtin.c 29 Oct 2006 15:22:42 -0000 1.1.1.1.2.47
@@ -1146,6 +1146,7 @@
if (bad_argc (argv[0], argc, 1, 3))
return;
+ /* Explicit NULL distinguishes between empty and missing argument. */
set_quotes ((argc >= 2) ? TOKEN_DATA_TEXT (argv[1]) : NULL,
(argc >= 3) ? TOKEN_DATA_TEXT (argv[2]) : NULL);
}
@@ -1161,10 +1162,8 @@
if (bad_argc (argv[0], argc, 1, 3))
return;
- if (argc == 1)
- set_comment ("", ""); /* disable comments */
- else
- set_comment (TOKEN_DATA_TEXT (argv[1]),
+ /* Explicit NULL distinguishes between empty and missing argument. */
+ set_comment ((argc >= 2) ? TOKEN_DATA_TEXT (argv[1]) : NULL,
(argc >= 3) ? TOKEN_DATA_TEXT (argv[2]) : NULL);
}