codebased/utils/stringmap.h
2023-04-12 01:59:42 +02:00

22 lines
355 B
C

#ifndef UTILS_H
#define UTILS_H
#include "utils/stringmap.h"
#include <stdbool.h>
#include <stddef.h>
typedef struct StringMapEntry {
bool deleted;
size_t key_hash, value;
} StringMapEntry;
struct StringMap {
StringMapEntry* entries;
size_t size, capacity;
};
void stringmap_create(StringMap* map);
void stringmap_destroy(StringMap* map);
#endif