|
|
| version 1.7, 2004/01/27 10:55:46 | version 1.11, 2004/06/20 03:40:31 |
|---|---|
| Line 31 enum { | Line 31 enum { |
| *((a)+1) = (BYTE)((b)>>8) | *((a)+1) = (BYTE)((b)>>8) |
| #endif | #endif |
| #ifndef NELEMENTS | |
| #define NELEMENTS(a) ((int)(sizeof(a) / sizeof(a[0]))) | |
| #endif | |
| // ---- Optimize Macros | // ---- Optimize Macros |
| #ifndef REG8 | #ifndef REG8 |
| #define REG8 BYTE | #define REG8 UINT8 |
| #endif | #endif |
| #ifndef REG16 | #ifndef REG16 |
| #define REG16 UINT16 | #define REG16 UINT16 |
| Line 57 enum { | Line 61 enum { |
| #define HIGH16(a) (((UINT32)(a)) >> 16) | #define HIGH16(a) (((UINT32)(a)) >> 16) |
| #endif | #endif |
| #ifndef OEMCHAR | |
| #define OEMCHAR char | |
| #endif | |
| #ifndef OEMTEXT | |
| #define OEMTEXT(string) (string) | |
| #endif | |
| #ifndef OEMNULLSTR | |
| #define OEMNULLSTR OEMTEXT("") | |
| #endif | |
| #ifndef STRLITERAL | #ifndef STRLITERAL |
| #ifdef UNICODE | #ifdef UNICODE |
| #define STRLITERAL(string) _T(string) | #define STRLITERAL(string) _T(string) |
| Line 72 enum { | Line 88 enum { |
| #if !defined(RGB32) | #if !defined(RGB32) |
| #if defined(BYTESEX_LITTLE) | #if defined(BYTESEX_LITTLE) |
| typedef union { | typedef union { |
| UINT32 d; | |
| struct { | struct { |
| UINT8 b; | UINT8 b; |
| UINT8 g; | UINT8 g; |
| UINT8 r; | UINT8 r; |
| UINT8 e; | UINT8 e; |
| } p; | } p; |
| UINT32 d; | |
| } RGB32; | } RGB32; |
| #define RGB32D(r, g, b) (((r) << 16) + ((g) << 8) + ((b) << 0)) | |
| #elif defined(BYTESEX_BIG) | #elif defined(BYTESEX_BIG) |
| typedef union { | typedef union { |
| UINT32 d; | |
| struct { | struct { |
| UINT8 e; | UINT8 e; |
| UINT8 r; | UINT8 r; |
| UINT8 g; | UINT8 g; |
| UINT8 b; | UINT8 b; |
| } p; | } p; |
| UINT32 d; | |
| } RGB32; | } RGB32; |
| #define RGB32D(r, g, b) (((r) << 16) + ((g) << 8) + ((b) << 0)) | |
| #endif | #endif |
| #endif | #endif |
| Line 115 enum { | Line 133 enum { |
| FTYPE_USER | FTYPE_USER |
| }; | }; |
| #if !defined(INLINE) | |
| #define INLINE | |
| #endif | |
| #if !defined(FASTCALL) | |
| #define FASTCALL | |
| #endif | |