From 3f63c53b6d1188f1b6f0cd94fbb67ce48965b14d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 26 Dec 2012 20:15:51 +0000 Subject: Fix lifted type declarations. git-svn-id: http://svn.drobilla.net/resp/trunk@449 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/expand.cpp | 2 +- src/lift.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/expand.cpp b/src/expand.cpp index 5ede0dd..72d83cd 100644 --- a/src/expand.cpp +++ b/src/expand.cpp @@ -16,7 +16,7 @@ */ /** @file - * @brief Expand built-in macros (i.e. def) + * @brief Read and expand macros. */ #include "resp.hpp" diff --git a/src/lift.cpp b/src/lift.cpp index 48fcf4e..8cdf654 100644 --- a/src/lift.cpp +++ b/src/lift.cpp @@ -188,8 +188,9 @@ lift_fn(CEnv& cenv, Code& code, const ATuple* fn) throw() cenv.setType(impl, realImplT); // Create type definition for closure type - const AST* tdef = resp_lift( - cenv, code, tup(Cursor(), cenv.penv.sym("def-type"), tsym, closureT, 0)); + List tdef(Cursor(), cenv.penv.sym("def-type"), tsym, 0); + tdef.push_back(closureT); + code.push_back(tdef); cenv.tenv.def(tsym, closureT); -- cgit v1.2.1