mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: move gostringw and gogobytes test stubs to Go.
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/141150043
This commit is contained in:
parent
005806cab1
commit
0e19a3d6d0
2 changed files with 14 additions and 16 deletions
|
|
@ -142,10 +142,19 @@ var MemclrBytes = memclrBytes
|
|||
|
||||
var HashLoad = &hashLoad
|
||||
|
||||
func gogoBytes() int32
|
||||
// For testing.
|
||||
func GogoBytes() int32 {
|
||||
return _RuntimeGogoBytes
|
||||
}
|
||||
|
||||
var GogoBytes = gogoBytes
|
||||
// in string.c
|
||||
//go:noescape
|
||||
func gostringw(w *uint16) string
|
||||
|
||||
func gostringW([]uint16) string
|
||||
|
||||
var GostringW = gostringW
|
||||
// entry point for testing
|
||||
func GostringW(w []uint16) (s string) {
|
||||
onM(func() {
|
||||
s = gostringw(&w[0])
|
||||
})
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue