counted_array now holds parsed_token_t's. TQ will fix the problem with accumulate_size. Compile-time bounds checks added to int_range.

This commit is contained in:
Meredith L. Patterson 2012-05-24 13:22:43 +02:00
parent 8e7a5cc2d3
commit 13395d8a54
3 changed files with 56 additions and 34 deletions

View file

@ -41,11 +41,13 @@ typedef enum token_type {
TT_MAX
} token_type_t;
typedef struct parsed_token parsed_token_t;
typedef struct counted_array {
size_t capacity;
size_t used;
arena_t arena;
void **elements;
parsed_token_t **elements;
} counted_array_t;
typedef struct parsed_token {