Use symbols for fatal errors and bump them by 20 slots.

This commit is contained in:
David Anderson
2014-11-07 17:41:33 -08:00
parent 2c31b99ce3
commit a8796543af
9 changed files with 82 additions and 63 deletions
+2 -2
View File
@@ -2212,7 +2212,7 @@ restart:
*/
sym=fetchfunc(lastsymbol);
if (sym==NULL)
error(163); /* insufficient memory */
error(FATAL_ERROR_OOM);
markusage(sym,uREAD);
} else {
return error(12); /* invalid function call */
@@ -2358,7 +2358,7 @@ static int primary(value *lval)
assert(sc_status==statFIRST);
sym=fetchfunc(st);
if (sym==NULL)
error(163); /* insufficient memory */
error(FATAL_ERROR_OOM);
} /* if */
assert(sym!=NULL);
assert(sym->ident==iFUNCTN || sym->ident==iREFFUNC);