m4-commit
[Top][All Lists]
Advanced

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

Changes to m4/src/Attic/macro.c,v [branch-1_4]


From: Eric Blake
Subject: Changes to m4/src/Attic/macro.c,v [branch-1_4]
Date: Tue, 01 Aug 2006 13:05:47 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      06/08/01 13:05:45

Index: src/macro.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/macro.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/macro.c 27 Jul 2006 21:41:12 -0000      1.1.1.1.2.7
+++ src/macro.c 1 Aug 2006 13:05:45 -0000       1.1.1.1.2.8
@@ -115,6 +115,8 @@
   token_data td;
   char *text;
   int paren_level;
+  const char *file = current_file;
+  int line = current_line;
 
   TOKEN_DATA_TYPE (argp) = TOKEN_VOID;
 
@@ -157,8 +159,10 @@
          break;
 
        case TOKEN_EOF:
-         M4ERROR ((EXIT_FAILURE, 0,
-                   "ERROR: end of file in argument list"));
+         /* current_file changed to "NONE" if we see TOKEN_EOF, use the
+            previous value we stored earlier.  */
+         error_at_line (EXIT_FAILURE, 0, file, line,
+                        "ERROR: end of file in argument list");
          break;
 
        case TOKEN_WORD:




reply via email to

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