]> Cypherpunks repositories - gostls13.git/commit
runtime: remove duplicated Go constants
authorRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 14:22:15 +0000 (10:22 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 14:22:15 +0000 (10:22 -0400)
commitd2574e2adb658b46ea2d8e22b3195cc14da1affe
tree58810c5dfaf8842fa3584530cc0c8ccfa1be6b62
parent8d61334dd5b08c8076e343aa33197bd219cdf922
runtime: remove duplicated Go constants

The C header files are the single point of truth:
every C enum constant Foo is available to Go as _Foo.
Remove or redirect duplicate Go declarations so they
cannot be out of sync.

Eventually we will need to put constants in Go, but for now having
them be out of sync with C is too risky. These predate the build
support for auto-generating Go constants from the C definitions.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/141510043
27 files changed:
src/cmd/api/goapi.go
src/cmd/dist/buildruntime.c
src/runtime/arch_386.go
src/runtime/arch_amd64.go
src/runtime/arch_amd64p32.go
src/runtime/arch_arm.go
src/runtime/chan.go
src/runtime/malloc.c
src/runtime/malloc.go
src/runtime/mgc0.c
src/runtime/mgc0.go
src/runtime/mgc0.h
src/runtime/os_darwin.go
src/runtime/os_freebsd.go
src/runtime/os_linux.go
src/runtime/os_nacl.go
src/runtime/os_netbsd.go
src/runtime/os_openbsd.go
src/runtime/os_plan9.go
src/runtime/os_solaris.go
src/runtime/os_windows.go
src/runtime/runtime.h
src/runtime/sema.go
src/runtime/slice.go
src/runtime/string.go
src/runtime/typekind.go
src/runtime/typekind.h