Do not use '#endif/#else xxx'; it is not allowed for ANSI C

This commit is contained in:
ceriel
1991-12-17 13:12:22 +00:00
parent abb411daac
commit a38be6605e
50 changed files with 261 additions and 261 deletions

View File

@@ -12,7 +12,7 @@
#include <em.h>
#else
#include "l_em.h"
#endif LINT
#endif /* LINT */
#include "debug.h"
#include "lint.h"
@@ -45,7 +45,7 @@ int err_occurred = 0;
extern char options[];
#ifdef LINT
extern char loptions[];
#endif LINT
#endif /* LINT */
/* There are three general error-message functions:
lexerror() lexical and pre-processor error messages
@@ -151,7 +151,7 @@ debug(va_alist)
}
va_end(ap);
}
#endif DEBUG
#endif /* DEBUG */
/*VARARGS*/
warning(va_alist)
@@ -232,7 +232,7 @@ awarning(va_alist) /* fmt, args */
va_end(ap);
}
#endif LINT
#endif /* LINT */
/*VARARGS*/
lexerror(va_alist) /* fmt, args */
@@ -275,9 +275,9 @@ crash(va_alist) /* fmt, args */
C_close();
#ifdef DEBUG
sys_stop(S_ABORT);
#else DEBUG
#else /* DEBUG */
sys_stop(S_EXIT);
#endif DEBUG
#endif /* DEBUG */
/* NOTREACHED */
}
@@ -352,9 +352,9 @@ _error(class, fn, ln, ap)
case WARNING:
#ifndef LINT
remark = "(warning)";
#else LINT
#else /* LINT */
remark = 0;
#endif LINT
#endif /* LINT */
break;
case ERROR:
@@ -372,7 +372,7 @@ _error(class, fn, ln, ap)
case DO_DEBUG:
remark = "(debug)";
break;
#endif DEBUG
#endif /* DEBUG */
default:
/*NOTREACHED*/;
}
@@ -388,7 +388,7 @@ _error(class, fn, ln, ap)
/* we skip this message */
return;
}
#endif LINT
#endif /* LINT */
if (fn)
fprint(ERROUT, "\"%s\", line %u: ", fn, ln);