aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tuplr.cpp')
-rw-r--r--tuplr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tuplr.cpp b/tuplr.cpp
index 49a3607..5837715 100644
--- a/tuplr.cpp
+++ b/tuplr.cpp
@@ -33,7 +33,7 @@ std::ostream& out = std::cout;
/***************************************************************************
- * S-Expression Lexer :: text -> S-Expressions (SExp) *
+ * Lexer *
***************************************************************************/
inline int
@@ -157,7 +157,7 @@ initLang(PEnv& penv, TEnv& tenv)
int
print_usage(char* name, bool error)
{
- std::ostream& os = error ? std::cerr : std::cout;
+ ostream& os = error ? cerr : cout;
os << "Usage: " << name << " [OPTION]... [FILE]..." << endl;
os << "Evaluate and/or compile Tuplr code" << endl;
os << endl;
@@ -206,7 +206,7 @@ main(int argc, char** argv)
if (is.good()) {
ret = ret | eval(*cenv, *f, is);
} else {
- std::cerr << argv[0] << ": " << *f << ": " << strerror(errno) << endl;
+ cerr << argv[0] << ": " << *f << ": " << strerror(errno) << endl;
++ret;
}
is.close();
@@ -217,7 +217,7 @@ main(int argc, char** argv)
a = args.find("-o");
if (a != args.end()) {
- std::ofstream os(a->second.c_str());
+ ofstream os(a->second.c_str());
if (os.good()) {
cenv->write(os);
} else {