aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dynlib.c2
-rw-r--r--src/w32.c4
-rw-r--r--src/w32common.h4
-rw-r--r--src/w32console.c2
-rw-r--r--src/w32fns.c18
-rw-r--r--src/w32heap.c4
-rw-r--r--src/w32notify.c2
-rw-r--r--src/w32proc.c8
-rw-r--r--src/w32select.c2
-rw-r--r--src/w32term.c8
-rw-r--r--src/w32term.h2
11 files changed, 28 insertions, 28 deletions
diff --git a/src/dynlib.c b/src/dynlib.c
index 86f8b7e2063..62fc16e180d 100644
--- a/src/dynlib.c
+++ b/src/dynlib.c
@@ -135,7 +135,7 @@ dynlib_addr (void (*funcptr) (void), const char **fname, const char **symname)
135 void *addr = (void *) funcptr; 135 void *addr = (void *) funcptr;
136 136
137 /* Step 1: Find the handle of the module where ADDR lives. */ 137 /* Step 1: Find the handle of the module where ADDR lives. */
138 if (os_subtype == OS_9X 138 if (os_subtype == OS_SUBTYPE_9X
139 /* Windows NT family version before XP (v5.1). */ 139 /* Windows NT family version before XP (v5.1). */
140 || ((w32_major_version + (w32_minor_version > 0)) < 6)) 140 || ((w32_major_version + (w32_minor_version > 0)) < 6))
141 { 141 {
diff --git a/src/w32.c b/src/w32.c
index d4f31924429..f5b76979d74 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -4674,7 +4674,7 @@ sys_rename_replace (const char *oldname, const char *newname, BOOL force)
4674 /* volume_info is set indirectly by map_w32_filename. */ 4674 /* volume_info is set indirectly by map_w32_filename. */
4675 oldname_dev = volume_info.serialnum; 4675 oldname_dev = volume_info.serialnum;
4676 4676
4677 if (os_subtype == OS_9X) 4677 if (os_subtype == OS_SUBTYPE_9X)
4678 { 4678 {
4679 char * o; 4679 char * o;
4680 char * p; 4680 char * p;
@@ -10323,7 +10323,7 @@ shutdown_handler (DWORD type)
10323HANDLE 10323HANDLE
10324maybe_load_unicows_dll (void) 10324maybe_load_unicows_dll (void)
10325{ 10325{
10326 if (os_subtype == OS_9X) 10326 if (os_subtype == OS_SUBTYPE_9X)
10327 { 10327 {
10328 HANDLE ret = LoadLibrary ("Unicows.dll"); 10328 HANDLE ret = LoadLibrary ("Unicows.dll");
10329 if (ret) 10329 if (ret)
diff --git a/src/w32common.h b/src/w32common.h
index 94bb457e59d..0f0be021b29 100644
--- a/src/w32common.h
+++ b/src/w32common.h
@@ -41,8 +41,8 @@ extern int w32_minor_version;
41extern int w32_build_number; 41extern int w32_build_number;
42 42
43enum { 43enum {
44 OS_9X = 1, 44 OS_SUBTYPE_9X = 1,
45 OS_NT 45 OS_SUBTYPE_NT
46}; 46};
47 47
48extern int os_subtype; 48extern int os_subtype;
diff --git a/src/w32console.c b/src/w32console.c
index cb9e288e880..99546c2d754 100644
--- a/src/w32console.c
+++ b/src/w32console.c
@@ -803,7 +803,7 @@ initialize_w32_display (struct terminal *term, int *width, int *height)
803 ceol_initialized = FALSE; 803 ceol_initialized = FALSE;
804 } 804 }
805 805
806 if (os_subtype == OS_NT) 806 if (os_subtype == OS_SUBTYPE_NT)
807 w32_console_unicode_input = 1; 807 w32_console_unicode_input = 1;
808 else 808 else
809 w32_console_unicode_input = 0; 809 w32_console_unicode_input = 0;
diff --git a/src/w32fns.c b/src/w32fns.c
index fcee1934ba9..00e7a3698bc 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -8087,7 +8087,7 @@ DEFUN ("system-move-file-to-trash", Fsystem_move_file_to_trash,
8087 8087
8088 /* The Unicode version of SHFileOperation is not supported on 8088 /* The Unicode version of SHFileOperation is not supported on
8089 Windows 9X. */ 8089 Windows 9X. */
8090 if (w32_unicode_filenames && os_subtype != OS_9X) 8090 if (w32_unicode_filenames && os_subtype != OS_SUBTYPE_9X)
8091 { 8091 {
8092 SHFILEOPSTRUCTW file_op_w; 8092 SHFILEOPSTRUCTW file_op_w;
8093 /* We need one more element beyond MAX_PATH because this is 8093 /* We need one more element beyond MAX_PATH because this is
@@ -9216,7 +9216,7 @@ The coordinates X and Y are interpreted in pixels relative to a position
9216 /* When "mouse trails" are in effect, moving the mouse cursor 9216 /* When "mouse trails" are in effect, moving the mouse cursor
9217 sometimes leaves behind an annoying "ghost" of the pointer. 9217 sometimes leaves behind an annoying "ghost" of the pointer.
9218 Avoid that by momentarily switching off mouse trails. */ 9218 Avoid that by momentarily switching off mouse trails. */
9219 if (os_subtype == OS_NT 9219 if (os_subtype == OS_SUBTYPE_NT
9220 && w32_major_version + w32_minor_version >= 6) 9220 && w32_major_version + w32_minor_version >= 6)
9221 ret = SystemParametersInfo (SPI_GETMOUSETRAILS, 0, &trail_num, 0); 9221 ret = SystemParametersInfo (SPI_GETMOUSETRAILS, 0, &trail_num, 0);
9222 SetCursorPos (XFIXNUM (x), XFIXNUM (y)); 9222 SetCursorPos (XFIXNUM (x), XFIXNUM (y));
@@ -9391,7 +9391,7 @@ DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name,
9391 if (!OpenPrinter (pname_buf, &hPrn, NULL)) 9391 if (!OpenPrinter (pname_buf, &hPrn, NULL))
9392 return Qnil; 9392 return Qnil;
9393 /* GetPrinterW is not supported by unicows.dll. */ 9393 /* GetPrinterW is not supported by unicows.dll. */
9394 if (w32_unicode_filenames && os_subtype != OS_9X) 9394 if (w32_unicode_filenames && os_subtype != OS_SUBTYPE_9X)
9395 GetPrinterW (hPrn, 2, NULL, 0, &dwNeeded); 9395 GetPrinterW (hPrn, 2, NULL, 0, &dwNeeded);
9396 else 9396 else
9397 GetPrinterA (hPrn, 2, NULL, 0, &dwNeeded); 9397 GetPrinterA (hPrn, 2, NULL, 0, &dwNeeded);
@@ -9401,7 +9401,7 @@ DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name,
9401 return Qnil; 9401 return Qnil;
9402 } 9402 }
9403 /* Call GetPrinter again with big enough memory block. */ 9403 /* Call GetPrinter again with big enough memory block. */
9404 if (w32_unicode_filenames && os_subtype != OS_9X) 9404 if (w32_unicode_filenames && os_subtype != OS_SUBTYPE_9X)
9405 { 9405 {
9406 /* Allocate memory for the PRINTER_INFO_2 struct. */ 9406 /* Allocate memory for the PRINTER_INFO_2 struct. */
9407 ppi2w = xmalloc (dwNeeded); 9407 ppi2w = xmalloc (dwNeeded);
@@ -9537,9 +9537,9 @@ cache_system_info (void)
9537 w32_minor_version = version.info.minor; 9537 w32_minor_version = version.info.minor;
9538 9538
9539 if (version.info.platform & 0x8000) 9539 if (version.info.platform & 0x8000)
9540 os_subtype = OS_9X; 9540 os_subtype = OS_SUBTYPE_9X;
9541 else 9541 else
9542 os_subtype = OS_NT; 9542 os_subtype = OS_SUBTYPE_NT;
9543 9543
9544 /* Cache page size, allocation unit, processor type, etc. */ 9544 /* Cache page size, allocation unit, processor type, etc. */
9545 GetSystemInfo (&sysinfo_cache); 9545 GetSystemInfo (&sysinfo_cache);
@@ -9550,7 +9550,7 @@ cache_system_info (void)
9550 GetVersionEx (&osinfo_cache); 9550 GetVersionEx (&osinfo_cache);
9551 9551
9552 w32_build_number = osinfo_cache.dwBuildNumber; 9552 w32_build_number = osinfo_cache.dwBuildNumber;
9553 if (os_subtype == OS_9X) 9553 if (os_subtype == OS_SUBTYPE_9X)
9554 w32_build_number &= 0xffff; 9554 w32_build_number &= 0xffff;
9555 9555
9556 w32_num_mouse_buttons = GetSystemMetrics (SM_CMOUSEBUTTONS); 9556 w32_num_mouse_buttons = GetSystemMetrics (SM_CMOUSEBUTTONS);
@@ -9717,7 +9717,7 @@ w32_kbd_patch_key (KEY_EVENT_RECORD *event, int cpId)
9717 9717
9718 /* On NT, call ToUnicode instead and then convert to the current 9718 /* On NT, call ToUnicode instead and then convert to the current
9719 console input codepage. */ 9719 console input codepage. */
9720 if (os_subtype == OS_NT) 9720 if (os_subtype == OS_SUBTYPE_NT)
9721 { 9721 {
9722 WCHAR buf[128]; 9722 WCHAR buf[128];
9723 9723
@@ -11078,7 +11078,7 @@ see `w32-ansi-code-page'. */);
11078 w32_multibyte_code_page = _getmbcp (); 11078 w32_multibyte_code_page = _getmbcp ();
11079#endif 11079#endif
11080 11080
11081 if (os_subtype == OS_NT) 11081 if (os_subtype == OS_SUBTYPE_NT)
11082 w32_unicode_gui = 1; 11082 w32_unicode_gui = 1;
11083 else 11083 else
11084 w32_unicode_gui = 0; 11084 w32_unicode_gui = 0;
diff --git a/src/w32heap.c b/src/w32heap.c
index 07694d0f5cf..cdb8988e161 100644
--- a/src/w32heap.c
+++ b/src/w32heap.c
@@ -269,7 +269,7 @@ init_heap (bool use_dynamic_heap)
269 } 269 }
270#endif 270#endif
271 271
272 if (os_subtype == OS_9X) 272 if (os_subtype == OS_SUBTYPE_9X)
273 { 273 {
274 the_malloc_fn = malloc_after_dump_9x; 274 the_malloc_fn = malloc_after_dump_9x;
275 the_realloc_fn = realloc_after_dump_9x; 275 the_realloc_fn = realloc_after_dump_9x;
@@ -312,7 +312,7 @@ init_heap (bool use_dynamic_heap)
312 } 312 }
313 heap = s_pfn_Rtl_Create_Heap (0, data_region_base, 0, 0, NULL, &params); 313 heap = s_pfn_Rtl_Create_Heap (0, data_region_base, 0, 0, NULL, &params);
314 314
315 if (os_subtype == OS_9X) 315 if (os_subtype == OS_SUBTYPE_9X)
316 { 316 {
317 fprintf (stderr, "Cannot dump Emacs on Windows 9X; exiting.\n"); 317 fprintf (stderr, "Cannot dump Emacs on Windows 9X; exiting.\n");
318 exit (-1); 318 exit (-1);
diff --git a/src/w32notify.c b/src/w32notify.c
index b9e90633923..889fd9f3c9f 100644
--- a/src/w32notify.c
+++ b/src/w32notify.c
@@ -566,7 +566,7 @@ generate notifications correctly, though. */)
566 CHECK_LIST (filter); 566 CHECK_LIST (filter);
567 567
568 /* The underlying features are available only since XP. */ 568 /* The underlying features are available only since XP. */
569 if (os_subtype == OS_9X 569 if (os_subtype == OS_SUBTYPE_9X
570 || (w32_major_version == 5 && w32_minor_version < 1)) 570 || (w32_major_version == 5 && w32_minor_version < 1))
571 { 571 {
572 errno = ENOSYS; 572 errno = ENOSYS;
diff --git a/src/w32proc.c b/src/w32proc.c
index b436eaff2c3..1233ea7e54a 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -623,7 +623,7 @@ init_timers (void)
623 need to probe for its availability dynamically, and call it 623 need to probe for its availability dynamically, and call it
624 through a pointer. */ 624 through a pointer. */
625 s_pfn_Get_Thread_Times = NULL; /* in case dumped Emacs comes with a value */ 625 s_pfn_Get_Thread_Times = NULL; /* in case dumped Emacs comes with a value */
626 if (os_subtype != OS_9X) 626 if (os_subtype != OS_SUBTYPE_9X)
627 s_pfn_Get_Thread_Times = (GetThreadTimes_Proc) 627 s_pfn_Get_Thread_Times = (GetThreadTimes_Proc)
628 get_proc_addr (GetModuleHandle ("kernel32.dll"), "GetThreadTimes"); 628 get_proc_addr (GetModuleHandle ("kernel32.dll"), "GetThreadTimes");
629 629
@@ -2653,7 +2653,7 @@ find_child_console (HWND hwnd, LPARAM arg)
2653 2653
2654 GetClassName (hwnd, window_class, sizeof (window_class)); 2654 GetClassName (hwnd, window_class, sizeof (window_class));
2655 if (strcmp (window_class, 2655 if (strcmp (window_class,
2656 (os_subtype == OS_9X) 2656 (os_subtype == OS_SUBTYPE_9X)
2657 ? "tty" 2657 ? "tty"
2658 : "ConsoleWindowClass") == 0) 2658 : "ConsoleWindowClass") == 0)
2659 { 2659 {
@@ -2877,7 +2877,7 @@ sys_kill (pid_t pid, int sig)
2877 if (NILP (Vw32_start_process_share_console) && cp && cp->hwnd) 2877 if (NILP (Vw32_start_process_share_console) && cp && cp->hwnd)
2878 { 2878 {
2879#if 1 2879#if 1
2880 if (os_subtype == OS_9X) 2880 if (os_subtype == OS_SUBTYPE_9X)
2881 { 2881 {
2882/* 2882/*
2883 Another possibility is to try terminating the VDM out-right by 2883 Another possibility is to try terminating the VDM out-right by
@@ -3792,7 +3792,7 @@ w32_compare_strings (const char *s1, const char *s2, char *locname,
3792 3792
3793 if (!g_b_init_compare_string_w) 3793 if (!g_b_init_compare_string_w)
3794 { 3794 {
3795 if (os_subtype == OS_9X) 3795 if (os_subtype == OS_SUBTYPE_9X)
3796 { 3796 {
3797 pCompareStringW = (CompareStringW_Proc) 3797 pCompareStringW = (CompareStringW_Proc)
3798 get_proc_addr (LoadLibrary ("Unicows.dll"), 3798 get_proc_addr (LoadLibrary ("Unicows.dll"),
diff --git a/src/w32select.c b/src/w32select.c
index 58cbea9130d..4d72295a279 100644
--- a/src/w32select.c
+++ b/src/w32select.c
@@ -1207,7 +1207,7 @@ globals_of_w32select (void)
1207 QANSICP = coding_from_cp (ANSICP); 1207 QANSICP = coding_from_cp (ANSICP);
1208 QOEMCP = coding_from_cp (OEMCP); 1208 QOEMCP = coding_from_cp (OEMCP);
1209 1209
1210 if (os_subtype == OS_NT) 1210 if (os_subtype == OS_SUBTYPE_NT)
1211 Vselection_coding_system = Qutf_16le_dos; 1211 Vselection_coding_system = Qutf_16le_dos;
1212 else if (inhibit_window_system) 1212 else if (inhibit_window_system)
1213 Vselection_coding_system = QOEMCP; 1213 Vselection_coding_system = QOEMCP;
diff --git a/src/w32term.c b/src/w32term.c
index 2de6b0d78c7..3b33b6bac13 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -1890,7 +1890,7 @@ w32_draw_image_foreground (struct glyph_string *s)
1890 /* HALFTONE produces better results, especially when 1890 /* HALFTONE produces better results, especially when
1891 scaling to a larger size, but Windows 9X doesn't 1891 scaling to a larger size, but Windows 9X doesn't
1892 support HALFTONE. */ 1892 support HALFTONE. */
1893 if (os_subtype == OS_NT 1893 if (os_subtype == OS_SUBTYPE_NT
1894 && (pmode = SetStretchBltMode (s->hdc, HALFTONE)) != 0) 1894 && (pmode = SetStretchBltMode (s->hdc, HALFTONE)) != 0)
1895 SetBrushOrgEx (s->hdc, 0, 0, NULL); 1895 SetBrushOrgEx (s->hdc, 0, 0, NULL);
1896 StretchBlt (s->hdc, x, y, s->slice.width, s->slice.height, 1896 StretchBlt (s->hdc, x, y, s->slice.width, s->slice.height,
@@ -1926,7 +1926,7 @@ w32_draw_image_foreground (struct glyph_string *s)
1926 { 1926 {
1927 int pmode = 0; 1927 int pmode = 0;
1928 /* Windows 9X doesn't support HALFTONE. */ 1928 /* Windows 9X doesn't support HALFTONE. */
1929 if (os_subtype == OS_NT 1929 if (os_subtype == OS_SUBTYPE_NT
1930 && (pmode = SetStretchBltMode (s->hdc, HALFTONE)) != 0) 1930 && (pmode = SetStretchBltMode (s->hdc, HALFTONE)) != 0)
1931 SetBrushOrgEx (s->hdc, 0, 0, NULL); 1931 SetBrushOrgEx (s->hdc, 0, 0, NULL);
1932 StretchBlt (s->hdc, x, y, s->slice.width, s->slice.height, 1932 StretchBlt (s->hdc, x, y, s->slice.width, s->slice.height,
@@ -6665,7 +6665,7 @@ frame_set_mouse_pixel_position (struct frame *f, int pix_x, int pix_y)
6665 /* When "mouse trails" are in effect, moving the mouse cursor 6665 /* When "mouse trails" are in effect, moving the mouse cursor
6666 sometimes leaves behind an annoying "ghost" of the pointer. 6666 sometimes leaves behind an annoying "ghost" of the pointer.
6667 Avoid that by momentarily switching off mouse trails. */ 6667 Avoid that by momentarily switching off mouse trails. */
6668 if (os_subtype == OS_NT 6668 if (os_subtype == OS_SUBTYPE_NT
6669 && w32_major_version + w32_minor_version >= 6) 6669 && w32_major_version + w32_minor_version >= 6)
6670 ret = SystemParametersInfo (SPI_GETMOUSETRAILS, 0, &trail_num, 0); 6670 ret = SystemParametersInfo (SPI_GETMOUSETRAILS, 0, &trail_num, 0);
6671 SetCursorPos (pt.x, pt.y); 6671 SetCursorPos (pt.x, pt.y);
@@ -7652,7 +7652,7 @@ specified by `file-name-coding-system'.
7652This variable is set to non-nil by default when Emacs runs on Windows 7652This variable is set to non-nil by default when Emacs runs on Windows
7653systems of the NT family, including W2K, XP, Vista, Windows 7 and 7653systems of the NT family, including W2K, XP, Vista, Windows 7 and
7654Windows 8. It is set to nil on Windows 9X. */); 7654Windows 8. It is set to nil on Windows 9X. */);
7655 if (os_subtype == OS_9X) 7655 if (os_subtype == OS_SUBTYPE_9X)
7656 w32_unicode_filenames = 0; 7656 w32_unicode_filenames = 0;
7657 else 7657 else
7658 w32_unicode_filenames = 1; 7658 w32_unicode_filenames = 1;
diff --git a/src/w32term.h b/src/w32term.h
index 44378aa4c27..e55efaa13ff 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -759,7 +759,7 @@ extern bool w32_image_rotations_p (void);
759extern void setup_w32_kbdhook (void); 759extern void setup_w32_kbdhook (void);
760extern void remove_w32_kbdhook (void); 760extern void remove_w32_kbdhook (void);
761extern int check_w32_winkey_state (int); 761extern int check_w32_winkey_state (int);
762#define w32_kbdhook_active (os_subtype != OS_9X) 762#define w32_kbdhook_active (os_subtype != OS_SUBTYPE_9X)
763#else 763#else
764#define w32_kbdhook_active 0 764#define w32_kbdhook_active 0
765#endif 765#endif