2024-04-13 12:16:20 +00:00
|
|
|
#include "base.h"
|
2024-06-04 09:27:18 +00:00
|
|
|
#include "win32_platform.h"
|
2024-04-13 12:16:20 +00:00
|
|
|
#include "arena.h"
|
|
|
|
#include "string.h"
|
2024-06-04 09:27:18 +00:00
|
|
|
#include "hash_store.h"
|
2024-06-04 10:58:41 +00:00
|
|
|
#include "keywords.h"
|
2024-04-13 12:16:20 +00:00
|
|
|
|
2024-06-04 09:27:18 +00:00
|
|
|
#include "win32_platform.c"
|
2024-04-13 12:16:20 +00:00
|
|
|
#include "arena.c"
|
|
|
|
#include "string.c"
|
2024-06-04 09:27:18 +00:00
|
|
|
#include "hash_store.c"
|
2024-04-13 12:16:20 +00:00
|
|
|
|
2024-04-12 15:26:08 +00:00
|
|
|
int
|
|
|
|
main(void)
|
|
|
|
{
|
2024-06-04 09:27:18 +00:00
|
|
|
Table *table = hash_store_initialize();
|
2024-06-04 10:58:41 +00:00
|
|
|
u64 list_size = array_count(keywords);
|
2024-04-13 12:16:20 +00:00
|
|
|
|
2024-06-04 10:58:41 +00:00
|
|
|
for (u64 idx = 0; idx < list_size; idx += 1)
|
|
|
|
{
|
|
|
|
if (string8_match(keywords[idx], str8_lit("luchtwasser toestand"))){
|
|
|
|
int x = 0;
|
|
|
|
}
|
2024-04-13 12:16:20 +00:00
|
|
|
|
2024-06-04 10:58:41 +00:00
|
|
|
Key key = hash_store_string8_to_key(table, keywords[idx]);
|
|
|
|
String8 string = hash_store_string8_from_key(table, key);
|
2024-04-13 12:16:20 +00:00
|
|
|
|
2024-06-04 10:58:41 +00:00
|
|
|
printf("%.*s\n", (i32) string.length, string.content);
|
|
|
|
printf("str8 arena: %lld - arena %lld\n", table->str8_arena->current->offset, table->arena->current->offset);
|
|
|
|
}
|
2024-04-13 12:16:20 +00:00
|
|
|
|
2024-04-12 15:26:08 +00:00
|
|
|
return 0;
|
|
|
|
};
|