summaryrefslogtreecommitdiff
path: root/src/cmd/gc/lex.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-06-11 21:06:26 -0700
committerKen Thompson <ken@golang.org>2008-06-11 21:06:26 -0700
commitd3982a1ff287fa792945b941f56f4af141a3f9c9 (patch)
treec855fa392cab6154e48358dbf1af44783cca277c /src/cmd/gc/lex.c
parent336e94d1ac19d9597d21f0c567b064e149e934b2 (diff)
downloadgolang-d3982a1ff287fa792945b941f56f4af141a3f9c9.tar.gz
import/export
SVN=122309
Diffstat (limited to 'src/cmd/gc/lex.c')
-rw-r--r--src/cmd/gc/lex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c
index 22bcaf70d..96380c647 100644
--- a/src/cmd/gc/lex.c
+++ b/src/cmd/gc/lex.c
@@ -111,7 +111,7 @@ importfile(Val *f)
return;
}
// BOTCH need to get .8 from backend
- snprint(namebuf, sizeof(namebuf), "%Z.8", f->sval);
+ snprint(namebuf, sizeof(namebuf), "%Z.6", f->sval);
imp = Bopen(namebuf, OREAD);
if(imp == nil) {
@@ -154,6 +154,7 @@ unimportfile(void)
}
curio = pushedio;
pushedio.bin = nil;
+ inimportsys = 0;
}
void
@@ -166,6 +167,7 @@ cannedimports(void)
curio.infile = "internal sys.go";
curio.cp = sysimport;
pkgmyname = S;
+ inimportsys = 1;
}
long