Mercurial > hg > xemacs-beta
comparison src/gui-x.c @ 5581:56144c8593a8
Mechanically change INT to FIXNUM in our sources.
src/ChangeLog addition:
2011-10-09 Aidan Kehoe <kehoea@parhasard.net>
[...]
Mechanically change INT (where it refers to non-bignum Lisp
integers) to FIXNUM in our sources. Done for the following
functions, enums, and macros: Lisp_Type_Int_Even,
Lisp_Type_Int_Odd, INT_GCBITS, INT_VALBITS, make_int(), INTP(),
XINT(), CHECK_INT(), XREALINT(), INT_PLUS(), INT_MINUS(),
EMACS_INT_MAX (to MOST_POSITIVE_FIXNUM), EMACS_INT_MIN (to
MOST_NEGATIVE_FIXNUM), NUMBER_FITS_IN_AN_EMACS_INT() to
NUMBER_FITS_IN_A_FIXNUM(), XFLOATINT, XCHAR_OR_INT, INT_OR_FLOAT.
The EMACS_INT typedef was not changed, it does not describe
non-bignum Lisp integers.
Script that did the change available in
http://mid.gmane.org/20067.17650.181273.12014@parhasard.net .
modules/ChangeLog addition:
2011-10-09 Aidan Kehoe <kehoea@parhasard.net>
[...]
Mechanically change INT to FIXNUM, where the usage describes non-bignum
Lisp integers. See the src/ChangeLog entry for more details.
man/ChangeLog addition:
2011-10-09 Aidan Kehoe <kehoea@parhasard.net>
* internals/internals.texi (How Lisp Objects Are Represented in C):
* internals/internals.texi (Integers and Characters):
Mechanically change INT to FIXNUM, where the usage describes non-bignum
Lisp integers.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 09 Oct 2011 09:51:57 +0100 |
parents | 308d34e9f07d |
children |
comparison
equal
deleted
inserted
replaced
5580:a0e81357194e | 5581:56144c8593a8 |
---|---|
106 creation time and each time the tree is modified. */ | 106 creation time and each time the tree is modified. */ |
107 | 107 |
108 void | 108 void |
109 gcpro_popup_callbacks (LWLIB_ID id) | 109 gcpro_popup_callbacks (LWLIB_ID id) |
110 { | 110 { |
111 Lisp_Object lid = make_int (id); | 111 Lisp_Object lid = make_fixnum (id); |
112 Lisp_Object this_callback = assq_no_quit (lid, Vpopup_callbacks); | 112 Lisp_Object this_callback = assq_no_quit (lid, Vpopup_callbacks); |
113 | 113 |
114 if (!NILP (this_callback)) | 114 if (!NILP (this_callback)) |
115 { | 115 { |
116 free_list (XCDR (this_callback)); | 116 free_list (XCDR (this_callback)); |
125 with lwlib id ID. */ | 125 with lwlib id ID. */ |
126 | 126 |
127 void | 127 void |
128 ungcpro_popup_callbacks (LWLIB_ID id) | 128 ungcpro_popup_callbacks (LWLIB_ID id) |
129 { | 129 { |
130 Lisp_Object lid = make_int (id); | 130 Lisp_Object lid = make_fixnum (id); |
131 Lisp_Object this_callback = assq_no_quit (lid, Vpopup_callbacks); | 131 Lisp_Object this_callback = assq_no_quit (lid, Vpopup_callbacks); |
132 | 132 |
133 assert (!NILP (this_callback)); | 133 assert (!NILP (this_callback)); |
134 free_list (XCDR (this_callback)); | 134 free_list (XCDR (this_callback)); |
135 Vpopup_callbacks = delq_no_quit (this_callback, Vpopup_callbacks); | 135 Vpopup_callbacks = delq_no_quit (this_callback, Vpopup_callbacks); |
136 } | 136 } |
137 | 137 |
138 int | 138 int |
139 popup_handled_p (LWLIB_ID id) | 139 popup_handled_p (LWLIB_ID id) |
140 { | 140 { |
141 return NILP (assq_no_quit (make_int (id), Vpopup_callbacks)); | 141 return NILP (assq_no_quit (make_fixnum (id), Vpopup_callbacks)); |
142 } | 142 } |
143 | 143 |
144 /* menu_item_descriptor_to_widget_value() et al. mallocs a | 144 /* menu_item_descriptor_to_widget_value() et al. mallocs a |
145 widget_value, but then may signal lisp errors. If an error does | 145 widget_value, but then may signal lisp errors. If an error does |
146 not occur, the opaque ptr we have here has had its pointer set to 0 | 146 not occur, the opaque ptr we have here has had its pointer set to 0 |