X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6deb44470e47bb02f0ca3ea630408d013e128710..459ff06402112f742c4168320048d9bc4ccfb924:/src/output.c diff --git a/src/output.c b/src/output.c index 914e0a7d..b86f4611 100644 --- a/src/output.c +++ b/src/output.c @@ -1154,17 +1154,19 @@ output_parser (void) int c; FILE *fskel; size_t line; - const char *skeleton = NULL; int actions_dumped = 0; if (pure_parser) obstack_sgrow (&table_obstack, "#define YYPURE 1\n\n"); /* Loop over lines in the standard parser file. */ - if (semantic_parser) - skeleton = skeleton_find ("BISON_HAIRY", BISON_HAIRY); - else - skeleton = skeleton_find ("BISON_SIMPLE", BISON_SIMPLE); + if (!skeleton) + { + if (semantic_parser) + skeleton = skeleton_find ("BISON_HAIRY", BISON_HAIRY); + else + skeleton = skeleton_find ("BISON_SIMPLE", BISON_SIMPLE); + } fskel = xfopen (skeleton, "r"); /* Set LINE to 2, not 1: `#line LINENUM' -- Here LINENUM is a