~ubuntu-branches/ubuntu/dapper/pmake/dapper

« back to all changes in this revision

Viewing changes to lst.lib/lstDestroy.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: lstDestroy.c,v 1.8 1997/09/28 03:31:21 lukem Exp $     */
 
1
/*      $NetBSD: lstDestroy.c,v 1.10 2003/08/07 11:15:04 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: lstDestroy.c,v 1.8 1997/09/28 03:31:21 lukem Exp $";
 
36
static char rcsid[] = "$NetBSD: lstDestroy.c,v 1.10 2003/08/07 11:15:04 agc Exp $";
41
37
#else
42
38
#include <sys/cdefs.h>
43
39
#ifndef lint
44
40
#if 0
45
41
static char sccsid[] = "@(#)lstDestroy.c        8.1 (Berkeley) 6/6/93";
46
42
#else
47
 
__RCSID("$NetBSD: lstDestroy.c,v 1.8 1997/09/28 03:31:21 lukem Exp $");
 
43
__RCSID("$NetBSD: lstDestroy.c,v 1.10 2003/08/07 11:15:04 agc Exp $");
48
44
#endif
49
45
#endif /* not lint */
50
46
#endif
72
68
 *-----------------------------------------------------------------------
73
69
 */
74
70
void
75
 
Lst_Destroy (l, freeProc)
76
 
    Lst                 l;
77
 
    register void       (*freeProc) __P((ClientData));
 
71
Lst_Destroy(Lst l, void (*freeProc)(ClientData))
78
72
{
79
 
    register ListNode   ln;
80
 
    register ListNode   tln = NilListNode;
81
 
    register List       list = (List)l;
 
73
    ListNode    ln;
 
74
    ListNode    tln = NilListNode;
 
75
    List        list = (List)l;
82
76
 
83
77
    if (l == NILLST || ! l) {
84
78
        /*