ReactOS 0.4.15-dev-8092-ge0ba2f3
mscmain.c File Reference
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <rtcapi.h>
#include <assert.h>
#include <internal.h>
Include dependency graph for mscmain.c:

Go to the source code of this file.

Functions

void _pei386_runtime_relocator (void)
 
int __mingw_init_ehandler (void)
 
BOOL WINAPI _CRT_INIT0 (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
 
int __cdecl Catch_RTC_Failure (int errType, const wchar_t *file, int line, const wchar_t *module, const wchar_t *format,...)
 
void __cdecl _RTC_NoInitialize (void)
 
_RTC_error_fnW __cdecl _CRT_RTC_INITW (void *_Res0, void **_Res1, int _Res2, int _Res3, int _Res4)
 
void __main (void)
 

Variables

static int initialized = 0
 

Function Documentation

◆ __main()

void __main ( void  )

Definition at line 78 of file mscmain.c.

79{
80 if (!initialized)
81 {
82 initialized = 1;
83
85 }
86}
static int initialized
Definition: mscmain.c:75
void __cdecl _RTC_Initialize(void)
Definition: rtcapi.c:91

◆ __mingw_init_ehandler()

int __mingw_init_ehandler ( void  )

Definition at line 27 of file mscmain.c.

28{
29 /* Nothing to do */
30 return 1;
31}

◆ _CRT_INIT0()

BOOL WINAPI _CRT_INIT0 ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  lpReserved 
)

Definition at line 35 of file mscmain.c.

36{
37 return TRUE;
38}
#define TRUE
Definition: types.h:120

◆ _CRT_RTC_INITW()

_RTC_error_fnW __cdecl _CRT_RTC_INITW ( void _Res0,
void **  _Res1,
int  _Res2,
int  _Res3,
int  _Res4 
)

Definition at line 65 of file mscmain.c.

71{
72 return &Catch_RTC_Failure;
73}
int __cdecl Catch_RTC_Failure(int errType, const wchar_t *file, int line, const wchar_t *module, const wchar_t *format,...)
Definition: mscmain.c:42

Referenced by _RTC_InitBase().

◆ _pei386_runtime_relocator()

void _pei386_runtime_relocator ( void  )

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER.PD within this package.

Definition at line 23 of file mscmain.c.

24{
25}

◆ _RTC_NoInitialize()

void __cdecl _RTC_NoInitialize ( void  )

Definition at line 58 of file mscmain.c.

59{
60 /* Do nothing, if RunTmChk.lib is not pulled in */
61}

◆ Catch_RTC_Failure()

int __cdecl Catch_RTC_Failure ( int  errType,
const wchar_t file,
int  line,
const wchar_t module,
const wchar_t format,
  ... 
)

Definition at line 42 of file mscmain.c.

49{
50 /* FIXME: better failure routine */
52 return 0;
53}
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698

Referenced by _CRT_RTC_INITW().

Variable Documentation

◆ initialized

int initialized = 0
static

Definition at line 75 of file mscmain.c.

Referenced by __main().