summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/ConfigParser.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-07-25 23:09:48 +0000
committerMichi Henning <michi@zeroc.com>2002-07-25 23:09:48 +0000
commit997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d (patch)
tree267560499341128d631b40e1caff8e9435b55552 /cpp/src/IceSSL/ConfigParser.cpp
parentAdded generation of Yellow.Query in service configuration. (diff)
downloadice-997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d.tar.bz2
ice-997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d.tar.xz
ice-997c78b8c2911a3787d9ca9b4b10e587cb8cbb2d.zip
Changed Slice parser to disallow leading underscore for identifiers.
Changed Slice parser to reject identifiers beginning with "Ice", unless the --ice option is used. Changed Slice parser to disallow identifiers that have a trailing "Operations", "Holder", "Helper", "Prx", or "Ptr", to avoid clashes with language mappings. Fixed tests and remaining code base to work correctly with the changed rules.
Diffstat (limited to 'cpp/src/IceSSL/ConfigParser.cpp')
-rw-r--r--cpp/src/IceSSL/ConfigParser.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/IceSSL/ConfigParser.cpp b/cpp/src/IceSSL/ConfigParser.cpp
index e7f689c8b65..124d51b4069 100644
--- a/cpp/src/IceSSL/ConfigParser.cpp
+++ b/cpp/src/IceSSL/ConfigParser.cpp
@@ -66,7 +66,7 @@ IceSSL::ConfigParser::process()
s << "while parsing " << _configFile << ": " << endl;
s << "xerces-c init exception: " << DOMString(toCatch.getMessage());
- configEx._message = s.str();
+ configEx.message = s.str();
throw configEx;
}
@@ -129,7 +129,7 @@ IceSSL::ConfigParser::process()
s << "while parsing " << _configFile << ": " << endl;
s << "xerces-c parsing error: " << DOMString(e.getMessage());
- configEx._message = s.str();
+ configEx.message = s.str();
throw configEx;
}
@@ -142,7 +142,7 @@ IceSSL::ConfigParser::process()
s << "xerces-c DOM parsing error, DOMException code: " << e.code;
s << ", message: " << e.msg;
- configEx._message = s.str();
+ configEx.message = s.str();
throw configEx;
}
@@ -150,7 +150,7 @@ IceSSL::ConfigParser::process()
{
ConfigParseException configEx(__FILE__, __LINE__);
- configEx._message = "while parsing " + _configFile + "\n" + "unknown error occured during parsing";
+ configEx.message = "while parsing " + _configFile + "\n" + "unknown error occured during parsing";
throw configEx;
}
@@ -163,14 +163,14 @@ IceSSL::ConfigParser::process()
errStr << dec << errorCount << " errors occured during parsing";
- configEx._message = errStr.str();
+ configEx.message = errStr.str();
string reporterErrors = errReporter->getErrors();
if(!reporterErrors.empty())
{
- configEx._message += "\n";
- configEx._message += reporterErrors;
+ configEx.message += "\n";
+ configEx.message += reporterErrors;
}
throw configEx;
@@ -205,7 +205,7 @@ IceSSL::ConfigParser::loadClientConfig(GeneralConfig& general,
s << "xerces-c DOM parsing error, DOMException code: " << e.code;
s << ", message: " << e.msg;
- configEx._message = s.str();
+ configEx.message = s.str();
throw configEx;
}
@@ -243,7 +243,7 @@ IceSSL::ConfigParser::loadServerConfig(GeneralConfig& general,
s << "xerces-c DOM parsing error, DOMException code: " << e.code;
s << ", message: " << e.msg;
- configEx._message = s.str();
+ configEx.message = s.str();
throw configEx;
}