]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Header fixes in the GLSL compiler
[libs/gl.git] / source / glsl / syntax.h
index 05bcee545f4a62431ddf8c00978d766e6c670565..e9c76ebab9974749858c217475bc2bccf7b31729 100644 (file)
@@ -8,7 +8,6 @@
 #include <msp/core/refptr.h>
 #include "extension.h"
 #include "sourcemap.h"
-#include "uniform.h"
 
 #pragma push_macro("interface")
 #undef interface
@@ -107,10 +106,13 @@ struct Block: Node
 {
        NodeList<Statement> body;
        bool use_braces;
+       bool anonymous;
        std::map<std::string, StructDeclaration *> types;
        std::map<std::string, VariableDeclaration *> variables;
+       Block *parent;
 
        Block();
+       Block(const Block &);
 
        virtual Block *clone() const { return new Block(*this); }
        virtual void visit(NodeVisitor &);