diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-07-27 17:28:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-07-27 17:28:27 +0200 |
commit | 8c1e0035404050376350d5e9b9242f5d39a6b53e (patch) | |
tree | 1aa609d156a4e0c131caf40c2d070d20b304bdbf /cli/runtime-header.cxx | |
parent | dca38b27afc25d329fd7a7241095b40e2a1ecae2 (diff) |
Add support for direct file loading with argv_file_scanner
Diffstat (limited to 'cli/runtime-header.cxx')
-rw-r--r-- | cli/runtime-header.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cli/runtime-header.cxx b/cli/runtime-header.cxx index 9d200bc..2b01071 100644 --- a/cli/runtime-header.cxx +++ b/cli/runtime-header.cxx @@ -415,6 +415,9 @@ generate_runtime_header (context& ctx) << "const std::string& option," << endl << "bool erase = false);" << endl + << "argv_file_scanner (const std::string& file," << endl + << "const std::string& option);" + << endl << "struct option_info" << "{" << "// If search_func is not NULL, it is called, with the arg" << endl @@ -438,6 +441,10 @@ generate_runtime_header (context& ctx) << "std::size_t options_count," << endl << "bool erase = false);" << endl + << "argv_file_scanner (const std::string& file," << endl + << "const option_info* options = 0," << endl + << "std::size_t options_count = 0);" + << endl << "virtual bool" << endl << "more ();" << endl @@ -475,7 +482,9 @@ generate_runtime_header (context& ctx) os << endl << "bool skip_;"; - os << "};"; + os << endl + << "static int zero_argc_;" + << "};"; } // group_scanner |