aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-13 04:07:44 +0000
committerDavid Robillard <d@drobilla.net>2011-01-13 04:07:44 +0000
commit206c01b4ba4c5e674e313d7ed7fe21c2b93f2d12 (patch)
treef9564c63a471067af3aa8f1d7fe83c26a0f0a244 /src/resp.cpp
parentceebe5e8bd7593b99d2a4c8b8fa733a85e0eae81 (diff)
downloadresp-206c01b4ba4c5e674e313d7ed7fe21c2b93f2d12.tar.gz
resp-206c01b4ba4c5e674e313d7ed7fe21c2b93f2d12.tar.bz2
resp-206c01b4ba4c5e674e313d7ed7fe21c2b93f2d12.zip
Fix error location reporting.
git-svn-id: http://svn.drobilla.net/resp/trunk@406 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/resp.cpp')
-rw-r--r--src/resp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resp.cpp b/src/resp.cpp
index 2b08fc3..e2f5a49 100644
--- a/src/resp.cpp
+++ b/src/resp.cpp
@@ -155,7 +155,7 @@ main(int argc, char** argv)
ifstream is(*f);
try {
while (is.good() && !is.eof()) {
- Cursor loc(*f);
+ Cursor loc(*f, 1, 1);
const AST* exp = cenv->penv.parse(loc, is);
if (!exp || (exp->to_tuple() && exp->to_tuple()->empty()))
break;
@@ -194,7 +194,7 @@ main(int argc, char** argv)
ifstream is(*f);
if (is.good()) {
- Cursor cursor(filename);
+ Cursor cursor(filename, 1, 1);
ret = ret | eval(*cenv, cursor, is, !batch);
} else {
cerr << argv[0] << ": " << *f << ": " << strerror(errno) << endl;