introduction of lint source code, governed by ifdef LINT

This commit is contained in:
dick
1988-09-20 16:44:27 +00:00
parent 7e502b0937
commit 6839d8afb1
35 changed files with 3200 additions and 17 deletions

View File

@@ -5,6 +5,7 @@
/* $Header$ */
/* EXPRESSION TREE HANDLING */
#include "lint.h"
#include "nofloat.h"
#include "botch_free.h"
#include <alloc.h>
@@ -181,7 +182,9 @@ idf2expr(expr)
expr->ex_type = error_type;
}
else {
#ifndef LINT
def->df_used = 1;
#endif LINT
expr->ex_type = def->df_type;
if (expr->ex_type == error_type)
expr->ex_flags |= EX_ERROR;
@@ -196,12 +199,14 @@ idf2expr(expr)
expr->VL_CLASS = Const;
expr->VL_VALUE = def->df_address;
}
#ifndef LINT
else
if (def->df_sc == STATIC && def->df_level >= L_LOCAL) {
expr->VL_CLASS = Label;
expr->VL_LBL = def->df_address;
expr->VL_VALUE = (arith)0;
}
#endif LINT
else {
expr->VL_CLASS = Name;
expr->VL_IDF = idf;