X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.h;h=f275eab8c4ae454ee369ac10e40d3c0e4499190a;hb=a82fcc462550d63a101aca4313807b1320789a5a;hp=da7b0907e37460d5b7041d32e2c921dee9473563;hpb=734bc4a781ace5aecd98254ad1b50d52a06af0af;p=libs%2Fgl.git diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index da7b0907..f275eab8 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -55,9 +55,11 @@ struct NodeVisitor; struct Node { -protected: - Node() { } - Node(const Node &) { } + int source; + unsigned line; + + Node(): source(GENERATED_SOURCE), line(1) { } + Node(const Node &n): source(n.source), line(n.line) { } private: Node &operator=(const Node &); public: @@ -106,11 +108,6 @@ struct FunctionDeclaration; struct Statement: Node { - int source; - unsigned line; - - Statement(); - virtual Statement *clone() const = 0; };