github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/runtime/os_windows.h (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  extern void *runtime·LoadLibrary;
     6  extern void *runtime·GetProcAddress;
     7  
     8  // Call a Windows function with stdcall conventions,
     9  // and switch to os stack during the call.
    10  #pragma	varargck	countpos	runtime·stdcall	2
    11  #pragma	varargck	type		runtime·stdcall	void*
    12  #pragma	varargck	type		runtime·stdcall	uintptr
    13  void runtime·asmstdcall(void *c);
    14  void *runtime·stdcall(void *fn, int32 count, ...);
    15  
    16  uint32 runtime·getlasterror(void);
    17  void runtime·setlasterror(uint32 err);
    18  
    19  // Function to be called by windows CreateThread
    20  // to start new os thread.
    21  uint32 runtime·tstart_stdcall(M *newm);
    22  
    23  uint32 runtime·issigpanic(uint32);
    24  void runtime·sigpanic(void);
    25  uint32 runtime·ctrlhandler(uint32 type);
    26  
    27  // Windows dll function to go callback entry.
    28  byte *runtime·compilecallback(Eface fn, bool cleanstack);
    29  void *runtime·callbackasm(void);
    30  
    31  void runtime·install_exception_handler(void);
    32  void runtime·remove_exception_handler(void);
    33  
    34  // TODO(brainman): should not need those
    35  #define	NSIG	65