projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some regression tests.
[u/mdw/catacomb]
/
lmem.h
diff --git
a/lmem.h
b/lmem.h
index
36204c6
..
3f84c6e
100644
(file)
--- a/
lmem.h
+++ b/
lmem.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: lmem.h,v 1.
3 2000/07/29 21:58:15
mdw Exp $
+ * $Id: lmem.h,v 1.
4 2000/12/06 20:33:27
mdw Exp $
*
* Locked memory allocation
*
*
* Locked memory allocation
*
@@
-30,6
+30,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: lmem.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: lmem.h,v $
+ * Revision 1.4 2000/12/06 20:33:27 mdw
+ * Make flags be macros rather than enumerations, to ensure that they're
+ * unsigned.
+ *
* Revision 1.3 2000/07/29 21:58:15 mdw
* (l_destroy): New function for destroying locked memory blocks.
*
* Revision 1.3 2000/07/29 21:58:15 mdw
* (l_destroy): New function for destroying locked memory blocks.
*
@@
-72,9
+76,7
@@
typedef struct l_node {
unsigned f; /* Various flags */
} l_node;
unsigned f; /* Various flags */
} l_node;
-enum {
- LF_ALLOC = 1
-};
+#define LF_ALLOC 1u
/* --- Locked memory buffer state --- */
/* --- Locked memory buffer state --- */
@@
-88,9
+90,7
@@
typedef struct lmem {
int err; char *emsg; /* Error indicators */
} lmem;
int err; char *emsg; /* Error indicators */
} lmem;
-enum {
- LF_LOCKED = 1
-};
+#define LF_LOCKED 1u
/*----- Functions provided ------------------------------------------------*/
/*----- Functions provided ------------------------------------------------*/