From d89cb2ca05d8a408e83f7711b7a551db89f1c2a6 Mon Sep 17 00:00:00 2001 From: InventorXtreme Date: Fri, 29 Mar 2024 15:34:52 -0400 Subject: [PATCH] test --- map.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/map.c b/map.c index 0d0377c..d083145 100644 --- a/map.c +++ b/map.c @@ -23,8 +23,8 @@ struct Bucket { typedef struct Bucket Bucket; struct HashMap { - int (*HashFunction)(void *); - bool (*KeyCompare)(void *, void *); + int (*HashFunction)(void *); //Function returning an integer as a hash + bool (*KeyCompare)(void *, void *); //functiong returning true if two items are the smae Bucket *buckets; int size; }; @@ -115,9 +115,6 @@ int *AllocInt(int x) { return spot; } -int main() { - HashMap inttointhashmap = MakeHashMap(IntHash, IntToIntCmp, 2); - - HashMapSet(&inttointhashmap, AllocInt(0), AllocInt(2)); - HashMapSet(&inttointhashmap, AllocInt(1), AllocInt(100)); +int main(){ + printf("test\n"); }