]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: remove duplicate mangle definition
authorHiroshi Ioka <hirochachacha@gmail.com>
Sun, 9 Apr 2017 03:33:34 +0000 (12:33 +0900)
committerIan Lance Taylor <iant@golang.org>
Fri, 21 Apr 2017 17:14:15 +0000 (17:14 +0000)
Change-Id: I0f8c695146b39cff72ca2374f861f3e9f72b0f77
Reviewed-on: https://go-review.googlesource.com/41314
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/cgo/out.go

index 5f22abb582d82ca6e4a9a95b78698a128ad7fdf8..c2ab88017276a4c43c562101828e04be8c0d2868 100644 (file)
@@ -185,7 +185,7 @@ func (p *Package) writeDefs() {
        for _, key := range nameKeys(p.Name) {
                n := p.Name[key]
                if n.Const != "" {
-                       fmt.Fprintf(fgo2, "const _C%s_%s = %s\n", n.Kind, n.Go, n.Const)
+                       fmt.Fprintf(fgo2, "const %s = %s\n", n.Mangle, n.Const)
                }
        }
        fmt.Fprintf(fgo2, "\n")