mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 18:40:59 +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? */
|
/* Does the string already have stdcall decoration? */
|
||||||
pcAt = ScanToken(pcName, '@');
|
pcAt = ScanToken(pcName, '@');
|
||||||
if ((pcAt < (pcName + nNameLength)) && (pcName[0] == '_'))
|
if (pcAt && (pcAt < (pcName + nNameLength)) && (pcName[0] == '_'))
|
||||||
{
|
{
|
||||||
/* Skip leading underscore and remove trailing decoration */
|
/* Skip leading underscore and remove trailing decoration */
|
||||||
pcName++;
|
pcName++;
|
||||||
|
@ -485,6 +485,7 @@ OutputLine_def_GCC(FILE *fileDest, EXPORT *pexp)
|
||||||
int
|
int
|
||||||
OutputLine_def(FILE *fileDest, EXPORT *pexp)
|
OutputLine_def(FILE *fileDest, EXPORT *pexp)
|
||||||
{
|
{
|
||||||
|
DbgPrint("OutputLine_def: '%.*s'...\n", pexp->strName.len, pexp->strName.buf);
|
||||||
fprintf(fileDest, " ");
|
fprintf(fileDest, " ");
|
||||||
|
|
||||||
if (gbMSComp)
|
if (gbMSComp)
|
||||||
|
@ -684,6 +685,7 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
|
||||||
/* Get name */
|
/* Get name */
|
||||||
exp.strName.buf = pc;
|
exp.strName.buf = pc;
|
||||||
exp.strName.len = TokenLength(pc);
|
exp.strName.len = TokenLength(pc);
|
||||||
|
DbgPrint("Got name: '%.*s'\n", exp.strName.len, exp.strName.buf);
|
||||||
|
|
||||||
/* Check for autoname */
|
/* Check for autoname */
|
||||||
if ((exp.strName.len == 1) && (exp.strName.buf[0] == '@'))
|
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 &&
|
if (exp.nCallingConvention != CC_EXTERN &&
|
||||||
exp.nCallingConvention != CC_STUB)
|
exp.nCallingConvention != CC_STUB)
|
||||||
{
|
{
|
||||||
//fprintf(stderr, "info: options:'%.10s'\n", pc);
|
|
||||||
/* Go to next token */
|
/* Go to next token */
|
||||||
if (!(pc = NextToken(pc)))
|
if (!(pc = NextToken(pc)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue