using namespace std;
#include "lilypond-key.hh"
-#include "global-context.hh"
#include "main.hh"
-#include "music-iterator.hh"
-#include "music-output.hh"
#include "music.hh"
#include "output-def.hh"
#include "paper-book.hh"
#include "score.hh"
-#include "stencil.hh"
#include "text-interface.hh"
#include "warn.hh"
-
#include "performance.hh"
#include "paper-score.hh"
smobify_self ();
if (s.paper_)
- paper_ = s.paper_->clone ();
+ {
+ paper_ = s.paper_->clone ();
+ paper_->unprotect ();
+ }
input_location_ = make_input (*s.origin ());
+
header_ = ly_make_anonymous_module (false);
if (ly_is_module (s.header_))
ly_module_copy (header_, s.header_);
-
+
SCM *t = &scores_;
for (SCM p = s.scores_; scm_is_pair (p); p = scm_cdr (p))
{
Book::process (Output_def *default_paper,
Output_def *default_layout)
{
- for (SCM s = scores_; s != SCM_EOL; s = scm_cdr (s))
+ for (SCM s = scores_; scm_is_pair (s); s = scm_cdr (s))
if (Score *score = unsmob_score (scm_car (s)))
if (score->error_found_)
return 0;
paper_book->header_ = header_;
/* Render in order of parsing. */
- for (SCM s = scm_reverse (scores_); s != SCM_EOL; s = scm_cdr (s))
+ for (SCM s = scm_reverse (scores_); scm_is_pair (s); s = scm_cdr (s))
{
if (Score *score = unsmob_score (scm_car (s)))
{