diff options
author | David Robillard <d@drobilla.net> | 2009-03-06 20:21:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-06 20:21:36 +0000 |
commit | 65ab0205a6b193332867f9ce95fae5354efc99f7 (patch) | |
tree | 67a2ca335e61bc10cdc71c4009ccc5d5211f0e64 /tuplr.hpp | |
parent | 8ee76375d7f19cd0723334e33050584ec83cfe12 (diff) | |
download | resp-65ab0205a6b193332867f9ce95fae5354efc99f7.tar.gz resp-65ab0205a6b193332867f9ce95fae5354efc99f7.tar.bz2 resp-65ab0205a6b193332867f9ce95fae5354efc99f7.zip |
AType::type() -> AType::ctype().
git-svn-id: http://svn.drobilla.net/resp/tuplr@62 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'tuplr.hpp')
-rw-r--r-- | tuplr.hpp | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -164,9 +164,9 @@ struct ASTTuple : public AST, public vector<AST*> { /// Type Expression, e.g. "Int", "(Fn (Int Int) Float)" struct AType : public ASTTuple { - AType(const ASTTuple& t) : ASTTuple(t), kind(EXPR), ctype(0) {} - AType(unsigned i) : kind(VAR), id(i), ctype(0) {} - AType(ASTSymbol* n, CType t) : kind(PRIM), ctype(t) { push_back(n); } + AType(const ASTTuple& t) : ASTTuple(t), kind(EXPR), _ctype(0) {} + AType(unsigned i) : kind(VAR), id(i), _ctype(0) {} + AType(ASTSymbol* n, CType t) : kind(PRIM), _ctype(t) { push_back(n); } string str() const { switch (kind) { case VAR: return (format("?%1%") % id).str(); @@ -203,12 +203,11 @@ struct AType : public ASTTuple { } return false; // never reached } - CType type(); - enum Kind { VAR, PRIM, EXPR }; - Kind kind; - unsigned id; + CType ctype(); + enum { VAR, PRIM, EXPR } kind; + unsigned id; private: - const CType ctype; + const CType _ctype; }; /// Lifted system functions (of various types) for a single Tuplr function |