comparison src/symtab.cc @ 5013:1eb9ce5c0152

[project @ 2004-09-21 22:18:07 by jwe]
author jwe
date Tue, 21 Sep 2004 22:22:13 +0000
parents 2bcd013bc867
children bdbee5282954
comparison
equal deleted inserted replaced
5012:ed25bed43409 5013:1eb9ce5c0152
697 else 697 else
698 return false; 698 return false;
699 } 699 }
700 700
701 // A symbol table. 701 // A symbol table.
702
703 symbol_table::~symbol_table (void)
704 {
705 for (unsigned int i = 0; i < table_size; i++)
706 {
707 symbol_record *ptr = table[i].next ();
708
709 while (ptr)
710 {
711 symbol_record *tmp = ptr;
712
713 ptr = ptr->next ();
714
715 delete tmp;
716 }
717 }
718
719 delete [] table;
720 }
702 721
703 symbol_record * 722 symbol_record *
704 symbol_table::lookup (const std::string& nm, bool insert, bool warn) 723 symbol_table::lookup (const std::string& nm, bool insert, bool warn)
705 { 724 {
706 if (Vdebug_symtab_lookups) 725 if (Vdebug_symtab_lookups)