mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
muscles_output.
* src/output.c (muscles_output): New, extracted from... (output_skeleton): here. Adjust.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2008-11-10 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
|
muscles_output.
|
||||||
|
* src/output.c (muscles_output): New, extracted from...
|
||||||
|
(output_skeleton): here.
|
||||||
|
Adjust.
|
||||||
|
|
||||||
2008-11-10 Akim Demaille <demaille@gostai.com>
|
2008-11-10 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
Formatting changes.
|
Formatting changes.
|
||||||
|
|||||||
33
src/output.c
33
src/output.c
@@ -485,6 +485,26 @@ prepare_actions (void)
|
|||||||
muscle_insert_unsigned_int_table ("conflicting_rules", conflict_list,
|
muscle_insert_unsigned_int_table ("conflicting_rules", conflict_list,
|
||||||
0, 1, conflict_list_cnt);
|
0, 1, conflict_list_cnt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------.
|
||||||
|
| Output the definitions of all the muscles. |
|
||||||
|
`--------------------------------------------*/
|
||||||
|
|
||||||
|
static void
|
||||||
|
muscles_output (FILE *out)
|
||||||
|
{
|
||||||
|
fputs ("m4_init()\n", out);
|
||||||
|
|
||||||
|
type_names_output (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. |
|
| Call the skeleton parser. |
|
||||||
@@ -586,18 +606,7 @@ output_skeleton (void)
|
|||||||
if (! out)
|
if (! out)
|
||||||
error (EXIT_FAILURE, get_errno (),
|
error (EXIT_FAILURE, get_errno (),
|
||||||
"fdopen");
|
"fdopen");
|
||||||
|
muscles_output (out);
|
||||||
/* Output the definitions of all the muscles. */
|
|
||||||
fputs ("m4_init()\n", out);
|
|
||||||
|
|
||||||
type_names_output (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);
|
|
||||||
xfclose (out);
|
xfclose (out);
|
||||||
|
|
||||||
/* Read and process m4's output. */
|
/* Read and process m4's output. */
|
||||||
|
|||||||
Reference in New Issue
Block a user