Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
list.h File Reference
#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>
Include dependency graph for list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LIST_UNUSED   /* nothing */
 
#define DEFINE_LIST(name, type)   DEFINE_LIST_WITH_DTOR(name, type, name##_noop_)
 
#define DEFINE_LIST_WITH_DTOR(name, type, dtor)
 

Macro Definition Documentation

◆ DEFINE_LIST

#define DEFINE_LIST (   name,
  type 
)    DEFINE_LIST_WITH_DTOR(name, type, name##_noop_)

create a new list type and its associated member functions

Parameters
nameType name to give the list container
typeType 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
nameType name to give the list container
typeType of the elements the list will store
dtorDestructor to be called on elements being released

Definition at line 34 of file list.h.

◆ LIST_UNUSED

#define LIST_UNUSED   /* nothing */

Definition at line 18 of file list.h.