~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include @<ctype.h>@.
[mLib]
/
lbuf.h
diff --git
a/lbuf.h
b/lbuf.h
index
3f25dac
..
fb04b5f
100644
(file)
--- a/
lbuf.h
+++ b/
lbuf.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: lbuf.h,v 1.
4 2000/06/17 10:38:14
mdw Exp $
+ * $Id: lbuf.h,v 1.
6 2001/02/03 16:23:33
mdw Exp $
*
* Block-to-line buffering
*
*
* Block-to-line buffering
*
@@
-30,6
+30,13
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: lbuf.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: lbuf.h,v $
+ * Revision 1.6 2001/02/03 16:23:33 mdw
+ * Bug fix: handle a disable during a close-induced flush without dumping
+ * core.
+ *
+ * Revision 1.5 2001/01/20 12:06:01 mdw
+ * Define flags with macros, to ensure unsignedness.
+ *
* Revision 1.4 2000/06/17 10:38:14 mdw
* Add support for variable buffer sizes.
*
* Revision 1.4 2000/06/17 10:38:14 mdw
* Add support for variable buffer sizes.
*
@@
-119,10
+126,9
@@
typedef struct lbuf {
char *buf; /* The actual buffer */
} lbuf;
char *buf; /* The actual buffer */
} lbuf;
-enum {
- LBUF_CR = 1, /* Read a carriage return */
- LBUF_ENABLE = 2 /* Buffer is currently enabled */
-};
+#define LBUF_CR 1u /* Read a carriage return */
+#define LBUF_ENABLE 2u /* Buffer is currently enabled */
+#define LBUF_CLOSE 4u /* Buffer is now closed */
/*----- Functions provided ------------------------------------------------*/
/*----- Functions provided ------------------------------------------------*/