/programs/develop/open watcom/trunk/clib/crt/main2wnt.c |
---|
36,12 → 36,13 |
#include <string.h> |
#include <malloc.h> |
#include <windows.h> |
//#include "ntex.h" |
#include "kolibri.h" |
//#include "sigtab.h" |
#include "initfini.h" |
#include "initarg.h" |
void _stdcall InitHeap(int heap_size); |
int __appcwdlen; |
char* __appcwd; |
extern char *LpCmdLine; |
74,7 → 75,7 |
/***************************************/ |
{ |
InitHeap(0); |
init_heap(); |
__process_fini = &__FiniRtns; |
__InitRtns( 255 ); |
106,6 → 107,8 |
#endif |
#endif |
#pragma aux __exit aborts; |
_WCRTLINK void __exit( unsigned ret_code ) |
{ |
__FiniRtns( 0, FINI_PRIORITY_EXIT-1 ); |