forked from ariadne/pkgconf
libpkgconf: Add a helper to zero `pkgconf_list_t`s
parent
21ffd343e1
commit
2d201af326
|
@ -34,6 +34,14 @@ typedef struct {
|
|||
|
||||
#define PKGCONF_LIST_INITIALIZER { NULL, NULL, 0 }
|
||||
|
||||
static inline void
|
||||
pkgconf_list_zero(pkgconf_list_t *list)
|
||||
{
|
||||
list->head = NULL;
|
||||
list->tail = NULL;
|
||||
list->length = 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
pkgconf_node_insert(pkgconf_node_t *node, void *data, pkgconf_list_t *list)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue