From 51dc9396d8bd8f0971a59f4e3aa11e8315c394cd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Jun 2010 18:48:40 +0200 Subject: Add support for quoting in option file scanner --- cli/runtime-inline.cxx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'cli/runtime-inline.cxx') diff --git a/cli/runtime-inline.cxx b/cli/runtime-inline.cxx index cc54b5e..da2decf 100644 --- a/cli/runtime-inline.cxx +++ b/cli/runtime-inline.cxx @@ -115,10 +115,10 @@ generate_runtime_inline (context& ctx) << "return value_;" << "}"; - // file_io_failure - // if (ctx.options.generate_file_scanner ()) { + // file_io_failure + // os << "// file_io_failure" << endl << "//" << endl @@ -133,6 +133,23 @@ generate_runtime_inline (context& ctx) << "{" << "return file_;" << "}"; + + // unmatched_option + // + os << "// unmatched_quote" << endl + << "//" << endl + + << inl << "unmatched_quote::" << endl + << "unmatched_quote (const std::string& argument)" << endl + << ": argument_ (argument)" + << "{" + << "}" + + << inl << "const std::string& unmatched_quote::" << endl + << "argument () const" + << "{" + << "return argument_;" + << "}"; } // argv_scanner -- cgit v1.1