{
/* 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++;
int
OutputLine_def(FILE *fileDest, EXPORT *pexp)
{
+ DbgPrint("OutputLine_def: '%.*s'...\n", pexp->strName.len, pexp->strName.buf);
fprintf(fileDest, " ");
if (gbMSComp)
/* 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] == '@'))
if (exp.nCallingConvention != CC_EXTERN &&
exp.nCallingConvention != CC_STUB)
{
- //fprintf(stderr, "info: options:'%.10s'\n", pc);
/* Go to next token */
if (!(pc = NextToken(pc)))
{