* xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 May 2011 23:16:52 +0000 (16:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 May 2011 23:16:52 +0000 (16:16 -0700)
commit5235bd3eb16b94dc5dcef3b1447f821fc09ea930
tree216c6b983a9fc59910efe3341ffcc58af1637236
parentbc827e23be4630f4b5d7a1895e37cfab89eb6b6a
* 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.
src/ChangeLog
src/xterm.c
src/xterm.h