some fixes

This commit is contained in:
ceriel
1987-08-07 19:54:45 +00:00
parent c82ba656fb
commit b4db4084c8
4 changed files with 15 additions and 7 deletions

View File

@@ -40,13 +40,16 @@ int Unstacked;
AtEoIT()
{
if (NoUnstack) error("unexpected EOF");
if (NoUnstack) warning("unexpected EOF");
DoUnstack();
return 0;
}
AtEoIF()
{
if (NoUnstack) error("unexpected EOF");
extern int nestlevel;
if (nestlevel != -1) warning("missing #endif");
else if (NoUnstack) warning("unexpected EOF");
return 0;
}