Commit 1050c419 authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

runtime: add comments for blank import of "unsafe"

Change-Id: Iaad548ea90d3b70341a723450d5e4d4c2b88856f
Reviewed-on: https://go-review.googlesource.com/2063Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 1e4b642f
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
package runtime package runtime
import _ "unsafe" import _ "unsafe" // for go:linkname
func cmpstring(s1, s2 string) int { func cmpstring(s1, s2 string) int {
l := len(s1) l := len(s1)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package runtime package runtime
import _ "unsafe" import _ "unsafe" // for go:cgo_export_static and go:cgo_export_dynamic
// Export the runtime entry point symbol. // Export the runtime entry point symbol.
// //
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package runtime package runtime
import _ "unsafe" import _ "unsafe" // for go:linkname
type stdFunction *byte type stdFunction *byte
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package runtime package runtime
import _ "unsafe" import _ "unsafe" // for go:linkname
//go:cgo_import_dynamic libc_chdir chdir "libc.so" //go:cgo_import_dynamic libc_chdir chdir "libc.so"
//go:cgo_import_dynamic libc_chroot chroot "libc.so" //go:cgo_import_dynamic libc_chroot chroot "libc.so"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment