Included arena allocator in return value

This commit is contained in:
Dan Hirsch 2012-05-12 21:53:03 +01:00
parent 79f9e21da7
commit 18c2d1f2ca
2 changed files with 2 additions and 0 deletions

View file

@ -72,6 +72,7 @@ parse_result_t* do_parse(const parser_t* parser, parse_state_t *state) {
parse_result_t* make_result(parse_state_t *state, parsed_token_t *tok) {
parse_result_t *ret = a_new(parse_result_t, 1);
ret->ast = tok;
ret->arena = state->arena;
return ret;
}