diff options
author | David Robillard <d@drobilla.net> | 2015-11-07 01:03:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-11-07 01:03:17 +0000 |
commit | 3d3bc067a701aab1db7c856713ff405a7795d8b0 (patch) | |
tree | 3a42dd26e276c0def3ecc9b32b5225b7ae279d4b /src | |
parent | 65f1c1e1980794b015752ee821abbb6f7fba7c1b (diff) | |
download | resp-3d3bc067a701aab1db7c856713ff405a7795d8b0.tar.gz resp-3d3bc067a701aab1db7c856713ff405a7795d8b0.tar.bz2 resp-3d3bc067a701aab1db7c856713ff405a7795d8b0.zip |
Delete trailing whitespace
git-svn-id: http://svn.drobilla.net/resp/trunk@457 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src')
-rw-r--r-- | src/compile.cpp | 2 | ||||
-rw-r--r-- | src/constrain.cpp | 8 | ||||
-rw-r--r-- | src/cps.cpp | 2 | ||||
-rw-r--r-- | src/depoly.cpp | 2 | ||||
-rw-r--r-- | src/llvm.cpp | 2 | ||||
-rw-r--r-- | src/repl.cpp | 6 | ||||
-rw-r--r-- | src/resp.hpp | 6 | ||||
-rw-r--r-- | src/simplify.cpp | 12 | ||||
-rw-r--r-- | src/unify.cpp | 2 |
9 files changed, 21 insertions, 21 deletions
diff --git a/src/compile.cpp b/src/compile.cpp index 1131e73..48f9ea5 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -138,7 +138,7 @@ compile_quote(CEnv& cenv, const ATuple* quote) throw() default: assert(false); return NULL; - } + } } static CVal diff --git a/src/constrain.cpp b/src/constrain.cpp index 9674a97..8b0558f 100644 --- a/src/constrain.cpp +++ b/src/constrain.cpp @@ -66,7 +66,7 @@ constrain_cons(TEnv& tenv, Constraints& c, const ATuple* call) throw(Error) } } - // Substitute tvar symbols with the tvar for the corresponding argument + // Substitute tvar symbols with the tvar for the corresponding argument const AST* pattern = subst.apply(tag->second.type); // Replace remaining tvar symbols with a free tvar @@ -170,7 +170,7 @@ constrain_fn(TEnv& tenv, Constraints& c, const ATuple* call) throw(Error) } else { protT.head->loc = call->loc; } - + ATuple::const_iterator i = call->iter_at(1); c.constrain(tenv, *i, protT); @@ -266,7 +266,7 @@ constrain_match(TEnv& tenv, Constraints& c, const ATuple* call) throw(Error) t != constructor.type->as_tuple()->end(); ++t) { type.push_back(tenv.var()); } - + c.constrain(tenv, matchee, type); tenv.pop(); } @@ -308,7 +308,7 @@ static void constrain_call(TEnv& tenv, Constraints& c, const ATuple* call) throw(Error) { const AST* const head = call->fst(); - + for (auto i : *call) resp_constrain(tenv, c, i); diff --git a/src/cps.cpp b/src/cps.cpp index 38dc27a..65aed78 100644 --- a/src/cps.cpp +++ b/src/cps.cpp @@ -34,7 +34,7 @@ is_value(CEnv& cenv, const AST* exp) if (!is_primitive(cenv.penv, exp)) return false; // Non-primitive fn call - + for (ATuple::const_iterator i = call->iter_at(1); i != call->end(); ++i) if (!is_value(cenv, *i)) return false; // Primitive with non-value argument diff --git a/src/depoly.cpp b/src/depoly.cpp index 20e7159..2dc0986 100644 --- a/src/depoly.cpp +++ b/src/depoly.cpp @@ -92,7 +92,7 @@ raise_type(CEnv& cenv, Code& code, const ATuple* type) code.push_back(def); } - + static const AST* depoly_args(CEnv& cenv, Code& code, const ATuple* call) throw() { diff --git a/src/llvm.cpp b/src/llvm.cpp index 678e2e4..038beb1 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -108,7 +108,7 @@ struct LLVMEngine : public Engine { private: void pushFnArgs(CEnv& cenv, const ATuple* prot, const ATuple* type, CFunc f); - + void appendBlock(LLVMEngine* engine, Function* function, BasicBlock* block) { function->getBasicBlockList().push_back(block); engine->builder.SetInsertPoint(block); diff --git a/src/repl.cpp b/src/repl.cpp index 5e2741c..e808dd8 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -99,7 +99,7 @@ compile(CEnv& cenv, const Code& parsed, Code& defs, bool& hasMain, const char* m } return dump(cenv, cps); } - + struct Pass { const RespPass* pass; ///< Pass function const char* option; ///< Command line option to stop and dump here @@ -158,14 +158,14 @@ compile(CEnv& cenv, const Code& parsed, Code& defs, bool& hasMain, const char* m List mainT(Cursor(), cenv.penv.sym("lambda"), new ATuple(Cursor()), retT, NULL); cenv.def(main, NULL, mainT, NULL); - + defs.push_back( tup(Cursor(), cenv.penv.sym("fn-start"), main, NULL)); const AST* mainRet = NULL; for (auto e : exprs) mainRet = resp_flatten(cenv, defs, e); - + defs.push_back( tup(Cursor(), cenv.penv.sym("fn-end"), main, mainRet, NULL)); } diff --git a/src/resp.hpp b/src/resp.hpp index 5eb9ef0..90a0efa 100644 --- a/src/resp.hpp +++ b/src/resp.hpp @@ -293,7 +293,7 @@ inline ATuple* tup(Cursor c, const AST* ast, ...) { ATuple* const head = new ATuple(ast, 0, c); if (!ast) return head; - + ATuple* tail = head; va_list args; va_start(args, ast); @@ -334,7 +334,7 @@ list_equals(const ATuple* lhs, const ATuple* rhs) return true; else if (!lhs || !rhs) return false; - + ATuple::const_iterator l = lhs->begin(); for (const auto& r : *rhs) if (l == lhs->end() || !(*(*l++) == *r)) @@ -716,7 +716,7 @@ struct TEnv : public Env<const AST*> { }; typedef map<const std::string, Constructor> Tags; - + Vars vars; Tags tags; PEnv& penv; diff --git a/src/simplify.cpp b/src/simplify.cpp index 34c1ef0..4ad1865 100644 --- a/src/simplify.cpp +++ b/src/simplify.cpp @@ -31,7 +31,7 @@ simplify_if(CEnv& cenv, Code& code, const ATuple* aif) throw() List copy(aif->loc, cenv.penv.sym("if"), NULL); copy.push_back(aif->list_ref(1)); copy.push_back(aif->list_ref(2)); - + ATuple* tail = copy.tail; ATuple::const_iterator i = aif->iter_at(3); for (; ; ++i) { @@ -67,7 +67,7 @@ simplify_match(CEnv& cenv, Code& code, const ATuple* match) throw() List def(match->loc, cenv.penv.sym("define"), tsym, tval.head, NULL); cenv.setType(tval.head, cenv.tenv.named("Symbol")); - + List copyIf; copyIf.push_back(cenv.penv.sym("if")); for (ATuple::const_iterator i = match->iter_at(2); i != match->end();) { @@ -120,7 +120,7 @@ simplify_match(CEnv& cenv, Code& code, const ATuple* match) throw() } copyIf.push_back(cenv.penv.sym("__unreachable")); cenv.setTypeSameAs(copyIf, match); - + List copy(match->loc, cenv.penv.sym("do"), def.head, simplify_if(cenv, code, copyIf), 0); cenv.setTypeSameAs(copy, match); @@ -152,7 +152,7 @@ simplify_list_elem(CEnv& cenv, const ATuple* node, const AST* type) } assert(cenv.type(node->fst())); - + const AST* const fst = tup(Cursor(), cenv.type(node->fst()), node->fst(), 0); const AST* const rst = simplify_list_elem(cenv, node->rst(), type); assert(node->fst()); @@ -175,7 +175,7 @@ quote(CEnv& cenv, const AST* ast) return cons; } } - + static const AST* simplify_quote(CEnv& cenv, Code& code, const ATuple* call) throw() { @@ -188,7 +188,7 @@ resp_simplify(CEnv& cenv, Code& code, const AST* ast) throw() const ATuple* const list = ast->to_tuple(); if (!list || !list->fst()) return ast; - + const ASymbol* const sym = list->fst() ? list->fst()->to_symbol() : 0; const std::string form = sym ? sym->sym() : ""; diff --git a/src/unify.cpp b/src/unify.cpp index 9bb2f3c..a23bbcb 100644 --- a/src/unify.cpp +++ b/src/unify.cpp @@ -68,7 +68,7 @@ substitute(const AST* in, const AST* from, const AST* to) const ATuple* tup = in->to_tuple(); if (!tup || !tup->fst()) return from; - + List ret; for (const auto& i : *tup->as_tuple()) { if (!i) { |