aboutsummaryrefslogtreecommitdiff
path: root/libbutl/char-scanner.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-09 18:17:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-09 18:17:16 +0200
commit5ffc678109310f90f9eaa2b86a98900703ac60ae (patch)
tree80ce525b23edbb91602cf223c37de02e144b958e /libbutl/char-scanner.cxx
parent182f28f9afb993600c3cefe3d289d1600222c14e (diff)
Add ability to save data in char_scanner
Diffstat (limited to 'libbutl/char-scanner.cxx')
-rw-r--r--libbutl/char-scanner.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbutl/char-scanner.cxx b/libbutl/char-scanner.cxx
index 2e680b6..607d887 100644
--- a/libbutl/char-scanner.cxx
+++ b/libbutl/char-scanner.cxx
@@ -35,8 +35,10 @@ using namespace std;
namespace butl
{
char_scanner::
- char_scanner (istream& is, bool crlf)
- : is_ (is),
+ char_scanner (istream& is, bool crlf, uint64_t l)
+ : line (l),
+ column (1),
+ is_ (is),
buf_ (dynamic_cast<fdbuf*> (is.rdbuf ())),
gptr_ (nullptr),
egptr_ (nullptr),