Do not use '#endif/#else xxx'; it is not allowed for ANSI C
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user