From 6dfe3e72a168655f1e70adae90eba953ef47696d Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 19 Aug 2025 23:02:07 +0100 Subject: Make sym_table_find return the c-string in question directly I think we fall into a few traps if we return an sv_t directly. Think intent is clearer by returning the c-string directly. --- base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base.h') diff --git a/base.h b/base.h index ad5322a..034bef2 100644 --- a/base.h +++ b/base.h @@ -77,7 +77,7 @@ typedef struct u64 djb2(sv_t string); void sym_table_init(sym_table_t *table); -sv_t sym_table_find(sym_table_t *table, sv_t sv); +char *sym_table_find(sym_table_t *table, sv_t sv); void sym_table_cleanup(sym_table_t *table); #endif -- cgit v1.2.3-13-gbd6f