From 875c6e81e5ed52df46740083451380c4597b560c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Jul 2017 14:08:26 +0200 Subject: Optimize C/C++ lexer --- build2/cc/lexer.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'build2/cc/lexer.hxx') 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_), -- cgit v1.1