diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-06 08:04:26 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-06 08:04:26 -0800 |
commit | e98f89c84ec0492a36e364ac32987e17296b33df (patch) | |
tree | 7a306f7a148cee12a0c8f216e347c548875e2e75 /src/hash_table.c | |
parent | 6c1e4bbfe920feda675d8ea3a13281742d55c334 (diff) |
no obvious memory problems
Diffstat (limited to 'src/hash_table.c')
-rw-r--r-- | src/hash_table.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/hash_table.c b/src/hash_table.c index 7a978e2..bd947c0 100644 --- a/src/hash_table.c +++ b/src/hash_table.c @@ -65,7 +65,6 @@ sl_list_t *init_sl_list() { /* } */ void sl_list_add(sl_list_t *l, char *key, ast_t *value) { - printf("sl list add %s\n", key); sl_node_t *cur = l->head; if (cur == NULL) { l->head = init_sl_node(key, value); @@ -75,7 +74,6 @@ void sl_list_add(sl_list_t *l, char *key, ast_t *value) { cur = cur->next; } cur->next = init_sl_node(key, value); - printf("sl list cur->next %s\n", cur->next->value->key); l->size++; } } @@ -123,7 +121,6 @@ hash_table_t *init_hash_table(int size) { } void hash_table_add(hash_table_t *h, char *key, ast_t *value) { - printf("entering here? %s\n", key); sl_list_t *l = h->buckets[hash(key, h->size)]; sl_list_add(l, key, value); } @@ -134,7 +131,6 @@ ast_t *hash_table_get(hash_table_t *h, char *key) { } bool hash_table_exists(hash_table_t *h, char *key) { - printf("entering here? %s\n", key); sl_list_t *l = h->buckets[hash(key, h->size)]; return sl_list_exists(l, key); } |