From e32dabae3480363e6eb93153f5242ed8c9f2b590 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Mon, 17 May 1999 20:36:36 +0000 Subject: [PATCH] Make the selector type symbols an enumeration rather than a bunch of #defines. Organization: Straylight/Edgeware From: mdw --- sel.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/sel.h b/sel.h index 37b5b5f..1fc0148 100644 --- a/sel.h +++ b/sel.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: sel.h,v 1.2 1999/05/15 10:33:32 mdw Exp $ + * $Id: sel.h,v 1.3 1999/05/17 20:36:36 mdw Exp $ * * I/O multiplexing support * @@ -30,6 +30,10 @@ /*----- Revision history --------------------------------------------------* * * $Log: sel.h,v $ + * 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. * @@ -100,10 +104,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 --- */ -- [mdw]