LEFT | RIGHT |
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 extern void *runtime·LoadLibraryEx; | 5 extern void *runtime·LoadLibraryEx; |
6 extern void *runtime·GetProcAddress; | 6 extern void *runtime·GetProcAddress; |
7 | 7 |
8 // Call a Windows function with stdcall conventions, | 8 // Call a Windows function with stdcall conventions, |
9 // and switch to os stack during the call. | 9 // and switch to os stack during the call. |
10 #pragma varargck countpos runtime·stdcall 2 | 10 #pragma varargck countpos runtime·stdcall 2 |
11 #pragma varargck type runtime·stdcall void* | 11 #pragma varargck type runtime·stdcall void* |
12 #pragma varargck type runtime·stdcall uintptr | 12 #pragma varargck type runtime·stdcall uintptr |
13 void runtime·asmstdcall(WinCall *c); | 13 void runtime·asmstdcall(void *c); |
14 void *runtime·stdcall(void *fn, int32 count, ...); | 14 void *runtime·stdcall(void *fn, int32 count, ...); |
15 uintptr runtime·syscall(void *fn, uintptr nargs, void *args, uintptr *err); | 15 uintptr runtime·syscall(void *fn, uintptr nargs, void *args, uintptr *err); |
16 | 16 |
17 uintptr runtime·getlasterror(void); | 17 uintptr runtime·getlasterror(void); |
18 void runtime·setlasterror(uintptr err); | 18 void runtime·setlasterror(uintptr err); |
19 | 19 |
20 // Function to be called by windows CreateThread | 20 // Function to be called by windows CreateThread |
21 // to start new os thread. | 21 // to start new os thread. |
22 uint32 runtime·tstart_stdcall(M *newm); | 22 uint32 runtime·tstart_stdcall(M *newm); |
23 | 23 |
24 uint32 runtime·issigpanic(uint32); | 24 uint32 runtime·issigpanic(uint32); |
25 void runtime·sigpanic(void); | 25 void runtime·sigpanic(void); |
26 uint32 runtime·ctrlhandler(uint32 type); | 26 uint32 runtime·ctrlhandler(uint32 type); |
27 | 27 |
28 // Windows dll function to go callback entry. | 28 // Windows dll function to go callback entry. |
29 byte *runtime·compilecallback(Eface fn, bool cleanstack); | 29 byte *runtime·compilecallback(Eface fn, bool cleanstack); |
30 void *runtime·callbackasm(void); | 30 void *runtime·callbackasm(void); |
LEFT | RIGHT |