Input_score* current_iscore_l();
String find_file(String);
const char *get_version();
-extern Source* source_l;
+extern Source* source_global_l;
#endif
}
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();
}
#include "source.hh"
Source source;
-Source* source_l = &source;
+Source* source_global_l = &source;
extern void parse_file(String,String);
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 ) {