diff options
author | David Robillard <d@drobilla.net> | 2010-12-09 22:52:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-09 22:52:51 +0000 |
commit | 60e8c1288e5f944e17010543dbd24c1c6ab7fe5e (patch) | |
tree | 326a718542409c34b0c70a8bce0ade92058a4783 /src/repl.cpp | |
parent | 7f30acc2d088d3d57ad2c8922eb1927c24fc72a7 (diff) | |
download | resp-60e8c1288e5f944e17010543dbd24c1c6ab7fe5e.tar.gz resp-60e8c1288e5f944e17010543dbd24c1c6ab7fe5e.tar.bz2 resp-60e8c1288e5f944e17010543dbd24c1c6ab7fe5e.zip |
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/resp/resp@336 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/repl.cpp')
-rw-r--r-- | src/repl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/repl.cpp b/src/repl.cpp index f5f7fd4..a1d3e74 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -48,7 +48,7 @@ readParseType(CEnv& cenv, Cursor& cursor, istream& is, const AST*& exp, const AS resp_constrain(cenv.tenv, c, ast); // Constrain types //cout << "(CONSTRAINTS " << endl << c << ")" << endl; - + const Subst subst = unify(c); // Solve type constraints for (Subst::const_iterator i = subst.begin(); i != subst.end(); ++i) { if (!cenv.tsubst.contains(i->first)) { // Substitution's LHS is a new variable @@ -89,11 +89,11 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute) typedef list<const AST*> Parsed; Parsed parsed; - + try { while (readParseType(cenv, cursor, is, exp, ast)) parsed.push_back(ast); - + if (cenv.args.find("-T") != cenv.args.end()) { for (Parsed::const_iterator i = parsed.begin(); i != parsed.end(); ++i) pprint(cout, *i, &cenv, true); @@ -148,7 +148,7 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute) cenv.engine()->writeModule(cenv, cenv.out); return 0; } - + // Call and print result callPrintCollect(cenv, f, ast, type, execute); |