Cleaned up some memory leaks, got rid of gsequence, improved test macro to free memory that it allocated
This commit is contained in:
parent
9530ed0b64
commit
764d0d7071
9 changed files with 102 additions and 54 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#define false 0
|
||||
#define true 1
|
||||
|
||||
|
||||
typedef struct parser_cache_key {
|
||||
input_stream_t input_pos;
|
||||
const parser_t *parser;
|
||||
|
|
@ -81,4 +82,13 @@ guint djbhash(const uint8_t *buf, size_t len);
|
|||
char* write_result_unamb(const parsed_token_t* tok);
|
||||
void pprint(const parsed_token_t* tok, int indent, int delta);
|
||||
|
||||
counted_array_t *carray_new_sized(arena_t arena, size_t size);
|
||||
counted_array_t *carray_new(arena_t arena);
|
||||
void carray_append(counted_array_t *array, void* item);
|
||||
|
||||
#if 0
|
||||
#include <malloc.h>
|
||||
#define arena_malloc(a, s) malloc(s)
|
||||
#endif
|
||||
|
||||
#endif // #ifndef HAMMER_INTERNAL__H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue