diff options
author | Michi Henning <michi@zeroc.com> | 2005-08-18 23:48:52 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-08-18 23:48:52 +0000 |
commit | a49c0bed90203f241b0195d7c3f59dc111f7d053 (patch) | |
tree | 6585a4af32edb4f58d7fbff55cdbbb41b35cff0d /cpp/src/Slice/VbUtil.cpp | |
parent | Fix for (diff) | |
download | ice-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/VbUtil.cpp')
-rwxr-xr-x | cpp/src/Slice/VbUtil.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/cpp/src/Slice/VbUtil.cpp b/cpp/src/Slice/VbUtil.cpp index 9d7e1505fbf..0ee820a4ca4 100755 --- a/cpp/src/Slice/VbUtil.cpp +++ b/cpp/src/Slice/VbUtil.cpp @@ -716,38 +716,38 @@ Slice::VbGenerator::writeSequenceMarshalUnmarshalCode(Output& out, } else { - out << nl << "Dim szx As Integer = " << stream << ".readSize()"; + out << nl << "Dim __szx As Integer = " << 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 - 1") << " {}"; + out << toArrayAlloc(typeS + "()", "__szx - 1") << " {}"; } else { - out << fixId(seq->scoped()) << "(szx)"; + out << fixId(seq->scoped()) << "(__szx)"; } - out << nl << "For ix As Integer = 0 To sz - 1"; + out << nl << "For __ix As Integer = 0 To __szx - 1"; out.inc(); - out << nl << "Dim spx As IceInternal.SequencePatcher = New IceInternal.SequencePatcher(" - << param << ", " << "GetType(" << typeS << "), ix)"; + out << nl << "Dim __spx As IceInternal.SequencePatcher = New IceInternal.SequencePatcher(" + << param << ", " << "GetType(" << typeS << "), __ix)"; if(streamingAPI) { - out << nl << stream << ".readObject(CType(spx, Ice.ReadObjectCallback))"; + out << nl << stream << ".readObject(CType(__spx, Ice.ReadObjectCallback))"; } else { - out << nl << stream << ".readObject(spx)"; + out << nl << stream << ".readObject(__spx)"; } if(!streamingAPI && type->isVariableLength()) { @@ -758,7 +758,7 @@ Slice::VbGenerator::writeSequenceMarshalUnmarshalCode(Output& out, out << nl << "Next"; if(!streamingAPI && type->isVariableLength()) { - out << nl << stream << ".endSeq(szx)"; + out << nl << stream << ".endSeq(__szx)"; } } out.dec(); @@ -790,28 +790,28 @@ Slice::VbGenerator::writeSequenceMarshalUnmarshalCode(Output& out, } else { - out << nl << "Dim szx As Integer = " << stream << ".readSize()"; + out << nl << "Dim __szx As Integer = " << 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 - 1") << " {}"; + out << toArrayAlloc(typeS + "()", "__szx - 1") << " {}"; } else { - out << fixId(seq->scoped()) << "(szx)"; + out << fixId(seq->scoped()) << "(__szx)"; } - out << nl << "For __ix As Integer = 0 To szx - 1"; + out << nl << "For __ix As Integer = 0 To __szx - 1"; out.inc(); if(isArray) { @@ -832,7 +832,7 @@ Slice::VbGenerator::writeSequenceMarshalUnmarshalCode(Output& out, out << nl << "Next"; if(!streamingAPI && type->isVariableLength()) { - out << nl << stream << ".endSeq(szx)"; + out << nl << stream << ".endSeq(__szx)"; } } out.dec(); @@ -864,21 +864,21 @@ Slice::VbGenerator::writeSequenceMarshalUnmarshalCode(Output& out, } else { - out << nl << "Dim szx As Integer = " << stream << ".readSize()"; + out << nl << "Dim __szx As Integer = " << 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 - 1") << " {}"; + out << toArrayAlloc(typeS + "()", "__szx - 1") << " {}"; } else { - out << fixId(seq->scoped()) << "(szx)"; + out << fixId(seq->scoped()) << "(__szx)"; } - out << nl << "For __ix As Integer = 0 To szx - 1"; + out << nl << "For __ix As Integer = 0 To __szx - 1"; out.inc(); if(isArray) { @@ -935,28 +935,28 @@ Slice::VbGenerator::writeSequenceMarshalUnmarshalCode(Output& out, out << nl << "For __block As Integer = 0 To 0"; out.inc(); string func = ProxyPtr::dynamicCast(type) ? "__read" : "read"; - out << nl << "Dim szx As Integer = " << stream << ".readSize()"; + out << nl << "Dim __szx As Integer = " << 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 - 1") << " {}"; + out << toArrayAlloc(typeS + "()", "__szx - 1") << " {}"; } else { - out << fixId(seq->scoped()) << "(szx)"; + out << fixId(seq->scoped()) << "(__szx)"; } - out << nl << "For __ix As Integer = 0 To szx - 1"; + out << nl << "For __ix As Integer = 0 To __szx - 1"; out.inc(); if(isArray) { @@ -978,7 +978,7 @@ Slice::VbGenerator::writeSequenceMarshalUnmarshalCode(Output& out, out << nl << "Next"; if(!streamingAPI && type->isVariableLength()) { - out << nl << stream << ".endSeq(szx)"; + out << nl << stream << ".endSeq(__szx)"; } out.dec(); out << nl << "Next"; |