* tests/calc.at: Exercise prologue splitting.
authorRobert Anisko <robert@lrde.epita.fr>
Wed, 24 Apr 2002 16:22:57 +0000 (16:22 +0000)
committerRobert Anisko <robert@lrde.epita.fr>
Wed, 24 Apr 2002 16:22:57 +0000 (16:22 +0000)
commit0dd1580afc286919586ed21b03c93b035f33c7d8
treed136d38ebaa3c7cb6dec6381909b889a345a4e5b
parentb98ec53ee42edc8c709505472faca84d1cd4b4c3
* tests/calc.at: Exercise prologue splitting.
* data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
`b4_post_prologue' instead of `b4_prologue'.
* src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
muscles.
(output): Free pre_prologue_obstack and post_prologue_obstack.
* src/files.h, src/files.c (attrs_obstack): Remove.
(pre_prologue_obstack, post_prologue_obstack): New.
* src/reader.c (copy_definition): Add a parameter to specify the
obstack to fill, instead of using attrs_obstack unconditionally.
(read_declarations): Pass pre_prologue_obstack to copy_definition if
`%union' has not yet been seen, pass post_prologue_obstack otherwise.
ChangeLog
data/bison.c++
data/bison.simple
src/files.c
src/files.h
src/output.c
src/reader.c
tests/calc.at