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.
This commit is contained in:
2025-08-19 23:02:07 +01:00
parent e7f4b0440c
commit 6dfe3e72a1
3 changed files with 15 additions and 10 deletions

2
base.h
View File

@@ -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