Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/arm/go/test/linkname.dir/linkname2.go

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


package y

import _ "unsafe"

//go:linkname byteIndex linkname1.indexByte
func byteIndex(xs []byte, b byte) int // ERROR "leaking param: xs"

func ContainsSlash(data []byte) bool { // ERROR "leaking param: data" "can inline ContainsSlash"
	if byteIndex(data, '/') != -1 {
		return true
	}
	return false
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].