]> Cypherpunks repositories - gostls13.git/commitdiff
stop looking for type names beginning with _.
authorRuss Cox <rsc@golang.org>
Tue, 21 Oct 2008 21:44:31 +0000 (14:44 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 21 Oct 2008 21:44:31 +0000 (14:44 -0700)
they're gone.

R=ken
OCL=17569
CL=17569

src/cmd/gc/export.c
src/cmd/gc/subr.c

index 5067da8707bd0d403c74fc4d6043c6bfaf4c324f..20fca3640b0498e2a049077f63b51b16278986f7 100644 (file)
@@ -46,7 +46,7 @@ dumpprereq(Type *t)
                return;
        t->printed = 1;
 
-       if(t->sym != S && t->etype != TFIELD && t->sym->name[0] != '_')
+       if(t->sym != S && t->etype != TFIELD)
                dumpsym(t->sym);
        dumpprereq(t->type);
        dumpprereq(t->down);
index 08e965dead3ca800e67c4c17b73cfc5a0746d22f..ba5f698900890c937a37eb1495eb6a701a2e44c8 100644 (file)
@@ -963,7 +963,6 @@ Tpretty(Fmt *fp, Type *t)
 
        if(t->etype != TFIELD
        && t->sym != S
-       && t->sym->name[0] != '_'
        && !(fp->flags&FmtLong)) {
                s = t->sym;
                if(t == types[t->etype] || t == types[TSTRING])
@@ -1117,10 +1116,8 @@ Tconv(Fmt *fp)
        et = t->etype;
 
        strcpy(buf, "");
-       if(t->sym != S) {
-               if(t->sym->name[0] != '_')
+       if(t->sym != S)
                snprint(buf, sizeof(buf), "<%S>", t->sym);
-       }
 
        switch(et) {
        default:
@@ -1479,7 +1476,7 @@ ismethod(Type *t)
 
        // direct receiver
        s = t->sym;
-       if(s != S && s->name[0] != '_') {
+       if(s != S) {
                if(t->methptr == 2)
                        goto both;
                t->methptr |= 1;
@@ -1495,7 +1492,7 @@ ismethod(Type *t)
                return T;
 
        s = t->sym;
-       if(s != S && s->name[0] != '_') {
+       if(s != S) {
                if(t->methptr == 1)
                        goto both;
                t->methptr |= 2;
@@ -1616,14 +1613,14 @@ signame(Type *t, int block)
                goto bad;
 
        s = t->sym;
-       if(s == S || s->name[0] == '_') {
+       if(s == S) {
                if(isptr[t->etype]) {
                        t = t->type;
                        if(t == T)
                                goto bad;
                }
                s = t->sym;
-               if(s == S || s->name[0] == '_')
+               if(s == S)
                        goto bad;
        }