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 | d2574e2adb658b46ea2d8e22b3195cc14da1affe (patch) | |
| tree | 58810c5dfaf8842fa3584530cc0c8ccfa1be6b62 /src/runtime/runtime.h | |
| parent | 8d61334dd5b08c8076e343aa33197bd219cdf922 (diff) | |
| download | go-d2574e2adb658b46ea2d8e22b3195cc14da1affe.tar.xz | |
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
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index abd53c4ba1..4aa9a963f5 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -697,7 +697,6 @@ enum * external data */ extern String runtime·emptystring; -extern uintptr runtime·zerobase; extern G** runtime·allg; extern Slice runtime·allgs; // []*G extern uintptr runtime·allglen; |
