mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
muscles_output.
* src/output.c (muscles_output): New, extracted from... (output_skeleton): here. Adjust.
This commit is contained in:
committed by
Joel E. Denny
parent
fadb13b5b3
commit
96002de2e1
29
src/output.c
29
src/output.c
@@ -462,6 +462,23 @@ prepare_actions (void)
|
||||
0, 1, conflict_list_cnt);
|
||||
}
|
||||
|
||||
/*--------------------------------------------.
|
||||
| Output the definitions of all the muscles. |
|
||||
`--------------------------------------------*/
|
||||
|
||||
static void
|
||||
muscles_output (FILE *out)
|
||||
{
|
||||
fputs ("m4_init()\n", out);
|
||||
|
||||
user_actions_output (out);
|
||||
merger_output (out);
|
||||
token_definitions_output (out);
|
||||
symbol_code_props_output (out, "destructors", &symbol_destructor_get);
|
||||
symbol_code_props_output (out, "printers", &symbol_printer_get);
|
||||
|
||||
muscles_m4_output (out);
|
||||
}
|
||||
|
||||
/*---------------------------.
|
||||
| Call the skeleton parser. |
|
||||
@@ -563,17 +580,7 @@ output_skeleton (void)
|
||||
if (! out)
|
||||
error (EXIT_FAILURE, get_errno (),
|
||||
"fdopen");
|
||||
|
||||
/* Output the definitions of all the muscles. */
|
||||
fputs ("m4_init()\n", out);
|
||||
|
||||
user_actions_output (out);
|
||||
merger_output (out);
|
||||
token_definitions_output (out);
|
||||
symbol_code_props_output (out, "destructors", &symbol_destructor_get);
|
||||
symbol_code_props_output (out, "printers", &symbol_printer_get);
|
||||
|
||||
muscles_m4_output (out);
|
||||
muscles_output (out);
|
||||
xfclose (out);
|
||||
|
||||
/* Read and process m4's output. */
|
||||
|
||||
Reference in New Issue
Block a user