Fixed amb333 - compiler crash when attempting to call native without parentheses
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40861
This commit is contained in:
parent
ca3c8eb6b7
commit
dd2986d1d8
@ -2005,7 +2005,7 @@ restart:
|
||||
assert(sym->ident==iFUNCTN);
|
||||
if (sc_allowproccall) {
|
||||
callfunction(sym,lval1,FALSE);
|
||||
} else {
|
||||
} else if ((sym->usage & uNATIVE) != uNATIVE) {
|
||||
symbol *oldsym=sym;
|
||||
int n=-1,iter=0;
|
||||
int usage = ((sym->usage & uPUBLIC) == uPUBLIC) ? uPUBLIC : 0;
|
||||
@ -2040,7 +2040,9 @@ restart:
|
||||
error(76); /* invalid function call, or syntax error */
|
||||
} /* if */
|
||||
return FALSE;
|
||||
}
|
||||
} else {
|
||||
error(76); /* invalid function call, or syntax error */
|
||||
}
|
||||
} /* if */
|
||||
return lvalue;
|
||||
}
|
||||
|
@ -25,7 +25,8 @@ SC_FUNC int strexpand(char *dest, unsigned char *source, int maxlen, unsigned ch
|
||||
|
||||
#define SCPACK_TABLE errstr_table
|
||||
/*-*SCPACK start of pair table, do not change or remove this line */
|
||||
unsigned char errstr_table[][2] = {
{101,32}, {111,110}, {116,32}, {105,110}, {97,114}, {116,105}, {115,32}, {100,32}, {101,114}, {37,115}, {133,129}, {101,110}, {34,137}, {140,34}, {97,108}, {117,110},
|
||||
unsigned char errstr_table[][2] = {
|
||||
{101,32}, {111,110}, {116,32}, {105,110}, {97,114}, {116,105}, {115,32}, {100,32}, {101,114}, {37,115}, {133,129}, {101,110}, {34,137}, {140,34}, {97,108}, {117,110},
|
||||
{114,101}, {110,111}, {97,116}, {115,105}, {121,32}, {97,110}, {111,114}, {109,98}, {115,116}, {32,141}, {100,101}, {41,10}, {109,139}, {145,130}, {101,135}, {138,32},
|
||||
{98,108}, {111,108}, {143,99}, {102,162}, {114,97}, {118,142}, {115,121}, {166,151}, {167,161}, {97,32}, {117,115}, {103,32}, {115,147}, {97,160}, {136,32}, {150,32},
|
||||
{132,164}, {99,104}, {103,117}, {105,135}, {163,159}, {178,156}, {165,179}, {132,181}, {111,102}, {116,104}, {101,120}, {131,182}, {101,134}, {105,134}, {168,153}, {154,102},
|
||||
|
Loading…
Reference in New Issue
Block a user