From 96002de2e149fb4be00764aa29d766c3afe18fee Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 12 Aug 2008 21:11:53 +0200 Subject: [PATCH] muscles_output. * src/output.c (muscles_output): New, extracted from... (output_skeleton): here. Adjust. --- ChangeLog | 7 +++++++ src/output.c | 29 ++++++++++++++++++----------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e00950d..f4c31a44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-11-10 Akim Demaille + + muscles_output. + * src/output.c (muscles_output): New, extracted from... + (output_skeleton): here. + Adjust. + 2008-11-21 Akim Demaille Display the changes in cross-options.texi. diff --git a/src/output.c b/src/output.c index 585b90e0..7eb35185 100644 --- a/src/output.c +++ b/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. */ -- 2.45.2