tempstack.h

Include dependency graph for tempstack.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "3" [label="assert.h" tooltip="assert.h"]
    "1" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/tempstack.h" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/tempstack.h" fillcolor="#BFBFBF"]
    "6" [label="stdint.h" tooltip="stdint.h"]
    "7" [label="utils.h" tooltip="utils.h"]
    "2" [label="term_typedef.h" tooltip="term_typedef.h"]
    "8" [label="stddef.h" tooltip="stddef.h"]
    "4" [label="limits.h" tooltip="limits.h"]
    "5" [label="inttypes.h" tooltip="inttypes.h"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "7" [dir=forward tooltip="include"]
    "7" -> "8" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
    "2" -> "4" [dir=forward tooltip="include"]
    "2" -> "5" [dir=forward tooltip="include"]
    "2" -> "6" [dir=forward tooltip="include"]
}

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

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "1" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/tempstack.h" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/tempstack.h" fillcolor="#BFBFBF"]
    "4" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/refc_binary.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/refc_binary.c"]
    "5" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/term.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/term.c"]
    "2" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/interop.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/interop.c"]
    "3" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/memory.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/memory.c"]
    "1" -> "2" [dir=back tooltip="include"]
    "1" -> "3" [dir=back tooltip="include"]
    "1" -> "4" [dir=back tooltip="include"]
    "1" -> "5" [dir=back tooltip="include"]
}

Defines

MIN_STACK_SIZE 8

Enums

enum TempStackResult

Values:

enumerator TempStackOk = 0
enumerator TempStackFailedAlloc = 1

Functions

static inline NO_DISCARD TempStackResult temp_stack_init (struct TempStack *temp_stack)
static inline void temp_stack_destroy(struct TempStack *temp_stack)
static NO_DISCARD TempStackResult temp_stack_grow (struct TempStack *temp_stack)
static inline int temp_stack_is_empty(const struct TempStack *temp_stack)
static inline NO_DISCARD TempStackResult temp_stack_push (struct TempStack *temp_stack, term value)
static inline term temp_stack_pop(struct TempStack *temp_stack)
struct TempStack
#include <tempstack.h>

Public Members

term *stack_start
term *stack_pos
term *stack_end
term min_stack[MIN_STACK_SIZE]