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 File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _listList
 
typedef struct _list_iteratorListIterator
 

Functions

void lists_init (void)
 
void lists_cleanup (void)
 
void addToList (List *, void *)
 
void addToListHead (List *, void *)
 
void * getHeadOfList (List)
 
void * peekListElement (List, size_t)
 
void * getListElement (List, size_t)
 
void * peekAheadInList (List)
 
size_t listLen (List)
 
void removeFromList (List, void *)
 
void freeList (List *)
 
ListIterator getListIterator (List)
 
void * currentListElement (ListIterator)
 
void * nextListElement (ListIterator)
 
void resetListIterator (ListIterator)
 
void freeListIterator (ListIterator)
 

Typedef Documentation

◆ List

typedef struct _list* List

Definition at line 11 of file list.h.

◆ ListIterator

typedef struct _list_iterator* ListIterator

Definition at line 13 of file list.h.

Function Documentation

◆ addToList()

void addToList ( List ,
void *   
)

◆ addToListHead()

void addToListHead ( List ,
void *   
)

Definition at line 234 of file list.c.

References get_l(), get_lh(), _list::head, _list::len, _listheader::next, _listheader::payload, and _list::tail.

Referenced by find_recursion_core().

◆ currentListElement()

void* currentListElement ( ListIterator  )

Definition at line 376 of file list.c.

References _list_iterator::cur, and _listheader::payload.

◆ freeList()

void freeList ( List )

◆ freeListIterator()

void freeListIterator ( ListIterator  )

◆ getHeadOfList()

◆ getListElement()

void* getListElement ( List  ,
size_t   
)

◆ getListIterator()

◆ listLen()

◆ lists_cleanup()

void lists_cleanup ( void  )

Definition at line 59 of file list.c.

References cleanup::data, free(), lCleanupPool, lhCleanupPool, and cleanup::next.

Referenced by WcalcController::quit:.

◆ lists_init()

void lists_init ( void  )

Definition at line 52 of file list.c.

References fill_l_pool(), and fill_lh_pool().

Referenced by main().

◆ nextListElement()

◆ peekAheadInList()

void* peekAheadInList ( List  )
inline

Definition at line 343 of file list.c.

References _list::head, and _listheader::payload.

Referenced by find_recursion_core().

◆ peekListElement()

void* peekListElement ( List  ,
size_t   
)

Definition at line 284 of file list.c.

References _list::head, _list::len, _listheader::next, and _listheader::payload.

Referenced by extract_vars(), and getrealnvar().

◆ removeFromList()

void removeFromList ( List  ,
void *   
)

◆ resetListIterator()

void resetListIterator ( ListIterator  )

Definition at line 398 of file list.c.

References _list_iterator::cur, _list::head, and _list_iterator::l.

Referenced by find_recursion_core().