Graphviz 13.0.0~dev.20241220.2304
|
Go to the source code of this file.
Functions | |
static bool | make_space (Vmalloc_t *vm) |
void * | vmalloc (Vmalloc_t *vm, size_t size) |
void | vmfree (Vmalloc_t *vm, void *data) |
|
static |
make room to store a new pointer we are about to allocate
vm | Vmalloc to operate on |
Definition at line 21 of file vmalloc.c.
References _vmalloc_s::allocated, _vmalloc_s::capacity, NULL, and _vmalloc_s::size.
Referenced by vmalloc().
void * vmalloc | ( | Vmalloc_t * | vm, |
size_t | size | ||
) |
allocate heap memory
vm | region allocating from |
size | desired block size |
Definition at line 40 of file vmalloc.c.
References _vmalloc_s::allocated, make_space(), malloc(), NULL, and _vmalloc_s::size.
Referenced by eval(), exprintf(), exsplit(), exstralloc(), exsubstr(), extoken_fn(), extokens(), prformat(), scformat(), str_add(), str_and(), str_ior(), str_mod(), str_mpy(), str_xor(), and vmstrdup().
void vmfree | ( | Vmalloc_t * | vm, |
void * | data | ||
) |
free heap memory
vm | Region the pointer was originally allocated from |
data | The pointer originally received from vmalloc |
Definition at line 57 of file vmalloc.c.
References _vmalloc_s::allocated, free(), and _vmalloc_s::size.
Referenced by eval(), prformat(), and scformat().