fixed memory fault, adapted mechanism code_scope

This commit is contained in:
ceriel
1989-11-01 15:41:06 +00:00
parent d72e4424cd
commit 2db075ab69
3 changed files with 18 additions and 20 deletions

View File

@@ -22,6 +22,7 @@
#include "sizes.h"
#include "level.h"
#include "noRoption.h"
#include "use_tmp.h"
extern char *symbol2str();
extern char options[];
@@ -183,7 +184,12 @@ idf2expr(expr)
}
else {
#ifndef LINT
def->df_used = 1;
if (! def->df_used) {
def->df_used = 1;
#ifndef PREPEND_SCOPES
code_scope(idf->id_text, def);
#endif PREPEND_SCOPES
}
#endif LINT
expr->ex_type = def->df_type;
if (expr->ex_type == error_type)