Mercurial > hg > xemacs-beta
comparison src/events.c @ 941:c891972d07fa
[xemacs-hg @ 2002-07-31 15:27:17 by michaels]
2002-07-31 David Bush <David.Bush@intel.com>
* events.c (event_equal): Correct comparison in MS Windows
conditional code to use event structure defined for -use-kkcc.
author | michaels |
---|---|
date | Wed, 31 Jul 2002 15:27:24 +0000 |
parents | c925bacdda60 |
children | 345b7d75cab4 |
comparison
equal
deleted
inserted
replaced
940:79fb6b9e9f76 | 941:c891972d07fa |
---|---|
440 return (XMAGIC_DATA_GTK_EVENT (EVENT_DATA (e1)) == | 440 return (XMAGIC_DATA_GTK_EVENT (EVENT_DATA (e1)) == |
441 XMAGIC_DATA_GTK_EVENT (EVENT_DATA (e2))); | 441 XMAGIC_DATA_GTK_EVENT (EVENT_DATA (e2))); |
442 #endif | 442 #endif |
443 #ifdef HAVE_MS_WINDOWS | 443 #ifdef HAVE_MS_WINDOWS |
444 if (CONSOLE_MSWINDOWS_P (con)) | 444 if (CONSOLE_MSWINDOWS_P (con)) |
445 return (!memcmp(&XMAGIC_DATA_MSWINDOWS_EVENT (EVENT_DATA (e1)), | 445 return (XMAGIC_DATA_MSWINDOWS_EVENT (EVENT_DATA (e1)) == |
446 &XMAGIC_DATA_MSWINDOWS_EVENT (EVENT_DATA (e2)), | 446 XMAGIC_DATA_MSWINDOWS_EVENT (EVENT_DATA (e2))); |
447 sizeof (union magic_data))); | |
448 #endif | 447 #endif |
449 abort (); | 448 abort (); |
450 return 1; /* not reached */ | 449 return 1; /* not reached */ |
451 } | 450 } |
452 | 451 |