Kaydet (Commit) e49865e7 authored tarafından Caolán McNamara's avatar Caolán McNamara

git rid of comm_WORD and comm_DWORD

üst 779b3891
......@@ -38,22 +38,22 @@
#include <osl/endian.h>
#ifndef MAKEDWORD
#define MAKEDWORD(wl, wh) ((comm_DWORD)((wl) & 0xFFFF) | (((comm_DWORD)(wh) & 0xFFFF) << 16))
#define MAKEDWORD(wl, wh) ((sal_uInt32)((wl) & 0xFFFF) | (((sal_uInt32)(wh) & 0xFFFF) << 16))
#endif
#ifndef LOWORD
#define LOWORD(d) ((comm_WORD)((comm_DWORD)(d) & 0xFFFF))
#define LOWORD(d) ((sal_uInt16)((sal_uInt32)(d) & 0xFFFF))
#endif
#ifndef HIWORD
#define HIWORD(d) ((comm_WORD)(((comm_DWORD)(d) >> 16) & 0xFFFF))
#define HIWORD(d) ((sal_uInt16)(((sal_uInt32)(d) >> 16) & 0xFFFF))
#endif
#ifndef MAKEWORD
#define MAKEWORD(bl, bh) ((comm_WORD)((bl) & 0xFF) | (((comm_WORD)(bh) & 0xFF) << 8))
#define MAKEWORD(bl, bh) ((sal_uInt16)((bl) & 0xFF) | (((sal_uInt16)(bh) & 0xFF) << 8))
#endif
#ifndef LOBYTE
#define LOBYTE(w) ((comm_BYTE)((comm_WORD)(w) & 0xFF))
#define LOBYTE(w) ((comm_BYTE)((sal_uInt16)(w) & 0xFF))
#endif
#ifndef HIBYTE
#define HIBYTE(w) ((comm_BYTE)(((comm_WORD)(w) >> 8) & 0xFF))
#define HIBYTE(w) ((comm_BYTE)(((sal_uInt16)(w) >> 8) & 0xFF))
#endif
#ifndef MAKEBYTE
#define MAKEBYTE(nl, nh) ((comm_BYTE)(((nl) & 0x0F) | (((nh) & 0x0F) << 4)))
......@@ -74,10 +74,10 @@
#ifdef OSL_BIGENDIAN
#ifndef NETWORD
#define NETWORD(w) (comm_WORD)(w)
#define NETWORD(w) (sal_uInt16)(w)
#endif
#ifndef NETDWORD
#define NETDWORD(d) (comm_DWORD)(d)
#define NETDWORD(d) (sal_uInt32)(d)
#endif
#endif // OSL_BIGENDIAN
......
......@@ -38,8 +38,6 @@
/** defines al least types
comm_BYTE
comm_WORD;
comm_DWORD;
comm_BOOL
comm_ULONG
comm_USHORT
......@@ -65,9 +63,6 @@ typedef sal_uInt16 comm_USHORT;
typedef sal_uInt16 comm_UINT16;
typedef sal_uInt32 comm_UINT32;
typedef sal_uInt16 comm_WORD;
typedef sal_uInt32 comm_DWORD;
class String;
#define comm_String String
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment