aboutsummaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hash.h b/hash.h
index 2a095cfd..cf955a95 100644
--- a/hash.h
+++ b/hash.h
@@ -18,7 +18,11 @@ unsigned long hash(char*);
typedef struct {
int size;
int item_count;
- TYPE* values;
+ /* NOTE
+ * Hash maps are always assumed to hold pointers to objects
+ * Double pointer means a list of pointers.
+ */
+ TYPE** values;
} TABLE(TYPE);
int HASH_PUT(TYPE) ( TABLE(TYPE)* table, TYPE* value );