fixes to preprocessor part

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

View File

@@ -44,7 +44,7 @@ int NoUnstack;
AtEoIT()
{
#ifndef NOPP
if (NoUnstack) lexerror("unexpected EOF");
if (NoUnstack) lexwarning("unexpected EOF");
DoUnstack();
#endif NOPP
return 0;
@@ -52,6 +52,12 @@ AtEoIT()
AtEoIF()
{
if (NoUnstack) lexerror("unexpected EOF");
#ifndef NOPP
extern int nestlevel;
if (nestlevel != -1) lexwarning("missing #endif");
else
#endif NOPP
if (NoUnstack) lexwarning("unexpected EOF");
return 0;
}