Changeset 24 for branches/FREEBSD/src/kmk/lst.lib/lstInt.h
- Timestamp:
- Nov 26, 2002, 10:24:54 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FREEBSD/src/kmk/lst.lib/lstInt.h
r9 r24 35 35 * 36 36 * from: @(#)lstInt.h 8.1 (Berkeley) 6/6/93 37 * $FreeBSD: src/usr.bin/make/lst.lib/lstInt.h,v 1. 10 2002/07/15 06:57:25 jmallettExp $37 * $FreeBSD: src/usr.bin/make/lst.lib/lstInt.h,v 1.7 1999/08/28 01:03:53 peter Exp $ 38 38 */ 39 39 … … 51 51 struct ListNode *prevPtr; /* previous element in list */ 52 52 struct ListNode *nextPtr; /* next in list */ 53 int useCount:8, /* Count of functions using the node.53 short useCount:8, /* Count of functions using the node. 54 54 * node may not be deleted until count 55 55 * goes to 0 */ 56 56 flags:8; /* Node status flags */ 57 void *datum; /* datum associated with this element */57 ClientData datum; /* datum associated with this element */ 58 58 } *ListNode; 59 59 /* … … 61 61 */ 62 62 #define LN_DELETED 0x0001 /* List node should be removed when done */ 63 64 #define NilListNode ((ListNode)-1) 63 65 64 66 typedef enum { … … 76 78 Where atEnd; /* Where in the list the last access was */ 77 79 Boolean isOpen; /* true if list has been Lst_Open'ed */ 78 ListNode curPtr; /* current node, if open. N ULLif80 ListNode curPtr; /* current node, if open. NilListNode if 79 81 * *just* opened */ 80 82 ListNode prevPtr; /* Previous node, if open. Used by 81 83 * Lst_Remove */ 82 84 } *List; 85 86 #define NilList ((List)-1) 83 87 84 88 /* … … 92 96 * Return TRUE if the list l is valid 93 97 */ 94 #define LstValid(l) (((Lst)l == N ULL) ? FALSE : TRUE)98 #define LstValid(l) (((Lst)l == NILLST) ? FALSE : TRUE) 95 99 96 100 /* … … 98 102 * Return TRUE if the LstNode ln is valid with respect to l 99 103 */ 100 #define LstNodeValid(ln, l) ((((LstNode)ln) == N ULL) ? FALSE : TRUE)104 #define LstNodeValid(ln, l) ((((LstNode)ln) == NILLNODE) ? FALSE : TRUE) 101 105 102 106 /* … … 104 108 * TRUE if the list l is empty. 105 109 */ 106 #define LstIsEmpty(l) (((List)l)->firstPtr == N ULL)110 #define LstIsEmpty(l) (((List)l)->firstPtr == NilListNode) 107 111 108 112 #endif /* _LSTINT_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.