1 /**
2  * This file has no copyright assigned and is placed in the Public Domain.
3  * This file is part of the mingw-w64 runtime package.
4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5  */
6 
7 #ifndef _INC_CORECRT_STARTUP
8 #define _INC_CORECRT_STARTUP
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 _CRTIMP char **__cdecl __p__acmdln(void);
15 #define _acmdln (*__p__acmdln())
16 
17 _CRTIMP wchar_t **__cdecl __p__wcmdln(void);
18 #define _wcmdln (*__p__wcmdln())
19 
20 typedef void (__cdecl *_PVFV)(void);
21 typedef int (__cdecl *_PIFV)(void);
22 typedef void (__cdecl *_PVFI)(int);
23 
24 typedef struct _onexit_table_t {
25     _PVFV* _first;
26     _PVFV* _last;
27     _PVFV* _end;
28 } _onexit_table_t;
29 
30 typedef int (__cdecl *_onexit_t)(void);
31 
32 _CRTIMP int __cdecl _initialize_onexit_table(_onexit_table_t*);
33 _CRTIMP int __cdecl _register_onexit_function(_onexit_table_t*,_onexit_t);
34 _CRTIMP int __cdecl _execute_onexit_table(_onexit_table_t*);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 #endif
40