From 55293ae396eb3409113c0edf73c2f661d008f9d6 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 20 Aug 2025 22:19:14 +0100 Subject: vec -> ivec I'm going to implement a normal stable vector instead of an inline vector so we have both options for use. I think that's smarter than just sticking to one. --- symtable.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'symtable.c') diff --git a/symtable.c b/symtable.c index e704a27..1358b5e 100644 --- a/symtable.c +++ b/symtable.c @@ -29,7 +29,8 @@ void sym_table_init(sym_table_t *table) { table->capacity = MAX(table->capacity, SYM_TABLE_INIT_SIZE); table->count = 0; - vec_make((void **)&table->entries, table->capacity * sizeof(*table->entries)); + ivec_make((void **)&table->entries, + table->capacity * sizeof(*table->entries)); } sv_t *sym_table_find(sym_table_t *table, sv_t sv) @@ -61,6 +62,6 @@ void sym_table_cleanup(sym_table_t *table) if (table->entries[i].data) free(table->entries[i].data); // kill the container - vec_free((void **)&table->entries); + ivec_free((void **)&table->entries); memset(table, 0, sizeof(*table)); } -- cgit v1.2.3-13-gbd6f