comparison runtime/internal/dmain2.d @ 577:68be7408a0db

Merge Dynamic_Ranges and Data_Proc_Maps from GDC runtime.
author Christian Kamm <kamm incasoftware de>
date Thu, 04 Sep 2008 18:57:03 +0200
parents 44f08170f4ef
children bb8d73e29324
comparison
equal deleted inserted replaced
576:d159da5201f1 577:68be7408a0db
13 import util.console; 13 import util.console;
14 14
15 import tango.stdc.stddef; 15 import tango.stdc.stddef;
16 import tango.stdc.stdlib; 16 import tango.stdc.stdlib;
17 import tango.stdc.string; 17 import tango.stdc.string;
18 import memory;
18 } 19 }
19 20
20 version( Win32 ) 21 version( Win32 )
21 { 22 {
22 extern (Windows) void* LocalFree(void*); 23 extern (Windows) void* LocalFree(void*);
87 88
88 void _d_criticalInit() 89 void _d_criticalInit()
89 { 90 {
90 _STI_monitor_staticctor(); 91 _STI_monitor_staticctor();
91 _STI_critical_init(); 92 _STI_critical_init();
93 initStaticDataPtrs();
92 } 94 }
93 95
94 alias void delegate( Exception ) ExceptionHandler; 96 alias void delegate( Exception ) ExceptionHandler;
95 97
96 // this is here so users can manually initialize the runtime 98 // this is here so users can manually initialize the runtime
169 int result; 171 int result;
170 172
171 debug(PRINTF) printf("main ctors\n"); 173 debug(PRINTF) printf("main ctors\n");
172 _STI_monitor_staticctor(); 174 _STI_monitor_staticctor();
173 _STI_critical_init(); 175 _STI_critical_init();
176 initStaticDataPtrs();
174 177
175 debug(PRINTF) printf("main args\n"); 178 debug(PRINTF) printf("main args\n");
176 version (Win32) 179 version (Win32)
177 { 180 {
178 wchar_t* wcbuf = GetCommandLineW(); 181 wchar_t* wcbuf = GetCommandLineW();