Support alternate name for hooked function

svn path=/branches/xmlbuildsystem/; revision=15437
This commit is contained in:
Casper Hornstrup 2005-05-20 19:07:23 +00:00
parent 19e160bf46
commit 8a4a3a4cb1
2 changed files with 4 additions and 4 deletions

View file

@ -72,13 +72,13 @@ StubbedSymbol::ProcessXML ()
}
symbol = node.value;
strippedName = StripSymbol ( symbol );
const XMLAttribute* att = node.GetAttribute ( "newname", false );
if ( att != NULL )
newname = att->value;
else
newname = symbol;
strippedName = StripSymbol ( symbol );
newname = strippedName;
}
string

View file

@ -63,7 +63,7 @@ TestSupportCode::WriteStubbedSymbolToHooksFile ( char* buffer,
buffer = buffer + sprintf ( buffer,
" {\"%s\", \"%s\", NULL, NULL, NULL},\n",
component.name.c_str (),
symbol.strippedName.c_str () );
symbol.newname.c_str () );
return buffer;
}