diff src/events.h @ 943:345b7d75cab4

[xemacs-hg @ 2002-08-01 08:28:18 by michaels] 2002-08-01 Mike Sperber <mike@xemacs.org> * event-stream.c: * event-Xt.c: * events.h: * events.c: * alloc.c: Fix various kkcc-related nits that show up in MULE and union-type builds.
author michaels
date Thu, 01 Aug 2002 08:28:38 +0000
parents 4a2ad9252ff5
children e22b0213b713
line wrap: on
line diff
--- a/src/events.h	Wed Jul 31 20:26:41 2002 +0000
+++ b/src/events.h	Thu Aug 01 08:28:38 2002 +0000
@@ -816,22 +816,17 @@
 #define XEVENT_TYPE(a) (XEVENT (a)->event_type)
 #define EVENT_NEXT(a) ((a)->next)
 #define XEVENT_NEXT(e) (XEVENT (e)->next)
-#ifdef USE_KKCC
-#else /* not USE_KKCC */
-#define XSET_EVENT_NEXT(e, n) do { (XEVENT (e)->next = (n)); } while (0)
-#endif /* not USE_KKCC */
 
 #ifdef USE_KKCC
 #define XEVENT_DATA(ev) (XEVENT (ev)->event_data)
 #define EVENT_DATA(ev) ((ev)->event_data)
 #define XEVENT_CHANNEL(ev) (XEVENT (ev)->channel)
-#define EVENT_CHANNEL(ev) ((ev)->channel)
 #define EVENT_TIMESTAMP(ev)                                     \
   ((ev)->timestamp)
 #define XEVENT_TIMESTAMP(ev) EVENT_TIMESTAMP (XEVENT (ev))
 
 #define SET_EVENT_TIMESTAMP_ZERO(ev) \
-  ((ev)->timestamp = Qzero)
+  ((ev)->timestamp = 0)
 #define SET_EVENT_TIMESTAMP(ev, t)                      \
   (ev)->timestamp = (t)
 #define XSET_EVENT_TIMESTAMP(ev, t) SET_EVENT_TIMESTAMP (XEVENT (ev), t)
@@ -901,8 +896,9 @@
 } while (0)
 #define XSET_EVENT_NEXT(ev, n) SET_EVENT_NEXT (XEVENT (ev), n)
 
-#endif /* USE_KKCC */
-
+#else /* NOT USE_KKCC */
+#define XSET_EVENT_NEXT(e, n) do { (XEVENT (e)->next = (n)); } while (0)
+#endif
 
 #define EVENT_CHAIN_LOOP(event, chain) \
   for (event = chain; !NILP (event); event = XEVENT_NEXT (event))