From e6f27a9a64364da67c9511f1fd887d0eb88a30d9 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:30:39 +0000 Subject: [PATCH] lilypond-0.0.28 --- src/complexwalker.cc | 3 ++- src/score.cc | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/complexwalker.cc b/src/complexwalker.cc index f1a73e0200..87e3729a07 100644 --- a/src/complexwalker.cc +++ b/src/complexwalker.cc @@ -205,7 +205,8 @@ Complex_walker::try_request(Request*req) } if (!b) - WARN<< "junking request: " <name() <<"\n"; + warning("junking request: " + String(req->name()), + req->defined_ch_c_l_m); } void diff --git a/src/score.cc b/src/score.cc index feb7db93e7..f784f30efa 100644 --- a/src/score.cc +++ b/src/score.cc @@ -5,7 +5,9 @@ #include "staff.hh" #include "debug.hh" #include "paper.hh" - +#include "main.hh" +#include "source.hh" +#include "sourcefile.hh" void Score::process() @@ -14,7 +16,7 @@ Score::process() assert (paper_p_); if (last() == Moment(0)) { - error("Need to have music in a score."); + warning("Need to have music in a score.", defined_ch_c_l_); } // distribute commands to disciples pscore_p_ = new PScore(paper_p_); @@ -161,6 +163,7 @@ Score::Score(Paperdef*p) pscore_p_=0; paper_p_ = p; // ?? safe? errorlevel_i_ = 0; + defined_ch_c_l_ = 0; } Score::~Score() @@ -185,7 +188,10 @@ Score::output(String s) *mlog << "output to " << paper_p_->outfile << "...\n"; Tex_stream the_output(paper_p_->outfile); - the_output << "% outputting Score, defined at: " << define_spot_str_ << "\n"; + + the_output << "% outputting Score, defined at: " << + source_global_l-> + sourcefile_l (defined_ch_c_l_)->file_line_no_str(defined_ch_c_l_) << "\n"; pscore_p_->output(the_output); } -- 2.39.5