diff options
author | Russ Cox <rsc@golang.org> | 2008-11-14 16:35:08 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-11-14 16:35:08 -0800 |
commit | d1df36d0679e81666322ce6554e7177743e4090b (patch) | |
tree | 386828a3efe51284bd933020a981fc51834bbccb /src/cmd/gc/dcl.c | |
parent | 94b8eab659d79c1d434f44941bb99240a525e36e (diff) | |
download | golang-d1df36d0679e81666322ce6554e7177743e4090b.tar.gz |
package-local declarations using keyword "package".
R=r
DELTA=129 (81 added, 0 deleted, 48 changed)
OCL=19283
CL=19291
Diffstat (limited to 'src/cmd/gc/dcl.c')
-rw-r--r-- | src/cmd/gc/dcl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index ef1ddbc71..ca76bd712 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -35,8 +35,8 @@ dodclvar(Node *n, Type *t) t = typ(TFORW); addvar(n, t, dclcontext); - if(exportadj) - exportsym(n->sym); + if(dcladj) + dcladj(n->sym); } void @@ -49,8 +49,8 @@ dodclconst(Node *n, Node *e) dodclconst(n, e); addconst(n, e, dclcontext); - if(exportadj) - exportsym(n->sym); + if(dcladj) + dcladj(n->sym); } /* @@ -79,8 +79,8 @@ dodcltype(Type *n) found: n->sym->local = 1; - if(exportadj) - exportsym(n->sym); + if(dcladj) + dcladj(n->sym); return n; } @@ -226,7 +226,7 @@ Node* methodname(Node *n, Type *t) { Sym *s; - + s = methodsym(n->sym, t); if(s == S) return n; @@ -1191,7 +1191,7 @@ embedded(Sym *s) { Node *n; char *name; - + // Names sometimes have disambiguation junk // appended after a center dot. Discard it when // making the name for the embedded struct field. |