From 674a4e02f16143ba5150c21ceb28a5715324fc4d Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Mon, 15 Jan 2018 12:39:29 +0100 Subject: [PATCH] preprocessor: store string vectors as cellar --- Statement.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Statement.cc b/Statement.cc index c7b6dd48..5884c685 100644 --- a/Statement.cc +++ b/Statement.cc @@ -185,11 +185,11 @@ OptionsList::writeOutput(ostream &output) const output << "options_." << it->first << " = "; if (it->second.size() > 1) { - output << "["; + output << "{"; for (vector<string>::const_iterator viit = it->second.begin(); viit != it->second.end(); viit++) output << "'" << *viit << "';"; - output << "];" << endl; + output << "};" << endl; } else output << it->second.front() << ";" << endl; @@ -253,11 +253,11 @@ OptionsList::writeOutput(ostream &output, const string &option_group) const output << option_group << "." << it->first << " = "; if (it->second.size() > 1) { - output << "["; + output << "{"; for (vector<string>::const_iterator viit = it->second.begin(); viit != it->second.end(); viit++) output << "'" << *viit << "';"; - output << "];" << endl; + output << "};" << endl; } else output << it->second.front() << ";" << endl; -- GitLab