X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fntproc.c;fp=src%2Fntproc.c;h=029ba1f71e715f6250298233739528857d6886d6;hp=1546a74203d9616019e7780c0a1e9d3813615841;hb=716cfba952c1dc0d2cf5c968971f3780ba728a89;hpb=d74da9234cc42e8018b1500105c3892a5c46d5e3 diff --git a/src/ntproc.c b/src/ntproc.c index 1546a74..029ba1f 100644 --- a/src/ntproc.c +++ b/src/ntproc.c @@ -32,7 +32,7 @@ Boston, MA 02111-1307, USA. #include /* must include CRT headers *before* config.h */ -/* ### I don't believe it - martin */ +/* #### I don't believe it - martin */ #include #undef signal #undef wait @@ -120,6 +120,13 @@ child_process *dead_child = NULL; DWORD WINAPI reader_thread (void *arg); +/* Determine if running on Windows 9x and not NT */ +static int +windows9x_p (void) +{ + return GetVersion () & 0x80000000; +} + /* Find an unused process slot. */ child_process * new_child (void) @@ -668,7 +675,9 @@ sys_spawnve (int mode, CONST char *cmdname, errno = EINVAL; return -1; } - GET_C_STRING_FILENAME_DATA_ALLOCA (full, cmdname); + TO_EXTERNAL_FORMAT (LISP_STRING, full, + C_STRING_ALLOCA, cmdname, + Qfile_name); } else { @@ -937,7 +946,7 @@ find_child_console (HWND hwnd, child_process * cp) GetClassName (hwnd, window_class, sizeof (window_class)); if (strcmp (window_class, - (os_subtype == OS_WIN95) + windows9x_p() ? "tty" : "ConsoleWindowClass") == 0) { @@ -1030,7 +1039,7 @@ sys_kill (int pid, int sig) if (NILP (Vwin32_start_process_share_console) && cp && cp->hwnd) { #if 1 - if (os_subtype == OS_WIN95) + if (windows9x_p()) { /* Another possibility is to try terminating the VDM out-right by @@ -1419,7 +1428,7 @@ If successful, the new locale id is returned, otherwise nil. /* Sync with FSF Emacs 19.34.6 note: dwWinThreadId declared in w32term.h and defined in w32fns.c, both of which are not in current - XEmacs. ### Check what we lose by ifdef'ing out these. --marcpa */ + XEmacs. #### Check what we lose by ifdef'ing out these. --marcpa */ #if 0 /* Need to set input thread locale if present. */ if (dwWinThreadId)