#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <util/alloc.h>
#include <util/exit.h>
Go to the source code of this file.
◆ DEFINE_LIST
create a new list type and its associated member functions
- Parameters
-
name | Type name to give the list container |
type | Type of the elements the list will store |
Definition at line 26 of file list.h.
◆ DEFINE_LIST_WITH_DTOR
#define DEFINE_LIST_WITH_DTOR |
( |
|
name, |
|
|
|
type, |
|
|
|
dtor |
|
) |
| |
DEFINE_LIST
but with a custom element destructor
- Parameters
-
name | Type name to give the list container |
type | Type of the elements the list will store |
dtor | Destructor to be called on elements being released |
Definition at line 34 of file list.h.
◆ LIST_UNUSED
#define LIST_UNUSED /* nothing */ |