summaryrefslogtreecommitdiffstats
path: root/kdvi/bigEndianByteReader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kdvi/bigEndianByteReader.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdvi/bigEndianByteReader.cpp')
-rw-r--r--kdvi/bigEndianByteReader.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kdvi/bigEndianByteReader.cpp b/kdvi/bigEndianByteReader.cpp
index 63d11f83..aa55bdd8 100644
--- a/kdvi/bigEndianByteReader.cpp
+++ b/kdvi/bigEndianByteReader.cpp
@@ -14,7 +14,7 @@
//#define DEBUG_ENDIANREADER
-Q_UINT8 bigEndianByteReader::readUINT8()
+TQ_UINT8 bigEndianByteReader::readUINT8()
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
@@ -30,27 +30,27 @@ Q_UINT8 bigEndianByteReader::readUINT8()
return *(command_pointer++);
}
-Q_UINT16 bigEndianByteReader::readUINT16()
+TQ_UINT16 bigEndianByteReader::readUINT16()
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
if (command_pointer >= end_pointer)
return EOP;
- Q_UINT16 a;
+ TQ_UINT16 a;
a = *(command_pointer++);
a = (a << 8) | *(command_pointer++);
return a;
}
-Q_UINT32 bigEndianByteReader::readUINT32()
+TQ_UINT32 bigEndianByteReader::readUINT32()
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
if (command_pointer >= end_pointer)
return EOP;
- Q_UINT32 a;
+ TQ_UINT32 a;
a = *(command_pointer++);
a = (a << 8) | *(command_pointer++);
a = (a << 8) | *(command_pointer++);
@@ -58,33 +58,33 @@ Q_UINT32 bigEndianByteReader::readUINT32()
return a;
}
-void bigEndianByteReader::writeUINT32(Q_UINT32 a)
+void bigEndianByteReader::writeUINT32(TQ_UINT32 a)
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
if (command_pointer >= end_pointer)
return;
- command_pointer[3] = (Q_UINT8)(a & 0xFF);
+ command_pointer[3] = (TQ_UINT8)(a & 0xFF);
a = a >> 8;
- command_pointer[2] = (Q_UINT8)(a & 0xFF);
+ command_pointer[2] = (TQ_UINT8)(a & 0xFF);
a = a >> 8;
- command_pointer[1] = (Q_UINT8)(a & 0xFF);
+ command_pointer[1] = (TQ_UINT8)(a & 0xFF);
a = a >> 8;
- command_pointer[0] = (Q_UINT8)(a & 0xFF);
+ command_pointer[0] = (TQ_UINT8)(a & 0xFF);
command_pointer += 4;
return;
}
-Q_UINT32 bigEndianByteReader::readUINT(Q_UINT8 size)
+TQ_UINT32 bigEndianByteReader::readUINT(TQ_UINT8 size)
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
if (command_pointer >= end_pointer)
return EOP;
- Q_UINT32 a = 0;
+ TQ_UINT32 a = 0;
while (size > 0) {
a = (a << 8) + *(command_pointer++);
size--;
@@ -92,14 +92,14 @@ Q_UINT32 bigEndianByteReader::readUINT(Q_UINT8 size)
return a;
}
-Q_INT32 bigEndianByteReader::readINT(Q_UINT8 length)
+TQ_INT32 bigEndianByteReader::readINT(TQ_UINT8 length)
{
// This check saveguards us against segmentation fault. It is also
// necessary for virtual fonts, which do not end whith EOP.
if (command_pointer >= end_pointer)
return EOP;
- Q_INT32 a = *(command_pointer++);
+ TQ_INT32 a = *(command_pointer++);
if (a & 0x80)
a -= 0x100;