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/lstAppend.c

    r9 r24  
    3434 * SUCH DAMAGE.
    3535 *
    36  * @(#)lstAppend.c      8.1 (Berkeley) 6/6/93
     36 * $FreeBSD: src/usr.bin/make/lst.lib/lstAppend.c,v 1.6 1999/08/28 01:03:45 peter Exp $
    3737 */
    3838
    3939#ifndef lint
    40 #include <sys/cdefs.h>
    41 __FBSDID("$FreeBSD: src/usr.bin/make/lst.lib/lstAppend.c,v 1.10 2002/10/09 02:00:22 jmallett Exp $");
     40static char sccsid[] = "@(#)lstAppend.c 8.1 (Berkeley) 6/6/93";
    4241#endif /* not lint */
    4342
     
    6160 *      field of the List will be altered if ln is the last node in the
    6261 *      list. lastPtr and firstPtr will alter if the list was empty and
    63  *      ln was NULL.
     62 *      ln was NILLNODE.
    6463 *
    6564 *-----------------------------------------------------------------------
     
    6968    Lst         l;      /* affected list */
    7069    LstNode     ln;     /* node after which to append the datum */
    71     void *      d;      /* said datum */
     70    ClientData  d;      /* said datum */
    7271{
    7372    register List       list;
     
    7574    register ListNode   nLNode;
    7675
    77     if (LstValid (l) && (ln == NULL && LstIsEmpty (l))) {
     76    if (LstValid (l) && (ln == NILLNODE && LstIsEmpty (l))) {
    7877        goto ok;
    7978    }
     
    9190    nLNode->useCount = nLNode->flags = 0;
    9291
    93     if (lNode == NULL) {
     92    if (lNode == NilListNode) {
    9493        if (list->isCirc) {
    9594            nLNode->nextPtr = nLNode->prevPtr = nLNode;
    9695        } else {
    97             nLNode->nextPtr = nLNode->prevPtr = NULL;
     96            nLNode->nextPtr = nLNode->prevPtr = NilListNode;
    9897        }
    9998        list->firstPtr = list->lastPtr = nLNode;
     
    103102
    104103        lNode->nextPtr = nLNode;
    105         if (nLNode->nextPtr != NULL) {
     104        if (nLNode->nextPtr != NilListNode) {
    106105            nLNode->nextPtr->prevPtr = nLNode;
    107106        }
Note: See TracChangeset for help on using the changeset viewer.