Implementing client interfaces regarding Sets
[satune.git] / src / mutableset.c
1 #include "mutableset.h"
2
3 MutableSet* allocMutableSet(VarType type){
4     MutableSet* set = (MutableSet*)ourmalloc(sizeof(struct Set));
5     set->type = type;
6     set->members = allocDefVectorInt();
7     set->isRange = false;
8     return set;
9 }
10
11
12 void addElementMSet(MutableSet * set, uint64_t element) { pushVectorInt(set->members, element); }