fixing elementSet and TablePredicate
[satune.git] / src / AST / element.h
index 0a23d8889d2a88d9a310934b3ea3788374cdfa8c..986e380e0f03c9eb83ae1f299d4e3b95dc8abbcd 100644 (file)
 //FIXME:TALK ABOUT ELEMENT
 struct Element {
        ElementType type;
-       Set * set;
-       ElementEncoding * encoding;
 };
 
 struct ElementSet {
     Element base;
     Set * set;
+    ElementEncoding * encoding;
 };
 
 struct ElementFunction{
@@ -26,7 +25,7 @@ struct ElementFunction{
     Boolean * overflowstatus;
 };
 
-Element * allocElement(Set *s);
+Element * allocElementSet(Set *s);
 Element* allocElementFunction(Function * function, Element ** array, uint numArrays, Boolean * overflowstatus);
 void deleteElement(Element *This);
 #endif