From ba299d6f454b50f05175c570b122d18effefeb3a Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 1 Nov 1996 00:17:03 +0000 Subject: [PATCH] lilypond-0.0.6 --- symtable.cc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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]; -- 2.39.5