chiark / gitweb /
Prevent some macros from re-evaluating their arguments.
[mLib] / sel.h
diff --git a/sel.h b/sel.h
index 3777eedbcc509a60018a0e5b660b73fba7c063b4..8d121ef4bbed5b5f8bf134ffaad28e64d49835c0 100644 (file)
--- a/sel.h
+++ b/sel.h
@@ -1,10 +1,10 @@
 /* -*-c-*-
  *
- * $Id: sel.h,v 1.1 1999/05/14 21:01:15 mdw Exp $
+ * $Id: sel.h,v 1.4 1999/05/22 13:39:15 mdw Exp $
  *
  * I/O multiplexing support
  *
- * (c) 1999 Mark Wooding
+ * (c) 1999 Straylight/Edgeware
  */
 
 /*----- Licensing notice --------------------------------------------------* 
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: sel.h,v $
+ * Revision 1.4  1999/05/22 13:39:15  mdw
+ * Change spelling of `multiplexor'. ;-)
+ *
+ * Revision 1.3  1999/05/17 20:36:36  mdw
+ * Make the selector type symbols an enumeration rather than a bunch of
+ * #defines.
+ *
+ * Revision 1.2  1999/05/15 10:33:32  mdw
+ * Fix copyright notices.
+ *
  * Revision 1.1  1999/05/14 21:01:15  mdw
  * Integrated `select' handling bits from the background resolver project.
  *
@@ -97,10 +107,12 @@ typedef struct sel_file {
   void *p;
 } sel_file;
 
-#define SEL_READ 0
-#define SEL_WRITE 1
-#define SEL_EXC 2
-#define SEL_MODES 3
+enum {
+  SEL_READ,
+  SEL_WRITE,
+  SEL_EXC,
+  SEL_MODES
+};
 
 /* --- Waiting for a timeout --- */
 
@@ -112,7 +124,7 @@ typedef struct sel_timer {
   void *p;
 } sel_timer;
 
-/* --- A multiplexer --- *
+/* --- A multiplexor --- *
  *
  * The files are sorted in reverse order of file descriptor number; the
  * timers are in normal order of occurrence.  Thus, the interesting one