]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add comments for blank import of "unsafe"
authorShenghou Ma <minux@golang.org>
Tue, 23 Dec 2014 05:03:40 +0000 (00:03 -0500)
committerMinux Ma <minux@golang.org>
Tue, 23 Dec 2014 05:09:07 +0000 (05:09 +0000)
Change-Id: Iaad548ea90d3b70341a723450d5e4d4c2b88856f
Reviewed-on: https://go-review.googlesource.com/2063
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/noasm.go
src/runtime/os_android_arm.go
src/runtime/os_windows.go
src/runtime/syscall2_solaris.go

index 998309e828b494ea92fbe554de0f81e87c241df8..c5ef67243206432c51894f858b631bbe4c717ace 100644 (file)
@@ -9,7 +9,7 @@
 
 package runtime
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 func cmpstring(s1, s2 string) int {
        l := len(s1)
index 132832236abd108c0283a54e70f1902ead11b4ee..be7c3c000be70affda3b5393511e8c1d0665598e 100644 (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.
 //
index 9497a600fe204340e6c70f86a80a9c6f479b4b86..66e0d77b652d3e0b9d26aa2794411ecff1f4ae23 100644 (file)
@@ -4,7 +4,7 @@
 
 package runtime
 
-import _ "unsafe"
+import _ "unsafe" // for go:linkname
 
 type stdFunction *byte
 
index f4ffa7410505d3a5168aeb13f61a65e48c96a2d9..cbf2a95329edb29cd6c715ed401d9cac33bc6293 100644 (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"