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

    r9 r24  
    3434 * SUCH DAMAGE.
    3535 *
    36  * @(#)lstInsert.c      8.1 (Berkeley) 6/6/93
     36 * $FreeBSD: src/usr.bin/make/lst.lib/lstInsert.c,v 1.6 1999/08/28 01:03:52 peter Exp $
    3737 */
    3838
    3939#ifndef lint
    40 #include <sys/cdefs.h>
    41 __FBSDID("$FreeBSD: src/usr.bin/make/lst.lib/lstInsert.c,v 1.10 2002/10/09 02:00:22 jmallett Exp $");
     40static char sccsid[] = "@(#)lstInsert.c 8.1 (Berkeley) 6/6/93";
    4241#endif /* not lint */
    4342
     
    6867    Lst                 l;      /* list to manipulate */
    6968    LstNode             ln;     /* node before which to insert d */
    70     void *              d;      /* datum to be inserted */
     69    ClientData          d;      /* datum to be inserted */
    7170{
    7271    register ListNode   nLNode; /* new lnode for d */
     
    7877     * check validity of arguments
    7978     */
    80     if (LstValid (l) && (LstIsEmpty (l) && ln == NULL))
     79    if (LstValid (l) && (LstIsEmpty (l) && ln == NILLNODE))
    8180        goto ok;
    8281
     
    9190    nLNode->useCount = nLNode->flags = 0;
    9291
    93     if (ln == NULL) {
     92    if (ln == NILLNODE) {
    9493        if (list->isCirc) {
    9594            nLNode->prevPtr = nLNode->nextPtr = nLNode;
    9695        } else {
    97             nLNode->prevPtr = nLNode->nextPtr = NULL;
     96            nLNode->prevPtr = nLNode->nextPtr = NilListNode;
    9897        }
    9998        list->firstPtr = list->lastPtr = nLNode;
     
    102101        nLNode->nextPtr = lNode;
    103102
    104         if (nLNode->prevPtr != NULL) {
     103        if (nLNode->prevPtr != NilListNode) {
    105104            nLNode->prevPtr->nextPtr = nLNode;
    106105        }
Note: See TracChangeset for help on using the changeset viewer.