aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorEli Zaretskii2015-01-13 19:16:51 +0200
committerEli Zaretskii2015-01-13 19:16:51 +0200
commit5aa618b05807d560126dfd09b9c9cb6b957b98de (patch)
treeb739bec3884c4ed03158b8be0edd0c831540d0d7 /src/ChangeLog
parent30c5f5cdef8db72c007efecfc8436479631b45d0 (diff)
downloademacs-5aa618b05807d560126dfd09b9c9cb6b957b98de.tar.gz
emacs-5aa618b05807d560126dfd09b9c9cb6b957b98de.zip
Fix problems with 32-bit wide-int build exposed by MinGW
lisp.h (XPNTR): Move definition to after XTYPE, to avoid compilation error in an unoptimized build when !USE_LSB_TAG. src/w32heap.c (DUMPED_HEAP_SIZE): For 32-bit wide-int build, use the same larger value as for the 64-bit build. src/w32term.h (SCROLL_BAR_PACK): Cast the result to UINT_PTR to avoid compiler warnings. src/w32proc.c (Fw32_get_codepage_charset, Fw32_set_keyboard_layout): Avoid compiler warnings about cast from integer to pointer of different size. src/w32menu.c (menubar_selection_callback, w32_menu_show): Cast to UINT_PTR instead of EMACS_INT, to avoid compiler warnings about casting from integer to pointer of different size. (add_menu_item): Pass the help-echo string as a pointer to Lisp_String, not as a Lisp_Object. (w32_menu_display_help): Use make_lisp_ptr to reconstruct a Lisp string object from its C pointer. src/w32fns.c (w32_msg_pump) <WM_EMACS_UNREGISTER_HOT_KEY>: Use make_lisp_ptr instead of XIL, to reconstruct a Lisp_Cons from its C pointer. <WM_EMACS_TOGGLE_LOCK_KEY>: msg.lparam is now a C integer. (Fx_create_frame): Type-cast the result of XFASTINT to avoild compiler warnings about size differences. (Fw32_unregister_hot_key): Pass the tail of w32_grabbed_keys as a pointer to a Lisp_Cons struct, not as a disguised EMACS_INT. (Fw32_toggle_lock_key): Pass the new state of the key as a C integer; use -1 for nil. Doc fix. src/.gdbinit (xgetsym): New subroutine. (xsymname, xsymbol): Use it. (xprintsym): No need to call xgetptr.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 81d6772bc23..2f40a463ed4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,42 @@
12015-01-13 Eli Zaretskii <eliz@gnu.org>
2
3 Fix problems with 32-bit wide-int build exposed by MinGW.
4 * lisp.h (XPNTR): Move definition to after XTYPE, to avoid
5 compilation error in an unoptimized build when !USE_LSB_TAG.
6
7 * w32heap.c (DUMPED_HEAP_SIZE): For 32-bit wide-int build, use the
8 same larger value as for the 64-bit build.
9
10 * w32term.h (SCROLL_BAR_PACK): Cast the result to UINT_PTR to
11 avoid compiler warnings.
12
13 * w32proc.c (Fw32_get_codepage_charset, Fw32_set_keyboard_layout):
14 Avoid compiler warnings about cast from integer to pointer of
15 different size.
16
17 * w32menu.c (menubar_selection_callback, w32_menu_show): Cast to
18 UINT_PTR instead of EMACS_INT, to avoid compiler warnings about
19 casting from integer to pointer of different size.
20 (add_menu_item): Pass the help-echo string as a pointer to
21 Lisp_String, not as a Lisp_Object.
22 (w32_menu_display_help): Use make_lisp_ptr to reconstruct a Lisp
23 string object from its C pointer.
24
25 * w32fns.c (w32_msg_pump) <WM_EMACS_UNREGISTER_HOT_KEY>: Use
26 make_lisp_ptr instead of XIL, to reconstruct a Lisp_Cons from its
27 C pointer.
28 <WM_EMACS_TOGGLE_LOCK_KEY>: msg.lparam is now a C integer.
29 (Fx_create_frame): Type-cast the result of XFASTINT to avoild
30 compiler warnings about size differences.
31 (Fw32_unregister_hot_key): Pass the tail of w32_grabbed_keys as a
32 pointer to a Lisp_Cons struct, not as a disguised EMACS_INT.
33 (Fw32_toggle_lock_key): Pass the new state of the key as a C
34 integer; use -1 for nil. Doc fix.
35
36 * .gdbinit (xgetsym): New subroutine.
37 (xsymname, xsymbol): Use it.
38 (xprintsym): No need to call xgetptr.
39
12015-01-13 Martin Rudalics <rudalics@gmx.at> 402015-01-13 Martin Rudalics <rudalics@gmx.at>
2 41
3 * frame.c (adjust_frame_size): Make sure new numbers of 42 * frame.c (adjust_frame_size): Make sure new numbers of