diff -r 8aee27d46208 -r bc90dd4bbf4f util/dsymtable.cc --- a/util/dsymtable.cc Fri Dec 26 09:57:02 2014 +0000 +++ b/util/dsymtable.cc Fri Dec 26 10:09:27 2014 +0000 @@ -38,22 +38,22 @@ /* clear all entries... */ -template -void dsymtable_c::reset(void) { +template +void dsymtable_c::reset(void) { _base.clear(); } -template -void dsymtable_c::insert(const char *identifier_str, value_t new_value) { +template +void dsymtable_c::insert(const char *identifier_str, value_t new_value) { // std::cout << "store_identifier(" << identifier_str << "): \n"; std::pair new_element(identifier_str, new_value); /* iterator res = */ _base.insert(new_element); } -template -void dsymtable_c::insert(const symbol_c *symbol, value_t new_value) { +template +void dsymtable_c::insert(const symbol_c *symbol, value_t new_value) { const token_c *name = dynamic_cast(symbol); if (name == NULL) ERROR; @@ -62,8 +62,8 @@ #if 0 -template -void dsymtable_c::insert_noduplicate(const char *identifier_str, value_t new_value) { +template +void dsymtable_c::insert_noduplicate(const char *identifier_str, value_t new_value) { if (find_value(identifier_str) != null_value) /* already present in the set! */ ERROR; @@ -74,8 +74,8 @@ } -template -void dsymtable_c::insert_noduplicate(const symbol_c *symbol, value_t new_value) { +template +void dsymtable_c::insert_noduplicate(const symbol_c *symbol, value_t new_value) { const token_c *name = dynamic_cast(symbol); if (name == NULL) ERROR; @@ -86,20 +86,8 @@ -/* returns null_value if not found! */ -template -value_type dsymtable_c::find_value(const char *identifier_str) { - iterator i = _base.find(identifier_str); - - if (i == _base.end()) - return null_value; - else - return i->second; -} - - -template -const char * dsymtable_c::symbol_to_string(const symbol_c *symbol) { +template +const char * dsymtable_c::symbol_to_string(const symbol_c *symbol) { const token_c *name = dynamic_cast(symbol); if (name == NULL) ERROR; @@ -108,8 +96,8 @@ /* debuging function... */ -template -void dsymtable_c::print(void) { +template +void dsymtable_c::print(void) { for(iterator i = _base.begin(); i != _base.end(); i++)