diff options
author | Bernard Normier <bernard@zeroc.com> | 2003-05-08 20:56:33 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2003-05-08 20:56:33 +0000 |
commit | 7191fd16f940272ab97e78b9ed9bdb69f0c2387d (patch) | |
tree | e84a595939320684641ef2be521921cdf99ad8aa /cpp/src/Ice/BasicStream.cpp | |
parent | Minor comment fix (diff) | |
download | ice-7191fd16f940272ab97e78b9ed9bdb69f0c2387d.tar.bz2 ice-7191fd16f940272ab97e78b9ed9bdb69f0c2387d.tar.xz ice-7191fd16f940272ab97e78b9ed9bdb69f0c2387d.zip |
Sun slicing port
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index 62f559a8b18..134002f1afa 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -357,7 +357,7 @@ IceInternal::BasicStream::endWriteSlice() { Int sz = b.size() - _writeSlice + sizeof(Int); const Byte* p = reinterpret_cast<const Byte*>(&sz); -#ifdef ICE_UTIL_BIGENDIAN +#ifdef ICE_BIG_ENDIAN reverse_copy(p, p + sizeof(Int), b.begin() + _writeSlice - sizeof(Int)); #else copy(p, p + sizeof(Int), b.begin() + _writeSlice - sizeof(Int)); @@ -433,11 +433,11 @@ IceInternal::BasicStream::readSize(Ice::Int& v) void BasicStream::writeTypeId(const string& id) { - TypeIdWriteMap::const_iterator i = _currentWriteEncaps->typeIdMap->find(id); - if(i != _currentWriteEncaps->typeIdMap->end()) + TypeIdWriteMap::const_iterator k = _currentWriteEncaps->typeIdMap->find(id); + if(k != _currentWriteEncaps->typeIdMap->end()) { write(true); - writeSize(i->second); + writeSize(k->second); } else { @@ -456,12 +456,12 @@ BasicStream::readTypeId(string& id) { Ice::Int index; readSize(index); - TypeIdReadMap::const_iterator i = _currentReadEncaps->typeIdMap->find(index); - if(i == _currentReadEncaps->typeIdMap->end()) + TypeIdReadMap::const_iterator k = _currentReadEncaps->typeIdMap->find(index); + if(k == _currentReadEncaps->typeIdMap->end()) { throw UnmarshalOutOfBoundsException(__FILE__, __LINE__); } - id = i->second; + id = k->second; } else { @@ -1086,7 +1086,7 @@ IceInternal::BasicStream::write(const ObjectPtr& v) // q = _currentWriteEncaps->toBeMarshaledMap->insert( _currentWriteEncaps->toBeMarshaledMap->end(), - make_pair(v, ++_currentWriteEncaps->writeIndex)); + pair<const ObjectPtr, Int>(v, ++_currentWriteEncaps->writeIndex)); } p = q; } @@ -1294,7 +1294,7 @@ BasicStream::readPendingObjects() do { readSize(num); - for(int i = num; i > 0; --i) + for(Int k = num; k > 0; --k) { read(0, 0); } @@ -1335,9 +1335,9 @@ BasicStream::patchPointers(Int index, PatchMap::iterator patchPos, IndexToPtrMap if(patchPos != _currentReadEncaps->patchMap->end()) { ObjectPtr v = unmarshaledPos->second; - for(PatchList::iterator i = patchPos->second.begin(); i != patchPos->second.end(); ++i) + for(PatchList::iterator k = patchPos->second.begin(); k != patchPos->second.end(); ++k) { - (*i->patchFunc)(i->patchAddr, v); + (*k->patchFunc)(k->patchAddr, v); } _currentReadEncaps->patchMap->erase(patchPos); } |