exported Autoarr_KVPair & Autoarr_Unitype

This commit is contained in:
2022-03-31 00:09:24 +03:00
parent c1d004f411
commit 3940eeb2a7
13 changed files with 133 additions and 28 deletions

View File

@@ -25,7 +25,7 @@ void Hashtable_free(Hashtable* ht){
free(ht);
}
uint32 Hashtable_height(Hashtable* ht){ return HT_HEIGHTS[ht->hein]; }
uint32 Hashtable_height(Hashtable* ht) { return HT_HEIGHTS[ht->hein]; }
void Hashtable_expand(Hashtable* ht){

View File

@@ -23,7 +23,10 @@ uint32 Hashtable_height(Hashtable* ht);
//use cptr_copy() to create new string if needed
#define KVPair(key,value) (KeyValuePair){key,value}
//
// don't add pairs with the same keys,
// or something weird will happen
//
void Hashtable_add_pair(Hashtable* ht, KeyValuePair p);
void Hashtable_add(Hashtable* ht, char* key, Unitype u);