src/Generic/edt/AbbrevTable.cpp
// This is a private function which can add to either table

This is a private function which can add to either table
This is a private function which can add to either table
bool AbbrevTable::add(SymbolArray *key, SymbolArray *value, TIndex index) {
	if((*_table[index]).get(key) == NULL) {
		(*_table[index])[key] = value;
		return true;
	}
	else {
		SymbolArray *oldValue = (*_table[index])[key];
		(*_table[index])[key] = value;
		delete oldValue;
		return false;
	}
}
bool AbbrevTable :: add ( SymbolArray * key , SymbolArray * value , TIndex index ) { if ( ( * _table [ index ] ) . get ( key ) == NULL ) { ( * _table [ index ] ) [ key ] = value ; return true ; } else { SymbolArray * oldValue = ( * _table [ index ] ) [ key ] ; ( * _table [ index ] ) [ key ] = value ; delete oldValue ; return false ; } }
This is a private function which can add to either table
This is a private function which can add to either table
//	if((*_table[index])[key]== NULL) {
