~ubuntu-branches/ubuntu/hardy/pmake/hardy

« back to all changes in this revision

Viewing changes to lst.lib/lstAppend.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2004-03-12 13:14:27 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040312131427-us94ehmatt3kxhm8
Tags: 1.98-3
* mk/bsd.man.mk:
  + Use symlinks instead of hard links when using the MLINKS directive
    to link manual pages, courtesy of Robert Millan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: lstAppend.c,v 1.7 1997/09/28 03:31:16 lukem Exp $      */
 
1
/*      $NetBSD: lstAppend.c,v 1.9 2003/08/07 11:15:02 agc Exp $        */
2
2
 
3
3
/*
4
4
 * Copyright (c) 1988, 1989, 1990, 1993
15
15
 * 2. Redistributions in binary form must reproduce the above copyright
16
16
 *    notice, this list of conditions and the following disclaimer in the
17
17
 *    documentation and/or other materials provided with the distribution.
18
 
 * 3. All advertising materials mentioning features or use of this software
19
 
 *    must display the following acknowledgement:
20
 
 *      This product includes software developed by the University of
21
 
 *      California, Berkeley and its contributors.
22
 
 * 4. Neither the name of the University nor the names of its contributors
 
18
 * 3. Neither the name of the University nor the names of its contributors
23
19
 *    may be used to endorse or promote products derived from this software
24
20
 *    without specific prior written permission.
25
21
 *
37
33
 */
38
34
 
39
35
#ifdef MAKE_BOOTSTRAP
40
 
static char rcsid[] = "$NetBSD: lstAppend.c,v 1.7 1997/09/28 03:31:16 lukem Exp $";
 
36
static char rcsid[] = "$NetBSD: lstAppend.c,v 1.9 2003/08/07 11:15:02 agc Exp $";
41
37
#else
42
38
#include <sys/cdefs.h>
43
39
#ifndef lint
44
40
#if 0
45
41
static char sccsid[] = "@(#)lstAppend.c 8.1 (Berkeley) 6/6/93";
46
42
#else
47
 
__RCSID("$NetBSD: lstAppend.c,v 1.7 1997/09/28 03:31:16 lukem Exp $");
 
43
__RCSID("$NetBSD: lstAppend.c,v 1.9 2003/08/07 11:15:02 agc Exp $");
48
44
#endif
49
45
#endif /* not lint */
50
46
#endif
61
57
 * Lst_Append --
62
58
 *      Create a new node and add it to the given list after the given node.
63
59
 *
 
60
 * Input:
 
61
 *      l               affected list
 
62
 *      ln              node after which to append the datum
 
63
 *      d               said datum
 
64
 *
64
65
 * Results:
65
66
 *      SUCCESS if all went well.
66
67
 *
73
74
 *-----------------------------------------------------------------------
74
75
 */
75
76
ReturnStatus
76
 
Lst_Append (l, ln, d)
77
 
    Lst         l;      /* affected list */
78
 
    LstNode     ln;     /* node after which to append the datum */
79
 
    ClientData  d;      /* said datum */
 
77
Lst_Append(Lst l, LstNode ln, ClientData d)
80
78
{
81
 
    register List       list;
82
 
    register ListNode   lNode;
83
 
    register ListNode   nLNode;
 
79
    List        list;
 
80
    ListNode    lNode;
 
81
    ListNode    nLNode;
84
82
 
85
83
    if (LstValid (l) && (ln == NILLNODE && LstIsEmpty (l))) {
86
84
        goto ok;