chiark / gitweb /
Make the magical constants for the buffer flags uppercase.
[mLib] / selbuf.c
index 0f07dfc056dc99934301323bd433c59ee7050ce2..aafe711f59dbec1ad86b9078b606a3b9aa4b31fc 100644 (file)
--- a/selbuf.c
+++ b/selbuf.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: selbuf.c,v 1.1 1999/05/14 21:01:15 mdw Exp $
+ * $Id: selbuf.c,v 1.2 1999/05/17 20:36:50 mdw Exp $
  *
  * Line-buffering select handler
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: selbuf.c,v $
+ * Revision 1.2  1999/05/17 20:36:50  mdw
+ * Make the magical constants for the buffer flags uppercase.
+ *
  * Revision 1.1  1999/05/14 21:01:15  mdw
  * Integrated `select' handling bits from the background resolver project.
  *
@@ -64,8 +67,8 @@
 
 void selbuf_enable(selbuf *b)
 {
-  if (!(b->b.f & lbuf_enable)) {
-    b->b.f |= lbuf_enable;
+  if (!(b->b.f & LBUF_ENABLE)) {
+    b->b.f |= LBUF_ENABLE;
     sel_addfile(&b->reader);
     lbuf_flush(&b->b, 0, 0);
   }
@@ -83,8 +86,8 @@ void selbuf_enable(selbuf *b)
 
 void selbuf_disable(selbuf *b)
 {
-  if (b->b.f & lbuf_enable) {
-    b->b.f &= ~lbuf_enable;
+  if (b->b.f & LBUF_ENABLE) {
+    b->b.f &= ~LBUF_ENABLE;
     sel_rmfile(&b->reader);
   }
 }
@@ -147,7 +150,7 @@ void selbuf_init(selbuf *b,
                 void *p)
 {
   lbuf_init(&b->b, func, p);
-  b->b.f &= ~lbuf_enable;
+  b->b.f &= ~LBUF_ENABLE;
   sel_initfile(s, &b->reader, fd, SEL_READ, selbuf_read, b);
   selbuf_enable(b);
 }