b91862e7f56d265979421acc9fe26de0dc252a6e
[reactos.git] / reactos / lib / msvcrt / misc / crtmain.c
1 /* $Id: crtmain.c,v 1.1 2002/11/24 18:42:23 robd Exp $
2 *
3 * ReactOS MSVCRT.DLL Compatibility Library
4 */
5 #include <windows.h>
6 //#include <msvcrt/stdlib.h>
7
8 #define NDEBUG
9 #include <msvcrt/msvcrtdbg.h>
10
11 #ifndef __GNUC__
12
13 /* GLOBAL VARIABLES *******************************************************/
14
15 int _fltused;
16 //int _allmul;
17
18 /* FUNCTIONS **************************************************************/
19
20
21 int __cdecl _allmul(void)
22 {
23 return 0;
24 }
25
26 int __cdecl _allshl(void)
27 {
28 return 0;
29 }
30
31 #if 1
32
33 void __cdecl _chkesp(int value1, int value2)
34 {
35 }
36
37 #else
38
39 int __cdecl _chkesp(int value)
40 {
41 return value;
42 }
43
44 #endif
45
46 int __cdecl _alloca_probe(void)
47 {
48 return 0;
49 }
50 /*
51 BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved);
52
53 int STDCALL _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
54 {
55 BOOL result;
56
57 //__fileno_init();
58 //result = DllMain(hInst, ul_reason_for_call, lpReserved);
59
60 result = DllMain(hInst, DLL_PROCESS_ATTACH, lpReserved);
61
62
63 return (result ? 1 : 0);
64 }
65 */
66 /*
67 int
68 STDCALL
69 _abnormal_termination(void)
70 {
71 return 0;
72 }
73
74 int
75 STDCALL
76 _setjmp(void)
77 {
78 return 0;
79 }
80 */
81 int
82 STDCALL
83 _except_handler3(void)
84 {
85 return 0;
86 }
87
88 int
89 STDCALL
90 _local_unwind2(void)
91 {
92 return 0;
93 }
94
95 int
96 STDCALL
97 _spawnlp(int a, const char* b, const char* args, ...)
98 {
99 return 0;
100 }
101
102 #else /*__GNUC__*/
103
104 int
105 _spawnlp(int a, const char* b, const char* args, ...)
106 {
107 return 0;
108 }
109
110 #endif /*__GNUC__*/
111
112
113 /* EOF */