summaryrefslogtreecommitdiff
path: root/cli/runtime-inline.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-06-02 18:48:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-06-02 18:48:40 +0200
commit51dc9396d8bd8f0971a59f4e3aa11e8315c394cd (patch)
treed24a2258506584644e0b74468ac22bbdad9af8ab /cli/runtime-inline.cxx
parented60746355044dd39acd82b8f42c4d9886914567 (diff)
Add support for quoting in option file scanner
Diffstat (limited to 'cli/runtime-inline.cxx')
-rw-r--r--cli/runtime-inline.cxx21
1 files changed, 19 insertions, 2 deletions
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