mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove _Kind constants
The duplication of _Kind and kind constants is a legacy of the conversion from C. Change-Id: I368b35a41f215cf91ac4b09dac59699edb414a0e Reviewed-on: https://go-review.googlesource.com/15800 Reviewed-by: Minux Ma <minux@golang.org> Run-TryBot: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
29aaf679da
commit
2961cab965
3 changed files with 32 additions and 71 deletions
|
|
@ -132,11 +132,11 @@ func BenchSetType(n int, x interface{}) {
|
|||
var size uintptr
|
||||
var p unsafe.Pointer
|
||||
switch t.kind & kindMask {
|
||||
case _KindPtr:
|
||||
case kindPtr:
|
||||
t = (*ptrtype)(unsafe.Pointer(t)).elem
|
||||
size = t.size
|
||||
p = e.data
|
||||
case _KindSlice:
|
||||
case kindSlice:
|
||||
slice := *(*struct {
|
||||
ptr unsafe.Pointer
|
||||
len, cap uintptr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue