From 9e54ac2848db2ebdd07db7107b4b082d170faa34 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:30:34 +0000 Subject: [PATCH] lilypond-0.0.28 --- hdr/main.hh | 2 +- src/lexerinit.cc | 2 +- src/main.cc | 2 +- src/warn.cc | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) 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 ) { -- 2.39.5