LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "runtime.h" | 5 #include "runtime.h" |
6 #include "cgocall.h" | 6 #include "cgocall.h" |
7 | 7 |
8 void *initcgo; /* filled in by dynamic linker when Cgo is available */ | 8 void *initcgo; /* filled in by dynamic linker when Cgo is available */ |
9 int64 ncgocall; | 9 int64 ncgocall; |
10 void ·entersyscall(void); | 10 void ·entersyscall(void); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 cgocall(_cgo_malloc, &a); | 103 cgocall(_cgo_malloc, &a); |
104 return a.ret; | 104 return a.ret; |
105 } | 105 } |
106 | 106 |
107 void | 107 void |
108 cfree(void *p) | 108 cfree(void *p) |
109 { | 109 { |
110 cgocall(_cgo_free, p); | 110 cgocall(_cgo_free, p); |
111 } | 111 } |
112 | 112 |
LEFT | RIGHT |