diff options
| author | Elis Eriksson <spelis@spelis.li> | 2026-07-01 22:39:28 +0200 |
|---|---|---|
| committer | Elis Eriksson <spelis@spelis.li> | 2026-07-01 22:43:49 +0200 |
| commit | b2a53020c9e19b6eb7c6b18afb940bdcf0b604cf (patch) | |
| tree | 454deffc4365e9d17969d377f13231c06e0c4674 /src/node_vec.h | |
| parent | 29766e048cabc8db71cb735c424e0fdfff468198 (diff) | |
| download | bfc-main.tar bfc-main.tar.gz bfc-main.tar.bz2 bfc-main.tar.lz bfc-main.tar.xz bfc-main.tar.zst bfc-main.zip | |
also omit the lexer entirely, plus the parser type.
Diffstat (limited to 'src/node_vec.h')
| -rw-r--r-- | src/node_vec.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/node_vec.h b/src/node_vec.h deleted file mode 100644 index 8421d32..0000000 --- a/src/node_vec.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include <stddef.h> - -typedef struct ast_node ast_node_t; - -typedef struct { - ast_node_t **_data; - size_t _cap; - size_t len; -} node_vec; - -void node_vec_free(node_vec *v); - -size_t node_vec_push(node_vec *v, ast_node_t *data); - -ast_node_t *node_vec_get(node_vec *v, size_t idx); - -ast_node_t *node_vec_rem_shift(node_vec *v, size_t idx); - -ast_node_t *node_vec_rem(node_vec *v, size_t idx); - -ast_node_t *node_vec_has(node_vec *v, ast_node_t *x, - int (*comp)(const ast_node_t *, const ast_node_t *)); - -void node_vec_shrink(node_vec *v); |
