extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40141
This commit is contained in:
David Anderson 2006-11-04 18:58:27 +00:00
parent 8099cb09bd
commit 4d61a07d58

View File

@ -2599,7 +2599,7 @@ static void dofuncenum(void)
int l = lex(&val,&str); int l = lex(&val,&str);
if (l != tSYMBOL) if (l != tSYMBOL)
{ {
/* Incomprehensible but it works for now! */ /* Error should be: "expected tag name identifier" */
error(57); error(57);
} }
@ -2612,6 +2612,7 @@ static void dofuncenum(void)
/* Another bad one... */ /* Another bad one... */
if (!(cur->value & FUNCTAG)) if (!(cur->value & FUNCTAG))
{ {
/* Error should be: "function enumeration requires unique tag" */
error(213); error(213);
} }
break; break;
@ -2641,7 +2642,7 @@ static void dofuncenum(void)
} else if (l == tPUBLIC) { } else if (l == tPUBLIC) {
func.type = uPUBLIC; func.type = uPUBLIC;
} else { } else {
error(1, "[forward,public]", str); error(1, "-forward,public-", str);
} }
needtoken('('); needtoken('(');
do do
@ -2732,7 +2733,8 @@ static void dofuncenum(void)
arg->ommittable = TRUE; arg->ommittable = TRUE;
func.ommittable = TRUE; func.ommittable = TRUE;
} else if (func.ommittable) { } else if (func.ommittable) {
/* :TODO: ERROR HERE! */ /* Error should be: "cannot have required parameters after optional parameters" */
error(1);
} }
func.argcount++; func.argcount++;
} else if (l == tELLIPS) { } else if (l == tELLIPS) {