]> git.saurik.com Git - bison.git/commitdiff
* src/scan-gram.l (code_start): Always initialize it when entering
authorAkim Demaille <akim@epita.fr>
Sat, 1 Mar 2003 10:55:31 +0000 (10:55 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 1 Mar 2003 10:55:31 +0000 (10:55 +0000)
into yylex, as SC_EPILOGUE is activated *before* the corresponding
yylex invocation.  An alternative would be making it static, but
then it starts with the second %%'s beginning, instead of its end.

ChangeLog
src/scan-gram.l

index 6dac70aa501f25024c2815f98e063f1b69dbd714..d0503137509153d6e906f9d5948b717790275ea6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-03-01  Akim Demaille  <akim@epita.fr>
+
+       * src/scan-gram.l (code_start): Always initialize it when entering
+       into yylex, as SC_EPILOGUE is activated *before* the corresponding
+       yylex invocation.  An alternative would be making it static, but
+       then it starts with the second %%'s beginning, instead of its end.
+
 2003-02-28  Paul Eggert  <eggert@twinsun.com>
 
        * lib/mbswidth.c: Include <wchar.h> before "mbswidth.h", to work
index 5f7ac60e73b818c14747619288ec8ace3fc98804..424ae2e9667c6ce844f98c32dd1064474eea32fc 100644 (file)
@@ -138,8 +138,9 @@ splice       (\\[ \f\t\v]*\n)*
   /* Location of most recent identifier, when applicable.  */
   location id_loc IF_LINT (= *loc);
 
-  /* Where containing code started, when applicable.  */
-  boundary code_start IF_LINT (= loc->start);
+  /* Where containing code started, when applicable.
+     Once the second %% seen, we are looking for the epilogue.  */
+  boundary code_start = loc->end;
 
   /* Where containing comment or string or character literal started,
      when applicable.  */