update for HEAD-2003021201
[reactos.git] / lib / msvcrt / misc / crtmain.c
1 /* $Id$
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
17
18 /* FUNCTIONS **************************************************************/
19
20 int 
21 STDCALL
22 _except_handler3(void)
23 {
24     return 0;
25 }
26
27 int
28 STDCALL
29 _local_unwind2(void)
30 {
31     return 0;
32 }
33
34 int
35 STDCALL
36 _spawnlp(int a, const char* b, const char* args, ...)
37 {
38     return 0;
39 }
40
41 #else /*__GNUC__*/
42
43 int
44 _spawnlp(int a, const char* b, const char* args, ...)
45 {
46     return 0;
47 }
48
49 #endif /*__GNUC__*/
50
51
52 /*
53 int __cdecl _allmul(void)
54 {
55     return 0;
56 }
57
58 int __cdecl _allshl(void)
59 {
60     return 0;
61 }
62
63 void __cdecl _chkesp(int value1, int value2)
64 {
65 }
66
67 int __cdecl _alloca_probe(void)
68 {
69     return 0;
70 }
71
72 int STDCALL _abnormal_termination(void)
73 {
74     return 0;
75 }
76
77 int STDCALL _setjmp(void)
78 {
79     return 0;
80 }
81 */
82 /*
83 BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved);
84
85 int STDCALL _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
86 {
87     BOOL result;
88
89     //__fileno_init();
90     //result = DllMain(hInst, ul_reason_for_call, lpReserved);
91
92     result = DllMain(hInst, DLL_PROCESS_ATTACH, lpReserved);
93     
94
95     return (result ? 1 : 0);
96 }
97  */
98
99 /* EOF */