[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/src/Attic/input.c,v [branch-1_4]
From: |
Eric Blake |
Subject: |
Changes to m4/src/Attic/input.c,v [branch-1_4] |
Date: |
Wed, 26 Jul 2006 23:21:30 +0000 |
CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 06/07/26 23:21:29
Index: src/input.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/input.c,v
retrieving revision 1.1.1.1.2.10
retrieving revision 1.1.1.1.2.11
diff -u -b -r1.1.1.1.2.10 -r1.1.1.1.2.11
--- src/input.c 24 Jul 2006 20:02:16 -0000 1.1.1.1.2.10
+++ src/input.c 26 Jul 2006 23:21:29 -0000 1.1.1.1.2.11
@@ -510,6 +510,8 @@
while ((ch = next_char ()) != CHAR_EOF && ch != '\n')
;
+ if (ch == CHAR_EOF)
+ M4ERROR ((warning_status, 0, "Warning: end of file treated as newline"));
}
@@ -755,6 +757,10 @@
obstack_1grow (&token_stack, ch);
if (ch != CHAR_EOF)
obstack_grow (&token_stack, ecomm.string, ecomm.length);
+ else
+ M4ERROR ((EXIT_FAILURE, 0,
+ "ERROR: end of file in comment"));
+
type = TOKEN_STRING;
}
#ifdef ENABLE_CHANGEWORD
- Changes to m4/src/Attic/input.c,v [branch-1_4], Eric Blake, 2006/07/13
- Changes to m4/src/Attic/input.c,v [branch-1_4], Eric Blake, 2006/07/24
- Changes to m4/src/Attic/input.c,v [branch-1_4],
Eric Blake <=
- Changes to m4/src/Attic/input.c,v [branch-1_4], Eric Blake, 2006/07/28
- Changes to m4/src/Attic/input.c,v [branch-1_4], Eric Blake, 2006/07/30
- Changes to m4/src/Attic/input.c,v [branch-1_4], Eric Blake, 2006/07/31