libopm  0.1
Macros | Functions
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

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

Referenced by opm_active(), opm_cycle(), and opm_endscan().

#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

Referenced by opm_active(), opm_cycle(), and opm_scan().

Function Documentation

OPM_NODE_T* libopm_node_create ( void *  )
OPM_LIST_T* libopm_list_create ( void  )
OPM_NODE_T* libopm_list_add ( OPM_LIST_T ,
OPM_NODE_T  
)
OPM_NODE_T* libopm_list_remove ( OPM_LIST_T ,
OPM_NODE_T  
)
void libopm_list_free ( OPM_LIST_T )

References MyFree.

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

void libopm_node_free ( OPM_NODE_T )

Generated for libopm by  doxygen 1.8.11