corecrt_startup.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifndef _INC_CORECRT_STARTUP
  7. #define _INC_CORECRT_STARTUP
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. _CRTIMP char **__cdecl __p__acmdln(void);
  12. #define _acmdln (*__p__acmdln())
  13. _CRTIMP wchar_t **__cdecl __p__wcmdln(void);
  14. #define _wcmdln (*__p__wcmdln())
  15. typedef void (__cdecl *_PVFV)(void);
  16. typedef int (__cdecl *_PIFV)(void);
  17. typedef void (__cdecl *_PVFI)(int);
  18. typedef struct _onexit_table_t {
  19. _PVFV* _first;
  20. _PVFV* _last;
  21. _PVFV* _end;
  22. } _onexit_table_t;
  23. typedef int (__cdecl *_onexit_t)(void);
  24. _CRTIMP int __cdecl _initialize_onexit_table(_onexit_table_t*);
  25. _CRTIMP int __cdecl _register_onexit_function(_onexit_table_t*,_onexit_t);
  26. _CRTIMP int __cdecl _execute_onexit_table(_onexit_table_t*);
  27. _CRTIMP int __cdecl _crt_atexit(_PVFV func);
  28. _CRTIMP int __cdecl _crt_at_quick_exit(_PVFV func);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif