Ignore:
Timestamp:
Nov 26, 2002, 10:24:54 PM (23 years ago)
Author:
bird
Message:

Import of RELENG_4_7_0_RELEASE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FREEBSD/src/kmk/lst.lib/lstNext.c

    r9 r24  
    3434 * SUCH DAMAGE.
    3535 *
    36  * @(#)lstNext.c        8.1 (Berkeley) 6/6/93
     36 * $FreeBSD: src/usr.bin/make/lst.lib/lstNext.c,v 1.6 1999/08/28 01:03:55 peter Exp $
    3737 */
    3838
    3939#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 $");
     40static char sccsid[] = "@(#)lstNext.c   8.1 (Berkeley) 6/6/93";
    4241#endif /* not lint */
    4342
     
    6059 *
    6160 * Results:
    62  *      The next node or NULL if the list has yet to be opened. Also
    63  *      if the list is non-circular and the end has been reached, NULL
     61 *      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
    6463 *      is returned.
    6564 *
     
    7877    if ((LstValid (l) == FALSE) ||
    7978        (list->isOpen == FALSE)) {
    80             return (NULL);
     79            return (NILLNODE);
    8180    }
    8281
    8382    list->prevPtr = list->curPtr;
    8483
    85     if (list->curPtr == NULL) {
     84    if (list->curPtr == NilListNode) {
    8685        if (list->atEnd == Unknown) {
    8786            /*
     
    9392            list->atEnd = Middle;
    9493        } else {
    95             tln = NULL;
     94            tln = NilListNode;
    9695            list->atEnd = Tail;
    9796        }
     
    10099        list->curPtr = tln;
    101100
    102         if (tln == list->firstPtr || tln == NULL) {
     101        if (tln == list->firstPtr || tln == NilListNode) {
    103102            /*
    104103             * If back at the front, then we've hit the end...
Note: See TracChangeset for help on using the changeset viewer.