diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-24 14:08:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-24 14:09:08 +0200 |
commit | 875c6e81e5ed52df46740083451380c4597b560c (patch) | |
tree | c3df90087a7797575a6343fb0fe6bc4444975cb5 /build2/cc/lexer.hxx | |
parent | c18a8d2d43f22ccf0b21461b1f0d3395d4e50c1f (diff) |
Optimize C/C++ lexer
Diffstat (limited to 'build2/cc/lexer.hxx')
-rw-r--r-- | build2/cc/lexer.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build2/cc/lexer.hxx b/build2/cc/lexer.hxx index 1869344..aa24f6a 100644 --- a/build2/cc/lexer.hxx +++ b/build2/cc/lexer.hxx @@ -64,8 +64,7 @@ namespace build2 uint64_t line = 0; uint64_t column = 0; - // Physical position in the stream, currently only for identifiers and - // only if the stream is ifdstream. + // Physical position in the stream, currently only for identifiers. // uint64_t position = 0; }; @@ -78,7 +77,7 @@ namespace build2 class lexer: protected butl::char_scanner { public: - lexer (istream& is, const path& name) + lexer (ifdstream& is, const path& name) : char_scanner (is, false), name_ (name), fail ("error", &name_), |