Support alternate name for hooked function
Modified:
branches/xmlbuildsystem/reactos/tools/rbuild/stubbedcomponent.cpp
Modified:
branches/xmlbuildsystem/reactos/tools/rbuild/testsupportcode.cpp
_____
Modified:
branches/xmlbuildsystem/reactos/tools/rbuild/stubbedcomponent.cpp
--- branches/xmlbuildsystem/reactos/tools/rbuild/stubbedcomponent.cpp
2005-05-20 18:15:44 UTC (rev 15436)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/stubbedcomponent.cpp
2005-05-20 19:07:23 UTC (rev 15437)
@@ -72,13 +72,13 @@
}
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
_____
Modified:
branches/xmlbuildsystem/reactos/tools/rbuild/testsupportcode.cpp
--- branches/xmlbuildsystem/reactos/tools/rbuild/testsupportcode.cpp
2005-05-20 18:15:44 UTC (rev 15436)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/testsupportcode.cpp
2005-05-20 19:07:23 UTC (rev 15437)
@@ -63,7 +63,7 @@
buffer = buffer + sprintf ( buffer,
" {\"%s\", \"%s\", NULL, NULL,
NULL},\n",
component.name.c_str (),
- symbol.strippedName.c_str () );
+ symbol.newname.c_str () );
return buffer;
}
Show replies by date