Changeset 10627 for trunk/include


Ignore:
Timestamp:
Oct 8, 2004, 10:56:14 AM (21 years ago)
Author:
cinc
Message:

Updated Decimal struct to Wine level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/windef.h

    r9973 r10627  
    760760
    761761/*
     762 * Cinc: added 29/09/2004
     763 */
     764#if 0 /* for IDL only */
     765typedef struct tagDEC {
     766  USHORT wReserved;
     767  BYTE scale;
     768  BYTE sign;
     769  ULONG Hi32;
     770  ULONGLONG Lo64;
     771} DECIMAL;
     772#else /* C/C++ defs */
     773typedef struct tagDEC {
     774  USHORT wReserved;
     775  union {
     776    struct {
     777      BYTE scale;
     778      BYTE sign;
     779    } DUMMYSTRUCTNAME;
     780    USHORT signscale;
     781  } DUMMYUNIONNAME;
     782  ULONG Hi32;
     783  union {
     784    struct {
     785#ifdef WORDS_BIGENDIAN
     786      ULONG Mid32;
     787      ULONG Lo32;
     788#else
     789      ULONG Lo32;
     790      ULONG Mid32;
     791#endif
     792    } DUMMYSTRUCTNAME1;
     793    ULONGLONG Lo64;
     794  } DUMMYUNIONNAME1;
     795} DECIMAL;
     796#endif
     797#define DECIMAL_NEG ((BYTE)0x80)
     798#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)
     799
     800typedef DECIMAL *LPDECIMAL;
     801
     802#if 0
     803/*
    762804 * 8.9.99 DJR DECIMAL support
    763805 */
     
    785827    } d;
    786828} DECIMAL;
     829typedef DECIMAL *LPDECIMAL;
     830#endif
    787831
    788832#include <winbase.h>
Note: See TracChangeset for help on using the changeset viewer.