-#include "hashvector.h"
+#include <stdlib.h>
+#include <hashvector.h>
#define SELF hv->type
return value;
}
+
+hashvector *hashvector_create(int variant,itemkeyfun *type) {
+ hashvector *hv = (hashvector*) malloc( sizeof( hashvector ) );
+ (*hv) = (hashvector) {
+ .table = (vector) {
+ .variant = variant,
+ .size = 0,
+ .entries = 0
+ },
+ .fill = 0,
+ .holes = 0,
+ .type = type
+ };
+ return hv;
+}
+