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

This commit is contained in:
ceriel
1991-12-17 14:11:15 +00:00
parent a3bbaf4940
commit 7d78a01b64
56 changed files with 343 additions and 345 deletions

View File

@@ -59,11 +59,11 @@
#include "def.h"
#ifdef LINT
#include "l_lint.h"
#endif LINT
#endif /* LINT */
#ifndef NOPP
extern arith ifval;
#endif NOPP
#endif /* NOPP */
extern error();
}
@@ -82,7 +82,7 @@ control_if_expression
"sizeof not allowed in preprocessor");
ifval = expr->VL_VALUE;
free_expression(expr);
#endif NOPP
#endif /* NOPP */
}
;
@@ -128,7 +128,7 @@ external_definition
declare_idf(&Ds, &Dc, level);
#ifdef LINT
lint_ext_def(Dc.dc_idf, Ds.ds_sc);
#endif LINT
#endif /* LINT */
}
[
function(&Ds, &Dc)
@@ -162,7 +162,7 @@ non_function(register struct decspecs *ds; register struct declarator *dc;)
{
#ifdef LINT
lint_non_function_decl(ds, dc);
#endif LINT
#endif /* LINT */
}
[
','
@@ -180,7 +180,7 @@ function(struct decspecs *ds; struct declarator *dc;)
{ register struct idf *idf = dc->dc_idf;
#ifdef LINT
lint_start_function();
#endif LINT
#endif /* LINT */
init_idf(idf);
stack_level(); /* L_FORMAL1 declarations */
declare_params(dc);
@@ -192,21 +192,21 @@ function(struct decspecs *ds; struct declarator *dc;)
declare_formals(&fbytes);
#ifdef LINT
lint_formals();
#endif LINT
#endif /* LINT */
}
compound_statement
{
end_proc(fbytes);
#ifdef LINT
lint_implicit_return();
#endif LINT
#endif /* LINT */
unstack_level(); /* L_FORMAL2 declarations */
#ifdef LINT
lint_end_formals();
#endif LINT
#endif /* LINT */
unstack_level(); /* L_FORMAL1 declarations */
#ifdef LINT
lint_end_function();
#endif LINT
#endif /* LINT */
}
;