From: Joel E. Denny Date: Mon, 14 Aug 2006 21:06:05 +0000 (+0000) Subject: * src/scan-gram.l (braces_level, context_state): Make these globals X-Git-Tag: v2.3b~310 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/2d2c1a2decf4785a02315913cf52e45b5c1ac4f8?ds=inline * src/scan-gram.l (braces_level, context_state): Make these globals static. --- diff --git a/ChangeLog b/ChangeLog index 8fa43858..c1980bbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-14 Joel E. Denny + + * src/scan-gram.l (braces_level, context_state): Make these globals + static. + 2006-08-14 Joel E. Denny In the grammar scanner, STRING_FINISH unclosed constructs and return diff --git a/src/scan-gram.l b/src/scan-gram.l index 9429c5f1..b6246cb7 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -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);