diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1995-03-05 16:37:34 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1995-03-05 16:37:34 +0000 |
commit | 1b32dd359fd380c8fd71476a0ae1cd254f6b45b3 (patch) | |
tree | 31d42cc8a69d6fb67cefe829e858424ebd363211 /gen.c | |
parent | 2cf1a889085f8ed1cd282b04a34c8fe25d70cad2 (diff) |
yy_flex_debug extern only if not C++
Diffstat (limited to 'gen.c')
-rw-r--r-- | gen.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1155,8 +1155,11 @@ void make_tables() if ( ddebug ) { /* Spit out table mapping rules to line numbers. */ - indent_puts( "extern int yy_flex_debug;" ); - indent_puts( "int yy_flex_debug = 1;\n" ); + if ( ! C_plus_plus ) + { + indent_puts( "extern int yy_flex_debug;" ); + indent_puts( "int yy_flex_debug = 1;\n" ); + } out_str_dec( long_align ? C_long_decl : C_short_decl, "yy_rule_linenum", num_rules ); |