some more fixes

This commit is contained in:
ceriel
1987-07-22 10:59:24 +00:00
parent 03c5092815
commit 0bffe65c24
7 changed files with 19 additions and 6 deletions

View File

@@ -25,6 +25,7 @@
#include "node.h"
#include "main.h"
#include "misc.h"
#include "f_info.h"
struct def *
Enter(name, kind, type, pnam)
@@ -463,12 +464,16 @@ EnterImportList(Idlist, local)
register struct node *idlist = Idlist;
struct scope *sc = enclosing(CurrVis)->sc_scope;
extern struct def *GetDefinitionModule();
struct f_info f;
f = file_info;
for (; idlist; idlist = idlist->nd_left) {
DoImport(local ?
ForwDef(idlist, sc) :
GetDefinitionModule(idlist->nd_IDF, 1) ,
CurrentScope);
file_info = f;
}
FreeNode(Idlist);
}