From: fred Date: Fri, 1 Nov 1996 00:17:03 +0000 (+0000) Subject: lilypond-0.0.6 X-Git-Tag: release/1.5.59~6987 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ba299d6f454b50f05175c570b122d18effefeb3a;p=lilypond.git lilypond-0.0.6 --- diff --git a/symtable.cc b/symtable.cc index b4de607b8d..eedb25a4e5 100644 --- a/symtable.cc +++ b/symtable.cc @@ -7,9 +7,6 @@ #include "symtable.hh" - - - Symbol Symtable::lookup(String s) const { @@ -25,21 +22,16 @@ Symtable::lookup(String s) const Symtable* Symtables::operator()(String s) { - if (!done_reading){ // read on demand - *mlog << '(' << fname ; - read(); - done_reading = true; - *mlog << ")\n"; - } return Assoc::operator[](s); } void -Symtables::read() +Symtables::read(Text_db &symini) { - Text_db symini(fname); while (!symini.eof()) { Text_record r( symini++); + if (r[0] == "end" ) + return; assert (r[0] == "table"); String tabnam = r[1];