~ubuntu-branches/ubuntu/oneiric/pmake/oneiric

« back to all changes in this revision

Viewing changes to lst.lib/lstDupl.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2005-07-07 10:20:56 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050707102056-3nh411zy3wbwuwyr
Tags: 1.111-1
* New upstream snapshot.
* This version properly parses arguments and does not crash when parameters
  are missing (Closes: #287336, #316394).
* debian/control:
  + Set policy to 3.6.2.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: lstDupl.c,v 1.10 2003/08/07 11:15:04 agc Exp $ */
 
1
/*      $NetBSD: lstDupl.c,v 1.12 2005/02/16 15:11:53 christos Exp $    */
2
2
 
3
3
/*
4
4
 * Copyright (c) 1988, 1989, 1990, 1993
32
32
 * SUCH DAMAGE.
33
33
 */
34
34
 
35
 
#ifdef MAKE_BOOTSTRAP
36
 
static char rcsid[] = "$NetBSD: lstDupl.c,v 1.10 2003/08/07 11:15:04 agc Exp $";
 
35
#ifndef MAKE_NATIVE
 
36
static char rcsid[] = "$NetBSD: lstDupl.c,v 1.12 2005/02/16 15:11:53 christos Exp $";
37
37
#else
38
38
#include <sys/cdefs.h>
39
39
#ifndef lint
40
40
#if 0
41
41
static char sccsid[] = "@(#)lstDupl.c   8.1 (Berkeley) 6/6/93";
42
42
#else
43
 
__RCSID("$NetBSD: lstDupl.c,v 1.10 2003/08/07 11:15:04 agc Exp $");
 
43
__RCSID("$NetBSD: lstDupl.c,v 1.12 2005/02/16 15:11:53 christos Exp $");
44
44
#endif
45
45
#endif /* not lint */
46
46
#endif
81
81
        return (NILLST);
82
82
    }
83
83
 
84
 
    nl = Lst_Init (list->isCirc);
 
84
    nl = Lst_Init(list->isCirc);
85
85
    if (nl == NILLST) {
86
86
        return (NILLST);
87
87
    }
89
89
    ln = list->firstPtr;
90
90
    while (ln != NilListNode) {
91
91
        if (copyProc != NOCOPY) {
92
 
            if (Lst_AtEnd (nl, (*copyProc) (ln->datum)) == FAILURE) {
 
92
            if (Lst_AtEnd(nl, (*copyProc) (ln->datum)) == FAILURE) {
93
93
                return (NILLST);
94
94
            }
95
 
        } else if (Lst_AtEnd (nl, ln->datum) == FAILURE) {
 
95
        } else if (Lst_AtEnd(nl, ln->datum) == FAILURE) {
96
96
            return (NILLST);
97
97
        }
98
98