aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-18 03:55:17 +0000
committerDavid Robillard <d@drobilla.net>2009-06-18 03:55:17 +0000
commit4e34e229beb12164ea49b1121785dc71eb7c3566 (patch)
tree3951bb94748289698cba24cc220be5323938e645 /tuplr.cpp
parent815991c906f912c4eb52e1d3646a6110d472a8ec (diff)
downloadresp-4e34e229beb12164ea49b1121785dc71eb7c3566.tar.gz
resp-4e34e229beb12164ea49b1121785dc71eb7c3566.tar.bz2
resp-4e34e229beb12164ea49b1121785dc71eb7c3566.zip
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/resp/tuplr@118 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'tuplr.cpp')
-rw-r--r--tuplr.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tuplr.cpp b/tuplr.cpp
index 03c3d4e..6e0571e 100644
--- a/tuplr.cpp
+++ b/tuplr.cpp
@@ -160,7 +160,7 @@ initLang(PEnv& penv, TEnv& tenv)
penv.reg(true, "cons", PEnv::Handler(parseCall<AConsCall>));
penv.reg(true, "car", PEnv::Handler(parseCall<ACarCall>));
penv.reg(true, "cdr", PEnv::Handler(parseCall<ACdrCall>));
-
+
// Numeric primitives
penv.reg(true, "+", PEnv::Handler(parseCall<APrimitive>));
penv.reg(true, "-", PEnv::Handler(parseCall<APrimitive>));
@@ -228,12 +228,12 @@ main(int argc, char** argv)
}
int ret = 0;
-
+
string output;
map<string,string>::const_iterator a = args.find("-o");
if (a != args.end())
output = a->second;
-
+
a = args.find("-p");
if (a != args.end()) {
ifstream is(files.front().c_str());
@@ -251,7 +251,7 @@ main(int argc, char** argv)
istringstream is(a->second);
ret = eval(*cenv, "(command line)", is);
}
-
+
for (list<string>::iterator f = files.begin(); f != files.end(); ++f) {
ifstream is(f->c_str());
if (is.good()) {
@@ -265,7 +265,7 @@ main(int argc, char** argv)
if (args.find("-r") != args.end() || (files.empty() && args.find("-e") == args.end()))
ret = repl(*cenv);
-
+
if (output != "") {
ofstream os(output.c_str());
if (os.good()) {