aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-28 08:08:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-28 08:08:25 +0200
commitcd651d5ca3572413180827232eb18239750befca (patch)
treedc2e50150f65a4f0ee780ba21d002df09be7f75f /libbuild2
parentde3de2d1a58556cff5d8549e9befe2ec3cf2d08a (diff)
Regenerate options parsing code
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/script/builtin-options.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/libbuild2/script/builtin-options.cxx b/libbuild2/script/builtin-options.cxx
index 2002764..bedbe64 100644
--- a/libbuild2/script/builtin-options.cxx
+++ b/libbuild2/script/builtin-options.cxx
@@ -308,9 +308,10 @@ namespace build2
std::string vstr (ov, (p != std::string::npos ? p + 1 : ov.size ()));
int ac (2);
- char* av[] =
+ char* av[] =
{
- const_cast<char*> (o), 0
+ const_cast<char*> (o),
+ 0
};
bool dummy;
@@ -455,17 +456,17 @@ namespace build2
{
_cli_set_options_map_init ()
{
- _cli_set_options_map_["--exact"] =
+ _cli_set_options_map_["--exact"] =
&::build2::script::cli::thunk< set_options, bool, &set_options::exact_ >;
- _cli_set_options_map_["-e"] =
+ _cli_set_options_map_["-e"] =
&::build2::script::cli::thunk< set_options, bool, &set_options::exact_ >;
- _cli_set_options_map_["--newline"] =
+ _cli_set_options_map_["--newline"] =
&::build2::script::cli::thunk< set_options, bool, &set_options::newline_ >;
- _cli_set_options_map_["-n"] =
+ _cli_set_options_map_["-n"] =
&::build2::script::cli::thunk< set_options, bool, &set_options::newline_ >;
- _cli_set_options_map_["--whitespace"] =
+ _cli_set_options_map_["--whitespace"] =
&::build2::script::cli::thunk< set_options, bool, &set_options::whitespace_ >;
- _cli_set_options_map_["-w"] =
+ _cli_set_options_map_["-w"] =
&::build2::script::cli::thunk< set_options, bool, &set_options::whitespace_ >;
}
};
@@ -578,7 +579,7 @@ namespace build2
cf[2] = '\0';
int ac (1);
- char* av[] =
+ char* av[] =
{
cf
};