Rev 702 | Rev 952 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 702 | Rev 704 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | #include |
34 | #include |
35 | #include |
35 | #include |
36 | #include |
36 | #include |
37 | #include |
37 | #include |
38 | #include |
38 | #include |
- | 39 | ||
39 | //#include "ntex.h" |
40 | #include "kolibri.h" |
- | 41 | ||
40 | //#include "sigtab.h" |
42 | //#include "sigtab.h" |
41 | #include "initfini.h" |
43 | #include "initfini.h" |
42 | #include "initarg.h" |
44 | #include "initarg.h" |
Line 43... | Line -... | ||
43 | - | ||
44 | void _stdcall InitHeap(int heap_size); |
45 | |
45 | int __appcwdlen; |
46 | int __appcwdlen; |
46 | char* __appcwd; |
47 | char* __appcwd; |
47 | extern char *LpCmdLine; |
48 | extern char *LpCmdLine; |
Line 72... | Line 73... | ||
72 | 73 | ||
73 | void __F_NAME(__NTMain,__wNTMain)( void ) |
74 | void __F_NAME(__NTMain,__wNTMain)( void ) |
74 | /***************************************/ |
75 | /***************************************/ |
Line 75... | Line 76... | ||
75 | { |
76 | { |
Line 76... | Line 77... | ||
76 | 77 | ||
77 | InitHeap(0); |
78 | init_heap(); |
78 | 79 | ||
Line 104... | Line 105... | ||
104 | #if defined(_M_IX86) |
105 | #if defined(_M_IX86) |
105 | #pragma aux __NTMain "*" |
106 | #pragma aux __NTMain "*" |
106 | #endif |
107 | #endif |
107 | #endif |
108 | #endif |
Line -... | Line 109... | ||
- | 109 | ||
- | 110 | #pragma aux __exit aborts; |
|
108 | 111 | ||
109 | _WCRTLINK void __exit( unsigned ret_code ) |
112 | _WCRTLINK void __exit( unsigned ret_code ) |
110 | { |
113 | { |
111 | __FiniRtns( 0, FINI_PRIORITY_EXIT-1 ); |
114 | __FiniRtns( 0, FINI_PRIORITY_EXIT-1 ); |
112 | _asm |
115 | _asm |