diff options
author | David Robillard <d@drobilla.net> | 2012-12-27 18:18:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-12-27 18:18:54 +0000 |
commit | 0c09f8394149afdd7cca5908e08e2bb69971b50b (patch) | |
tree | 72fc51e58ed8b84f0cecfebb1cc9d3092aac9355 /src/lift.cpp | |
parent | 01a458a33f3329a254206b6bbe858542d7634ca4 (diff) | |
download | resp-0c09f8394149afdd7cca5908e08e2bb69971b50b.tar.gz resp-0c09f8394149afdd7cca5908e08e2bb69971b50b.tar.bz2 resp-0c09f8394149afdd7cca5908e08e2bb69971b50b.zip |
def-type => define-type
git-svn-id: http://svn.drobilla.net/resp/trunk@453 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/lift.cpp')
-rw-r--r-- | src/lift.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lift.cpp b/src/lift.cpp index 8cdf654..9341121 100644 --- a/src/lift.cpp +++ b/src/lift.cpp @@ -188,14 +188,14 @@ lift_fn(CEnv& cenv, Code& code, const ATuple* fn) throw() cenv.setType(impl, realImplT); // Create type definition for closure type - List tdef(Cursor(), cenv.penv.sym("def-type"), tsym, 0); + List tdef(Cursor(), cenv.penv.sym("define-type"), tsym, 0); tdef.push_back(closureT); code.push_back(tdef); cenv.tenv.def(tsym, closureT); // Put forward declaration for type at start of code - List tdecl(Cursor(), cenv.penv.sym("def-type"), tsym, 0); + List tdecl(Cursor(), cenv.penv.sym("define-type"), tsym, 0); code.push_front(tdecl); // Set type of closure to type symbol @@ -218,7 +218,7 @@ lift_fn(CEnv& cenv, Code& code, const ATuple* fn) throw() // Replace return type variable with actual return type in code for (auto& i : code) { - if (is_form(i, "def-type")) { + if (is_form(i, "define-type")) { i = cenv.typedReplace(i->as_tuple(), retTVar, implRetT); } } @@ -310,7 +310,7 @@ resp_lift(CEnv& cenv, Code& code, const AST* ast) throw() return lift_dot(cenv, code, call); else if (form == "define") return lift_def(cenv, code, call); - else if (form == "def-type") + else if (form == "define-type") return call; else if (form == "do") return lift_args(cenv, code, call); |