#ifndef _LST_H_
#define _LST_H_
-/* $OpenBSD: lst.h,v 1.30 2015/10/14 13:50:22 espie Exp $ */
+/* $OpenBSD: lst.h,v 1.31 2015/10/14 13:52:11 espie Exp $ */
/* $NetBSD: lst.h,v 1.7 1996/11/06 17:59:12 christos Exp $ */
/*
typedef void (*SimpleProc)(void *);
typedef bool (*FindProc)(void *, void *);
-typedef int (*ForEachNodeWhileProc)(LstNode, void *);
typedef int (*FindProcConst)(void *, const void *);
typedef void (*ForEachProc)(void *, void *);
typedef void *(*DuplicateProc)(void *);
extern void Lst_ForEachFrom(LstNode, ForEachProc, void *);
extern void Lst_Every(Lst, SimpleProc);
-extern void Lst_ForEachNodeWhile(Lst, ForEachNodeWhileProc, void *);
-
extern bool Lst_AddNew(Lst, void *);
/*
* for using the list as a queue
#ifndef _LST_H_
#define _LST_H_
-/* $OpenBSD: lst.h,v 1.1 2014/05/12 19:11:20 espie Exp $ */
+/* $OpenBSD: lst.h,v 1.2 2015/10/14 13:52:11 espie Exp $ */
/* $NetBSD: lst.h,v 1.7 1996/11/06 17:59:12 christos Exp $ */
/*
typedef void (*SimpleProc)(void *);
typedef int (*FindProc)(void *, void *);
-typedef int (*ForEachNodeWhileProc)(LstNode, void *);
typedef int (*FindProcConst)(void *, const void *);
typedef void (*ForEachProc)(void *, void *);
typedef void *(*DuplicateProc)(void *);
extern void Lst_ForEachFrom(LstNode, ForEachProc, void *);
extern void Lst_Every(Lst, SimpleProc);
-extern void Lst_ForEachNodeWhile(Lst, ForEachNodeWhileProc, void *);
-
extern bool Lst_AddNew(Lst, void *);
/*
* for using the list as a queue
-/* $OpenBSD: lstForEachFrom.c,v 1.19 2010/07/19 19:46:44 espie Exp $ */
+/* $OpenBSD: lstForEachFrom.c,v 1.20 2015/10/14 13:52:11 espie Exp $ */
/* $NetBSD: lstForEachFrom.c,v 1.5 1996/11/06 17:59:42 christos Exp $ */
/*
for (tln = l->firstPtr; tln != NULL; tln = tln->nextPtr)
(*proc)(tln->datum);
}
-
-void
-Lst_ForEachNodeWhile(Lst l, ForEachNodeWhileProc proc, void *d)
-{
- LstNode it;
-
- for (it = l->firstPtr; it != NULL; it = it->nextPtr)
- if ((*proc)(it, d) == 0)
- return;
-}