X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/01cfa697919c2a7563c61d7a07863445317efa13..437c2d80006f7c4729cffd329c106de50dbd4acc:/src/output.c diff --git a/src/output.c b/src/output.c index 43016473..f115bd2f 100644 --- a/src/output.c +++ b/src/output.c @@ -276,11 +276,10 @@ user_actions_output (FILE *out) { fprintf (out, " case %d:\n", r + 1); - if (!no_lines_flag) - fprintf (out, muscle_find ("linef"), - rules[r].action_location.first_line, - quotearg_style (c_quoting_style, - muscle_find ("filename"))); + fprintf (out, "]b4_syncline([[%d]], [[%s]])[\n", + rules[r].action_location.first_line, + quotearg_style (escape_quoting_style, + rules[r].action_location.file)); fprintf (out, " %s\n break;\n\n", rules[r].action); } @@ -381,7 +380,8 @@ symbol_destructors_output (FILE *out) destructor, typename. */ fprintf (out, "%s[[[%s]], [[%d]], [[%s]], [[%d]], [[%s]], [[%s]]]", first ? "" : ",\n", - infile, symbol->destructor_location.first_line, + symbol->destructor_location.file, + symbol->destructor_location.first_line, symbol->tag, symbol->number, symbol->destructor, @@ -414,7 +414,8 @@ symbol_printers_output (FILE *out) printer, typename. */ fprintf (out, "%s[[[%s]], [[%d]], [[%s]], [[%d]], [[%s]], [[%s]]]", first ? "" : ",\n", - infile, symbol->printer_location.first_line, + symbol->printer_location.file, + symbol->printer_location.first_line, symbol->tag, symbol->number, symbol->printer, @@ -564,11 +565,12 @@ static void prepare (void) { /* Flags. */ - MUSCLE_INSERT_INT ("locations_flag", locations_flag); + MUSCLE_INSERT_INT ("debug", debug_flag); MUSCLE_INSERT_INT ("defines_flag", defines_flag); MUSCLE_INSERT_INT ("error_verbose", error_verbose); + MUSCLE_INSERT_INT ("locations_flag", locations_flag); MUSCLE_INSERT_INT ("pure", pure_parser); - MUSCLE_INSERT_INT ("debug", debug_flag); + MUSCLE_INSERT_INT ("synclines_flag", !no_lines_flag); /* FIXME: This is wrong: the muscles should decide whether they hold a copy or not, but the situation is too obscure currently. */