summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/CsUtil.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2005-08-18 23:48:52 +0000
committerMichi Henning <michi@zeroc.com>2005-08-18 23:48:52 +0000
commita49c0bed90203f241b0195d7c3f59dc111f7d053 (patch)
tree6585a4af32edb4f58d7fbff55cdbbb41b35cff0d /cpp/src/Slice/CsUtil.cpp
parentFix for (diff)
downloadice-a49c0bed90203f241b0195d7c3f59dc111f7d053.tar.bz2
ice-a49c0bed90203f241b0195d7c3f59dc111f7d053.tar.xz
ice-a49c0bed90203f241b0195d7c3f59dc111f7d053.zip
Fix for http://www.zeroc.com/vbulletin/showthread.php?t=1653
Diffstat (limited to 'cpp/src/Slice/CsUtil.cpp')
-rwxr-xr-xcpp/src/Slice/CsUtil.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/cpp/src/Slice/CsUtil.cpp b/cpp/src/Slice/CsUtil.cpp
index 8f9880d1349..7e7c8962731 100755
--- a/cpp/src/Slice/CsUtil.cpp
+++ b/cpp/src/Slice/CsUtil.cpp
@@ -683,32 +683,32 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
else
{
out << sb;
- out << nl << "int szx = " << stream << ".readSize();";
+ out << nl << "int __szx = " << stream << ".readSize();";
if(!streamingAPI)
{
if(type->isVariableLength())
{
- out << nl << stream << ".startSeq(szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
+ out << nl << stream << ".startSeq(__szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
}
else
{
- out << nl << stream << ".checkFixedSeq(szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
+ out << nl << stream << ".checkFixedSeq(__szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
}
}
out << nl << param << " = new ";
if(isArray)
{
- out << toArrayAlloc(typeS + "[]", "szx");
+ out << toArrayAlloc(typeS + "[]", "__szx");
}
else
{
- out << fixId(seq->scoped()) << "(szx)";
+ out << fixId(seq->scoped()) << "(__szx)";
}
out << ';';
- out << nl << "for(int i = 0; i < szx; ++i)";
+ out << nl << "for(int __i = 0; __i < __szx; ++__i)";
out << sb;
out << nl << "IceInternal.SequencePatcher spx = new IceInternal.SequencePatcher("
- << param << ", " << "typeof(" << typeS << "), i);";
+ << param << ", " << "typeof(" << typeS << "), __i);";
out << nl << stream << ".readObject(";
if(streamingAPI)
{
@@ -723,7 +723,7 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
out << eb;
if(!streamingAPI && type->isVariableLength())
{
- out << nl << stream << ".endSeq(szx);";
+ out << nl << stream << ".endSeq(__szx);";
}
out << eb;
}
@@ -751,29 +751,29 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
else
{
out << sb;
- out << nl << "int szx = " << stream << ".readSize();";
+ out << nl << "int __szx = " << stream << ".readSize();";
if(!streamingAPI)
{
if(type->isVariableLength())
{
- out << nl << stream << ".startSeq(szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
+ out << nl << stream << ".startSeq(__szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
}
else
{
- out << nl << stream << ".checkFixedSeq(szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
+ out << nl << stream << ".checkFixedSeq(__szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
}
}
out << nl << param << " = new ";
if(isArray)
{
- out << toArrayAlloc(typeS + "[]", "szx");
+ out << toArrayAlloc(typeS + "[]", "__szx");
}
else
{
- out << fixId(seq->scoped()) << "(szx)";
+ out << fixId(seq->scoped()) << "(__szx)";
}
out << ';';
- out << nl << "for(int __ix = 0; __ix < szx; ++__ix)";
+ out << nl << "for(int __ix = 0; __ix < __szx; ++__ix)";
out << sb;
if(isArray)
{
@@ -793,7 +793,7 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
out << eb;
if(!streamingAPI && type->isVariableLength())
{
- out << nl << stream << ".endSeq(szx);";
+ out << nl << stream << ".endSeq(__szx);";
}
out << eb;
}
@@ -821,22 +821,22 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
else
{
out << sb;
- out << nl << "int szx = " << stream << ".readSize();";
+ out << nl << "int __szx = " << stream << ".readSize();";
if(!streamingAPI)
{
- out << nl << stream << ".checkFixedSeq(szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
+ out << nl << stream << ".checkFixedSeq(__szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
}
out << nl << param << " = new ";
if(isArray)
{
- out << toArrayAlloc(typeS + "[]", "szx");
+ out << toArrayAlloc(typeS + "[]", "__szx");
}
else
{
- out << fixId(seq->scoped()) << "(szx)";
+ out << fixId(seq->scoped()) << "(__szx)";
}
out << ';';
- out << nl << "for(int __ix = 0; __ix < szx; ++__ix)";
+ out << nl << "for(int __ix = 0; __ix < __szx; ++__ix)";
out << sb;
if(isArray)
{
@@ -887,29 +887,29 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
{
func += "read";
out << sb;
- out << nl << "int szx = " << stream << ".readSize();";
+ out << nl << "int __szx = " << stream << ".readSize();";
if(!streamingAPI)
{
if(type->isVariableLength())
{
- out << nl << stream << ".startSeq(szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
+ out << nl << stream << ".startSeq(__szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
}
else
{
- out << nl << stream << ".checkFixedSeq(szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
+ out << nl << stream << ".checkFixedSeq(__szx, " << static_cast<unsigned>(type->minWireSize()) << ");";
}
}
out << nl << param << " = new ";
if(isArray)
{
- out << toArrayAlloc(typeS + "[]", "szx");
+ out << toArrayAlloc(typeS + "[]", "__szx");
}
else
{
- out << fixId(seq->scoped()) << "(szx)";
+ out << fixId(seq->scoped()) << "(__szx)";
}
out << ';';
- out << nl << "for(int __ix = 0; __ix < szx; ++__ix)";
+ out << nl << "for(int __ix = 0; __ix < __szx; ++__ix)";
out << sb;
if(isArray)
{
@@ -930,7 +930,7 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
out << eb;
if(!streamingAPI && type->isVariableLength())
{
- out << nl << stream << ".endSeq(szx);";
+ out << nl << stream << ".endSeq(__szx);";
}
out << eb;
}