]> granicus.if.org Git - re2c/commit
Removed "--input istream".
authorUlya Trofimovich <skvadrik@gmail.com>
Sun, 18 Jan 2015 13:43:08 +0000 (13:43 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 18 Jan 2015 13:43:08 +0000 (13:43 +0000)
commit5771b8cf13011f4101226777a5c24b25fd827da4
tree09a33be3fb6eda238872fa2d3e459c303f72db1d
parent63b6d381ae31be60297f44d96c9f97243b17b0af
Removed "--input istream".

It's impossible to correctly implement this switch in general,
since not all istreams support seek (simplest counterexample:
std::cin).

Even for simple istreams like std::istringstream, proper
error handling requires adding something like "YYERROR ()".
re2c/input_api.cc
re2c/input_api.h
re2c/main.cc