comparison src/events.c @ 2551:9f70af3ac939

[xemacs-hg @ 2005-02-03 16:14:02 by james] Commit Olivier Galibert's dumper updates for bignums and use them. See xemacs-patches message with ID <ps8y685c6p.fsf@diannao.ittc.ku.edu>.
author james
date Thu, 03 Feb 2005 16:14:08 +0000
parents 3d8143fc88e1
children a25c824ed558
comparison
equal deleted inserted replaced
2550:317f30471f4e 2551:9f70af3ac939
187 static const struct sized_memory_description magic_data_description = { 187 static const struct sized_memory_description magic_data_description = {
188 sizeof (Lisp_Magic_Data), magic_data_description_1 188 sizeof (Lisp_Magic_Data), magic_data_description_1
189 }; 189 };
190 190
191 static const struct memory_description event_data_description_1 [] = { 191 static const struct memory_description event_data_description_1 [] = {
192 { XD_BLOCK_ARRAY, key_press_event, 1, &key_data_description }, 192 { XD_BLOCK_ARRAY, key_press_event, 1, { &key_data_description } },
193 { XD_BLOCK_ARRAY, button_press_event, 1, &button_data_description }, 193 { XD_BLOCK_ARRAY, button_press_event, 1, { &button_data_description } },
194 { XD_BLOCK_ARRAY, button_release_event, 1, &button_data_description }, 194 { XD_BLOCK_ARRAY, button_release_event, 1, { &button_data_description } },
195 { XD_BLOCK_ARRAY, pointer_motion_event, 1, &motion_data_description }, 195 { XD_BLOCK_ARRAY, pointer_motion_event, 1, { &motion_data_description } },
196 { XD_BLOCK_ARRAY, process_event, 1, &process_data_description }, 196 { XD_BLOCK_ARRAY, process_event, 1, { &process_data_description } },
197 { XD_BLOCK_ARRAY, timeout_event, 1, &timeout_data_description }, 197 { XD_BLOCK_ARRAY, timeout_event, 1, { &timeout_data_description } },
198 { XD_BLOCK_ARRAY, magic_event, 1, &magic_data_description }, 198 { XD_BLOCK_ARRAY, magic_event, 1, { &magic_data_description } },
199 { XD_BLOCK_ARRAY, magic_eval_event, 1, &magic_eval_data_description }, 199 { XD_BLOCK_ARRAY, magic_eval_event, 1, { &magic_eval_data_description } },
200 { XD_BLOCK_ARRAY, eval_event, 1, &eval_data_description }, 200 { XD_BLOCK_ARRAY, eval_event, 1, { &eval_data_description } },
201 { XD_BLOCK_ARRAY, misc_user_event, 1, &misc_user_data_description }, 201 { XD_BLOCK_ARRAY, misc_user_event, 1, { &misc_user_data_description } },
202 { XD_END } 202 { XD_END }
203 }; 203 };
204 204
205 static const struct sized_memory_description event_data_description = { 205 static const struct sized_memory_description event_data_description = {
206 0, event_data_description_1 206 0, event_data_description_1
209 static const struct memory_description event_description [] = { 209 static const struct memory_description event_description [] = {
210 { XD_INT, offsetof (struct Lisp_Event, event_type) }, 210 { XD_INT, offsetof (struct Lisp_Event, event_type) },
211 { XD_LISP_OBJECT, offsetof (struct Lisp_Event, next) }, 211 { XD_LISP_OBJECT, offsetof (struct Lisp_Event, next) },
212 { XD_LISP_OBJECT, offsetof (struct Lisp_Event, channel) }, 212 { XD_LISP_OBJECT, offsetof (struct Lisp_Event, channel) },
213 { XD_UNION, offsetof (struct Lisp_Event, event), 213 { XD_UNION, offsetof (struct Lisp_Event, event),
214 XD_INDIRECT (0, 0), &event_data_description }, 214 XD_INDIRECT (0, 0), { &event_data_description } },
215 { XD_END } 215 { XD_END }
216 }; 216 };
217 217
218 #ifdef EVENT_DATA_AS_OBJECTS 218 #ifdef EVENT_DATA_AS_OBJECTS
219 219