moved # of params error message back to an actual error
fixed a bug in the peephole optimizer --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40108
This commit is contained in:
parent
fb9234eb86
commit
5eec9f6dff
@ -5391,7 +5391,7 @@ static void doreturn(void)
|
||||
/* "return <value>" */
|
||||
if ((rettype & uRETNONE)!=0)
|
||||
error(78); /* mix "return;" and "return value;" */
|
||||
ident=doexpr(TRUE,FALSE,TRUE,TRUE,&tag,&sym,TRUE);
|
||||
ident=doexpr(TRUE,FALSE,TRUE,FALSE,&tag,&sym,TRUE);
|
||||
needtoken(tTERM);
|
||||
/* see if this function already has a sub type (an array attached) */
|
||||
sub=finddepend(curfunc);
|
||||
|
@ -2402,7 +2402,7 @@ static int nesting=0;
|
||||
markexpr(sPARM,NULL,0); /* mark the end of a sub-expression */
|
||||
nest_stkusage++;
|
||||
} else {
|
||||
error(202,argidx); /* argument count mismatch */
|
||||
error(92,argidx); /* argument count mismatch */
|
||||
} /* if */
|
||||
if (arglist[argidx]==ARG_UNHANDLED)
|
||||
nargs++;
|
||||
|
Loading…
Reference in New Issue
Block a user