term.h
Include dependency graph for term.h:
This graph shows which files directly or indirectly include term.h:
Defines
-
TERM_BOXED_VALUE_TAG
-
TERM_INTEGER_TAG
-
TERM_CATCH_TAG
-
TERM_BOXED_TAG_MASK
-
TERM_BOXED_TUPLE
-
TERM_BOXED_BIN_MATCH_STATE
-
TERM_BOXED_POSITIVE_INTEGER
-
TERM_BOXED_REF
-
TERM_BOXED_FUN
-
TERM_BOXED_FLOAT
-
TERM_BOXED_REFC_BINARY
-
TERM_BOXED_HEAP_BINARY
-
TERM_BOXED_MAP
-
TERM_BOXED_SUB_BINARY
-
TERM_UNUSED
-
TERM_RESERVED_MARKER(x)
-
TERM_BOXED_REFC_BINARY_SIZE
-
TERM_BOXED_BIN_MATCH_STATE_SIZE
-
TERM_BOXED_SUB_BINARY_SIZE
-
TERM_BOXED_RESOURCE_SIZE
-
REFC_BINARY_MIN
-
SUB_BINARY_MIN
-
BINARY_HEADER_SIZE
-
FUNCTION_REFERENCE_SIZE
-
BOXED_INT_SIZE
-
BOXED_INT64_SIZE
-
BOXED_FUN_SIZE
-
FLOAT_SIZE
-
REF_SIZE
-
TUPLE_SIZE(elems)
-
CONS_SIZE
-
REFC_BINARY_CONS_OFFSET
-
LIST_SIZE(num_elements, element_size)
-
TERM_MAP_SIZE(num_elements)
-
TERM_MAP_SHARED_SIZE(num_elements)
-
LIST_HEAD_INDEX
-
LIST_TAIL_INDEX
-
TERM_BINARY_SIZE_IS_HEAP(size)
-
TERM_BINARY_DATA_SIZE_IN_TERMS(size)
-
TERM_BINARY_HEAP_SIZE(size)
-
TERM_DEBUG_ASSERT(...)
-
TERM_FROM_ATOM_INDEX(atom_index)
-
TERM_MAP_NOT_FOUND
-
TERM_MAP_MEMORY_ALLOC_FAIL
Typedefs
-
typedef struct PrinterFun PrinterFun
- int(* printer_function_t )(PrinterFun *fun, const char *fmt,...) PRINTF_FORMAT_ARGS(2
Enums
-
enum RefcBinaryFlags
Values:
-
enumerator RefcNoFlags
-
enumerator RefcBinaryIsConst
-
enumerator RefcNoFlags
-
enum TermCompareOpts
Values:
-
enumerator TermCompareNoOpts
-
enumerator TermCompareExact
-
enumerator TermCompareNoOpts
-
enum TermCompareResult
Values:
-
enumerator TermCompareMemoryAllocFail
-
enumerator TermEquals
-
enumerator TermLessThan
-
enumerator TermGreaterThan
-
enumerator TermCompareMemoryAllocFail
Functions
-
TermCompareResult term_compare(term t, term other, TermCompareOpts opts, GlobalContext *global)
-
term term_alloc_refc_binary(size_t size, bool is_const, Heap *heap, GlobalContext *glb)
-
static inline avm_int64_t term_unbox_int64(term boxed_long)
-
static inline avm_int64_t term_maybe_unbox_int64(term maybe_boxed_int)
-
static inline term term_make_boxed_int64(avm_int64_t large_int64, Heap *heap)
-
static inline term term_make_maybe_boxed_int64(avm_int64_t value, Heap *heap)
-
static inline size_t term_boxed_integer_size(avm_int64_t value)
-
static inline bool term_binary_size_is_heap_binary(size_t size)
-
static inline size_t term_binary_data_size_in_terms(size_t size)
-
static inline size_t term_binary_heap_size(size_t size)
-
static inline term term_create_uninitialized_binary(size_t size, Heap *heap, GlobalContext *glb)
-
static inline term term_from_literal_binary(const void *data, size_t size, Heap *heap, GlobalContext *glb)
-
static inline term term_maybe_create_sub_binary(term binary, size_t offset, size_t len, Heap *heap, GlobalContext *glb)
-
static inline term term_from_const_binary(const void *data, size_t size, Heap *heap, GlobalContext *glb)
-
static inline term term_create_empty_binary(size_t size, Heap *heap, GlobalContext *glb)
- static inline MALLOC_LIKE term * term_list_alloc (Heap *heap)
-
static inline term term_from_float(avm_float_t f, Heap *heap)
-
static inline avm_float_t term_to_float(term t)
-
static inline avm_float_t term_conv_to_float(term t)
-
int term_funprint(PrinterFun *pf, term t, const GlobalContext *global)
-
int term_fprint(FILE *fd, term t, const GlobalContext *global)
-
int term_snprint(char *buf, size_t size, term t, const GlobalContext *global)
-
static inline size_t term_get_map_keys_offset()
-
static inline size_t term_get_map_value_offset()
-
static inline size_t term_map_size_in_terms(size_t num_entries)
-
static inline term term_alloc_map(avm_uint_t size, Heap *heap)
-
static inline void term_set_map_assoc(term map, avm_uint_t pos, term key, term value)
-
static inline term term_get_map_key(term map, avm_uint_t pos)
-
static inline term term_get_map_value(term map, avm_uint_t pos)
-
static inline int term_find_map_pos(term map, term key, GlobalContext *global)
-
term term_get_map_assoc(term map, term key, GlobalContext *glb)
Variables
-
const term empty_tuple
-
struct PrinterFun
Collaboration diagram for PrinterFun:
Public Members
-
printer_function_t print
-
printer_function_t print