#include <stdlib.h>
#include "stdafx.h"
#include "xlist.h"
Include dependency graph for xlist.c:
Go to the source code of this file.
Functions | |
XList * | xlist_node_new (void *data) |
XList * | xlist_new (void) |
XList * | xlist_clone (XList *list) |
XList * | xlist_clone_with (XList *list, XCloneFunc clone) |
XList * | xlist_tail (XList *list) |
XList * | xlist_prepend (XList *list, void *data) |
XList * | xlist_append (XList *list, void *data) |
XList * | xlist_add_before (XList *list, void *data, XList *node) |
XList * | xlist_add_after (XList *list, void *data, XList *node) |
XList * | xlist_find (XList *list, void *data) |
XList * | xlist_remove (XList *list, XList *node) |
int | xlist_length (XList *list) |
int | xlist_is_empty (XList *list) |
int | xlist_is_singleton (XList *list) |
XList * | xlist_free_with (XList *list, XFreeFunc free_func) |
XList * | xlist_free (XList *list) |
|
Add a new node containing given data after a given node
Definition at line 148 of file xlist.c. References _XList::next, _XList::prev, XList, xlist_node_new(), and xlist_prepend(). |
Here is the call graph for this function:
|
Add a new node containing given data before a given node
Definition at line 128 of file xlist.c. References _XList::next, _XList::prev, XList, xlist_append(), xlist_node_new(), and xlist_prepend(). |
Here is the call graph for this function:
|
Append a new node to a list containing given data
Definition at line 114 of file xlist.c. References _XList::next, _XList::prev, XList, xlist_node_new(), and xlist_tail(). Referenced by xlist_add_before(), xlist_clone(), xlist_clone_with(), xtag_new_parse(), and xtag_parse_tag(). |
Here is the call graph for this function:
|
Clone a list using the default clone function
Definition at line 57 of file xlist.c. References _XList::data, _XList::next, XList, xlist_append(), and xlist_new(). Referenced by xlist_clone_with(). |
Here is the call graph for this function:
|
Clone a list using a custom clone function
Definition at line 72 of file xlist.c. References _XList::data, _XList::next, XCloneFunc, XList, xlist_append(), xlist_clone(), and xlist_new(). |
Here is the call graph for this function:
|
Find the first node containing given data in a list
Definition at line 166 of file xlist.c. References _XList::data, _XList::next, and XList. |
|
Free a list, using anx_free() to free each data element
Definition at line 240 of file xlist.c. References _XList::next, and XList. Referenced by xtag_free(). |
|
Free a list, using a given function to free each data element
Definition at line 221 of file xlist.c. References _XList::data, _XList::next, XFreeFunc, and XList. |
|
Query if a list is empty, ie. contains no items
Definition at line 201 of file xlist.c. References XList. |
|
Query if the list is singleton, ie. contains exactly one item
Definition at line 207 of file xlist.c. References _XList::next, and XList. |
|
Query the number of items in a list
Definition at line 189 of file xlist.c. References _XList::next, and XList. |
|
Create a new list
Definition at line 51 of file xlist.c. Referenced by xlist_clone(), and xlist_clone_with(). |
|
Definition at line 39 of file xlist.c. References _XList::data, _XList::next, _XList::prev, and XList. Referenced by xlist_add_after(), xlist_add_before(), xlist_append(), and xlist_prepend(). |
|
Prepend a new node to a list containing given data
Definition at line 101 of file xlist.c. References _XList::next, _XList::prev, XList, and xlist_node_new(). Referenced by xlist_add_after(), and xlist_add_before(). |
Here is the call graph for this function:
|
Remove a node from a list
Definition at line 177 of file xlist.c. References _XList::next, _XList::prev, and XList. |
|
Return the tail element of a list
Definition at line 92 of file xlist.c. References _XList::next, and XList. Referenced by xlist_append(). |