Commit 1ea28570 authored by Russ Cox's avatar Russ Cox

the any fix was too aggressive; allow any in any import.

R=ken
OCL=30768
CL=30768
parent fa6df479
......@@ -272,6 +272,9 @@ importfile(Val *f)
return;
}
if(!debug['A'])
anysym->def = typenod(types[TANY]);
if(!findpkg(f->u.sval))
fatal("can't find import: %Z", f->u.sval);
imp = Bopen(namebuf, OREAD);
......@@ -343,12 +346,12 @@ unimportfile(void)
void
cannedimports(char *file, char *cp)
{
lineno++; // if sys.6 is included on line 1,
linehist(file, 0, 0); // the debugger gets confused
if(!debug['A'])
anysym->def = typenod(types[TANY]);
lineno++; // if sys.6 is included on line 1,
linehist(file, 0, 0); // the debugger gets confused
pushedio = curio;
curio.bin = nil;
curio.peekc = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment