If stub name is of the form function@0, output as function@0@0 in the .def

file because the last @0 will be stripped later on

svn path=/trunk/; revision=11799
This commit is contained in:
Gé van Geldorp 2004-11-24 20:11:52 +00:00
parent 6e2b742680
commit 1f759dcf55

View file

@ -886,6 +886,20 @@ void BuildDef32File( FILE *outfile, DLLSPEC *spec )
}
case TYPE_STUB:
{
if (!kill_at)
{
const char *check = name + strlen(name);
while (name != check &&
'0' <= check[-1] && check[-1] <= '9')
{
check--;
}
if (name != check && check != name + strlen(name) &&
'@' == check[-1])
{
fprintf(outfile, "%s", check - 1);
}
}
if (NULL != odp->name)
{
fprintf(outfile, "=%s", make_internal_name( odp, spec, "stub" ));