C Standard Library Extensions
1.2.3
|
28 struct _cx_memory_vtable_ {
29 cxptr (*malloc) (cxsize);
30 cxptr (*calloc) (cxsize, cxsize);
31 cxptr (*realloc) (cxptr, cxsize);
35 typedef struct _cx_memory_vtable_ cx_memory_vtable;
cxbool cx_memory_is_system_malloc(void)
Check if the system's defaults are used for memory allocation.
Definition: cxmemory.c:526
cxptr cx_malloc(cxsize nbytes)
Allocate nbytes bytes.
Definition: cxmemory.c:280
void cx_warning(const cxchar *format,...)
Log a warning.
Definition: cxmessages.c:1486
void cx_memory_vtable_set(const cx_memory_vtable *table)
Install a new set of memory managmement functions.
Definition: cxmemory.c:228
void cx_free(cxptr memory)
Memory block deallocation.
Definition: cxmemory.c:486
cxptr cx_realloc(cxptr memory, cxsize nbytes)
Change the size of a memory block.
Definition: cxmemory.c:441
cxptr cx_calloc(cxsize natoms, cxsize nbytes)
Allocate memory for natoms elements of size size.
Definition: cxmemory.c:380
cxptr cx_malloc_clear(cxsize nbytes)
Allocate nbytes bytes and clear them.
Definition: cxmemory.c:329
void cx_error(const cxchar *format,...)
Log an error message.
Definition: cxmessages.c:1425