diff options
author | Russ Cox <rsc@golang.org> | 2009-05-08 15:40:31 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-05-08 15:40:31 -0700 |
commit | a8e007fd64c2f9de7b8a17840e14641f92274ce8 (patch) | |
tree | e99a672a79686f5a53b56d72802cafd6021fd39f /src/cmd/gc/dcl.c | |
parent | 11fe8b7e8f91d754ec7f4676f8c3df98d7266dfd (diff) | |
download | golang-a8e007fd64c2f9de7b8a17840e14641f92274ce8.tar.gz |
6g:
new type equality restrictions
better handling of renamed packages
"sys" is no longer available to programs
R=ken
OCL=28553
CL=28578
Diffstat (limited to 'src/cmd/gc/dcl.c')
-rw-r--r-- | src/cmd/gc/dcl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index bf9afee2f..3e6f76092 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -250,7 +250,7 @@ methodsym(Sym *nsym, Type *t0) snprint(buf, sizeof(buf), "%#hT·%s", t0, nsym->name); //print("methodname %s\n", buf); - return pkglookup(buf, s->opackage); + return pkglookup(buf, s->package); bad: yyerror("illegal <this> type: %T", t); @@ -797,7 +797,6 @@ dcopy(Sym *a, Sym *b) a->otype = b->otype; a->oconst = b->oconst; a->package = b->package; - a->opackage = b->opackage; a->lexical = b->lexical; a->undef = b->undef; a->vargen = b->vargen; @@ -1632,7 +1631,7 @@ unsafenmagic(Node *l, Node *r) s = l->sym; if(s == S) goto no; - if(strcmp(s->opackage, "unsafe") != 0) + if(strcmp(s->package, "unsafe") != 0) goto no; if(strcmp(s->name, "Sizeof") == 0) { |