mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
[SPEC2DEF]
Fix def file generation on non-86 svn path=/trunk/; revision=63323
This commit is contained in:
parent
778c8e998c
commit
c64645fd66
|
@ -329,7 +329,7 @@ PrintName(FILE *fileDest, EXPORT *pexp, PSTRING pstr, int fDeco)
|
|||
{
|
||||
/* 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 @@ OutputLine_def_GCC(FILE *fileDest, EXPORT *pexp)
|
|||
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 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
|
|||
/* 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 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
|
|||
if (exp.nCallingConvention != CC_EXTERN &&
|
||||
exp.nCallingConvention != CC_STUB)
|
||||
{
|
||||
//fprintf(stderr, "info: options:'%.10s'\n", pc);
|
||||
/* Go to next token */
|
||||
if (!(pc = NextToken(pc)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue