This commit is contained in:
ZZY
2025-04-01 00:13:21 +08:00
parent 2b4857001c
commit 74f43a1ab7
79 changed files with 2271 additions and 2861 deletions

View File

@ -5,7 +5,7 @@ void init_strpool(strpool_t* pool) {
pool->ht.hash_func = (u32_t(*)(const void*))rt_strhash;
pool->ht.key_cmp = (int(*)(const void*, const void*))rt_strcmp;
hashtable_init(&pool->ht);
init_hashtable(&pool->ht);
}
const char* strpool_intern(strpool_t* pool, const char* str) {