[BACK]Return to gen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / lex

Diff for /src/usr.bin/lex/gen.c between version 1.10 and 1.11

version 1.10, 2003/06/04 17:34:44 version 1.11, 2004/02/03 21:20:17
Line 1446 
Line 1446 
                 indent_puts( "if ( yy_act == 0 )" );                  indent_puts( "if ( yy_act == 0 )" );
                 indent_up();                  indent_up();
                 indent_puts( C_plus_plus ?                  indent_puts( C_plus_plus ?
                         "cerr << \"--scanner backing up\\n\";" :                          "std::cerr << \"--scanner backing up\\n\";" :
                         "fprintf( stderr, \"--scanner backing up\\n\" );" );                          "fprintf( stderr, \"--scanner backing up\\n\" );" );
                 indent_down();                  indent_down();
   
Line 1457 
Line 1457 
                 if ( C_plus_plus )                  if ( C_plus_plus )
                         {                          {
                         indent_puts(                          indent_puts(
         "cerr << \"--accepting rule at line \" << yy_rule_linenum[yy_act] <<" );          "std::cerr << \"--accepting rule at line \" << yy_rule_linenum[yy_act] <<" );
                         indent_puts(                          indent_puts(
                         "         \"(\\\"\" << yytext << \"\\\")\\n\";" );                          "         \"(\\\"\" << yytext << \"\\\")\\n\";" );
                         }                          }
Line 1479 
Line 1479 
                 if ( C_plus_plus )                  if ( C_plus_plus )
                         {                          {
                         indent_puts(                          indent_puts(
 "cerr << \"--accepting default rule (\\\"\" << yytext << \"\\\")\\n\";" );  "std::cerr << \"--accepting default rule (\\\"\" << yytext << \"\\\")\\n\";" );
                         }                          }
                 else                  else
                         {                          {
Line 1495 
Line 1495 
                 indent_up();                  indent_up();
   
                 indent_puts( C_plus_plus ?                  indent_puts( C_plus_plus ?
                         "cerr << \"--(end of buffer or a NUL)\\n\";" :                          "std::cerr << \"--(end of buffer or a NUL)\\n\";" :
                 "fprintf( stderr, \"--(end of buffer or a NUL)\\n\" );" );                  "fprintf( stderr, \"--(end of buffer or a NUL)\\n\" );" );
   
                 indent_down();                  indent_down();
Line 1507 
Line 1507 
                 if ( C_plus_plus )                  if ( C_plus_plus )
                         {                          {
                         indent_puts(                          indent_puts(
         "cerr << \"--EOF (start condition \" << YY_START << \")\\n\";" );          "std::cerr << \"--EOF (start condition \" << YY_START << \")\\n\";" );
                         }                          }
                 else                  else
                         {                          {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11