start working on oop runtime

This commit is contained in:
2025-06-22 19:00:03 +01:00
parent fcffdc9000
commit 74c71c3a1b
15 changed files with 122 additions and 53 deletions

View File

@@ -1,26 +0,0 @@
#ifndef HASHMAP_H
#define HASHMAP_H
#include <stdlib.h>
struct node
{
size_t key;
void *val;
struct node *next;
};
struct hashmap
{
size_t size;
size_t count;
struct node **list;
};
struct hashmap *createTable(int size);
int hashCode(struct hashmap *t, int key);
int remove(struct hashmap *t, int key);
void insert(struct hashmap *t, int key, void* val);
#endif // HASHMAP_H