wcalc  2.5
About: Wcalc is a natural-expression command-line calculator.
  Fossies Dox: wcalc-2.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

list.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is the header of a basic, generic list (well, technically, a
4  * queue) object implementation.
5  *
6  */
7 #ifndef WCALC_PACKETLIST
8 #define WCALC_PACKETLIST
9 
10 struct _list;
11 typedef struct _list *List;
12 struct _list_iterator;
13 typedef struct _list_iterator *ListIterator;
14 
15 /* this is for the memory pools */
16 void lists_init(void);
17 void lists_cleanup(void);
18 
19 /* List operations */
20 void addToList(List *,
21  void *);
22 void addToListHead(List *,
23  void *);
24 void *getHeadOfList(List /*@null@*/);
25 void *peekListElement(List /*@null@*/, size_t);
26 void *getListElement(List, size_t);
27 void *peekAheadInList(List);
28 size_t listLen(List /*@null@*/);
29 void removeFromList(List, void *);
30 void freeList(List *);
31 
32 /* ListIterator operations */
38 #endif // ifndef WCALC_PACKETLIST
39 /* vim:set expandtab: */
peekAheadInList
void * peekAheadInList(List)
Definition: list.c:343
peekListElement
void * peekListElement(List, size_t)
Definition: list.c:284
_list_iterator
Definition: list.c:27
getHeadOfList
void * getHeadOfList(List)
Definition: list.c:264
listLen
size_t listLen(List)
Definition: list.c:352
_list
Definition: list.c:19
addToList
void addToList(List *, void *)
Definition: list.c:204
ListIterator
struct _list_iterator * ListIterator
Definition: list.h:13
removeFromList
void removeFromList(List, void *)
Definition: list.c:414
resetListIterator
void resetListIterator(ListIterator)
Definition: list.c:398
List
struct _list * List
Definition: list.h:11
freeList
void freeList(List *)
Definition: list.c:135
getListIterator
ListIterator getListIterator(List)
Definition: list.c:362
currentListElement
void * currentListElement(ListIterator)
Definition: list.c:376
nextListElement
void * nextListElement(ListIterator)
Definition: list.c:385
lists_cleanup
void lists_cleanup(void)
Definition: list.c:59
addToListHead
void addToListHead(List *, void *)
Definition: list.c:234
freeListIterator
void freeListIterator(ListIterator)
Definition: list.c:406
lists_init
void lists_init(void)
Definition: list.c:52
getListElement
void * getListElement(List, size_t)
Definition: list.c:305