* src/files.c (action_obstack): Remove, unused.

(output_obstack): Remove it, and all its dependencies, as it is no
longer needed.
* src/reader.c (epilogue_set): Build the epilogue in the
muscle_obstack.
* src/output.h, src/output.c (muscle_obstack): Move to...
* src/muscle_tab.h, src/muscle_tab.h: here.
(muscle_init): Initialize muscle_obstack.
(muscle_free): New.
* src/main.c (main): Call it.
This commit is contained in:
Akim Demaille
2002-06-14 17:36:24 +00:00
parent 0c15323de7
commit 592e8d4d01
10 changed files with 55 additions and 35 deletions

View File

@@ -132,7 +132,6 @@ static short *check = NULL;
static int lowzero;
static int high;
struct obstack muscle_obstack;
static struct obstack format_obstack;
int error_verbose = 0;
@@ -1087,9 +1086,7 @@ output (void)
/* Process the selected skeleton file. */
output_skeleton ();
obstack_free (&muscle_obstack, NULL);
obstack_free (&format_obstack, NULL);
obstack_free (&action_obstack, NULL);
obstack_free (&pre_prologue_obstack, NULL);
obstack_free (&post_prologue_obstack, NULL);
}