X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fparser.yy;h=83eaf89ec235912c7bccb69ef2b44dd9bc6b3943;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=2e0887f954f806f2ee1ebedadf1a6b002d844a49;hpb=08fbee8d085bc6e471d6614bdaf8b29eac2169b4;p=lilypond.git diff --git a/lily/parser.yy b/lily/parser.yy index 2e0887f954..83eaf89ec2 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2007 Han-Wen Nienhuys + (c) 1997--2008 Han-Wen Nienhuys Jan Nieuwenhuizen */ @@ -654,7 +654,7 @@ context_def_spec_body: book_block: BOOK '{' book_body '}' { $$ = $3; - unstack_paper (PARSER); + pop_paper (PARSER); } ; @@ -664,10 +664,11 @@ book_block: book_body: { $$ = new Book; + init_papers (PARSER); $$->origin ()->set_spot (@$); $$->paper_ = dynamic_cast (unsmob_output_def (PARSER->lexer_->lookup_identifier ("$defaultpaper"))->clone ()); $$->paper_->unprotect (); - stack_paper (PARSER, $$->paper_); + push_paper (PARSER, $$->paper_); $$->header_ = PARSER->lexer_->lookup_identifier ("$defaultheader"); } | BOOK_IDENTIFIER {