Skip to content

Commit

Permalink
scanner: no YYTABLES_NAME macro unless requested
Browse files Browse the repository at this point in the history
  • Loading branch information
jannick0 authored and westes committed May 22, 2018
1 parent 4c7e3a5 commit 21121fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++ */
Expand Down

0 comments on commit 21121fe

Please sign in to comment.