--- xmil/common.h 2004/08/01 05:31:29 1.1 +++ xmil/common.h 2004/08/07 07:19:56 1.4 @@ -4,14 +4,14 @@ enum { FAILURE = 1 }; -#ifndef BRESULT -#define BRESULT UINT8 -#endif - #ifndef PI #define PI 3.14159265357989 #endif +#ifndef BRESULT +#define BRESULT UINT +#endif + #ifndef LOADINTELDWORD #define LOADINTELDWORD(a) (((UINT32)(a)[0]) | \ ((UINT32)(a)[1] << 8) | \ @@ -49,6 +49,12 @@ enum { #define REG16 UINT16 #endif +#ifndef LOW10 +#define LOW10(a) ((a) & 0x03ff) +#endif +#ifndef LOW11 +#define LOW11(a) ((a) & 0x07ff) +#endif #ifndef LOW12 #define LOW12(a) ((a) & 0x0fff) #endif @@ -145,19 +151,3 @@ enum { #define FASTCALL #endif - -// ---- ? - -typedef struct { - DWORD x; - DWORD y; - DWORD w; - DWORD h; -} NP2RECT; - - -typedef struct { - DWORD x; - DWORD y; -} XYSIZE; -