version 1.10, 1999/12/18 21:58:07 |
version 1.11, 1999/12/19 00:04:25 |
|
|
|
|
typedef struct Lst *Lst; |
typedef struct Lst *Lst; |
typedef struct LstNode *LstNode; |
typedef struct LstNode *LstNode; |
|
typedef int (*FindProc)__P((ClientData, ClientData)); |
|
|
/* |
/* |
* NOFREE can be used as the freeProc to Lst_Destroy when the elements are |
* NOFREE can be used as the freeProc to Lst_Destroy when the elements are |
|
|
/* |
/* |
* Functions for entire lists |
* Functions for entire lists |
*/ |
*/ |
|
|
/* Find an element in a list */ |
/* Find an element in a list */ |
LstNode Lst_Find __P((Lst, ClientData, |
#define Lst_Find(l, cProc, d) Lst_FindFrom(Lst_First(l), cProc, d) |
int (*)(ClientData, ClientData))); |
|
/* Find an element starting from somewhere */ |
/* Find an element starting from somewhere */ |
LstNode Lst_FindFrom __P((Lst, LstNode, ClientData, |
LstNode Lst_FindFrom __P((LstNode, FindProc, ClientData)); |
int (*cProc)(ClientData, ClientData))); |
|
/* |
/* |
* See if the given datum is on the list. Returns the LstNode containing |
* See if the given datum is on the list. Returns the LstNode containing |
* the datum |
* the datum |