diff --git a/include/alisp/symtable.h b/include/alisp/symtable.h index 21f3de5..adbff50 100644 --- a/include/alisp/symtable.h +++ b/include/alisp/symtable.h @@ -22,7 +22,7 @@ typedef struct void sym_table_init(sym_table_t *); char *sym_table_find(sym_table_t *, sv_t); -void sym_table_cleanup(sym_table_t *); +void sym_table_free(sym_table_t *); #endif diff --git a/src/lisp.c b/src/lisp.c index 77dcf24..6a6f388 100644 --- a/src/lisp.c +++ b/src/lisp.c @@ -26,7 +26,7 @@ void sys_free(sys_t *sys) { static_assert(NUM_TAGS == 5); - sym_table_cleanup(&sys->symtable); + sym_table_free(&sys->symtable); if (sys->memory.size == 0) return; diff --git a/src/symtable.c b/src/symtable.c index 5813177..50c8e3a 100644 --- a/src/symtable.c +++ b/src/symtable.c @@ -54,7 +54,7 @@ char *sym_table_find(sym_table_t *table, sv_t sv) return ENTRY_GET(table, index).data; } -void sym_table_cleanup(sym_table_t *table) +void sym_table_free(sym_table_t *table) { // Iterate through the strings and free each of them. sv_t current = {0}; diff --git a/test/test_symtable.c b/test/test_symtable.c index 41bed9e..d10a737 100644 --- a/test/test_symtable.c +++ b/test/test_symtable.c @@ -18,7 +18,7 @@ void symtable_test(void) TEST(table.count == ARRSIZE(unique_words), "%lu == %lu", table.count, ARRSIZE(unique_words)); - sym_table_cleanup(&table); + sym_table_free(&table); TEST_PASSED(); }