#pragma pack(?) changed to #include "*pack*.h"

This commit is contained in:
Patrik Stridvall 1999-04-25 12:36:53 +00:00 committed by Alexandre Julliard
parent 10141fec52
commit c7a8dde118
46 changed files with 152 additions and 86 deletions

View File

@ -21,7 +21,7 @@
DEFAULT_DEBUG_CHANNEL(shell) DEFAULT_DEBUG_CHANNEL(shell)
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -43,7 +43,7 @@ typedef struct
icoICONDIRENTRY idEntries[1]; /* An entry for each image (idCount of 'em) */ icoICONDIRENTRY idEntries[1]; /* An entry for each image (idCount of 'em) */
} icoICONDIR, *LPicoICONDIR; } icoICONDIR, *LPicoICONDIR;
#pragma pack(4) #include "poppack.h"
#if 0 #if 0
static void dumpIcoDirEnty ( LPicoICONDIRENTRY entry ) static void dumpIcoDirEnty ( LPicoICONDIRENTRY entry )

View File

@ -62,7 +62,7 @@
#define PT_NETWORK 0x47 #define PT_NETWORK 0x47
#define PT_SHARE 0xc3 #define PT_SHARE 0xc3
#pragma pack(1) #include "pshpack1.h"
typedef BYTE PIDLTYPE; typedef BYTE PIDLTYPE;
typedef struct tagPIDLDATA typedef struct tagPIDLDATA
@ -94,7 +94,7 @@ typedef struct tagPIDLDATA
} network; } network;
}u; }u;
} PIDLDATA, *LPPIDLDATA; } PIDLDATA, *LPPIDLDATA;
#pragma pack(4) #include "poppack.h"
/* /*
* getting string values from pidls * getting string values from pidls

View File

@ -23,7 +23,7 @@ DEFAULT_DEBUG_CHANNEL(shell)
/* link file formats */ /* link file formats */
#pragma (1); #include "pshpack1.h"
/* lnk elements: simple link has 0x0B */ /* lnk elements: simple link has 0x0B */
#define WORKDIR 0x10 #define WORKDIR 0x10
@ -52,7 +52,7 @@ typedef struct _LINK_HEADER
ITEMIDLIST Pidl; /* 0x4e */ ITEMIDLIST Pidl; /* 0x4e */
} LINK_HEADER, * PLINK_HEADER; } LINK_HEADER, * PLINK_HEADER;
#pragma (4); #include "poppack.h"
/* IPersistFile Implementation */ /* IPersistFile Implementation */
typedef struct typedef struct

View File

@ -20,7 +20,7 @@
DEFAULT_DEBUG_CHANNEL(win16drv) DEFAULT_DEBUG_CHANNEL(win16drv)
#define SUPPORT_REALIZED_FONTS 1 #define SUPPORT_REALIZED_FONTS 1
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
SHORT nSize; SHORT nSize;
@ -29,7 +29,7 @@ typedef struct
SEGPTR lpXForm; SEGPTR lpXForm;
SEGPTR lpDrawMode; SEGPTR lpDrawMode;
} EXTTEXTDATA, *LPEXTTEXTDATA; } EXTTEXTDATA, *LPEXTTEXTDATA;
#pragma pack(4) #include "poppack.h"
SEGPTR win16drv_SegPtr_TextXForm; SEGPTR win16drv_SegPtr_TextXForm;
LPTEXTXFORM16 win16drv_TextXFormP; LPTEXTXFORM16 win16drv_TextXFormP;

View File

@ -20,7 +20,7 @@ DEFAULT_DEBUG_CHANNEL(snoop)
#ifdef __i386__ #ifdef __i386__
#pragma pack(1) #include "pshpack1.h"
void WINAPI SNOOP16_Entry(CONTEXT *context); void WINAPI SNOOP16_Entry(CONTEXT *context);
void WINAPI SNOOP16_Return(CONTEXT *context); void WINAPI SNOOP16_Return(CONTEXT *context);
@ -82,7 +82,7 @@ typedef struct tagSNOOP16_RELAY {
/* unreached */ /* unreached */
} SNOOP16_RELAY; } SNOOP16_RELAY;
#pragma pack(4) #include "poppack.h"
static SNOOP16_DLL *firstdll = NULL; static SNOOP16_DLL *firstdll = NULL;
static SNOOP16_RETURNENTRIES *firstrets = NULL; static SNOOP16_RETURNENTRIES *firstrets = NULL;

View File

@ -114,7 +114,7 @@ extern LONG CALLBACK CallTo16_long_llllllllllllllll(FARPROC16,LONG,LONG,LONG,
typedef void (*RELAY)(); typedef void (*RELAY)();
#pragma pack(1) #include "pshpack1.h"
typedef struct tagTHUNK typedef struct tagTHUNK
{ {
@ -127,7 +127,7 @@ typedef struct tagTHUNK
struct tagTHUNK *next WINE_PACKED; struct tagTHUNK *next WINE_PACKED;
} THUNK; } THUNK;
#pragma pack(4) #include "poppack.h"
#define DECL_THUNK(name,proc,relay) \ #define DECL_THUNK(name,proc,relay) \
THUNK name = { 0x58, 0x68, (FARPROC)(proc), 0x50, 0xe9, \ THUNK name = { 0x58, 0x68, (FARPROC)(proc), 0x50, 0xe9, \
@ -1152,7 +1152,7 @@ WOW16Call(WORD x,WORD y,WORD z) {
* 16<->32 Thunklet/Callback API: * 16<->32 Thunklet/Callback API:
*/ */
#pragma pack(1) #include "pshpack1.h"
typedef struct _THUNKLET typedef struct _THUNKLET
{ {
BYTE prefix_target; BYTE prefix_target;
@ -1170,7 +1170,7 @@ typedef struct _THUNKLET
HINSTANCE16 owner; HINSTANCE16 owner;
struct _THUNKLET *next; struct _THUNKLET *next;
} THUNKLET; } THUNKLET;
#pragma pack(4) #include "poppack.h"
#define THUNKLET_TYPE_LS 1 #define THUNKLET_TYPE_LS 1
#define THUNKLET_TYPE_SL 2 #define THUNKLET_TYPE_SL 2

View File

@ -3,7 +3,7 @@
#if !defined(ASPI_H) #if !defined(ASPI_H)
#define ASPI_H #define ASPI_H
#pragma pack(1) #include "pshpack1.h"
#define SS_PENDING 0x00 #define SS_PENDING 0x00
#define SS_COMP 0x01 #define SS_COMP 0x01
@ -115,6 +115,6 @@ struct ASPI_DEVICE_INFO {
typedef struct ASPI_DEVICE_INFO ASPI_DEVICE_INFO; typedef struct ASPI_DEVICE_INFO ASPI_DEVICE_INFO;
static ASPI_DEVICE_INFO *ASPI_open_devices = NULL; static ASPI_DEVICE_INFO *ASPI_open_devices = NULL;
#pragma pack(4) #include "poppack.h"
#endif #endif

View File

@ -9,7 +9,7 @@
#include "windef.h" #include "windef.h"
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -64,7 +64,7 @@ typedef struct
} CURSORICONFILEDIR; } CURSORICONFILEDIR;
#pragma pack(4) #include "poppack.h"
#define CID_RESOURCE 0x0001 #define CID_RESOURCE 0x0001
#define CID_WIN32 0x0004 #define CID_WIN32 0x0004

View File

@ -14,7 +14,7 @@
* sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30). * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
*/ */
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -34,7 +34,7 @@ typedef struct
HGLOBAL16 hDialogHeap; HGLOBAL16 hDialogHeap;
} DIALOGINFO; } DIALOGINFO;
#pragma pack(4) #include "poppack.h"
#define DF_END 0x0001 #define DF_END 0x0001

View File

@ -11,13 +11,13 @@
struct tagCURSORICONINFO; struct tagCURSORICONINFO;
#pragma pack(1) #include "pshpack1.h"
typedef struct tagCURSORINFO typedef struct tagCURSORINFO
{ {
WORD wXMickeys; WORD wXMickeys;
WORD wYMickeys; WORD wYMickeys;
} CURSORINFO, *PCURSORINFO, *LPCURSORINFO; } CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
#pragma pack(4) #include "poppack.h"
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo); WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo);
VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor ); VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor );

View File

@ -3,7 +3,7 @@
#include "wine/obj_base.h" #include "wine/obj_base.h"
#pragma pack(1) #include "pshpack1.h"
/***************************************************************************** /*****************************************************************************
* Predeclare the interfaces * Predeclare the interfaces
@ -585,6 +585,6 @@ ICOM_DEFINE(IDirectPlay3,IDirectPlay2)
#endif #endif
#pragma pack(4) #include "poppack.h"
#endif /* __WINE_DPLAY_H */ #endif /* __WINE_DPLAY_H */

View File

@ -9,7 +9,7 @@
#include "gdi.h" #include "gdi.h"
#pragma pack(1) #include "pshpack1.h"
/* GDI logical font object */ /* GDI logical font object */
typedef struct typedef struct
@ -51,7 +51,7 @@ typedef struct {
CHAR szFaceName[60]; /* dito */ CHAR szFaceName[60]; /* dito */
} FONTDIR16, *LPFONTDIR16; } FONTDIR16, *LPFONTDIR16;
#pragma pack(4) #include "poppack.h"
#define FONTCACHE 32 /* dynamic font cache size */ #define FONTCACHE 32 /* dynamic font cache size */

View File

@ -9,7 +9,7 @@
#include "windef.h" #include "windef.h"
#pragma pack(1) #include "pshpack1.h"
typedef struct _KBINFO typedef struct _KBINFO
{ {
BYTE Begin_First_Range; BYTE Begin_First_Range;
@ -18,7 +18,7 @@ typedef struct _KBINFO
BYTE End_Second_Range; BYTE End_Second_Range;
WORD StateSize; WORD StateSize;
} KBINFO, *LPKBINFO; } KBINFO, *LPKBINFO;
#pragma pack(4) #include "poppack.h"
typedef VOID (CALLBACK *LPKEYBD_EVENT_PROC)(BYTE,BYTE,DWORD,DWORD); typedef VOID (CALLBACK *LPKEYBD_EVENT_PROC)(BYTE,BYTE,DWORD,DWORD);

View File

@ -14,7 +14,7 @@
extern int DOSCONF_ReadConfig(void); extern int DOSCONF_ReadConfig(void);
/* msdos/dosmem.c */ /* msdos/dosmem.c */
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -74,7 +74,7 @@ typedef struct
BYTE DiskDataRate; /* 8B: Last disk data rate selected */ BYTE DiskDataRate; /* 8B: Last disk data rate selected */
} BIOSDATA; } BIOSDATA;
#pragma pack(4) #include "poppack.h"
extern HANDLE16 DOSMEM_BiosDataSeg; extern HANDLE16 DOSMEM_BiosDataSeg;
extern HANDLE16 DOSMEM_BiosSysSeg; extern HANDLE16 DOSMEM_BiosSysSeg;

View File

@ -13,7 +13,7 @@ extern "C" {
typedef LPSTR HPSTR; /* a huge version of LPSTR */ typedef LPSTR HPSTR; /* a huge version of LPSTR */
typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */ typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
#pragma pack(1) #include "pshpack1.h"
#define MAXWAVEDRIVERS 10 #define MAXWAVEDRIVERS 10
#define MAXMIDIDRIVERS 10 #define MAXMIDIDRIVERS 10
@ -2865,7 +2865,7 @@ DWORD WINAPI widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
DWORD dwParam1, DWORD dwParam2); DWORD dwParam1, DWORD dwParam2);
DWORD WINAPI wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser, DWORD WINAPI wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
DWORD dwParam1, DWORD dwParam2); DWORD dwParam1, DWORD dwParam2);
#pragma pack(4) #include "poppack.h"
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -84,7 +84,7 @@ typedef struct
/* Self-loading modules contain this structure in their first segment */ /* Self-loading modules contain this structure in their first segment */
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -118,7 +118,7 @@ typedef struct
DWORD dwReserved; DWORD dwReserved;
} LOADPARAMS; } LOADPARAMS;
#pragma pack(4) #include "poppack.h"
/* internal representation of 32bit modules. per process. */ /* internal representation of 32bit modules. per process. */
typedef enum { typedef enum {

View File

@ -11,7 +11,7 @@
struct tagCURSORICONINFO; struct tagCURSORICONINFO;
#pragma pack(1) #include "pshpack1.h"
typedef struct _MOUSEINFO typedef struct _MOUSEINFO
{ {
BYTE msExist; BYTE msExist;
@ -24,7 +24,7 @@ typedef struct _MOUSEINFO
WORD msYRes; WORD msYRes;
WORD msMouseCommPort; WORD msMouseCommPort;
} MOUSEINFO, *LPMOUSEINFO; } MOUSEINFO, *LPMOUSEINFO;
#pragma pack(4) #include "poppack.h"
typedef VOID (CALLBACK *LPMOUSE_EVENT_PROC)(DWORD,DWORD,DWORD,DWORD,DWORD); typedef VOID (CALLBACK *LPMOUSE_EVENT_PROC)(DWORD,DWORD,DWORD,DWORD,DWORD);

15
include/poppack.h Normal file
View File

@ -0,0 +1,15 @@
#ifdef __WINE_PSHPACK_H
#undef __WINE_PSHPACK_H
#if defined(__GNUC__) || defined(__SUNPRO_C)
#pragma pack()
#elif defined(__SUNPRO_CC)
#warning "Assumes default alignment is 4"
#pragma pack(4)
#elif !defined(RC_INVOKED)
#error "Restoration of the previous alignment isn't supported by the compiler"
#endif /* defined(__GNUC__) || defined(__SUNPRO_C) ; !defined(RC_INVOKED) */
#else /* defined(__WINE_PSHPACK_H) */
#error "Popping alignment isn't possible since no alignment has been pushed"
#endif /* defined(__WINE_PSHPACK_H) */

13
include/pshpack1.h Normal file
View File

@ -0,0 +1,13 @@
#ifndef __WINE_PSHPACK_H
#define __WINE_PSHPACK_H 1
#if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#pragma pack(1)
#elif !defined(RC_INVOKED)
#error "1 as alignment isn't supported by the compiler"
#endif /* defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */
#else /* !defined(__WINE_PSHPACK_H) */
#error "Nested pushing of alignment isn't supported by the compiler"
#endif /* !defined(__WINE_PSHPACK_H) */

12
include/pshpack2.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef __WINE_PSHPACK_H
#define __WINE_PSHPACK_H 2
#if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#pragma pack(2)
#elif !defined(RC_INVOKED)
#error "2 as alignment isn't supported by the compiler"
#endif /* defined(__GNUC__) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */
#else /* !defined(__WINE_PSHPACK_H) */
#error "Nested pushing of alignment isn't supported by the compiler"
#endif /* !defined(__WINE_PSHPACK_H) */

16
include/pshpack4.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef __WINE_PSHPACK_H
#define __WINE_PSHPACK_H 4
#if defined(__GNUC__) || defined(__SUNPRO_CC)
#pragma pack(4)
#elif defined(__SUNPRO_C)
#warning "Assumes default alignment is 4"
#pragma pack()
#elif !defined(RC_INVOKED)
#error "4 as alignment isn't supported by the compiler"
#endif /* defined(__GNUC__) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */
#else /* !defined(__WINE_PSHPACK_H) */
#error "Nested pushing of alignment isn't supported by the compiler"
#endif /* !defined(__WINE_PSHPACK_H) */

12
include/pshpack8.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef __WINE_PSHPACK_H
#define __WINE_PSHPACK_H 8
#if 0
#pragma pack(8)
#elif !defined(RC_INVOKED)
#error "8 as alignment is not supported"
#endif /* 0 ; !defined(RC_INVOKED) */
#else /* !defined(__WINE_PSHPACK_H) */
#error "Nested pushing of alignment isn't supported by the compiler"
#endif /* !defined(__WINE_PSHPACK_H) */

View File

@ -59,7 +59,7 @@ typedef struct { /* structure for dropped files */
/**************************************************************************** /****************************************************************************
* SHITEMID, ITEMIDLIST, PIDL API * SHITEMID, ITEMIDLIST, PIDL API
*/ */
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ WORD cb; /* nr of bytes in this item */ { WORD cb; /* nr of bytes in this item */
BYTE abID[1];/* first byte in this item */ BYTE abID[1];/* first byte in this item */
@ -68,7 +68,7 @@ typedef struct
typedef struct typedef struct
{ SHITEMID mkid; /* first itemid in list */ { SHITEMID mkid; /* first itemid in list */
} ITEMIDLIST,*LPITEMIDLIST,*LPCITEMIDLIST; } ITEMIDLIST,*LPITEMIDLIST,*LPCITEMIDLIST;
#pragma pack(4) #include "poppack.h"
DWORD WINAPI SHGetPathFromIDListA (LPCITEMIDLIST pidl,LPSTR pszPath); DWORD WINAPI SHGetPathFromIDListA (LPCITEMIDLIST pidl,LPSTR pszPath);
DWORD WINAPI SHGetPathFromIDListW (LPCITEMIDLIST pidl,LPWSTR pszPath); DWORD WINAPI SHGetPathFromIDListW (LPCITEMIDLIST pidl,LPWSTR pszPath);

View File

@ -10,7 +10,7 @@
#include "ldt.h" #include "ldt.h"
#include "thread.h" #include "thread.h"
#pragma pack(1) #include "pshpack1.h"
/* 32-bit stack layout after CallTo16() */ /* 32-bit stack layout after CallTo16() */
typedef struct _STACK32FRAME typedef struct _STACK32FRAME
@ -45,7 +45,7 @@ typedef struct
WORD cs; /* 1c */ WORD cs; /* 1c */
} STACK16FRAME; } STACK16FRAME;
#pragma pack(4) #include "poppack.h"
#define THREAD_STACK16(thdb) ((STACK16FRAME*)PTR_SEG_TO_LIN((thdb)->cur_stack)) #define THREAD_STACK16(thdb) ((STACK16FRAME*)PTR_SEG_TO_LIN((thdb)->cur_stack))
#define CURRENT_STACK16 (THREAD_STACK16(THREAD_Current())) #define CURRENT_STACK16 (THREAD_STACK16(THREAD_Current()))

View File

@ -9,7 +9,7 @@
#include "windef.h" #include "windef.h"
#pragma pack(1) #include "pshpack1.h"
/* Process database (i.e. a normal DOS PSP) */ /* Process database (i.e. a normal DOS PSP) */
@ -141,7 +141,7 @@ typedef struct _THHOOK
HTASK16 LockTDB; /* 14 hLockedTask */ HTASK16 LockTDB; /* 14 hLockedTask */
} THHOOK; } THHOOK;
#pragma pack(4) #include "poppack.h"
extern THHOOK *pThhook; extern THHOOK *pThhook;
extern void (*TASK_AddTaskEntryBreakpoint)( HTASK16 hTask ); extern void (*TASK_AddTaskEntryBreakpoint)( HTASK16 hTask );

View File

@ -9,7 +9,7 @@
#define MAX_PATH16 255 #define MAX_PATH16 255
#define MAX_CLASSNAME 255 #define MAX_CLASSNAME 255
#pragma pack(1) #include "pshpack1.h"
/* Global heap */ /* Global heap */
@ -395,7 +395,7 @@ typedef struct {
WORD wFlags; WORD wFlags;
} STACKTRACEENTRY; } STACKTRACEENTRY;
#pragma pack(4) #include "poppack.h"
/* /*
* Process Entry list as created by CreateToolHelp32Snapshot * Process Entry list as created by CreateToolHelp32Snapshot

View File

@ -110,7 +110,7 @@ typedef struct PDEVICE_HEADER
LOADED_PRINTER_DRIVER *pLPD; /* Associated printer driver */ LOADED_PRINTER_DRIVER *pLPD; /* Associated printer driver */
} PDEVICE_HEADER; } PDEVICE_HEADER;
#pragma pack(1) #include "pshpack1.h"
#define PCOLOR DWORD #define PCOLOR DWORD
typedef struct DRAWMODE typedef struct DRAWMODE
{ {
@ -129,7 +129,7 @@ typedef struct DRAWMODE
} DRAWMODE, *LPDRAWMODE; } DRAWMODE, *LPDRAWMODE;
#pragma pack(4) #include "poppack.h"
typedef struct WINE_ENUM_PRINTER_FONT_CALLBACK typedef struct WINE_ENUM_PRINTER_FONT_CALLBACK
{ {

View File

@ -1,7 +1,7 @@
#if !defined(WINASPI_H) #if !defined(WINASPI_H)
#define WINASPI_H #define WINASPI_H
#pragma pack(1) #include "pshpack1.h"
#define ASPI_DOS 1 #define ASPI_DOS 1
#define ASPI_WIN16 2 #define ASPI_WIN16 2
@ -97,6 +97,6 @@ union SRB16 {
typedef union SRB16 SRB16; typedef union SRB16 SRB16;
#pragma pack(4) #include "poppack.h"
#endif #endif

View File

@ -2,7 +2,7 @@
#define _INCLUDE_WINE_WINBASE16_H #define _INCLUDE_WINE_WINBASE16_H
#include "windef.h" #include "windef.h"
#pragma pack(1) #include "pshpack1.h"
typedef struct _SEGINFO { typedef struct _SEGINFO {
UINT16 offSegment; UINT16 offSegment;
UINT16 cbSegment; UINT16 cbSegment;
@ -34,7 +34,7 @@ typedef struct _SEGINFO {
#define WF_WIN32WOW 0x4000 /* undoc */ #define WF_WIN32WOW 0x4000 /* undoc */
#define WF_WLO 0x8000 #define WF_WLO 0x8000
#pragma pack(4) #include "poppack.h"
HMODULE16 WINAPI GetModuleHandle16(LPCSTR); HMODULE16 WINAPI GetModuleHandle16(LPCSTR);
HLOCAL16 WINAPI LocalAlloc16(UINT16,WORD); HLOCAL16 WINAPI LocalAlloc16(UINT16,WORD);

View File

@ -5,7 +5,7 @@
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"
#pragma pack(1) #include "pshpack1.h"
/* SetWindowPlacement() struct */ /* SetWindowPlacement() struct */
typedef struct typedef struct
@ -473,7 +473,7 @@ typedef struct
DWORD itemData2 WINE_PACKED; DWORD itemData2 WINE_PACKED;
} COMPAREITEMSTRUCT16, *LPCOMPAREITEMSTRUCT16; } COMPAREITEMSTRUCT16, *LPCOMPAREITEMSTRUCT16;
#pragma pack(4) #include "poppack.h"
/* WM_COMMNOTIFY flags */ /* WM_COMMNOTIFY flags */
#define CN_RECEIVE 0x0001 #define CN_RECEIVE 0x0001

View File

@ -239,14 +239,14 @@ typedef struct tagDIOCRegs {
/* Important: All MS_DOS data structures must be packed on a one-byte boundary - good old 16 bit. */ /* Important: All MS_DOS data structures must be packed on a one-byte boundary - good old 16 bit. */
#pragma pack(1) #include "pshpack1.h"
typedef struct tagMID { typedef struct tagMID {
WORD midInfoLevel; WORD midInfoLevel;
DWORD midSerialNum; DWORD midSerialNum;
BYTE midVolLabel[11]; BYTE midVolLabel[11];
BYTE midFileSysType[8]; BYTE midFileSysType[8];
} MID, *PMID; } MID, *PMID;
#pragma pack(4) #include "poppack.h"
/* End VWIN32 information */ /* End VWIN32 information */

View File

@ -9,7 +9,7 @@
#include "windef.h" #include "windef.h"
#pragma pack(1) #include "pshpack1.h"
/* Defines */ /* Defines */
/* Argument 1 passed to the DllEntryProc. */ /* Argument 1 passed to the DllEntryProc. */
@ -332,8 +332,8 @@ typedef struct _EXCEPTION_POINTERS
PCONTEXT ContextRecord; PCONTEXT ContextRecord;
} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS; } EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;
#include "poppack.h"
#pragma pack(4)
/* /*
* function pointer to a exception filter * function pointer to a exception filter
*/ */
@ -378,7 +378,7 @@ typedef enum _TOKEN_INFORMATION_CLASS {
#ifndef _SECURITY_DEFINED #ifndef _SECURITY_DEFINED
#define _SECURITY_DEFINED #define _SECURITY_DEFINED
#pragma pack(1) #include "pshpack1.h"
typedef struct { typedef struct {
BYTE Value[6]; BYTE Value[6];
@ -437,8 +437,12 @@ typedef struct {
#define SECURITY_DESCRIPTOR_MIN_LENGTH (sizeof(SECURITY_DESCRIPTOR)) #define SECURITY_DESCRIPTOR_MIN_LENGTH (sizeof(SECURITY_DESCRIPTOR))
#include "poppack.h"
#endif /* _SECURITY_DEFINED */ #endif /* _SECURITY_DEFINED */
#include "pshpack1.h"
/* /*
* SID_AND_ATTRIBUTES * SID_AND_ATTRIBUTES
*/ */
@ -784,6 +788,6 @@ typedef enum tagSID_NAME_USE {
#define DACL_SECURITY_INFORMATION 0x00000004 #define DACL_SECURITY_INFORMATION 0x00000004
#define SACL_SECURITY_INFORMATION 0x00000008 #define SACL_SECURITY_INFORMATION 0x00000008
#pragma pack(4) #include "poppack.h"
#endif /* __WINE_WINNT_H */ #endif /* __WINE_WINNT_H */

View File

@ -29,7 +29,7 @@
#include "windef.h" #include "windef.h"
#include "task.h" #include "task.h"
#pragma pack(1) #include "pshpack1.h"
/* Win16 socket-related types */ /* Win16 socket-related types */
@ -160,7 +160,7 @@ typedef struct WSAData {
SEGPTR lpVendorInfo; SEGPTR lpVendorInfo;
} WSADATA, *LPWSADATA; } WSADATA, *LPWSADATA;
#pragma pack(4) #include "poppack.h"
/* ----------------------------------- no Win16 structure defs beyond this line! */ /* ----------------------------------- no Win16 structure defs beyond this line! */

View File

@ -1,7 +1,7 @@
#if !defined(WNASPI32_H) #if !defined(WNASPI32_H)
#define WNASPI32_H #define WNASPI32_H
#pragma pack(1) #include "pshpack1.h"
typedef union SRB * LPSRB; typedef union SRB * LPSRB;
@ -93,6 +93,6 @@ union SRB {
typedef union SRB SRB; typedef union SRB SRB;
#pragma pack(4) #include "poppack.h"
#endif #endif

View File

@ -9,7 +9,7 @@
#include "gdi.h" #include "gdi.h"
#include "x11drv.h" #include "x11drv.h"
#pragma pack(1) #include "pshpack1.h"
/* this is a part of the font resource header, should /* this is a part of the font resource header, should
* make it easier to implement dynamic softfont loading */ * make it easier to implement dynamic softfont loading */
@ -42,7 +42,7 @@ typedef struct
LPCSTR dfFace; LPCSTR dfFace;
} IFONTINFO16, *LPIFONTINFO16; } IFONTINFO16, *LPIFONTINFO16;
#pragma pack(4) #include "poppack.h"
/* internal flags */ /* internal flags */

View File

@ -1633,7 +1633,7 @@ PIMAGE_NT_HEADERS WINAPI RtlImageNtHeader(HMODULE hModule)
* HasGPHandler (KERNEL.338) * HasGPHandler (KERNEL.338)
*/ */
#pragma pack(1) #include "pshpack1.h"
typedef struct _GPHANDLERDEF typedef struct _GPHANDLERDEF
{ {
WORD selector; WORD selector;
@ -1641,7 +1641,7 @@ typedef struct _GPHANDLERDEF
WORD rangeEnd; WORD rangeEnd;
WORD handler; WORD handler;
} GPHANDLERDEF; } GPHANDLERDEF;
#pragma pack(4) #include "poppack.h"
SEGPTR WINAPI HasGPHandler16( SEGPTR address ) SEGPTR WINAPI HasGPHandler16( SEGPTR address )
{ {

View File

@ -1444,7 +1444,7 @@ LPSTR HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str )
#define HTABLE_PAGESIZE 0x1000 #define HTABLE_PAGESIZE 0x1000
#define HTABLE_NPAGES (HTABLE_SIZE / HTABLE_PAGESIZE) #define HTABLE_NPAGES (HTABLE_SIZE / HTABLE_PAGESIZE)
#pragma pack(1) #include "pshpack1.h"
typedef struct _LOCAL32HEADER typedef struct _LOCAL32HEADER
{ {
WORD freeListFirst[HTABLE_NPAGES]; WORD freeListFirst[HTABLE_NPAGES];
@ -1465,7 +1465,7 @@ typedef struct _LOCAL32HEADER
HANDLE heap; HANDLE heap;
} LOCAL32HEADER; } LOCAL32HEADER;
#pragma pack(4) #include "poppack.h"
#define LOCAL32_MAGIC ((DWORD)('L' | ('H'<<8) | ('3'<<16) | ('2'<<24))) #define LOCAL32_MAGIC ((DWORD)('L' | ('H'<<8) | ('3'<<16) | ('2'<<24)))

View File

@ -79,7 +79,7 @@ typedef struct
* (LMEM_DISCARDED >> 8) * (LMEM_DISCARDED >> 8)
*/ */
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -105,7 +105,7 @@ typedef struct
WORD magic; /* 28 Magic number */ WORD magic; /* 28 Magic number */
} LOCALHEAPINFO; } LOCALHEAPINFO;
#pragma pack(4) #include "poppack.h"
#define LOCAL_HEAP_MAGIC 0x484c /* 'LH' */ #define LOCAL_HEAP_MAGIC 0x484c /* 'LH' */

View File

@ -31,7 +31,7 @@ DECLARE_DEBUG_CHANNEL(shell)
/* .ICO file ICONDIR definitions */ /* .ICO file ICONDIR definitions */
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -53,7 +53,7 @@ typedef struct
icoICONDIRENTRY idEntries[1]; /* An entry for each image (idCount of 'em) */ icoICONDIRENTRY idEntries[1]; /* An entry for each image (idCount of 'em) */
} icoICONDIR, *LPicoICONDIR; } icoICONDIR, *LPicoICONDIR;
#pragma pack(4) #include "poppack.h"
static const char* lpstrMsgWndCreated = "OTHERWINDOWCREATED"; static const char* lpstrMsgWndCreated = "OTHERWINDOWCREATED";
static const char* lpstrMsgWndDestroyed = "OTHERWINDOWDESTROYED"; static const char* lpstrMsgWndDestroyed = "OTHERWINDOWDESTROYED";

View File

@ -69,8 +69,6 @@ DEFAULT_DEBUG_CHANNEL(winsock)
inet_ntoa(((struct sockaddr_in *)a)->sin_addr), \ inet_ntoa(((struct sockaddr_in *)a)->sin_addr), \
ntohs(((struct sockaddr_in *)a)->sin_port)) ntohs(((struct sockaddr_in *)a)->sin_port))
#pragma pack(4)
/* ----------------------------------- internal data */ /* ----------------------------------- internal data */
static HANDLE _WSHeap = 0; static HANDLE _WSHeap = 0;

View File

@ -71,8 +71,6 @@
DEFAULT_DEBUG_CHANNEL(winsock) DEFAULT_DEBUG_CHANNEL(winsock)
#pragma pack(4)
/* ----------------------------------- helper functions - */ /* ----------------------------------- helper functions - */
static int list_size(char** l, int item_size) static int list_size(char** l, int item_size)

View File

@ -24,8 +24,6 @@ DECLARE_DEBUG_CHANNEL(selector)
HANDLE16 DOSMEM_BiosDataSeg; /* BIOS data segment at 0x40:0 */ HANDLE16 DOSMEM_BiosDataSeg; /* BIOS data segment at 0x40:0 */
HANDLE16 DOSMEM_BiosSysSeg; /* BIOS ROM segment at 0xf000:0 */ HANDLE16 DOSMEM_BiosSysSeg; /* BIOS ROM segment at 0xf000:0 */
#pragma pack(4)
static char *DOSMEM_dosmem; static char *DOSMEM_dosmem;
DWORD DOSMEM_CollateTable; DWORD DOSMEM_CollateTable;

View File

@ -19,7 +19,7 @@ extern char szAppName[]; /* The name of this application */
extern char szTitle[]; /* The title bar text */ extern char szTitle[]; /* The title bar text */
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
DWORD key; DWORD key;
@ -32,4 +32,4 @@ typedef struct
#define APMHEADER_KEY 0x9AC6CDD7l #define APMHEADER_KEY 0x9AC6CDD7l
#pragma pack(4) #include "poppack.h"

View File

@ -52,7 +52,7 @@ __asm__(".align 4\n\t"
"ret" "ret"
); );
#pragma pack(1) #include "pshpack1.h"
typedef struct tagSNOOP_FUN { typedef struct tagSNOOP_FUN {
/* code part */ /* code part */
@ -94,7 +94,7 @@ typedef struct tagSNOOP_RETURNENTRIES {
struct tagSNOOP_RETURNENTRIES *next; struct tagSNOOP_RETURNENTRIES *next;
} SNOOP_RETURNENTRIES; } SNOOP_RETURNENTRIES;
#pragma pack(4) #include "poppack.h"
static SNOOP_DLL *firstdll = NULL; static SNOOP_DLL *firstdll = NULL;
static SNOOP_RETURNENTRIES *firstrets = NULL; static SNOOP_RETURNENTRIES *firstrets = NULL;

View File

@ -15,7 +15,7 @@
DEFAULT_DEBUG_CHANNEL(thunk) DEFAULT_DEBUG_CHANNEL(thunk)
#pragma pack(1) #include "pshpack1.h"
typedef struct typedef struct
{ {
@ -39,7 +39,7 @@ typedef struct
} UT32THUNK; } UT32THUNK;
#pragma pack(4) #include "poppack.h"
typedef struct _UTINFO typedef struct _UTINFO
{ {

View File

@ -28,7 +28,7 @@
DEFAULT_DEBUG_CHANNEL(hook) DEFAULT_DEBUG_CHANNEL(hook)
#pragma pack(1) #include "pshpack1.h"
/* Hook data (pointed to by a HHOOK) */ /* Hook data (pointed to by a HHOOK) */
typedef struct typedef struct
@ -41,7 +41,7 @@ typedef struct
WORD flags; /* 0c flags */ WORD flags; /* 0c flags */
} HOOKDATA; } HOOKDATA;
#pragma pack(4) #include "poppack.h"
#define HOOK_MAGIC ((int)'H' | (int)'K' << 8) /* 'HK' */ #define HOOK_MAGIC ((int)'H' | (int)'K' << 8) /* 'HK' */