Macros and functions to help memory allocation.
Type used to represent a single cell inside a doubly linked list.
Definition type_dlist.h:27
struct dcell * previous
Pointer to the previous cell (NULL if this is the left sentinel).
Definition type_dlist.h:32
struct dcell * next
Pointer to the next cell (NULL if this is the right sentinel).
Definition type_dlist.h:30
uint val
The value of the cell (not meaningful if the cell is a sentinel).
Definition type_dlist.h:28
Type used to represent a doubly linked list.
Definition type_dlist.h:40
uint size
Size of the list.
Definition type_dlist.h:41
dcell * lsent
A pointer to the left sentinel.
Definition type_dlist.h:42
dcell * rsent
A pointer to the right sentinel.
Definition type_dlist.h:43
void insertprevious_dlist(dlist *, dcell *, int)
Insertion of a new cell before a given one.
Definition type_dlist.c:58
void delete_dlist(dlist *)
Release of a list.
Definition type_dlist.c:23
void concat_dlist(dlist *, dlist *)
Merging of two lists.
Definition type_dlist.c:93
void insertnext_dlist(dlist *, dcell *, int)
Insertion of a new cell after a given one.
Definition type_dlist.c:41
void deletecell_dlist(dlist *, dcell *)
Release of a single cell.
Definition type_dlist.c:76
dlist * create_dlist(void)
Creation of an empty list.
Definition type_dlist.c:8