My_midi_lexer::My_midi_lexer( String &filename_str, Sources * sources )
{
- source_file_p_ =sources->get_file_l(filename_str);
- switch_streams( source_file_p_->istream_l() );
+ source_file_l_ =sources->get_file_l(filename_str);
+ switch_streams( source_file_l_->istream_l() );
errorlevel_i_ = 0;
char_count_ = 0;
}
My_midi_lexer::~My_midi_lexer()
{
- delete source_file_p_;
+// delete source_file_p_;
}
void
My_midi_lexer::error( char const* sz_l )
{
- if ( !source_file_p_ ) {
+ if ( !source_file_l_ ) {
cerr << "error at EOF" << sz_l << '\n';
} else {
char const* ch_C = here_ch_C();
char const*
My_midi_lexer::here_ch_C()
{
- return source_file_p_->ch_C() + char_count_ ;
+ return source_file_l_->ch_C() + char_count_ ;
}
int