Changeset 24 for branches/FREEBSD/src/kmk/lst.lib/lstNext.c
- Timestamp:
- Nov 26, 2002, 10:24:54 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FREEBSD/src/kmk/lst.lib/lstNext.c
r9 r24 34 34 * SUCH DAMAGE. 35 35 * 36 * @(#)lstNext.c 8.1 (Berkeley) 6/6/9336 * $FreeBSD: src/usr.bin/make/lst.lib/lstNext.c,v 1.6 1999/08/28 01:03:55 peter Exp $ 37 37 */ 38 38 39 39 #ifndef lint 40 #include <sys/cdefs.h> 41 __FBSDID("$FreeBSD: src/usr.bin/make/lst.lib/lstNext.c,v 1.9 2002/10/09 02:00:22 jmallett Exp $"); 40 static char sccsid[] = "@(#)lstNext.c 8.1 (Berkeley) 6/6/93"; 42 41 #endif /* not lint */ 43 42 … … 60 59 * 61 60 * Results: 62 * The next node or N ULLif the list has yet to be opened. Also63 * if the list is non-circular and the end has been reached, N ULL61 * The next node or NILLNODE if the list has yet to be opened. Also 62 * if the list is non-circular and the end has been reached, NILLNODE 64 63 * is returned. 65 64 * … … 78 77 if ((LstValid (l) == FALSE) || 79 78 (list->isOpen == FALSE)) { 80 return (N ULL);79 return (NILLNODE); 81 80 } 82 81 83 82 list->prevPtr = list->curPtr; 84 83 85 if (list->curPtr == N ULL) {84 if (list->curPtr == NilListNode) { 86 85 if (list->atEnd == Unknown) { 87 86 /* … … 93 92 list->atEnd = Middle; 94 93 } else { 95 tln = N ULL;94 tln = NilListNode; 96 95 list->atEnd = Tail; 97 96 } … … 100 99 list->curPtr = tln; 101 100 102 if (tln == list->firstPtr || tln == N ULL) {101 if (tln == list->firstPtr || tln == NilListNode) { 103 102 /* 104 103 * If back at the front, then we've hit the end...
Note:
See TracChangeset
for help on using the changeset viewer.