void addIdS( string * str, int type ) { string * cpdStr = new string( *str ); Identifier * id = new Identifier(); id->setKey( cpdStr ); id->setType( type ); if( !bst.add( id ) ) { delete( cpdStr ); delete( id ); string error = "Redeclaration of "; error.append( *str ); yyerror( error.c_str() ); } }