comparison lib-src/i.c @ 5934:e2fae7783046 cygwin

lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author Henry Thompson <ht@markup.co.uk>
date Sat, 12 Dec 2015 19:08:46 +0000
parents 308d34e9f07d
children
comparison
equal deleted inserted replaced
5933:c1e8f3294298 5934:e2fae7783046
238 238
239 SetConsoleCtrlHandler ((PHANDLER_ROUTINE) ctrl_c_handler, TRUE); 239 SetConsoleCtrlHandler ((PHANDLER_ROUTINE) ctrl_c_handler, TRUE);
240 _tcsncpy (new_command, command, past_exe - command); 240 _tcsncpy (new_command, command, past_exe - command);
241 _stprintf (new_command + (past_exe - command), 241 _stprintf (new_command + (past_exe - command),
242 /* start with space in case no args past command name */ 242 /* start with space in case no args past command name */
243 " -mswindows-termination-handle %d ", (long) external_event); 243 " -mswindows-termination-handle %Id ", (uintptr_t) external_event);
244 _tcscat (new_command, past_exe); 244 _tcscat (new_command, past_exe);
245 245
246 if (CreateProcess (NULL, new_command, NULL, NULL, TRUE, 0, 246 if (CreateProcess (NULL, new_command, NULL, NULL, TRUE, 0,
247 NULL, NULL, &si, &pi) == 0) 247 NULL, NULL, &si, &pi) == 0)
248 { 248 {