[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/src/Attic/m4.c,v [branch-1_4]
From: |
Eric Blake |
Subject: |
Changes to m4/src/Attic/m4.c,v [branch-1_4] |
Date: |
Tue, 08 Aug 2006 23:17:45 +0000 |
CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 06/08/08 23:17:44
Index: src/m4.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/m4.c,v
retrieving revision 1.1.1.1.2.26
retrieving revision 1.1.1.1.2.27
diff -u -b -r1.1.1.1.2.26 -r1.1.1.1.2.27
--- src/m4.c 8 Aug 2006 16:23:58 -0000 1.1.1.1.2.26
+++ src/m4.c 8 Aug 2006 23:17:44 -0000 1.1.1.1.2.27
@@ -95,7 +95,21 @@
{
va_list args;
va_start (args, format);
- verror_at_line (status, errnum, current_file, current_line, format, args);
+ verror_at_line (status, errnum, current_line ? current_file : NULL,
+ current_line, format, args);
+}
+
+/*-------------------------------.
+| Wrapper around error_at_line. |
+`-------------------------------*/
+
+void
+m4_error_at_line (int status, int errnum, const char *file, int line,
+ const char *format, ...)
+{
+ va_list args;
+ va_start (args, format);
+ verror_at_line (status, errnum, line ? file : NULL, line, format, args);
}
#ifdef USE_STACKOVF