From: Shenghou Ma Date: Tue, 23 Dec 2014 05:03:40 +0000 (-0500) Subject: runtime: add comments for blank import of "unsafe" X-Git-Tag: go1.5beta1~2535 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1050c4197ad1cf3ffd1beff111f19d75fc274b3d;p=gostls13.git runtime: add comments for blank import of "unsafe" Change-Id: Iaad548ea90d3b70341a723450d5e4d4c2b88856f Reviewed-on: https://go-review.googlesource.com/2063 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/runtime/noasm.go b/src/runtime/noasm.go index 998309e828..c5ef672432 100644 --- a/src/runtime/noasm.go +++ b/src/runtime/noasm.go @@ -9,7 +9,7 @@ package runtime -import _ "unsafe" +import _ "unsafe" // for go:linkname func cmpstring(s1, s2 string) int { l := len(s1) diff --git a/src/runtime/os_android_arm.go b/src/runtime/os_android_arm.go index 132832236a..be7c3c000b 100644 --- a/src/runtime/os_android_arm.go +++ b/src/runtime/os_android_arm.go @@ -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. // diff --git a/src/runtime/os_windows.go b/src/runtime/os_windows.go index 9497a600fe..66e0d77b65 100644 --- a/src/runtime/os_windows.go +++ b/src/runtime/os_windows.go @@ -4,7 +4,7 @@ package runtime -import _ "unsafe" +import _ "unsafe" // for go:linkname type stdFunction *byte diff --git a/src/runtime/syscall2_solaris.go b/src/runtime/syscall2_solaris.go index f4ffa74105..cbf2a95329 100644 --- a/src/runtime/syscall2_solaris.go +++ b/src/runtime/syscall2_solaris.go @@ -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"