fixed a problem with the ifdef-stack

This commit is contained in:
ceriel
1987-08-20 18:12:31 +00:00
parent 831cdc7580
commit 754f9ce45d
4 changed files with 13 additions and 8 deletions

View File

@@ -47,8 +47,12 @@ AtEoIT()
AtEoIF()
{
extern int nestlevel;
extern int nestcount;
extern int svnestlevel[];
if (nestlevel != -1) warning("missing #endif");
if (nestlevel > svnestlevel[nestcount]) warning("missing #endif");
else if (NoUnstack) warning("unexpected EOF");
nestlevel = svnestlevel[nestcount--];
return 0;
}