12 #ifndef VERILOG_AST_MEM_H 13 #define VERILOG_AST_MEM_H char * ast_strdup(char *in)
Duplicates the supplied null terminated string.
Definition: verilog_ast_mem.c:97
size_t size
Amount of memory allocated.
Definition: verilog_ast_mem.h:20
void ast_free_all()
Iterates over all allocated memory and frees it.
Definition: verilog_ast_mem.c:75
ast_memory * next
Next element to be allocated.
Definition: verilog_ast_mem.h:22
void * data
Pointer to the allocated memory.
Definition: verilog_ast_mem.h:21
Stores information on some allocated memory as a linked list.
Definition: verilog_ast_mem.h:19
void * ast_calloc(size_t num, size_t size)
A simple wrapper around calloc.
Definition: verilog_ast_mem.c:37