diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 12 | ||||
| -rw-r--r-- | src/w32faces.c | 2 | ||||
| -rw-r--r-- | src/w32fns.c | 18 | ||||
| -rw-r--r-- | src/w32heap.c | 8 | ||||
| -rw-r--r-- | src/w32inevt.c | 2 | ||||
| -rw-r--r-- | src/w32menu.c | 2 | ||||
| -rw-r--r-- | src/w32proc.c | 6 | ||||
| -rw-r--r-- | src/w32select.c | 2 | ||||
| -rw-r--r-- | src/w32term.c | 32 | ||||
| -rw-r--r-- | src/w32xfns.c | 2 |
10 files changed, 43 insertions, 43 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Utility and Unix shadow routines for GNU Emacs on Windows NT. | 1 | /* Utility and Unix shadow routines for GNU Emacs on the Microsoft W32 API. |
| 2 | Copyright (C) 1994, 1995 Free Software Foundation, Inc. | 2 | Copyright (C) 1994, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -1063,17 +1063,17 @@ sys_rename (const char * oldname, const char * newname) | |||
| 1063 | char temp[MAX_PATH]; | 1063 | char temp[MAX_PATH]; |
| 1064 | DWORD attr; | 1064 | DWORD attr; |
| 1065 | 1065 | ||
| 1066 | /* MoveFile on Win95 doesn't correctly change the short file name | 1066 | /* MoveFile on Windows 95 doesn't correctly change the short file name |
| 1067 | alias in a number of circumstances (it is not easy to predict when | 1067 | alias in a number of circumstances (it is not easy to predict when |
| 1068 | just by looking at oldname and newname, unfortunately). In these | 1068 | just by looking at oldname and newname, unfortunately). In these |
| 1069 | cases, renaming through a temporary name avoids the problem. | 1069 | cases, renaming through a temporary name avoids the problem. |
| 1070 | 1070 | ||
| 1071 | A second problem on Win95 is that renaming through a temp name when | 1071 | A second problem on Windows 95 is that renaming through a temp name when |
| 1072 | newname is uppercase fails (the final long name ends up in | 1072 | newname is uppercase fails (the final long name ends up in |
| 1073 | lowercase, although the short alias might be uppercase) UNLESS the | 1073 | lowercase, although the short alias might be uppercase) UNLESS the |
| 1074 | long temp name is not 8.3. | 1074 | long temp name is not 8.3. |
| 1075 | 1075 | ||
| 1076 | So, on Win95 we always rename through a temp name, and we make sure | 1076 | So, on Windows 95 we always rename through a temp name, and we make sure |
| 1077 | the temp name has a long extension to ensure correct renaming. */ | 1077 | the temp name has a long extension to ensure correct renaming. */ |
| 1078 | 1078 | ||
| 1079 | strcpy (temp, map_w32_filename (oldname, NULL)); | 1079 | strcpy (temp, map_w32_filename (oldname, NULL)); |
| @@ -1827,7 +1827,7 @@ sys_close (int fd) | |||
| 1827 | } | 1827 | } |
| 1828 | 1828 | ||
| 1829 | /* Note that sockets do not need special treatment here (at least on | 1829 | /* Note that sockets do not need special treatment here (at least on |
| 1830 | NT and Win95 using the standard tcp/ip stacks) - it appears that | 1830 | NT and Windows 95 using the standard tcp/ip stacks) - it appears that |
| 1831 | closesocket is equivalent to CloseHandle, which is to be expected | 1831 | closesocket is equivalent to CloseHandle, which is to be expected |
| 1832 | because socket handles are fully fledged kernel handles. */ | 1832 | because socket handles are fully fledged kernel handles. */ |
| 1833 | rc = _close (fd); | 1833 | rc = _close (fd); |
| @@ -1965,7 +1965,7 @@ _sys_read_ahead (int fd) | |||
| 1965 | rc = _read (fd, &cp->chr, sizeof (char)); | 1965 | rc = _read (fd, &cp->chr, sizeof (char)); |
| 1966 | 1966 | ||
| 1967 | /* Give subprocess time to buffer some more output for us before | 1967 | /* Give subprocess time to buffer some more output for us before |
| 1968 | reporting that input is available; we need this because Win95 | 1968 | reporting that input is available; we need this because Windows 95 |
| 1969 | connects DOS programs to pipes by making the pipe appear to be | 1969 | connects DOS programs to pipes by making the pipe appear to be |
| 1970 | the normal console stdout - as a result most DOS programs will | 1970 | the normal console stdout - as a result most DOS programs will |
| 1971 | write to stdout without buffering, ie. one character at a | 1971 | write to stdout without buffering, ie. one character at a |
diff --git a/src/w32faces.c b/src/w32faces.c index 1328dd8cab5..1a229f4ff22 100644 --- a/src/w32faces.c +++ b/src/w32faces.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* "Face" primitives under the Win32 API. | 1 | /* "Face" primitives on the Microsoft W32 API. |
| 2 | Copyright (C) 1993, 1994, 1995 Free Software Foundation. | 2 | Copyright (C) 1993, 1994, 1995 Free Software Foundation. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
diff --git a/src/w32fns.c b/src/w32fns.c index 6501e49b61e..67b45abcf60 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Functions for the MS Win32 window system API. | 1 | /* Graphical user interface functions for the Microsoft W32 API. |
| 2 | Copyright (C) 1989, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. | 2 | Copyright (C) 1989, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -2680,7 +2680,7 @@ my_post_msg (wmsg, hwnd, msg, wParam, lParam) | |||
| 2680 | post_msg (wmsg); | 2680 | post_msg (wmsg); |
| 2681 | } | 2681 | } |
| 2682 | 2682 | ||
| 2683 | /* GetKeyState and MapVirtualKey on Win95 do not actually distinguish | 2683 | /* GetKeyState and MapVirtualKey on Windows 95 do not actually distinguish |
| 2684 | between left and right keys as advertised. We test for this | 2684 | between left and right keys as advertised. We test for this |
| 2685 | support dynamically, and set a flag when the support is absent. If | 2685 | support dynamically, and set a flag when the support is absent. If |
| 2686 | absent, we keep track of the left and right control and alt keys | 2686 | absent, we keep track of the left and right control and alt keys |
| @@ -2879,7 +2879,7 @@ map_keypad_keys (unsigned int wparam, unsigned int lparam) | |||
| 2879 | /* Main message dispatch loop. */ | 2879 | /* Main message dispatch loop. */ |
| 2880 | 2880 | ||
| 2881 | DWORD | 2881 | DWORD |
| 2882 | win_msg_worker (dw) | 2882 | windows_msg_worker (dw) |
| 2883 | DWORD dw; | 2883 | DWORD dw; |
| 2884 | { | 2884 | { |
| 2885 | MSG msg; | 2885 | MSG msg; |
| @@ -3033,10 +3033,10 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 3033 | 3033 | ||
| 3034 | if (windows_translate) | 3034 | if (windows_translate) |
| 3035 | { | 3035 | { |
| 3036 | MSG winmsg = { hwnd, msg, wParam, lParam, 0, {0,0} }; | 3036 | MSG windows_msg = { hwnd, msg, wParam, lParam, 0, {0,0} }; |
| 3037 | 3037 | ||
| 3038 | winmsg.time = GetMessageTime (); | 3038 | windows_msg.time = GetMessageTime (); |
| 3039 | TranslateMessage (&winmsg); | 3039 | TranslateMessage (&windows_msg); |
| 3040 | goto dflt; | 3040 | goto dflt; |
| 3041 | } | 3041 | } |
| 3042 | 3042 | ||
| @@ -3257,7 +3257,7 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 3257 | 3257 | ||
| 3258 | case WM_NCACTIVATE: | 3258 | case WM_NCACTIVATE: |
| 3259 | /* Windows doesn't send us focus messages when putting up and | 3259 | /* Windows doesn't send us focus messages when putting up and |
| 3260 | taking down a system popup dialog as for Ctrl-Alt-Del on Win95. | 3260 | taking down a system popup dialog as for Ctrl-Alt-Del on Windows 95. |
| 3261 | The only indication we get that something happened is receiving | 3261 | The only indication we get that something happened is receiving |
| 3262 | this message afterwards. So this is a good time to reset our | 3262 | this message afterwards. So this is a good time to reset our |
| 3263 | keyboard modifiers' state. */ | 3263 | keyboard modifiers' state. */ |
| @@ -3371,7 +3371,7 @@ my_create_window (f) | |||
| 3371 | { | 3371 | { |
| 3372 | MSG msg; | 3372 | MSG msg; |
| 3373 | 3373 | ||
| 3374 | PostThreadMessage (dwWinThreadId, WM_EMACS_CREATEWINDOW, (WPARAM)f, 0); | 3374 | PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATEWINDOW, (WPARAM)f, 0); |
| 3375 | GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); | 3375 | GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); |
| 3376 | } | 3376 | } |
| 3377 | 3377 | ||
| @@ -3435,7 +3435,7 @@ x_icon (f, parms) | |||
| 3435 | { | 3435 | { |
| 3436 | Lisp_Object icon_x, icon_y; | 3436 | Lisp_Object icon_x, icon_y; |
| 3437 | 3437 | ||
| 3438 | /* Set the position of the icon. Note that win95 groups all | 3438 | /* Set the position of the icon. Note that Windows 95 groups all |
| 3439 | icons in the tray. */ | 3439 | icons in the tray. */ |
| 3440 | icon_x = x_get_arg (parms, Qicon_left, 0, 0, number); | 3440 | icon_x = x_get_arg (parms, Qicon_left, 0, 0, number); |
| 3441 | icon_y = x_get_arg (parms, Qicon_top, 0, 0, number); | 3441 | icon_y = x_get_arg (parms, Qicon_top, 0, 0, number); |
diff --git a/src/w32heap.c b/src/w32heap.c index a16872e2d11..2a92d059d90 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Heap management routines for GNU Emacs on Windows NT. | 1 | /* Heap management routines for GNU Emacs on the Microsoft W32 API. |
| 2 | Copyright (C) 1994 Free Software Foundation, Inc. | 2 | Copyright (C) 1994 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -107,12 +107,12 @@ allocate_heap (void) | |||
| 107 | the initial default process heap size and the executable image base | 107 | the initial default process heap size and the executable image base |
| 108 | address. The link settings and the malloc heap base below must all | 108 | address. The link settings and the malloc heap base below must all |
| 109 | correspond; the relationship between these values depends on how NT | 109 | correspond; the relationship between these values depends on how NT |
| 110 | and Win95 arrange the virtual address space for a process (and on | 110 | and Windows 95 arrange the virtual address space for a process (and on |
| 111 | the size of the code and data segments in temacs.exe). | 111 | the size of the code and data segments in temacs.exe). |
| 112 | 112 | ||
| 113 | The most important thing is to make base address for the executable | 113 | The most important thing is to make base address for the executable |
| 114 | image high enough to leave enough room between it and the 4MB floor | 114 | image high enough to leave enough room between it and the 4MB floor |
| 115 | of the process address space on Win95 for the primary thread stack, | 115 | of the process address space on Windows 95 for the primary thread stack, |
| 116 | the process default heap, and other assorted odds and ends | 116 | the process default heap, and other assorted odds and ends |
| 117 | (eg. environment strings, private system dll memory etc) that are | 117 | (eg. environment strings, private system dll memory etc) that are |
| 118 | allocated before temacs has a chance to grab its malloc arena. The | 118 | allocated before temacs has a chance to grab its malloc arena. The |
| @@ -132,7 +132,7 @@ allocate_heap (void) | |||
| 132 | we will have plenty of room for expansion. | 132 | we will have plenty of room for expansion. |
| 133 | 133 | ||
| 134 | Thus we would like to set the malloc heap base to 20MB. However, | 134 | Thus we would like to set the malloc heap base to 20MB. However, |
| 135 | Win95 refuses to allocate the heap starting at this address, so we | 135 | Windows 95 refuses to allocate the heap starting at this address, so we |
| 136 | set the base to 27MB to make it happy. Since Emacs now leaves | 136 | set the base to 27MB to make it happy. Since Emacs now leaves |
| 137 | 28 bits available for pointers, this lets us use the remainder of | 137 | 28 bits available for pointers, this lets us use the remainder of |
| 138 | the region below the 256MB line for our malloc arena - 229MB is | 138 | the region below the 256MB line for our malloc arena - 229MB is |
diff --git a/src/w32inevt.c b/src/w32inevt.c index 7e811bfe1df..76f5be277be 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Input event support for Emacs under Win32 API. | 1 | /* Input event support for Emacs on the Microsoft W32 API. |
| 2 | Copyright (C) 1992, 1993, 1995 Free Software Foundation, Inc. | 2 | Copyright (C) 1992, 1993, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
diff --git a/src/w32menu.c b/src/w32menu.c index cdc7816fad4..f77ce136fe2 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* X Communication module for terminals which understand the X protocol. | 1 | /* Menu support for GNU Emacs on the Microsoft W32 API. |
| 2 | Copyright (C) 1986, 1988, 1993, 1994 Free Software Foundation, Inc. | 2 | Copyright (C) 1986, 1988, 1993, 1994 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
diff --git a/src/w32proc.c b/src/w32proc.c index 755336299b4..fec9a9ddeee 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Process support for Windows NT port of GNU EMACS. | 1 | /* Process support for GNU Emacs on the Microsoft W32 API. |
| 2 | Copyright (C) 1992, 1995 Free Software Foundation, Inc. | 2 | Copyright (C) 1992, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -58,7 +58,7 @@ Lisp_Object Vw32_start_process_show_window; | |||
| 58 | /* Time to sleep before reading from a subprocess output pipe - this | 58 | /* Time to sleep before reading from a subprocess output pipe - this |
| 59 | avoids the inefficiency of frequently reading small amounts of data. | 59 | avoids the inefficiency of frequently reading small amounts of data. |
| 60 | This is primarily necessary for handling DOS processes on Windows 95, | 60 | This is primarily necessary for handling DOS processes on Windows 95, |
| 61 | but is useful for W32 processes on both Win95 and NT as well. */ | 61 | but is useful for W32 processes on both Windows 95 and NT as well. */ |
| 62 | Lisp_Object Vw32_pipe_read_delay; | 62 | Lisp_Object Vw32_pipe_read_delay; |
| 63 | 63 | ||
| 64 | /* Control conversion of upper case file names to lower case. | 64 | /* Control conversion of upper case file names to lower case. |
| @@ -1112,7 +1112,7 @@ sys_kill (int pid, int sig) | |||
| 1112 | /* Kill the process. On W32 this doesn't kill child processes | 1112 | /* Kill the process. On W32 this doesn't kill child processes |
| 1113 | so it doesn't work very well for shells which is why it's not | 1113 | so it doesn't work very well for shells which is why it's not |
| 1114 | used in every case. Also, don't try to terminate DOS processes | 1114 | used in every case. Also, don't try to terminate DOS processes |
| 1115 | (on Win95), because this will hang Emacs. */ | 1115 | (on Windows 95), because this will hang Emacs. */ |
| 1116 | if (!(cp && cp->is_dos_process) | 1116 | if (!(cp && cp->is_dos_process) |
| 1117 | && !TerminateProcess (proc_hand, 0xff)) | 1117 | && !TerminateProcess (proc_hand, 0xff)) |
| 1118 | { | 1118 | { |
diff --git a/src/w32select.c b/src/w32select.c index 84d6e2b8dfe..23a0b5deaa0 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Selection processing for Emacs using the Win32 API. | 1 | /* Selection processing for Emacs on the Microsoft W32 API. |
| 2 | Copyright (C) 1993, 1994 Free Software Foundation. | 2 | Copyright (C) 1993, 1994 Free Software Foundation. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
diff --git a/src/w32term.c b/src/w32term.c index 4706ac4fa43..e2eb784cd3a 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Implementation of GUI terminal on the Win32 API. | 1 | /* Implementation of GUI terminal on the Microsoft W32 API. |
| 2 | Copyright (C) 1989, 1993, 1994, 1995 Free Software Foundation, Inc. | 2 | Copyright (C) 1989, 1993, 1994, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -89,8 +89,8 @@ static int highlight; | |||
| 89 | static int curs_x; | 89 | static int curs_x; |
| 90 | static int curs_y; | 90 | static int curs_y; |
| 91 | 91 | ||
| 92 | DWORD dwWinThreadId = 0; | 92 | DWORD dwWindowsThreadId = 0; |
| 93 | HANDLE hWinThread = NULL; | 93 | HANDLE hWindowsThread = NULL; |
| 94 | DWORD dwMainThreadId = 0; | 94 | DWORD dwMainThreadId = 0; |
| 95 | HANDLE hMainThread = NULL; | 95 | HANDLE hMainThread = NULL; |
| 96 | 96 | ||
| @@ -1802,7 +1802,7 @@ my_create_scrollbar (f, bar) | |||
| 1802 | { | 1802 | { |
| 1803 | MSG msg; | 1803 | MSG msg; |
| 1804 | 1804 | ||
| 1805 | PostThreadMessage (dwWinThreadId, WM_EMACS_CREATESCROLLBAR, (WPARAM) f, | 1805 | PostThreadMessage (dwWindowsThreadId, WM_EMACS_CREATESCROLLBAR, (WPARAM) f, |
| 1806 | (LPARAM) bar); | 1806 | (LPARAM) bar); |
| 1807 | GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); | 1807 | GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); |
| 1808 | 1808 | ||
| @@ -2331,7 +2331,7 @@ is_dead_key (int wparam) | |||
| 2331 | { | 2331 | { |
| 2332 | unsigned int code = MapVirtualKey (wparam, 2); | 2332 | unsigned int code = MapVirtualKey (wparam, 2); |
| 2333 | 2333 | ||
| 2334 | /* Win95 returns 0x8000, NT returns 0x80000000. */ | 2334 | /* Windows 95 returns 0x8000, NT returns 0x80000000. */ |
| 2335 | if ((code & 0x8000) || (code & 0x80000000)) | 2335 | if ((code & 0x8000) || (code & 0x80000000)) |
| 2336 | return 1; | 2336 | return 1; |
| 2337 | else | 2337 | else |
| @@ -2350,12 +2350,12 @@ is_dead_key (int wparam) | |||
| 2350 | EXPECTED is nonzero if the caller knows input is available. | 2350 | EXPECTED is nonzero if the caller knows input is available. |
| 2351 | 2351 | ||
| 2352 | Some of these messages are reposted back to the message queue since the | 2352 | Some of these messages are reposted back to the message queue since the |
| 2353 | system calls the winproc directly in a context where we cannot return the | 2353 | system calls the windows proc directly in a context where we cannot return |
| 2354 | data nor can we guarantee the state we are in. So if we dispatch them | 2354 | the data nor can we guarantee the state we are in. So if we dispatch them |
| 2355 | we will get into an infinite loop. To prevent this from ever happening we | 2355 | we will get into an infinite loop. To prevent this from ever happening we |
| 2356 | will set a variable to indicate we are in the read_socket call and indicate | 2356 | will set a variable to indicate we are in the read_socket call and indicate |
| 2357 | which message we are processing since the winproc gets called recursively with different | 2357 | which message we are processing since the windows proc gets called |
| 2358 | messages by the system. | 2358 | recursively with different messages by the system. |
| 2359 | */ | 2359 | */ |
| 2360 | 2360 | ||
| 2361 | int | 2361 | int |
| @@ -3791,7 +3791,7 @@ x_delete_display (dpyinfo) | |||
| 3791 | 3791 | ||
| 3792 | /* Set up use of W32. */ | 3792 | /* Set up use of W32. */ |
| 3793 | 3793 | ||
| 3794 | DWORD win_msg_worker (); | 3794 | DWORD windows_msg_worker (); |
| 3795 | 3795 | ||
| 3796 | w32_initialize () | 3796 | w32_initialize () |
| 3797 | { | 3797 | { |
| @@ -3846,23 +3846,23 @@ w32_initialize () | |||
| 3846 | 3846 | ||
| 3847 | PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE); | 3847 | PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE); |
| 3848 | 3848 | ||
| 3849 | hWinThread = CreateThread (NULL, 0, | 3849 | hWindowsThread = CreateThread (NULL, 0, |
| 3850 | (LPTHREAD_START_ROUTINE) win_msg_worker, | 3850 | (LPTHREAD_START_ROUTINE) windows_msg_worker, |
| 3851 | 0, 0, &dwWinThreadId); | 3851 | 0, 0, &dwWindowsThreadId); |
| 3852 | 3852 | ||
| 3853 | GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); | 3853 | GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); |
| 3854 | } | 3854 | } |
| 3855 | 3855 | ||
| 3856 | /* It is desirable that mainThread should have the same notion of | 3856 | /* It is desirable that mainThread should have the same notion of |
| 3857 | focus window and active window as winThread. Unfortunately, the | 3857 | focus window and active window as windowsThread. Unfortunately, the |
| 3858 | following call to AttachThreadInput, which should do precisely what | 3858 | following call to AttachThreadInput, which should do precisely what |
| 3859 | we need, causes major problems when Emacs is linked as a console | 3859 | we need, causes major problems when Emacs is linked as a console |
| 3860 | program. Unfortunately, we have good reasons for doing that, so | 3860 | program. Unfortunately, we have good reasons for doing that, so |
| 3861 | instead we need to send messages to winThread to make some API | 3861 | instead we need to send messages to windowsThread to make some API |
| 3862 | calls for us (ones that affect, or depend on, the active/focus | 3862 | calls for us (ones that affect, or depend on, the active/focus |
| 3863 | window state. */ | 3863 | window state. */ |
| 3864 | #ifdef ATTACH_THREADS | 3864 | #ifdef ATTACH_THREADS |
| 3865 | AttachThreadInput (dwMainThreadId, dwWinThreadId, TRUE); | 3865 | AttachThreadInput (dwMainThreadId, dwWindowsThreadId, TRUE); |
| 3866 | #endif | 3866 | #endif |
| 3867 | } | 3867 | } |
| 3868 | 3868 | ||
diff --git a/src/w32xfns.c b/src/w32xfns.c index e2aa3b6abc3..9d8dbf00eb9 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Functions taken directly from X sources for use with the Win32 API. | 1 | /* Functions taken directly from X sources for use with the Microsoft W32 API. |
| 2 | Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation. | 2 | Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |