Bolted on arena allocator
This commit is contained in:
parent
60fd846b2f
commit
79f9e21da7
6 changed files with 24 additions and 44 deletions
|
|
@ -19,7 +19,7 @@
|
|||
#define HAMMER_HAMMER__H
|
||||
#include <glib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "allocator.h"
|
||||
/* The state of the parser.
|
||||
*
|
||||
* Members:
|
||||
|
|
@ -48,6 +48,7 @@ typedef struct input_stream {
|
|||
typedef struct parse_state {
|
||||
GHashTable *cache;
|
||||
input_stream_t input_stream;
|
||||
arena_t arena;
|
||||
} parse_state_t;
|
||||
|
||||
typedef enum token_type {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue