mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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
This commit is contained in:
parent
8d61334dd5
commit
d2574e2adb
27 changed files with 117 additions and 129 deletions
|
|
@ -18,5 +18,3 @@ func lwp_create(ctxt unsafe.Pointer, flags uintptr, lwpid unsafe.Pointer) int32
|
|||
func lwp_park(abstime unsafe.Pointer, unpark int32, hint, unparkhint unsafe.Pointer) int32
|
||||
func lwp_unpark(lwp int32, hint unsafe.Pointer) int32
|
||||
func lwp_self() int32
|
||||
|
||||
const stackSystem = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue