1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:07:58 -07:00

cc: fix -q and build break.

R=rsc
CC=golang-dev, golang-dev
https://golang.org/cl/3992047
This commit is contained in:
Luuk van Dijk 2011-01-25 19:40:36 +01:00
parent efda876a94
commit 66905bd9ac

View File

@ -209,11 +209,11 @@ printtypename(Type *t)
else if(t->tag)
n = t->tag->name;
if(strcmp(n, "String") == 0){
n = "string";
Bprint(&outbuf, "string");
} else if(strcmp(n, "Slice") == 0){
n = "[]byte";
}
Bprint(&outbuf, n);
Bprint(&outbuf, "[]byte");
} else
Bprint(&outbuf, "%U", n);
break;
case TFUNC:
Bprint(&outbuf, "func(", t);
@ -330,7 +330,7 @@ godefvar(Sym *s)
Type *t, *t1;
char n;
if(dontrun('q'))
if(dontrun())
return;
t = s->type;