libopm 0.1
list.h File Reference

Macros

#define LIST_FOREACH(pos, head)   for (pos = (head); pos != NULL; pos = pos->next)
 
#define LIST_FOREACH_SAFE(pos, n, head)   for (pos = (head), n = pos ? pos->next : NULL; pos != NULL; pos = n, n = pos ? pos->next : NULL)
 
#define LIST_FOREACH_PREV(pos, head)   for (pos = (head); pos != NULL; pos = pos->prev)
 
#define LIST_SIZE(list)   list->elements
 

Functions

OPM_NODE_Tlibopm_node_create (void *)
 
OPM_LIST_Tlibopm_list_create (void)
 
OPM_NODE_Tlibopm_list_add (OPM_LIST_T *, OPM_NODE_T *)
 
OPM_NODE_Tlibopm_list_remove (OPM_LIST_T *, OPM_NODE_T *)
 
void libopm_list_free (OPM_LIST_T *)
 
void libopm_node_free (OPM_NODE_T *)
 

Macro Definition Documentation

◆ LIST_FOREACH

#define LIST_FOREACH ( pos,
head )   for (pos = (head); pos != NULL; pos = pos->next)

Referenced by opm_endscan().

◆ LIST_FOREACH_SAFE

#define LIST_FOREACH_SAFE ( pos,
n,
head )   for (pos = (head), n = pos ? pos->next : NULL; pos != NULL; pos = n, n = pos ? pos->next : NULL)

◆ LIST_FOREACH_PREV

#define LIST_FOREACH_PREV ( pos,
head )   for (pos = (head); pos != NULL; pos = pos->prev)

◆ LIST_SIZE

#define LIST_SIZE ( list)    list->elements

Referenced by opm_active(), and opm_scan().

Function Documentation

◆ libopm_node_create()

◆ libopm_list_create()

◆ libopm_list_add()

◆ libopm_list_remove()

◆ libopm_list_free()

void libopm_list_free ( OPM_LIST_T * list)

References MyFree.

Referenced by opm_free(), and opm_remote_free().

◆ libopm_node_free()

void libopm_node_free ( OPM_NODE_T * node)

References MyFree.

Referenced by opm_end(), opm_free(), and opm_remote_free().


Generated for libopm by  doxygen 1.11.0