1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:54:42 -07:00

runtime: add comments for blank import of "unsafe"

Change-Id: Iaad548ea90d3b70341a723450d5e4d4c2b88856f
Reviewed-on: https://go-review.googlesource.com/2063
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Shenghou Ma 2014-12-23 00:03:40 -05:00 committed by Minux Ma
parent 1e4b642f8d
commit 1050c4197a
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
package runtime
import _ "unsafe"
import _ "unsafe" // for go:linkname
func cmpstring(s1, s2 string) int {
l := len(s1)

View File

@ -4,7 +4,7 @@
package runtime
import _ "unsafe"
import _ "unsafe" // for go:cgo_export_static and go:cgo_export_dynamic
// Export the runtime entry point symbol.
//

View File

@ -4,7 +4,7 @@
package runtime
import _ "unsafe"
import _ "unsafe" // for go:linkname
type stdFunction *byte

View File

@ -4,7 +4,7 @@
package runtime
import _ "unsafe"
import _ "unsafe" // for go:linkname
//go:cgo_import_dynamic libc_chdir chdir "libc.so"
//go:cgo_import_dynamic libc_chroot chroot "libc.so"