Fix some things that C++ doesn't like so we don't lose the possibility to use the...
[satune.git] / src / AST / mutableset.c
1 #include "mutableset.h"
2
3 MutableSet * allocMutableSet(VarType t) {
4         MutableSet * tmp=(MutableSet *)ourmalloc(sizeof(MutableSet));
5         tmp->type=t;
6         tmp->isRange=false;
7         tmp->low=0;
8         tmp->high=0;
9         tmp->members=allocDefVectorInt();
10         return tmp;
11 }
12
13 void addElementMSet(MutableSet * set, uint64_t element) {
14         pushVectorInt(set->members, element);
15 }