start creating base objects for runtime
This commit is contained in:
@@ -5,26 +5,29 @@
|
||||
|
||||
typedef struct ArgonObject ArgonObject;
|
||||
|
||||
struct node
|
||||
{
|
||||
uint64_t hash;
|
||||
ArgonObject *key;
|
||||
ArgonObject *val;
|
||||
struct node *next;
|
||||
struct node {
|
||||
uint64_t hash;
|
||||
void *key;
|
||||
void *val;
|
||||
size_t order;
|
||||
struct node *next;
|
||||
};
|
||||
struct hashmap
|
||||
{
|
||||
size_t size;
|
||||
size_t count;
|
||||
struct node **list;
|
||||
struct hashmap {
|
||||
size_t size;
|
||||
size_t count;
|
||||
size_t order;
|
||||
struct node **list;
|
||||
};
|
||||
|
||||
struct hashmap *createHashmap(int size);
|
||||
struct hashmap *createHashmap();
|
||||
|
||||
int hashCode(struct hashmap *t, uint64_t hash);
|
||||
|
||||
int hashmap_remove(struct hashmap *t, uint64_t hash);
|
||||
|
||||
void hashmap_insert(struct hashmap *t, uint64_t hash, ArgonObject* key, ArgonObject* val);
|
||||
void hashmap_insert(struct hashmap *t, uint64_t hash, void *key,
|
||||
void *val, size_t order);
|
||||
|
||||
void *hashmap_lookup(struct hashmap *t, uint64_t hash);
|
||||
|
||||
#endif // HASHMAP_H
|
||||
Reference in New Issue
Block a user