1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:47:56 -07:00

cmd/api: s/ideal-bool/bool/

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5674105
This commit is contained in:
Russ Cox 2012-02-18 20:31:19 -05:00
parent 0e70f2722b
commit 95b0fe141c

View File

@ -209,7 +209,7 @@ func (w *Walker) hardCodedConstantType(name string) (typ string, ok bool) {
case "pkg syscall":
switch name {
case "darwinAMD64":
return "ideal-bool", true
return "bool", true
}
}
return "", false
@ -447,7 +447,7 @@ func (w *Walker) constValueType(vi interface{}) (string, error) {
return "ideal-int", nil // hack.
}
if v.Name == "false" || v.Name == "true" {
return "ideal-bool", nil
return "bool", nil
}
if v.Name == "intSize" && w.curPackageName == "strconv" {
// Hack.