Implementing client interfaces regarding Sets
[satune.git] / src / mutableset.c
index 76bb77979c05e90f52d914993312f3e4c415a578..b3fef7ceac2fad6ac2054e4457f1c0d3a3ff3edb 100644 (file)
@@ -1,2 +1,12 @@
 #include "mutableset.h"
 
+MutableSet* allocMutableSet(VarType type){
+    MutableSet* set = (MutableSet*)ourmalloc(sizeof(struct Set));
+    set->type = type;
+    set->members = allocDefVectorInt();
+    set->isRange = false;
+    return set;
+}
+
+
+void addElementMSet(MutableSet * set, uint64_t element) { pushVectorInt(set->members, element); }