Mercurial > hg > xemacs-beta
comparison src/unexnt.c @ 410:de805c49cfc1 r21-2-35
Import from CVS: tag r21-2-35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:19:21 +0200 |
parents | 501cfd01ee6d |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
409:301b9ebbdf3b | 410:de805c49cfc1 |
---|---|
101 | 101 |
102 /* Cached info about the .bss section in the executable. */ | 102 /* Cached info about the .bss section in the executable. */ |
103 PUCHAR bss_start = UNINIT_PTR; | 103 PUCHAR bss_start = UNINIT_PTR; |
104 DWORD bss_size = UNINIT_LONG; | 104 DWORD bss_size = UNINIT_LONG; |
105 | 105 |
106 #ifdef HAVE_NTGUI | |
107 HINSTANCE hinst = NULL; | |
108 HINSTANCE hprevinst = NULL; | |
109 LPSTR lpCmdLine = ""; | |
110 int nCmdShow = 0; | |
111 #endif /* HAVE_NTGUI */ | |
112 | |
113 /* Startup code for running on NT. When we are running as the dumped | 106 /* Startup code for running on NT. When we are running as the dumped |
114 version, we need to bootstrap our heap and .bss section into our | 107 version, we need to bootstrap our heap and .bss section into our |
115 address space before we can actually hand off control to the startup | 108 address space before we can actually hand off control to the startup |
116 code supplied by NT (primarily because that code relies upon malloc ()). */ | 109 code supplied by NT (primarily because that code relies upon malloc ()). */ |
117 | 110 |
161 /* #### This is bogus, too. _fmode is set to different values | 154 /* #### This is bogus, too. _fmode is set to different values |
162 when we run `xemacs' and `temacs run-emacs'. The sooner we | 155 when we run `xemacs' and `temacs run-emacs'. The sooner we |
163 hit and fix all the weirdities this causes us, the better --kkm */ | 156 hit and fix all the weirdities this causes us, the better --kkm */ |
164 #if 0 | 157 #if 0 |
165 /* The default behavior is to treat files as binary and patch up | 158 /* The default behavior is to treat files as binary and patch up |
166 text files appropriately, in accordance with the MSDOS code. */ | 159 text files appropriately. */ |
167 _fmode = O_BINARY; | 160 _fmode = O_BINARY; |
168 #endif | 161 #endif |
169 | 162 |
170 #if 0 | 163 #if 0 |
171 /* This prevents ctrl-c's in shells running while we're suspended from | 164 /* This prevents ctrl-c's in shells running while we're suspended from |
172 having us exit. */ | 165 having us exit. */ |
173 SetConsoleCtrlHandler ((PHANDLER_ROUTINE) ctrl_c_handler, TRUE); | 166 SetConsoleCtrlHandler ((PHANDLER_ROUTINE) ctrl_c_handler, TRUE); |
174 #endif | 167 #endif |
175 | 168 |
176 /* Invoke the NT CRT startup routine now that our housecleaning | |
177 is finished. */ | |
178 #ifdef HAVE_NTGUI | |
179 /* determine WinMain args like crt0.c does */ | |
180 hinst = GetModuleHandle(NULL); | |
181 lpCmdLine = GetCommandLine(); | |
182 nCmdShow = SW_SHOWDEFAULT; | |
183 #endif | |
184 mainCRTStartup (); | 169 mainCRTStartup (); |
185 } | 170 } |
186 | 171 |
187 /* Dump out .data and .bss sections into a new executable. */ | 172 /* Dump out .data and .bss sections into a new executable. */ |
188 void | 173 void |