relaxed typechecking a little bit
This commit is contained in:
parent
bac0ae9da3
commit
a8b3ef51ed
@ -416,13 +416,13 @@ check_pseudoproto(pl, opl)
|
|||||||
|
|
||||||
if (pl->pl_flag & PL_ELLIPSIS) {
|
if (pl->pl_flag & PL_ELLIPSIS) {
|
||||||
error("illegal ellipsis terminator");
|
error("illegal ellipsis terminator");
|
||||||
|
pl->pl_flag |= PL_ERRGIVEN;
|
||||||
|
opl->pl_flag |= PL_ERRGIVEN;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (opl->pl_flag & PL_VOID) {
|
if (opl->pl_flag & PL_VOID) {
|
||||||
if (!(pl->pl_flag & PL_VOID))
|
if (!(pl->pl_flag & PL_VOID))
|
||||||
error("function is defined without parameters");
|
strict("function is defined without parameters");
|
||||||
pl->pl_flag |= PL_ERRGIVEN;
|
|
||||||
opl->pl_flag |= PL_ERRGIVEN;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
while (pl && opl) {
|
while (pl && opl) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user