Inline Encoding Structs into appropriate AST Nodes
[satune.git] / src / AST / element.h
index 7886e4cc8d3073eb307851b24be86a0a5eff9204..b5bc9c1fdfcb7ce5bb21ec1d497a09af33771a50 100644 (file)
@@ -4,6 +4,8 @@
 #include "mymemory.h"
 #include "structs.h"
 #include "astnode.h"
+#include "functionencoding.h"
+#include "elementencoding.h"
 
 #define GETELEMENTTYPE(o) GETASTNODETYPE(o)
 #define GETELEMENTPARENTS(o) (&((Element*)o)->parents)
@@ -16,7 +18,7 @@ struct Element {
 struct ElementSet {
        Element base;
        Set * set;
-       ElementEncoding encoding;
+       ElementEncoding encoding;
 };
 
 struct ElementFunction {
@@ -24,6 +26,8 @@ struct ElementFunction {
        Function * function;
        ArrayElement inputs;
        Boolean * overflowstatus;
+       FunctionEncoding functionencoding;
+       ElementEncoding domainencoding;
 };
 
 Element * allocElementSet(Set *s);