refactor: move to mcl_string_s

This commit is contained in:
2025-09-04 22:52:42 +02:00
parent 8936243527
commit 3297890967
3 changed files with 18 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
#ifndef MYCLIB_HASHMAP_H
#define MYCLIB_HASHMAP_H
#include <pthread.h>
#include <threads.h>
#include <stdbool.h>
#include <stddef.h>
@@ -13,11 +13,11 @@
* Each bucket can hold one key-value pair and points to the next bucket
* in case of hash collisions (separate chaining).
*/
typedef struct mcl_bucket_t {
typedef struct mcl_bucket {
void *key; /**< Pointer to the key */
void *value; /**< Pointer to the value */
struct mcl_bucket_t *next; /**< Pointer to the next bucket in case of collision */
} mcl_bucket;
struct mcl_bucket *next; /**< Pointer to the next bucket in case of collision */
} mcl_bucket_s;
/**
* @brief Function pointer type for a hash function