#include <stdbool.h>
#include "comparators.h"
Go to the source code of this file.
◆ list
◆ TYPE
◆ TYPE
Enumerator |
---|
INT | |
STRING | |
DOM_STRING | |
NODE | |
◆ list_add()
void list_add |
( |
struct list * | list, |
|
|
void * | data ) |
Add data to the tail of the list.
◆ list_clone()
struct list * list_clone |
( |
struct list * | list | ) |
|
◆ list_contains()
bool list_contains |
( |
struct list * | list, |
|
|
void * | data, |
|
|
comparator | comparator ) |
Tests if data is equal to any element in the list.
◆ list_contains_all()
bool list_contains_all |
( |
struct list * | superList, |
|
|
struct list * | subList, |
|
|
comparator | comparator ) |
Tests if superlist contains all elements in sublist. Order is not important.
◆ list_destroy()
void list_destroy |
( |
struct list * | list | ) |
|
◆ list_new()
◆ list_remove()
bool list_remove |
( |
struct list * | list, |
|
|
void * | data ) |
Remove element containing data from list. The list element is freed, but the caller must free the data itself if necessary.
Returns true if data was found in the list.