Mercurial > hg > xemacs-beta
comparison src/events.c @ 120:cca96a509cfe r20-1b12
Import from CVS: tag r20-1b12
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:25:29 +0200 |
parents | 4be1180a9e89 |
children | d2f30a177268 |
comparison
equal
deleted
inserted
replaced
119:d101af7320b8 | 120:cca96a509cfe |
---|---|
301 if (CONSOLE_X_P (XCONSOLE (console))) | 301 if (CONSOLE_X_P (XCONSOLE (console))) |
302 return (!memcmp ((XEvent *) &e1->event.magic.underlying_x_event, | 302 return (!memcmp ((XEvent *) &e1->event.magic.underlying_x_event, |
303 (XEvent *) &e2->event.magic.underlying_x_event, | 303 (XEvent *) &e2->event.magic.underlying_x_event, |
304 sizeof (e1->event.magic.underlying_x_event))); | 304 sizeof (e1->event.magic.underlying_x_event))); |
305 #endif | 305 #endif |
306 #ifdef HAVE_NEXTSTEP | |
307 if (CONSOLE_NS_P (XCONSOLE (console))) | |
308 return (e1->event.magic.underlying_ns_event == | |
309 e2->event.magic.underlying_ns_event); | |
310 #endif | |
311 return (e1->event.magic.underlying_tty_event == | 306 return (e1->event.magic.underlying_tty_event == |
312 e2->event.magic.underlying_tty_event); | 307 e2->event.magic.underlying_tty_event); |
313 } | 308 } |
314 | 309 |
315 case empty_event: /* Empty and deallocated events are equal. */ | 310 case empty_event: /* Empty and deallocated events are equal. */ |
366 if (CONSOLE_X_P (XCONSOLE (console))) | 361 if (CONSOLE_X_P (XCONSOLE (console))) |
367 return | 362 return |
368 HASH2 (hash, | 363 HASH2 (hash, |
369 memory_hash (&e->event.magic.underlying_x_event, | 364 memory_hash (&e->event.magic.underlying_x_event, |
370 sizeof (e->event.magic.underlying_x_event))); | 365 sizeof (e->event.magic.underlying_x_event))); |
371 #endif | |
372 #ifdef HAVE_NEXTSTEP | |
373 if (CONSOLE_NS_P (XCONSOLE (console))) | |
374 return | |
375 HASH2 (hash, | |
376 memory_hash (&e->event.magic.underlying_ns_event, | |
377 sizeof (e->event.magic.underlying_ns_event))); | |
378 #endif | 366 #endif |
379 return | 367 return |
380 HASH2 (hash, | 368 HASH2 (hash, |
381 memory_hash (&e->event.magic.underlying_tty_event, | 369 memory_hash (&e->event.magic.underlying_tty_event, |
382 sizeof (e->event.magic.underlying_tty_event))); | 370 sizeof (e->event.magic.underlying_tty_event))); |
960 #ifdef HAVE_X_WINDOWS | 948 #ifdef HAVE_X_WINDOWS |
961 if (CONSOLE_X_P (XCONSOLE (console))) | 949 if (CONSOLE_X_P (XCONSOLE (console))) |
962 name = | 950 name = |
963 x_event_name (event->event.magic.underlying_x_event.xany.type); | 951 x_event_name (event->event.magic.underlying_x_event.xany.type); |
964 #endif | 952 #endif |
965 #ifdef HAVE_NEXTSTEP | |
966 if (CONSOLE_NS_P (XCONSOLE (console))) | |
967 name = ns_event_name (event->event.magic.underlying_ns_event); | |
968 #endif | |
969 if (name) strcpy (buf, name); | 953 if (name) strcpy (buf, name); |
970 else strcpy (buf, "???"); | 954 else strcpy (buf, "???"); |
971 return; | 955 return; |
972 } | 956 } |
973 case magic_eval_event: strcpy (buf, "magic-eval"); return; | 957 case magic_eval_event: strcpy (buf, "magic-eval"); return; |