diff options
author | Russ Cox <rsc@golang.org> | 2014-09-16 10:22:15 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-16 10:22:15 -0400 |
commit | 5819f77545053174374fc02ff3e09b6a6591c22c (patch) | |
tree | c7698f0ca27a64cd0de49e36c5d0501ab187ddd7 /src/runtime/typekind.h | |
parent | f1e298b92fb8286ed1b9aa24f3cdfa5dd9e0841b (diff) | |
download | go-5819f77545053174374fc02ff3e09b6a6591c22c.tar.gz |
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://codereview.appspot.com/141510043
Diffstat (limited to 'src/runtime/typekind.h')
-rw-r--r-- | src/runtime/typekind.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/runtime/typekind.h b/src/runtime/typekind.h index 7c611e8ba..e0fe177bb 100644 --- a/src/runtime/typekind.h +++ b/src/runtime/typekind.h @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// PtrSize vs sizeof(void*): This file is also included from src/cmd/ld/... -// which defines PtrSize to be different from sizeof(void*) when crosscompiling. - enum { KindBool = 1, KindInt, |