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 (1|| !source_file_l_ ) {
cerr << "error at EOF" << sz_l << '\n';
} else {
+
+ // FIXME
+ #if 0
char const* ch_C = here_ch_C();
if ( ch_C ) {
ch_C--;
ch_C++;
}
errorlevel_i_ |= 1;
- ::error( sz_l, ch_C );
+ error( sz_l);
+ #endif
}
}
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