2 warn.cc -- implement warning and error messages. Needs cleanup.
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "my-lily-lexer.hh"
13 #include "time-description.hh"
14 #include "source-file.hh"
19 ostream &warnout (cerr);
20 ostream *mlog (&cerr);
25 error_t (String const & s, Moment const & r)
27 String t_mom = r.trunc_rat ().str () + (r - r.trunc_rat ()).str ();
28 String e=s+ " (t = " + t_mom + ")";
33 error_t (String const & s, Time_description const &t_tdes)
35 String e=s+ " (at t=" + to_str (t_tdes.bars_i_) + ": " + (t_tdes.whole_in_measure_).str () + ")\n";