~ubuntu-branches/ubuntu/karmic/pmake/karmic

« back to all changes in this revision

Viewing changes to lst.lib/lstForEach.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: lstForEach.c,v 1.8 1997/09/28 03:31:25 lukem Exp $     */
 
1
/*      $NetBSD: lstForEach.c,v 1.10 2003/08/07 11:15:05 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: lstForEach.c,v 1.8 1997/09/28 03:31:25 lukem Exp $";
 
36
static char rcsid[] = "$NetBSD: lstForEach.c,v 1.10 2003/08/07 11:15:05 agc Exp $";
41
37
#else
42
38
#include <sys/cdefs.h>
43
39
#ifndef lint
44
40
#if 0
45
41
static char sccsid[] = "@(#)lstForEach.c        8.1 (Berkeley) 6/6/93";
46
42
#else
47
 
__RCSID("$NetBSD: lstForEach.c,v 1.8 1997/09/28 03:31:25 lukem Exp $");
 
43
__RCSID("$NetBSD: lstForEach.c,v 1.10 2003/08/07 11:15:05 agc Exp $");
48
44
#endif
49
45
#endif /* not lint */
50
46
#endif
73
69
 */
74
70
/*VARARGS2*/
75
71
void
76
 
Lst_ForEach (l, proc, d)
77
 
    Lst                 l;
78
 
    register int        (*proc) __P((ClientData, ClientData));
79
 
    register ClientData d;
 
72
Lst_ForEach(Lst l, int (*proc)(ClientData, ClientData), ClientData d)
80
73
{
81
74
    Lst_ForEachFrom(l, Lst_First(l), proc, d);
82
75
}