added 3 errors for dofuncenum

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40143
This commit is contained in:
Borja Ferrer
2006-11-04 19:35:21 +00:00
parent 8402d79760
commit b5e203a67d
2 changed files with 159 additions and 156 deletions
+3 -6
View File
@@ -2599,8 +2599,7 @@ static void dofuncenum(void)
int l = lex(&val,&str);
if (l != tSYMBOL)
{
/* Error should be: "expected tag name identifier" */
error(57);
error(93);
}
/* This tag can't already exist! */
@@ -2612,8 +2611,7 @@ static void dofuncenum(void)
/* Another bad one... */
if (!(cur->value & FUNCTAG))
{
/* Error should be: "function enumeration requires unique tag" */
error(213);
error(94);
}
break;
}
@@ -2733,8 +2731,7 @@ static void dofuncenum(void)
arg->ommittable = TRUE;
func.ommittable = TRUE;
} else if (func.ommittable) {
/* Error should be: "cannot have required parameters after optional parameters" */
error(1);
error(95);
}
func.argcount++;
} else if (l == tELLIPS) {