aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tuplr.cpp')
-rw-r--r--tuplr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tuplr.cpp b/tuplr.cpp
index da5a31a..eaf351c 100644
--- a/tuplr.cpp
+++ b/tuplr.cpp
@@ -278,7 +278,7 @@ eval(CEnv& cenv, const string& name, istream& is)
Object::pool.collect(Object::pool.roots());
if (cenv.args.find("-d") != cenv.args.end())
- cenv.write(cenv.out);
+ writeModule(cenv, cenv.out);
} catch (Error& e) {
cenv.err << e.what() << endl;
@@ -337,7 +337,7 @@ repl(CEnv& cenv)
cenv.tsubst = oldSubst;
if (cenv.args.find("-d") != cenv.args.end())
- cenv.write(cenv.out);
+ writeModule(cenv, cenv.out);
} catch (Error& e) {
cenv.err << e.what() << endl;
@@ -445,7 +445,7 @@ main(int argc, char** argv)
if (output != "") {
ofstream os(output.c_str());
if (os.good()) {
- cenv->write(os);
+ writeModule(*cenv, os);
} else {
cerr << argv[0] << ": " << a->second << ": " << strerror(errno) << endl;
++ret;