[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: scan-gram.l globals -> static
From: |
Joel E. Denny |
Subject: |
FYI: scan-gram.l globals -> static |
Date: |
Mon, 14 Aug 2006 17:05:41 -0400 (EDT) |
Index: ChangeLog
===================================================================
RCS file: /sources/bison/bison/ChangeLog,v
retrieving revision 1.1548
diff -p -u -r1.1548 ChangeLog
--- ChangeLog 14 Aug 2006 20:51:33 -0000 1.1548
+++ ChangeLog 14 Aug 2006 21:04:07 -0000
@@ -1,5 +1,10 @@
2006-08-14 Joel E. Denny <address@hidden>
+ * src/scan-gram.l (braces_level, context_state): Make these globals
+ static.
+
+2006-08-14 Joel E. Denny <address@hidden>
+
In the grammar scanner, STRING_FINISH unclosed constructs and return
them to the parser in order to improve error messages.
* src/scan-gram.l (SC_ESCAPED_STRING, SC_ESCAPED_CHARACTER,
Index: src/scan-gram.l
===================================================================
RCS file: /sources/bison/bison/src/scan-gram.l,v
retrieving revision 1.99
diff -p -u -r1.99 scan-gram.l
--- src/scan-gram.l 14 Aug 2006 20:51:33 -0000 1.99
+++ src/scan-gram.l 14 Aug 2006 21:04:07 -0000
@@ -108,10 +108,10 @@ splice (\\[ \f\t\v]*\n)*
%%
%{
/* Nesting level of the current code in braces. */
- int braces_level IF_LINT (= 0);
+ static int braces_level IF_LINT (= 0);
/* Parent context state, when applicable. */
- int context_state IF_LINT (= 0);
+ static int context_state IF_LINT (= 0);
/* Location of most recent identifier, when applicable. */
location id_loc IF_LINT (= empty_location);
- FYI: scan-gram.l globals -> static,
Joel E. Denny <=