summaryrefslogtreecommitdiff
path: root/src/net/messagein.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-26 12:59:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-26 12:59:23 +0300
commitc87f02c075919337018b534b6f8ef2c97160c883 (patch)
tree93cbc4d097d0978638076c869dc7d8f39bc4b03e /src/net/messagein.cpp
parent7d2146f1ed4fbb0d0febd9bd78b5a864764282d1 (diff)
downloadplus-c87f02c075919337018b534b6f8ef2c97160c883.tar.gz
plus-c87f02c075919337018b534b6f8ef2c97160c883.tar.bz2
plus-c87f02c075919337018b534b6f8ef2c97160c883.tar.xz
plus-c87f02c075919337018b534b6f8ef2c97160c883.zip
add restrict into messagein.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r--src/net/messagein.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index 28a16cfbd..4bd472dc1 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -59,7 +59,7 @@ unsigned char MessageIn::readInt8()
return value;
}
-void MessageIn::readCoordinates(uint16_t &x, uint16_t &y)
+void MessageIn::readCoordinates(uint16_t &restrict x, uint16_t &restrict y)
{
if (mPos + 3 <= mLength)
{
@@ -108,7 +108,8 @@ uint8_t MessageIn::fromServerDirection(const uint8_t serverDir)
}
}
-void MessageIn::readCoordinates(uint16_t &x, uint16_t &y, uint8_t &direction)
+void MessageIn::readCoordinates(uint16_t &restrict x, uint16_t &restrict y,
+ uint8_t &restrict direction)
{
uint8_t serverDir = 0;
if (mPos + 3 <= mLength)
@@ -138,8 +139,10 @@ void MessageIn::readCoordinates(uint16_t &x, uint16_t &y, uint8_t &direction)
PacketCounters::incInBytes(3);
}
-void MessageIn::readCoordinatePair(uint16_t &srcX, uint16_t &srcY,
- uint16_t &dstX, uint16_t &dstY)
+void MessageIn::readCoordinatePair(uint16_t &restrict srcX,
+ uint16_t &restrict srcY,
+ uint16_t &restrict dstX,
+ uint16_t &restrict dstY)
{
if (mPos + 5 <= mLength)
{