From b1430f0f2d76859eafda9fc6098c3b4876501471 Mon Sep 17 00:00:00 2001 From: arf20 Date: Sun, 30 Nov 2025 05:11:02 +0100 Subject: file indexing, stat, hash map tree insert --- main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 2de3c9b..e4924d8 100644 --- a/main.c +++ b/main.c @@ -35,6 +35,7 @@ #include #include "config.h" +#include "index.h" static char *index_format_template = NULL; @@ -119,6 +120,14 @@ int main() { return 1; } + /* begin indexing */ + if (index_init() < 0) + return 1; + + index_t index = index_new(INIT_MAP_CAPACITY, root); + + printf("[index] indexed\n"); + while (1) { sleep(1000); } -- cgit v1.2.3