diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1993-11-29 17:13:35 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1993-11-29 17:13:35 +0000 |
commit | cde528826f68fd9019a23b0fd0d5a9a3737e2707 (patch) | |
tree | f43864488347322e896a9f80799570e3bd83e200 /gen.c | |
parent | 18a7d069a1aef814f454c6343e231ac847854d99 (diff) |
Fixed YYLMAX headaches
Diffstat (limited to 'gen.c')
-rw-r--r-- | gen.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1221,6 +1221,21 @@ void make_tables() indent_puts( "#define YY_MORE_ADJ 0" ); } + if ( ! C_plus_plus ) + { + if ( yytext_is_array ) + { + puts( "#ifndef YYLMAX" ); + puts( "#define YYLMAX 8192" ); + puts( "#endif\n" ); + puts( "char yytext[YYLMAX];" ); + puts( "char *yytext_ptr;" ); + } + + else + puts( "char *yytext;" ); + } + fputs( &action_array[defs1_offset], stdout ); skelout(); |