Skip to content
Snippets Groups Projects
Commit 674a4e02 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

preprocessor: store string vectors as cellar

parent 1be77c8f
No related branches found
No related tags found
No related merge requests found
...@@ -185,11 +185,11 @@ OptionsList::writeOutput(ostream &output) const ...@@ -185,11 +185,11 @@ OptionsList::writeOutput(ostream &output) const
output << "options_." << it->first << " = "; output << "options_." << it->first << " = ";
if (it->second.size() > 1) if (it->second.size() > 1)
{ {
output << "["; output << "{";
for (vector<string>::const_iterator viit = it->second.begin(); for (vector<string>::const_iterator viit = it->second.begin();
viit != it->second.end(); viit++) viit != it->second.end(); viit++)
output << "'" << *viit << "';"; output << "'" << *viit << "';";
output << "];" << endl; output << "};" << endl;
} }
else else
output << it->second.front() << ";" << endl; output << it->second.front() << ";" << endl;
...@@ -253,11 +253,11 @@ OptionsList::writeOutput(ostream &output, const string &option_group) const ...@@ -253,11 +253,11 @@ OptionsList::writeOutput(ostream &output, const string &option_group) const
output << option_group << "." << it->first << " = "; output << option_group << "." << it->first << " = ";
if (it->second.size() > 1) if (it->second.size() > 1)
{ {
output << "["; output << "{";
for (vector<string>::const_iterator viit = it->second.begin(); for (vector<string>::const_iterator viit = it->second.begin();
viit != it->second.end(); viit++) viit != it->second.end(); viit++)
output << "'" << *viit << "';"; output << "'" << *viit << "';";
output << "];" << endl; output << "};" << endl;
} }
else else
output << it->second.front() << ";" << endl; output << it->second.front() << ";" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment