From: fred Date: Sun, 24 Mar 2002 19:30:34 +0000 (+0000) Subject: lilypond-0.0.28 X-Git-Tag: release/1.5.59~5458 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9e54ac2848db2ebdd07db7107b4b082d170faa34;p=lilypond.git lilypond-0.0.28 --- diff --git a/hdr/main.hh b/hdr/main.hh index 1102833fac..e19b0aff12 100644 --- a/hdr/main.hh +++ b/hdr/main.hh @@ -10,6 +10,6 @@ void set_default_output(String s); Input_score* current_iscore_l(); String find_file(String); const char *get_version(); -extern Source* source_l; +extern Source* source_global_l; #endif diff --git a/src/lexerinit.cc b/src/lexerinit.cc index 508c61e30d..92b52ad8b2 100644 --- a/src/lexerinit.cc +++ b/src/lexerinit.cc @@ -38,7 +38,7 @@ Input_file::Input_file(String s) } else { Source_file* sourcefile_p = new Source_file( pf ); - source_l->add( sourcefile_p ); + source_global_l->add( sourcefile_p ); sourcefile_l_ = sourcefile_p; is = sourcefile_l_->istream_l(); } diff --git a/src/main.cc b/src/main.cc index 7e20c89a70..e100ec2884 100644 --- a/src/main.cc +++ b/src/main.cc @@ -12,7 +12,7 @@ #include "source.hh" Source source; -Source* source_l = &source; +Source* source_global_l = &source; extern void parse_file(String,String); diff --git a/src/warn.cc b/src/warn.cc index 8328f64fb7..f8688d7227 100644 --- a/src/warn.cc +++ b/src/warn.cc @@ -48,10 +48,9 @@ void message( String message_str, char const* context_ch_c_l ) { String str = "lilypond: "; - Source_file* sourcefile_l = source_l->sourcefile_l( context_ch_c_l ); + Source_file* sourcefile_l = source_global_l->sourcefile_l( context_ch_c_l ); if ( sourcefile_l ) { - str += sourcefile_l->name_str() + ": "; - str += String( sourcefile_l->line_i( context_ch_c_l ) ) + ": "; + str += sourcefile_l->file_line_no_str(context_ch_c_l); } str += message_str; if ( sourcefile_l ) {