sexp_memory.h(3)
| sexp_memory.h(3) | Library Functions Manual | sexp_memory.h(3) |
NAME
sexp_memory.h -
Wrappers around basic memory allocation/deallocation routines to allow memory usage limiting. Only enabled if _SEXP_LIMIT_MEMORY_ is defined when building the library, otherwise the routines are defined to be the standard malloc/calloc/realloc/free functions.
SYNOPSIS
Defines
#define sexp_calloc(count, size) calloc(count,size)
#define sexp_malloc(size) malloc(size)
#define sexp_free(ptr, size) free(ptr)
#define sexp_realloc(ptr, size, oldsize) realloc((ptr),(size))
Detailed Description
Wrappers around basic memory allocation/deallocation routines to allow memory usage limiting. Only enabled if _SEXP_LIMIT_MEMORY_ is defined when building the library, otherwise the routines are defined to be the standard malloc/calloc/realloc/free functions.
Define Documentation
#define sexp_calloc(count, size) calloc(count,size) _SEXP_LIMIT_MEMORY_ not defined. This is a macro that maps to calloc().
#define sexp_free(ptr, size) free(ptr) _SEXP_LIMIT_MEMORY_ not defined. This is a macro that maps to free().
#define sexp_malloc(size) malloc(size) _SEXP_LIMIT_MEMORY_ not defined. This is a macro that maps to malloc().
#define sexp_realloc(ptr, size, oldsize) realloc((ptr),(size)) _SEXP_LIMIT_MEMORY_ not defined. This is a macro that maps to realloc().
Author
Generated automatically by Doxygen for Small, Fast S-Expression Library from the source code.
| Thu Nov 21 2013 | Small, Fast S-Expression Library |
