Author: tkreuzer
Date: Sat May 17 10:58:10 2014
New Revision: 63323
URL:
http://svn.reactos.org/svn/reactos?rev=63323&view=rev
Log:
[SPEC2DEF]
Fix def file generation on non-86
Modified:
trunk/reactos/tools/spec2def/spec2def.c
Modified: trunk/reactos/tools/spec2def/spec2def.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/spec2def/spec2def.c?…
==============================================================================
--- trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] (original)
+++ trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] Sat May 17 10:58:10 2014
@@ -329,7 +329,7 @@
{
/* Does the string already have stdcall decoration? */
pcAt = ScanToken(pcName, '@');
- if ((pcAt < (pcName + nNameLength)) && (pcName[0] == '_'))
+ if (pcAt && (pcAt < (pcName + nNameLength)) && (pcName[0] ==
'_'))
{
/* Skip leading underscore and remove trailing decoration */
pcName++;
@@ -485,6 +485,7 @@
int
OutputLine_def(FILE *fileDest, EXPORT *pexp)
{
+ DbgPrint("OutputLine_def: '%.*s'...\n", pexp->strName.len,
pexp->strName.buf);
fprintf(fileDest, " ");
if (gbMSComp)
@@ -684,6 +685,7 @@
/* Get name */
exp.strName.buf = pc;
exp.strName.len = TokenLength(pc);
+ DbgPrint("Got name: '%.*s'\n", exp.strName.len,
exp.strName.buf);
/* Check for autoname */
if ((exp.strName.len == 1) && (exp.strName.buf[0] == '@'))
@@ -699,7 +701,6 @@
if (exp.nCallingConvention != CC_EXTERN &&
exp.nCallingConvention != CC_STUB)
{
- //fprintf(stderr, "info: options:'%.10s'\n", pc);
/* Go to next token */
if (!(pc = NextToken(pc)))
{