* src/reduce.c (print_results): Rename as...

(reduce_output): This.
Output to OUT, passed as argument, instead of output_obstack.
(dump_grammar): Likewise.
(reduce_free): New.
Also free V1.
(reduce_grammar): No longer call reduce_output, since...
* src/print.c (print_results): do it.
* src/main.c (main): Call reduce_free;
This commit is contained in:
Akim Demaille
2001-11-12 09:32:51 +00:00
parent c73a41af8e
commit 337c5bd131
5 changed files with 76 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
/* Grammar reduction for Bison.
Copyright 2000 Free Software Foundation, Inc.
Copyright 2000, 2001 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
@@ -22,5 +22,6 @@
# define REDUCE_H_
void reduce_grammar PARAMS ((void));
void reduce_output PARAMS ((FILE *out));
void reduce_free PARAMS ((void));
#endif /* !REDUCE_H_ */