]> git.saurik.com Git - bison.git/commitdiff
* src/scan-gram.l (braces_level, context_state): Make these globals
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 14 Aug 2006 21:06:05 +0000 (21:06 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 14 Aug 2006 21:06:05 +0000 (21:06 +0000)
static.

ChangeLog
src/scan-gram.l

index 8fa4385859795e42e59b7094a594c3c9cf788031..c1980bbd177023553bb21ce82380f4b1b72e8438 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-14  Joel E. Denny  <jdenny@ces.clemson.edu>
+
+       * src/scan-gram.l (braces_level, context_state): Make these globals
+       static.
+
 2006-08-14  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        In the grammar scanner, STRING_FINISH unclosed constructs and return
 2006-08-14  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        In the grammar scanner, STRING_FINISH unclosed constructs and return
index 9429c5f1bf1a200359d99313ea53e84bf8771ba2..b6246cb70aa1b6a6657ab82de1bbd3f6344c711f 100644 (file)
@@ -108,10 +108,10 @@ splice     (\\[ \f\t\v]*\n)*
 %%
 %{
   /* Nesting level of the current code in braces.  */
 %%
 %{
   /* 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.  */
 
   /* 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);
 
   /* Location of most recent identifier, when applicable.  */
   location id_loc IF_LINT (= empty_location);