diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-09-13 01:17:22 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-09-13 01:17:22 +0000 |
commit | 815fd665d8c46fc9f106fe65643c12614ffc9747 (patch) | |
tree | b1135a92b387ceb3d8629464bc0b57261d51343d /gen.c | |
parent | f6904782ed84d7a946ecca17c1b1269eee0978c0 (diff) |
Bison bridge code now works for all C scanners and pure/non-pure bison parsers.
Added %option bison-bridge (--bison-bridge).
Removed %option reentrant-bison/--reentrant-bison/-Rb.
Scanner knows the name of its tables.
Tables serialization is OK on EOF.
yylineno is present in all scanners.
Modified nasty performance penalty warning w/ yylineno.
test-table-opts is now run last because it's so fat.
Updated manual.
Diffstat (limited to 'gen.c')
-rw-r--r-- | gen.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1725,12 +1725,13 @@ void make_tables () /* End generating yy_NUL_trans */ } - if (ddebug) { /* Spit out table mapping rules to line numbers. */ - if (!C_plus_plus && !reentrant) { - indent_puts ("extern int yy_flex_debug;"); - indent_puts ("int yy_flex_debug = 1;\n"); - } + if (!C_plus_plus && !reentrant) { + indent_puts ("extern int yy_flex_debug;"); + indent_put2s ("int yy_flex_debug = %s;\n", + ddebug ? "1" : "0"); + } + if (ddebug) { /* Spit out table mapping rules to line numbers. */ out_str_dec (long_align ? get_int32_decl () : get_int16_decl (), "yy_rule_linenum", num_rules); |