program_name = argv[0];
+ if ( program_name[0] != '\0' &&
+ program_name[strlen( program_name ) - 1] == '+' )
+ C_plus_plus = true;
+
/* read flags */
for ( --argc, ++argv; argc ; --argc, ++argv )
{
void readin()
{
+ skelout();
+
if ( csize == 256 )
puts( "typedef unsigned char YY_CHAR;" );
else
puts( "typedef char YY_CHAR;" );
- skelout();
-
if ( C_plus_plus )
puts( "#define yytext_ptr yytext" );
puts( "#define YYLMAX YY_READ_BUF_SIZE" );
puts( "#endif YYLMAX\n" );
puts( "char yytext[YYLMAX];" );
- puts( "YY_CHAR *yytext_ptr;" );
+ puts( "char *yytext_ptr;" );
}
else
{
- puts( "extern YY_CHAR *yytext;" );
- puts( "YY_CHAR *yytext;" );
+ puts( "extern char *yytext;" );
+ puts( "char *yytext;" );
puts( "#define yytext_ptr yytext" );
}
}