list.h

This graph shows which files directly or indirectly include list.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "3" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.c"]
    "2" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.h"]
    "9" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c"]
    "8" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.h"]
    "44" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.c"]
    "43" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.h"]
    "6" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c"]
    "7" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.h"]
    "13" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.c"]
    "12" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.h"]
    "38" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.c"]
    "37" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.h"]
    "34" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.c"]
    "35" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.h"]
    "16" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/erl_nif_priv.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/erl_nif_priv.h"]
    "45" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h"]
    "20" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.c"]
    "46" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.h"]
    "4" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.c"]
    "36" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.h"]
    "22" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.c"]
    "21" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.h"]
    "1" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/list.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/list.h" fillcolor="#BFBFBF"]
    "33" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/mailbox.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/mailbox.c"]
    "40" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/mailbox.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/mailbox.h"]
    "14" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/memory.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/memory.c"]
    "10" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.c"]
    "24" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.h"]
    "5" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.c"]
    "29" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.h"]
    "11" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/opcodesswitch.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/opcodesswitch.h"]
    "47" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/overflow_helpers.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/overflow_helpers.h"]
    "25" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/platform_nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/platform_nifs.h"]
    "30" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.c"]
    "31" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.h"]
    "17" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.c"]
    "39" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.h"]
    "18" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.c"]
    "41" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.h"]
    "19" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.c"]
    "48" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.h"]
    "15" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.c"]
    "32" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.h"]
    "27" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.c"]
    "26" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.h"]
    "49" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/synclist.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/synclist.h"]
    "28" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/sys.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/sys.h"]
    "23" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.c"]
    "42" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.h"]
    "51" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/timer_list.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/timer_list.c"]
    "50" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/timer_list.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/timer_list.h"]
    "2" -> "3" [dir=back tooltip="include"]
    "2" -> "4" [dir=back tooltip="include"]
    "2" -> "5" [dir=back tooltip="include"]
    "8" -> "9" [dir=back tooltip="include"]
    "8" -> "10" [dir=back tooltip="include"]
    "8" -> "5" [dir=back tooltip="include"]
    "8" -> "11" [dir=back tooltip="include"]
    "43" -> "44" [dir=back tooltip="include"]
    "43" -> "22" [dir=back tooltip="include"]
    "43" -> "11" [dir=back tooltip="include"]
    "7" -> "8" [dir=back tooltip="include"]
    "7" -> "6" [dir=back tooltip="include"]
    "7" -> "12" [dir=back tooltip="include"]
    "7" -> "16" [dir=back tooltip="include"]
    "7" -> "20" [dir=back tooltip="include"]
    "7" -> "4" [dir=back tooltip="include"]
    "7" -> "21" [dir=back tooltip="include"]
    "7" -> "14" [dir=back tooltip="include"]
    "7" -> "10" [dir=back tooltip="include"]
    "7" -> "24" [dir=back tooltip="include"]
    "7" -> "5" [dir=back tooltip="include"]
    "7" -> "29" [dir=back tooltip="include"]
    "7" -> "30" [dir=back tooltip="include"]
    "7" -> "31" [dir=back tooltip="include"]
    "7" -> "18" [dir=back tooltip="include"]
    "7" -> "19" [dir=back tooltip="include"]
    "7" -> "32" [dir=back tooltip="include"]
    "7" -> "26" [dir=back tooltip="include"]
    "7" -> "23" [dir=back tooltip="include"]
    "12" -> "13" [dir=back tooltip="include"]
    "12" -> "14" [dir=back tooltip="include"]
    "12" -> "11" [dir=back tooltip="include"]
    "12" -> "15" [dir=back tooltip="include"]
    "37" -> "9" [dir=back tooltip="include"]
    "37" -> "38" [dir=back tooltip="include"]
    "37" -> "34" [dir=back tooltip="include"]
    "37" -> "4" [dir=back tooltip="include"]
    "37" -> "22" [dir=back tooltip="include"]
    "37" -> "5" [dir=back tooltip="include"]
    "37" -> "11" [dir=back tooltip="include"]
    "37" -> "30" [dir=back tooltip="include"]
    "37" -> "31" [dir=back tooltip="include"]
    "37" -> "17" [dir=back tooltip="include"]
    "37" -> "19" [dir=back tooltip="include"]
    "37" -> "27" [dir=back tooltip="include"]
    "35" -> "9" [dir=back tooltip="include"]
    "35" -> "6" [dir=back tooltip="include"]
    "35" -> "34" [dir=back tooltip="include"]
    "35" -> "14" [dir=back tooltip="include"]
    "35" -> "5" [dir=back tooltip="include"]
    "35" -> "18" [dir=back tooltip="include"]
    "16" -> "6" [dir=back tooltip="include"]
    "16" -> "4" [dir=back tooltip="include"]
    "16" -> "14" [dir=back tooltip="include"]
    "16" -> "17" [dir=back tooltip="include"]
    "16" -> "18" [dir=back tooltip="include"]
    "16" -> "19" [dir=back tooltip="include"]
    "45" -> "8" [dir=back tooltip="include"]
    "45" -> "24" [dir=back tooltip="include"]
    "45" -> "29" [dir=back tooltip="include"]
    "45" -> "11" [dir=back tooltip="include"]
    "45" -> "25" [dir=back tooltip="include"]
    "45" -> "39" [dir=back tooltip="include"]
    "46" -> "20" [dir=back tooltip="include"]
    "46" -> "10" [dir=back tooltip="include"]
    "46" -> "5" [dir=back tooltip="include"]
    "36" -> "2" [dir=back tooltip="include"]
    "36" -> "6" [dir=back tooltip="include"]
    "36" -> "7" [dir=back tooltip="include"]
    "36" -> "37" [dir=back tooltip="include"]
    "36" -> "4" [dir=back tooltip="include"]
    "36" -> "10" [dir=back tooltip="include"]
    "36" -> "24" [dir=back tooltip="include"]
    "36" -> "30" [dir=back tooltip="include"]
    "36" -> "31" [dir=back tooltip="include"]
    "36" -> "17" [dir=back tooltip="include"]
    "36" -> "39" [dir=back tooltip="include"]
    "36" -> "32" [dir=back tooltip="include"]
    "36" -> "28" [dir=back tooltip="include"]
    "21" -> "22" [dir=back tooltip="include"]
    "21" -> "5" [dir=back tooltip="include"]
    "21" -> "17" [dir=back tooltip="include"]
    "21" -> "23" [dir=back tooltip="include"]
    "1" -> "2" [dir=back tooltip="include"]
    "1" -> "6" [dir=back tooltip="include"]
    "1" -> "7" [dir=back tooltip="include"]
    "1" -> "34" [dir=back tooltip="include"]
    "1" -> "35" [dir=back tooltip="include"]
    "1" -> "20" [dir=back tooltip="include"]
    "1" -> "4" [dir=back tooltip="include"]
    "1" -> "36" [dir=back tooltip="include"]
    "1" -> "40" [dir=back tooltip="include"]
    "1" -> "14" [dir=back tooltip="include"]
    "1" -> "10" [dir=back tooltip="include"]
    "1" -> "41" [dir=back tooltip="include"]
    "1" -> "48" [dir=back tooltip="include"]
    "1" -> "15" [dir=back tooltip="include"]
    "1" -> "49" [dir=back tooltip="include"]
    "1" -> "50" [dir=back tooltip="include"]
    "40" -> "6" [dir=back tooltip="include"]
    "40" -> "7" [dir=back tooltip="include"]
    "40" -> "33" [dir=back tooltip="include"]
    "40" -> "5" [dir=back tooltip="include"]
    "40" -> "11" [dir=back tooltip="include"]
    "40" -> "30" [dir=back tooltip="include"]
    "24" -> "8" [dir=back tooltip="include"]
    "24" -> "10" [dir=back tooltip="include"]
    "24" -> "5" [dir=back tooltip="include"]
    "24" -> "11" [dir=back tooltip="include"]
    "24" -> "25" [dir=back tooltip="include"]
    "24" -> "26" [dir=back tooltip="include"]
    "24" -> "28" [dir=back tooltip="include"]
    "29" -> "10" [dir=back tooltip="include"]
    "29" -> "5" [dir=back tooltip="include"]
    "29" -> "11" [dir=back tooltip="include"]
    "29" -> "17" [dir=back tooltip="include"]
    "11" -> "6" [dir=back tooltip="include"]
    "11" -> "10" [dir=back tooltip="include"]
    "47" -> "9" [dir=back tooltip="include"]
    "25" -> "5" [dir=back tooltip="include"]
    "31" -> "5" [dir=back tooltip="include"]
    "31" -> "30" [dir=back tooltip="include"]
    "39" -> "4" [dir=back tooltip="include"]
    "39" -> "5" [dir=back tooltip="include"]
    "39" -> "17" [dir=back tooltip="include"]
    "41" -> "4" [dir=back tooltip="include"]
    "41" -> "14" [dir=back tooltip="include"]
    "41" -> "18" [dir=back tooltip="include"]
    "41" -> "19" [dir=back tooltip="include"]
    "41" -> "42" [dir=back tooltip="include"]
    "48" -> "4" [dir=back tooltip="include"]
    "48" -> "41" [dir=back tooltip="include"]
    "48" -> "19" [dir=back tooltip="include"]
    "32" -> "33" [dir=back tooltip="include"]
    "32" -> "5" [dir=back tooltip="include"]
    "32" -> "11" [dir=back tooltip="include"]
    "32" -> "15" [dir=back tooltip="include"]
    "26" -> "11" [dir=back tooltip="include"]
    "26" -> "27" [dir=back tooltip="include"]
    "49" -> "6" [dir=back tooltip="include"]
    "49" -> "4" [dir=back tooltip="include"]
    "49" -> "36" [dir=back tooltip="include"]
    "49" -> "33" [dir=back tooltip="include"]
    "28" -> "6" [dir=back tooltip="include"]
    "28" -> "4" [dir=back tooltip="include"]
    "28" -> "10" [dir=back tooltip="include"]
    "28" -> "5" [dir=back tooltip="include"]
    "28" -> "19" [dir=back tooltip="include"]
    "28" -> "15" [dir=back tooltip="include"]
    "42" -> "43" [dir=back tooltip="include"]
    "42" -> "7" [dir=back tooltip="include"]
    "42" -> "34" [dir=back tooltip="include"]
    "42" -> "35" [dir=back tooltip="include"]
    "42" -> "45" [dir=back tooltip="include"]
    "42" -> "46" [dir=back tooltip="include"]
    "42" -> "36" [dir=back tooltip="include"]
    "42" -> "22" [dir=back tooltip="include"]
    "42" -> "21" [dir=back tooltip="include"]
    "42" -> "14" [dir=back tooltip="include"]
    "42" -> "10" [dir=back tooltip="include"]
    "42" -> "24" [dir=back tooltip="include"]
    "42" -> "5" [dir=back tooltip="include"]
    "42" -> "47" [dir=back tooltip="include"]
    "42" -> "31" [dir=back tooltip="include"]
    "42" -> "39" [dir=back tooltip="include"]
    "42" -> "26" [dir=back tooltip="include"]
    "42" -> "23" [dir=back tooltip="include"]
    "50" -> "7" [dir=back tooltip="include"]
    "50" -> "36" [dir=back tooltip="include"]
    "50" -> "51" [dir=back tooltip="include"]
}

Defines

GET_LIST_ENTRY(list_item, type, list_head_member)
LIST_FOR_EACH(item, head)
MUTABLE_LIST_FOR_EACH(item, tmp, head)

Functions

static inline void list_insert(struct ListHead *new_item, struct ListHead *prev_head, struct ListHead *next_head)
static inline void list_append(struct ListHead *head, struct ListHead *new_item)
static inline void list_prepend(struct ListHead *head, struct ListHead *new_item)
static inline void list_remove(struct ListHead *remove_item)
static inline void list_init(struct ListHead *list_item)
static inline int list_is_empty(struct ListHead *list_item)
static inline struct ListHead *list_first(struct ListHead *head)
static inline struct ListHead *list_last(struct ListHead *head)
struct ListHead

Collaboration diagram for ListHead:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "1" [label="ListHead" tooltip="ListHead" fillcolor="#BFBFBF"]
    "1" -> "1" [dir=forward tooltip="usage"]
}

Public Members

struct ListHead *next
struct ListHead *prev