aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-05-11 16:16:52 -0700
committerPaul Eggert2011-05-11 16:16:52 -0700
commit5235bd3eb16b94dc5dcef3b1447f821fc09ea930 (patch)
tree216c6b983a9fc59910efe3341ffcc58af1637236 /src/ChangeLog
parentbc827e23be4630f4b5d7a1895e37cfab89eb6b6a (diff)
downloademacs-5235bd3eb16b94dc5dcef3b1447f821fc09ea930.tar.gz
emacs-5235bd3eb16b94dc5dcef3b1447f821fc09ea930.zip
* xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.
Before, the code was not consistent. These values cannot exceed 2**31 - 1 so there's no need to make them unsigned. (x_x_to_emacs_modifiers): Accept int and return EMACS_INT. (x_emacs_to_x_modifiers): Accept EMACS_INT and return int. (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Reject non-integers as modifiers. * xterm.h (x_x_to_emacs_modifiers): Adjust to signature change.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 550dd28eb24..da468d47db3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,14 @@
12011-05-11 Paul Eggert <eggert@cs.ucla.edu> 12011-05-11 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.
4 Before, the code was not consistent. These values cannot exceed
5 2**31 - 1 so there's no need to make them unsigned.
6 (x_x_to_emacs_modifiers): Accept int and return EMACS_INT.
7 (x_emacs_to_x_modifiers): Accept EMACS_INT and return int.
8 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Reject non-integers
9 as modifiers.
10 * xterm.h (x_x_to_emacs_modifiers): Adjust to signature change.
11
3 * lisp.h (XINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_INT. 12 * lisp.h (XINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_INT.
4 (XUINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_UINT. 13 (XUINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_UINT.
5 Otherwise, GCC 4.6.0 warns about printf (pI, XINT (...)), 14 Otherwise, GCC 4.6.0 warns about printf (pI, XINT (...)),