diff options
author | Michi Henning <michi@zeroc.com> | 2002-07-19 06:50:48 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-07-19 06:50:48 +0000 |
commit | 61d3cefa01dcbef2d6ec16e660d9d02767d2c5a8 (patch) | |
tree | ff2135e4b1d90c516f31dec237aa368ab41f5f85 /cpp/src/Slice/CPlusPlusUtil.cpp | |
parent | file ice.xsd was initially added on branch freeze_xml. (diff) | |
download | ice-61d3cefa01dcbef2d6ec16e660d9d02767d2c5a8.tar.bz2 ice-61d3cefa01dcbef2d6ec16e660d9d02767d2c5a8.tar.xz ice-61d3cefa01dcbef2d6ec16e660d9d02767d2c5a8.zip |
Picked up a few style crimes and fixed them.
Added code generation for Java constants to slice2java.
Added missing keyword (strictfp) to lists of keywords that need escaping
for Java.
Fixed bug in Java code generator: if a type name had a prefix in common
with the name of its enclosing scope, the scope mangling code stripped
off too much of the scope. For example:
enum color { red }; const color c = red;
This resulted in the generated type name being "olor" instead of "color"
because the constant starts with the same letter as the name of the
type.
Fixed bug in the keyword escape mechanism -- keywords embedded in scoped
names were not escaped.
Keywords escaping for both Java and C++ still has bugs. I wrote two Slice
torture files full of keywords. Neither the generated C++ code nor the
generated Java code work for those files yet. Need to look at this...
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index f4838f81b35..5d1c95ec4a9 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -307,7 +307,7 @@ splitScopedName(const string& scoped) if(pos != scoped.size()) { string::size_type endpos = scoped.find("::", pos); - if (endpos != string::npos) + if(endpos != string::npos) { ids.push_back(scoped.substr(pos, endpos - pos)); } |