aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2012-10-17 17:37:55 +0200
committerEli Zaretskii2012-10-17 17:37:55 +0200
commitfcf148759e42645a28fb17584a653ef99d22bb35 (patch)
tree9c8e9af7e45ed896642ac0cb5ab10fd7abe4b609 /src
parent596846525bf5f515541ab1ca9a459f4842d55d1d (diff)
downloademacs-fcf148759e42645a28fb17584a653ef99d22bb35.tar.gz
emacs-fcf148759e42645a28fb17584a653ef99d22bb35.zip
Fix bug #12661 with w32 and cygw32 builds under --enable-check-lisp-object-type.
src/cygw32.c (Fcygwin_convert_path_to_windows) (Fcygwin_convert_path_from_windows): Use EQ to compare 2 Lisp_Object values. src/w32fns.c (w32_msg_pump): Use XIL instead of casting an integer to Lisp_Object.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/cygw32.c4
-rw-r--r--src/w32fns.c4
3 files changed, 13 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b845eeb3ceb..3a6fb718e41 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12012-10-17 Eli Zaretskii <eliz@gnu.org>
2
3 * cygw32.c (Fcygwin_convert_path_to_windows)
4 (Fcygwin_convert_path_from_windows): Use EQ to compare 2
5 Lisp_Object values. (Bug#12661)
6
7 * w32fns.c (w32_msg_pump): Use XIL instead of casting an integer
8 to Lisp_Object. (Bug#12661)
9
12012-10-17 Kenichi Handa <handa@gnu.org> 102012-10-17 Kenichi Handa <handa@gnu.org>
2 11
3 * xdisp.c (reseat_1): Make the information stored in it->cmp_it 12 * xdisp.c (reseat_1): Make the information stored in it->cmp_it
diff --git a/src/cygw32.c b/src/cygw32.c
index c45a45648e9..8f63461da2a 100644
--- a/src/cygw32.c
+++ b/src/cygw32.c
@@ -145,7 +145,7 @@ DEFUN ("cygwin-convert-path-to-windows",
145 (Lisp_Object path, Lisp_Object absolute_p) 145 (Lisp_Object path, Lisp_Object absolute_p)
146{ 146{
147 return from_unicode ( 147 return from_unicode (
148 conv_filename_to_w32_unicode (path, absolute_p == Qnil ? 0 : 1)); 148 conv_filename_to_w32_unicode (path, EQ (absolute_p, Qnil) ? 0 : 1));
149} 149}
150 150
151DEFUN ("cygwin-convert-path-from-windows", 151DEFUN ("cygwin-convert-path-from-windows",
@@ -156,7 +156,7 @@ DEFUN ("cygwin-convert-path-from-windows",
156 (Lisp_Object path, Lisp_Object absolute_p) 156 (Lisp_Object path, Lisp_Object absolute_p)
157{ 157{
158 return conv_filename_from_w32_unicode (to_unicode (path, &path), 158 return conv_filename_from_w32_unicode (to_unicode (path, &path),
159 absolute_p == Qnil ? 0 : 1); 159 EQ (absolute_p, Qnil) ? 0 : 1);
160} 160}
161 161
162void 162void
diff --git a/src/w32fns.c b/src/w32fns.c
index c5e4be4ffc9..8dd3eb83c60 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -2424,7 +2424,7 @@ w32_msg_pump (deferred_msg * msg_buf)
2424 thread-safe. The next line is okay because the cons 2424 thread-safe. The next line is okay because the cons
2425 cell is never made into garbage and is not relocated by 2425 cell is never made into garbage and is not relocated by
2426 GC. */ 2426 GC. */
2427 XSETCAR ((Lisp_Object) ((EMACS_INT) msg.lParam), Qnil); 2427 XSETCAR (XIL ((EMACS_INT) msg.lParam), Qnil);
2428 if (!PostThreadMessage (dwMainThreadId, WM_EMACS_DONE, 0, 0)) 2428 if (!PostThreadMessage (dwMainThreadId, WM_EMACS_DONE, 0, 0))
2429 emacs_abort (); 2429 emacs_abort ();
2430 break; 2430 break;
@@ -2432,7 +2432,7 @@ w32_msg_pump (deferred_msg * msg_buf)
2432 { 2432 {
2433 int vk_code = (int) msg.wParam; 2433 int vk_code = (int) msg.wParam;
2434 int cur_state = (GetKeyState (vk_code) & 1); 2434 int cur_state = (GetKeyState (vk_code) & 1);
2435 Lisp_Object new_state = (Lisp_Object) ((EMACS_INT) msg.lParam); 2435 Lisp_Object new_state = XIL ((EMACS_INT) msg.lParam);
2436 2436
2437 /* NB: This code must be thread-safe. It is safe to 2437 /* NB: This code must be thread-safe. It is safe to
2438 call NILP because symbols are not relocated by GC, 2438 call NILP because symbols are not relocated by GC,