summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-03-05 16:37:34 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-03-05 16:37:34 +0000
commit1b32dd359fd380c8fd71476a0ae1cd254f6b45b3 (patch)
tree31d42cc8a69d6fb67cefe829e858424ebd363211 /gen.c
parent2cf1a889085f8ed1cd282b04a34c8fe25d70cad2 (diff)
yy_flex_debug extern only if not C++
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gen.c b/gen.c
index 1d2c282..f78af88 100644
--- a/gen.c
+++ b/gen.c
@@ -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 );