summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2005-11-14 02:21:26 +0000
committerMichi Henning <michi@zeroc.com>2005-11-14 02:21:26 +0000
commit4f2d361befaffe9a6e34b3f70f12e58a53cc192e (patch)
tree0dfc6bce93fe8eb3c17f8950c80774379834bef3 /cpp/src
parentminor edits (diff)
downloadice-4f2d361befaffe9a6e34b3f70f12e58a53cc192e.tar.bz2
ice-4f2d361befaffe9a6e34b3f70f12e58a53cc192e.tar.xz
ice-4f2d361befaffe9a6e34b3f70f12e58a53cc192e.zip
Fixed bug in generated code for VC++ 2005. (__value is a keyword with that
compiler.)
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp12
-rw-r--r--cpp/src/slice2cppe/Gen.cpp12
2 files changed, 12 insertions, 12 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 0691a80505c..ade23430bf9 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -429,7 +429,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
string paramName = fixKwd((*q)->name());
string typeName = inputTypeToString((*q)->type());
allTypes.push_back(typeName);
- allParamDecls.push_back(typeName + " __" + paramName);
+ allParamDecls.push_back(typeName + " __ice_" + paramName);
}
if(base)
@@ -437,7 +437,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
DataMemberList baseDataMembers = base->allDataMembers();
for(q = baseDataMembers.begin(); q != baseDataMembers.end(); ++q)
{
- baseParams.push_back("__" + fixKwd((*q)->name()));
+ baseParams.push_back("__ice_" + fixKwd((*q)->name()));
}
}
@@ -540,7 +540,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
{
C << ",";
}
- C << nl << *pi << "(__" << *pi << ')';
+ C << nl << *pi << "(__ice_" << *pi << ')';
}
if(p->isLocal() || !baseParams.empty() || !params.empty())
{
@@ -2328,7 +2328,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
string paramName = fixKwd((*q)->name());
string typeName = inputTypeToString((*q)->type());
allTypes.push_back(typeName);
- allParamDecls.push_back(typeName + " __" + paramName);
+ allParamDecls.push_back(typeName + " __ice_" + paramName);
}
if(!p->isInterface())
@@ -2345,7 +2345,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
}
/*
- * Strong guarantee: commented-out code marked "String guarantee" generates
+ * Strong guarantee: commented-out code marked "Strong guarantee" generates
* a copy-assignment operator that provides the strong exception guarantee.
* For now, this is commented out, and we use the compiler-generated
* copy-assignment operator. However, that one does not provide the strong
@@ -2418,7 +2418,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
{
C << ',' << nl;
}
- C << *pi << '(' << "__" << *pi << ')';
+ C << *pi << '(' << "__ice_" << *pi << ')';
}
C.dec();
C << sb;
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp
index 24786a87c2c..e259cef6fc4 100644
--- a/cpp/src/slice2cppe/Gen.cpp
+++ b/cpp/src/slice2cppe/Gen.cpp
@@ -391,7 +391,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
string paramName = fixKwd((*q)->name());
string typeName = inputTypeToString((*q)->type());
allTypes.push_back(typeName);
- allParamDecls.push_back(typeName + " __" + paramName);
+ allParamDecls.push_back(typeName + " __ice_" + paramName);
}
if(base)
@@ -399,7 +399,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
DataMemberList baseDataMembers = base->allDataMembers();
for(q = baseDataMembers.begin(); q != baseDataMembers.end(); ++q)
{
- baseParams.push_back("__" + fixKwd((*q)->name()));
+ baseParams.push_back("__ice_" + fixKwd((*q)->name()));
}
}
@@ -502,7 +502,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
{
C << ",";
}
- C << nl << *pi << "(__" << *pi << ')';
+ C << nl << *pi << "(__ice_" << *pi << ')';
}
if(p->isLocal() || !baseParams.empty() || !params.empty())
{
@@ -1745,7 +1745,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
string paramName = fixKwd((*q)->name());
string typeName = inputTypeToString((*q)->type());
allTypes.push_back(typeName);
- allParamDecls.push_back(typeName + " __" + paramName);
+ allParamDecls.push_back(typeName + " __ice_" + paramName);
}
if(!p->isInterface())
@@ -1762,7 +1762,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
}
/*
- * Strong guarantee: commented-out code marked "String guarantee" generates
+ * Strong guarantee: commented-out code marked "Strong guarantee" generates
* a copy-assignment operator that provides the strong exception guarantee.
* For now, this is commented out, and we use the compiler-generated
* copy-assignment operator. However, that one does not provide the strong
@@ -1835,7 +1835,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
{
C << ',' << nl;
}
- C << *pi << '(' << "__" << *pi << ')';
+ C << *pi << '(' << "__ice_" << *pi << ')';
}
C.dec();
C << sb;