[LON-CAPA-cvs] cvs: capa /capa51/pProj capaLexerDef.flex

albertel lon-capa-cvs-allow@mail.lon-capa.org
Wed, 11 Jul 2007 19:23:44 -0000


albertel		Wed Jul 11 15:23:44 2007 EDT

  Modified files:              
    /capa/capa51/pProj	capaLexerDef.flex 
  Log:
  - support flex 2.5.33
     - use the %option mechanism to turn on the stack option
     - YY_FLUSH_BUFFER no longer available after the second %% so expand the
       macro out
  
  
Index: capa/capa51/pProj/capaLexerDef.flex
diff -u capa/capa51/pProj/capaLexerDef.flex:1.13 capa/capa51/pProj/capaLexerDef.flex:1.14
--- capa/capa51/pProj/capaLexerDef.flex:1.13	Tue Sep  5 15:52:16 2006
+++ capa/capa51/pProj/capaLexerDef.flex	Wed Jul 11 15:23:43 2007
@@ -41,6 +41,8 @@
 /*------------------------------------------------------------------------*/
 /**************************************************************************/
 
+%option stack
+
 %{
 
 #include <stdio.h>
@@ -1047,10 +1049,10 @@
 extern void
 begin_question() { LLDBUG_PR1("[<S_TEXT>]"); 
                    IFcount = 0; While_idx=0; /* initialize some stacks */
-                   End_of_input = 0; YY_FLUSH_BUFFER; BEGIN S_TEXT; }
+                   End_of_input = 0; yy_flush_buffer(YY_CURRENT_BUFFER ); BEGIN S_TEXT; }
 
 extern void
-end_problemset() { End_of_input = 0; YY_FLUSH_BUFFER; BEGIN S_TEXT; }
+end_problemset() { End_of_input = 0; yy_flush_buffer(YY_CURRENT_BUFFER ); BEGIN S_TEXT; }
 
 
 /* ========================================================================================== */