|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
| struct | WsFastMallocBlockRec |
| struct | WsFastMallocRec |
Typedefs | |
| typedef struct WsFastMallocBlockRec | WsFastMallocBlock |
| typedef struct WsFastMallocRec | WsFastMalloc |
Functions | |
| WsFastMalloc * | ws_f_create (size_t block_size) |
| void | ws_f_destroy (WsFastMalloc *pool) |
| void * | ws_f_malloc (WsFastMalloc *pool, size_t size) |
| void * | ws_f_calloc (WsFastMalloc *pool, size_t num, size_t size) |
| void * | ws_f_memdup (WsFastMalloc *pool, const void *ptr, size_t size) |
| void * | ws_f_strdup (WsFastMalloc *pool, const char *str) |
| typedef struct WsFastMallocRec WsFastMalloc |
Definition at line 100 of file wsfalloc.h.
| typedef struct WsFastMallocBlockRec WsFastMallocBlock |
Definition at line 81 of file wsfalloc.h.
| void* ws_f_calloc | ( | WsFastMalloc * | pool, |
| size_t | num, | ||
| size_t | size | ||
| ) |
Definition at line 150 of file wsfalloc.c.
References size, and ws_f_malloc().
Referenced by asm_alloc(), expr_alloc(), stmt_alloc(), ws_list_append(), ws_list_new(), and ws_stmt_linearize().
| WsFastMalloc* ws_f_create | ( | size_t | block_size | ) |
Definition at line 74 of file wsfalloc.c.
References WsFastMallocRec::block_size, and ws_calloc().
Referenced by compile_stream().
| void ws_f_destroy | ( | WsFastMalloc * | pool | ) |
Definition at line 87 of file wsfalloc.c.
References WsFastMallocRec::blocks, WsFastMallocBlockRec::next, and ws_free().
Referenced by compile_stream().
| void* ws_f_malloc | ( | WsFastMalloc * | pool, |
| size_t | size | ||
| ) |
Definition at line 102 of file wsfalloc.c.
References WsFastMallocRec::block_size, WsFastMallocRec::blocks, WsFastMallocBlockRec::next, WsFastMallocRec::ptr, size, WsFastMallocRec::size, WsFastMallocRec::user_bytes_allocated, and ws_malloc().
Referenced by ws_f_calloc(), ws_f_memdup(), ws_f_strdup(), ws_formal_parameter(), and ws_variable_declaration().
| void* ws_f_memdup | ( | WsFastMalloc * | pool, |
| const void * | ptr, | ||
| size_t | size | ||
| ) |
Definition at line 163 of file wsfalloc.c.
References size, and ws_f_malloc().
Referenced by ws_expr_const_string().
| void* ws_f_strdup | ( | WsFastMalloc * | pool, |
| const char * | str | ||
| ) |
Definition at line 177 of file wsfalloc.c.
References WsBufferRec::len, and ws_f_malloc().
Referenced by ws_expr_assign(), ws_expr_call(), ws_expr_postfix_var(), ws_expr_symbol(), ws_expr_unary_var(), and yyparse().