From: jannick0 Date: Fri, 29 Dec 2017 15:44:29 +0000 (+0100) Subject: scanner: no YYTABLES_NAME macro unless requested X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21121feec917491db6f76cb54bd6441411632440;p=flex scanner: no YYTABLES_NAME macro unless requested --- diff --git a/src/misc.c b/src/misc.c index 745e6a8..5e63291 100644 --- a/src/misc.c +++ b/src/misc.c @@ -776,8 +776,9 @@ void skelout (void) outn ((char *) (yydmap_buf.elts)); } else if (cmd_match (CMD_DEFINE_YYTABLES)) { - out_str("#define YYTABLES_NAME \"%s\"\n", - tablesname?tablesname:"yytables"); + if ( tablesext ) + out_str( "#define YYTABLES_NAME \"%s\"\n", + tablesname ? tablesname : "yytables" ); } else if (cmd_match (CMD_IF_CPP_ONLY)) { /* only for C++ */