Got rid of a lot of warnings when building on Fedora 9 (with gcc 4.3.0)

This commit is contained in:
Clifford T. Matthews 2009-06-04 01:58:05 -06:00
parent ca6caa3455
commit dec7123584
70 changed files with 630 additions and 617 deletions

26
README
View File

@ -1,8 +1,5 @@
Executor has not been actively worked on for many years.
Right now I'm putting it on github (with the original authors' permission)
as-is. I haven't even tried building it in the last year or so.
Included are a bunch of auxiliarly files and miscellaneous front-ends.
It's unlikely anything other than the Linux and win32 ports can be
made to go.
@ -12,14 +9,23 @@ to use, but that we did not necessarily have the permission to publish
the source for, so the source to some of the packages that the DOS
port requires is not present in the github repository.
Don't be mislead by configure.ac, Executor currently builds using an
ancient configuration script. If you want to try to build a version
of Executor for Linux, try doing this (*After you've done a make
install of syn68k):
mkdir -p build/debug-linux
cd build/debug-linux
../../util/configure.sh '--target=i486-linux' '--host=i486-linux' '--front-end=x' '--target-gcc=gcc' '--cflags=-fno-strict-aliasing -I/usr/X11R6/include -DNDEBUG -O0 -finline-functions -g -Wall -DRELEASE_INTERNAL -DERROR_SUPPORTED_MASK="(~0)"' '--root=../..' '--target-file-format=glibc' '--sound=linux' '--syn68k-target=i486-linux-glibc'
make
That should leave you with a binary called executor. Unfortunately, without
a System Folder, Executor won't even come close to running.
I'll fiddle around a bit and figure out the easiest way to build a
System Folder for Executor from the git repository and add that info next.
My email address is still <ctm@ardi.com>, although ARDI itself is
defunct. I get a ridiculous amount of spam and will quite possibly
not see email addressed to me.
For a few years I've been meaning to verify that the code builds,
write a little documentation, explain a little history, maybe even
set up a mailing list for people, etc... but other things have always
taken precedence.
October 5th, 2008

View File

@ -30,7 +30,7 @@ typedef struct
{
DescType type PACKED;
uint32 size PACKED;
char data[0] PACKED;
char data[0] LPACKED;
} inline_desc_t;
typedef struct
@ -38,7 +38,7 @@ typedef struct
int32 key PACKED;
DescType type PACKED;
uint32 size PACKED;
char data[0] PACKED;
char data[0] LPACKED;
} inline_key_desc_t;
typedef struct list_header
@ -62,7 +62,7 @@ typedef struct list_header
int32 unknown_3 PACKED;
/* offset: 0x18 */
char data[0] PACKED;
char data[0] LPACKED;
} list_header_t;
typedef struct { list_header_t *p PACKED_P; } hidden_list_header_ptr;
@ -93,7 +93,7 @@ typedef struct ae_header
uint32 param_count PACKED;
/* #### zero pad, use unknown */
char pad_1[26] PACKED;
char pad_1[26] LPACKED;
AEEventClass event_class PACKED;
AEEventID event_id PACKED;
@ -103,7 +103,7 @@ typedef struct ae_header
/* beginning of target inline descriptor; `target->size' determines
target's actual size */
inline_desc_t target PACKED;
inline_desc_t target LPACKED;
#if 0
/* for show */

View File

@ -1,16 +0,0 @@
Don't be mislead by configure.ac, Executor currently builds using an ancient
configuration script. If you want to try to build a version of Executor for
Linux, try doing this (*After you've done a make install of syn68k):
cd ..
mkdir -p build/debug-linux
cd build/debug-linux
../../util/configure.sh '--target=i486-linux' '--host=i486-linux' '--front-end=x' '--target-gcc=gcc' '--cflags=-fno-strict-aliasing -I/usr/X11R6/include -DNDEBUG -O0 -finline-functions -g -Wall -DRELEASE_INTERNAL -DERROR_SUPPORTED_MASK="(~0)"' '--root=../..' '--target-file-format=glibc' '--sound=linux' '--syn68k-target=i486-linux-glibc'
make
That should leave you with a binary called executor. Unfortunately, without
a System Folder, Executor won't even come close to running.
I'll fiddle around a bit and figure out the easiest way to build a
System Folder for Executor from the git repository and add that info next.

View File

@ -387,12 +387,12 @@ typedef struct
INTEGER length PACKED;
INTEGER usually_2 PACKED;
INTEGER usually_0 PACKED;
Str27 volumeName PACKED;
Str27 volumeName LPACKED;
LONGINT ioVCrDate PACKED;
INTEGER ioVSigWord PACKED;
INTEGER zero_or_one PACKED;
LONGINT zero_or_neg_one PACKED;
Str63 fileName PACKED;
Str63 fileName LPACKED;
LONGINT ioDirID PACKED; /* -1 full */
LONGINT ioFlCrDat PACKED;
OSType type_info PACKED;
@ -404,7 +404,7 @@ alias_head_t;
typedef struct /* 0x0000 */
{
INTEGER parent_length PACKED;
unsigned char parent_bytes[1] PACKED;
unsigned char parent_bytes[1] LPACKED;
}
alias_parent_t;
@ -418,7 +418,7 @@ alias_unknown_000100_t;
typedef struct /* 0x0002 */
{
INTEGER fullpath_length PACKED;
unsigned char fullpath_bytes[1] PACKED;
unsigned char fullpath_bytes[1] LPACKED;
}
alias_fullpath_t;
@ -426,11 +426,11 @@ typedef struct /* 0x0009 */
{
INTEGER length PACKED;
INTEGER weird_info[12] PACKED;
Str32 zone PACKED;
Str31 server PACKED;
Str27 volumeName PACKED;
Str32 network_identity_owner_name PACKED;
char filler_zeros[18] PACKED;
Str32 zone LPACKED;
Str31 server LPACKED;
Str27 volumeName LPACKED;
Str32 network_identity_owner_name LPACKED;
char filler_zeros[18] LPACKED;
}
alias_tail_t;

View File

@ -697,8 +697,8 @@ restore (const save_t *sp)
struct lsastr
{
Rect limitRect PACKED;
Rect slopRect PACKED;
Rect limitRect LPACKED;
Rect slopRect LPACKED;
INTEGER axis PACKED;
};

View File

@ -107,14 +107,14 @@ P9(PUBLIC pascal trap, ControlHandle, NewControl, WindowPtr, wst, Rect *, r,
}
typedef struct {
Rect _crect PACKED;
Rect _crect LPACKED;
INTEGER _cvalue PACKED;
INTEGER _cvisible PACKED;
INTEGER _cmax PACKED;
INTEGER _cmin PACKED;
INTEGER _cprocid PACKED;
LONGINT _crefcon PACKED;
Byte _ctitle PACKED;
Byte _ctitle LPACKED;
} contrlrestype;
P2(PUBLIC pascal trap, ControlHandle, GetNewControl, /* IMI-321 */

View File

@ -70,8 +70,8 @@ P3(PUBLIC pascal trap, INTEGER, FindControl, Point, p, /* IMI-323 */
}
typedef struct {
Rect _tlimit PACKED;
Rect _tslop PACKED;
Rect _tlimit LPACKED;
Rect _tslop LPACKED;
INTEGER _taxis PACKED;
} thumbstr;

View File

@ -30,9 +30,9 @@ static struct
{
int16 count PACKED;
Handle h PACKED_P;
Rect r PACKED;
uint8 type PACKED;
uint8 len PACKED;
Rect r LPACKED;
uint8 type LPACKED;
uint8 len LPACKED;
int16 res_id PACKED;
} icon_item_template =
{

View File

@ -1790,13 +1790,13 @@ typedef struct comm_toolbox_dispatch_args
{
int16 n_items PACKED;
DialogPtr dp PACKED_P;
} shorten_args PACKED;
} shorten_args LPACKED;
struct
{
DITLMethod method PACKED;
Handle new_items_h PACKED_P;
DialogPtr dp PACKED_P;
} append_args PACKED;
} append_args LPACKED;
struct
{
DialogPtr dp PACKED_P;

View File

@ -48,8 +48,8 @@ int apple_double_fork_prefix_length;
#include "rsys/osutil.h"
PRIVATE struct defaulthead {
Single_header head PACKED;
Single_descriptor desc[10] PACKED; /* we use 4, 6 for spare */
Single_header head LPACKED;
Single_descriptor desc[10] LPACKED; /* we use 4, 6 for spare */
} ourdefault
#if !defined(__alpha)
= {
@ -114,8 +114,8 @@ PRIVATE void initialize_ourdefault( void )
PRIVATE struct defaultentries {
Single_attribs attribs PACKED;
Single_dates dates PACKED;
Single_finfo finfo PACKED;
Single_dates dates LPACKED;
Single_finfo finfo LPACKED;
} ourentries;
PUBLIC void

View File

@ -10,8 +10,8 @@
typedef struct
{
SignedByte devType PACKED;
SignedByte origADBAddr PACKED;
SignedByte devType LPACKED;
SignedByte origADBAddr LPACKED;
Ptr dbServiceRtPtr PACKED_P;
Ptr dbDataAreaAddr PACKED_P;
} ADBDataBlock;

View File

@ -128,8 +128,8 @@ typedef struct AE_hdlr_table_elt
{
int32 pad_1 PACKED;
AE_hdlr_selector_t selector PACKED;
AE_hdlr_t hdlr PACKED;
AE_hdlr_selector_t selector LPACKED;
AE_hdlr_t hdlr LPACKED;
int32 pad_2 PACKED;
} AE_hdlr_table_elt_t;
@ -154,7 +154,7 @@ typedef struct AE_hdlr_table
int32 pad_2[10] PACKED;
AE_hdlr_table_elt_t elts[0] PACKED;
AE_hdlr_table_elt_t elts[0] LPACKED;
} AE_hdlr_table_t;
typedef AE_hdlr_table_t *AE_hdlr_table_ptr;
@ -167,11 +167,11 @@ typedef struct AE_zone_tables
AE_hdlr_table_h coercion_hdlr_table PACKED_P;
AE_hdlr_table_h special_hdlr_table PACKED_P;
char pad_1[28] PACKED;
char pad_1[28] LPACKED;
char unknown_appl_value[4] PACKED;
char unknown_appl_value[4] LPACKED;
char pad_2[8] PACKED;
char pad_2[8] LPACKED;
/* points to a 32byte handle of unknown contents (at least,
sometimes) */
@ -184,17 +184,17 @@ typedef HIDDEN_AE_zone_tables_ptr *AE_zone_tables_h;
typedef struct AE_info
{
char pad_1[340] PACKED;
char pad_1[340] LPACKED;
/* offset of `appl_zone_tables' is 340; handle to a `struct tables' */
AE_zone_tables_h appl_zone_tables PACKED_P;
char pad_2[36] PACKED;
char pad_2[36] LPACKED;
/* offset of `system_zone_tables' is 380; handle to a `struct tables' */
AE_zone_tables_h system_zone_tables PACKED_P;
char pad_3[212] PACKED;
char pad_3[212] LPACKED;
} AE_info_t;
typedef AE_info_t *AE_info_ptr;

View File

@ -21,7 +21,7 @@ typedef struct
/* can't use [0];
make this an unsigned char even tho the mac has SignedByte;
it is treated as unsigned */
unsigned char iTTable[1] PACKED;
unsigned char iTTable[1] LPACKED;
} ITab, *ITabPtr;
typedef struct { ITabPtr p PACKED_P; } HIDDEN_ITabPtr;
@ -63,7 +63,7 @@ typedef struct GDevice
PixMapHandle gdPMap PACKED_P;
LONGINT gdRefCon PACKED;
GDHandle gdNextGD PACKED_P;
Rect gdRect PACKED;
Rect gdRect LPACKED;
LONGINT gdMode PACKED;
INTEGER gdCCBytes PACKED;
INTEGER gdCCDepth PACKED;
@ -81,7 +81,7 @@ typedef uint32 DeviceLoopFlags;
typedef struct ColorInfo
{
RGBColor ciRGB PACKED;
RGBColor ciRGB LPACKED;
INTEGER ciUsage PACKED;
INTEGER ciTolerance PACKED;
INTEGER ciFlags PACKED;
@ -95,7 +95,7 @@ typedef struct Palette
INTEGER pmPrivate PACKED;
LONGINT /* Handle? */ pmDevices PACKED;
Handle pmSeeds PACKED;
ColorInfo pmInfo[1] PACKED;
ColorInfo pmInfo[1] LPACKED;
} Palette, *PalettePtr;
typedef enum
@ -154,7 +154,7 @@ typedef struct ReqListRec
typedef struct OpenCPicParams
{
Rect srcRect PACKED;
Rect srcRect LPACKED;
Fixed hRes PACKED;
Fixed vRes PACKED;
int16 version PACKED;
@ -194,7 +194,7 @@ typedef struct PictInfo
Fixed hRes PACKED; /* 14 */
Fixed vRes PACKED; /* 18 */
INTEGER depth PACKED; /* 22 */
Rect sourceRect PACKED; /* top24, left26, bottom28, right30 */
Rect sourceRect LPACKED; /* top24, left26, bottom28, right30 */
int32 textCount PACKED; /* 32 */
int32 lineCount PACKED;
int32 rectCount PACKED;

View File

@ -87,9 +87,9 @@ typedef struct { ControlHandle p PACKED_P; } HIDDEN_ControlHandle;
struct __cr {
ControlHandle nextControl PACKED_P; /* actually ControlHandle */
WindowPtr contrlOwner PACKED_P;
Rect contrlRect PACKED;
Byte contrlVis PACKED;
Byte contrlHilite PACKED;
Rect contrlRect LPACKED;
Byte contrlVis LPACKED;
Byte contrlHilite LPACKED;
INTEGER contrlValue PACKED;
INTEGER contrlMin PACKED;
INTEGER contrlMax PACKED;
@ -97,14 +97,14 @@ struct __cr {
Handle contrlData PACKED_P;
ProcPtr contrlAction PACKED_P;
LONGINT contrlRfCon PACKED;
Str255 contrlTitle PACKED;
Str255 contrlTitle LPACKED;
};
typedef struct {
LONGINT ccSeed PACKED;
INTEGER ccReserved PACKED;
INTEGER ctSize PACKED;
cSpecArray ctTable PACKED;
cSpecArray ctTable LPACKED;
} CtlCTab, *CCTabPtr;
typedef struct { CCTabPtr p PACKED_P; } HIDDEN_CCTabPtr;
typedef HIDDEN_CCTabPtr *CCTabHandle;

View File

@ -37,7 +37,7 @@ typedef struct {
INTEGER drvrCtl PACKED;
INTEGER drvrStatus PACKED;
INTEGER drvrClose PACKED;
char drvrName PACKED;
char drvrName LPACKED;
} ramdriver;
typedef ramdriver *ramdriverptr;
@ -49,7 +49,7 @@ typedef enum { Open, Prime, Ctl, Stat, Close } DriverRoutineType;
typedef struct {
umacdriverptr dCtlDriver PACKED_P; /* not just Ptr */
INTEGER dCtlFlags PACKED;
QHdr dCtlQHdr PACKED;
QHdr dCtlQHdr LPACKED;
LONGINT dCtlPosition PACKED;
Handle dCtlStorage PACKED_P;
INTEGER dCtlRefNum PACKED;

View File

@ -32,7 +32,7 @@
typedef struct
{
WindowRecord window PACKED;
WindowRecord window LPACKED;
Handle items PACKED_P;
TEHandle textH PACKED_P;
INTEGER editField PACKED;
@ -62,15 +62,15 @@ typedef HIDDEN_WindowPtr HIDDEN_DialogPtr;
typedef struct
{
Rect boundsRect PACKED;
Rect boundsRect LPACKED;
INTEGER procID PACKED;
BOOLEAN visible PACKED;
BOOLEAN filler1 PACKED;
BOOLEAN goAwayFlag PACKED;
BOOLEAN filler2 PACKED;
BOOLEAN visible LPACKED;
BOOLEAN filler1 LPACKED;
BOOLEAN goAwayFlag LPACKED;
BOOLEAN filler2 LPACKED;
LONGINT refCon PACKED;
INTEGER itemsID PACKED;
Str255 title PACKED;
Str255 title LPACKED;
} DialogTemplate;
typedef DialogTemplate *DialogTPtr;
@ -93,9 +93,9 @@ typedef struct {
} StageList;
typedef struct {
Rect boundsRect PACKED;
Rect boundsRect LPACKED;
INTEGER itemsID PACKED;
StageList stages PACKED;
StageList stages LPACKED;
} AlertTemplate;
typedef AlertTemplate *AlertTPtr;
typedef struct { AlertTPtr p PACKED_P; } HIDDEN_AlertTPtr;

View File

@ -35,17 +35,17 @@
typedef struct {
INTEGER track PACKED;
SignedByte writeProt PACKED;
SignedByte diskInPlace PACKED;
SignedByte installed PACKED;
SignedByte sides PACKED;
SignedByte writeProt LPACKED;
SignedByte diskInPlace LPACKED;
SignedByte installed LPACKED;
SignedByte sides LPACKED;
QElemPtr qLink PACKED_P;
INTEGER qType PACKED;
INTEGER dQDrive PACKED;
INTEGER dQRefNum PACKED;
INTEGER dQFSID PACKED;
SignedByte twoSideFmt PACKED;
SignedByte needsFlush PACKED;
SignedByte twoSideFmt LPACKED;
SignedByte needsFlush LPACKED;
INTEGER diskErrs PACKED;
} DrvSts;

View File

@ -37,8 +37,8 @@ typedef ProcPtr EditionOpenerProcPtr;
struct SectionRecord
{
SignedByte version PACKED;
SectionType kind PACKED;
SignedByte version LPACKED;
SectionType kind LPACKED;
UpdateMode mode PACKED;
TimeStamp mdDate PACKED;
int32 sectionID PACKED;
@ -55,10 +55,10 @@ declare_record_subtypes (Section);
struct EditionContainerSpec
{
FSSpec theFile PACKED;
FSSpec theFile LPACKED;
ScriptCode theFileScript PACKED;
int32 thePart PACKED;
Str31 thePartName PACKED;
Str31 thePartName LPACKED;
ScriptCode thePartScript PACKED;
};
@ -71,7 +71,7 @@ struct EditionInfoRecord
TimeStamp mdDate PACKED;
OSType fdCreator PACKED;
OSType fdType PACKED;
EditionContainerSpec container PACKED;
EditionContainerSpec container LPACKED;
};
typedef struct EditionInfoRecord EditionInfoRecord;
@ -79,13 +79,13 @@ typedef EditionInfoRecord *EditionInfoPtr;
struct NewPublisherReply
{
Boolean canceled PACKED;
Boolean replacing PACKED;
Boolean usePart PACKED;
Boolean canceled LPACKED;
Boolean replacing LPACKED;
Boolean usePart LPACKED;
uint8 _filler;
Handle preview PACKED_P;
FormatType previewFormat PACKED;
EditionContainerSpec container PACKED;
FormatType previewFormat LPACKED;
EditionContainerSpec container LPACKED;
};
typedef struct NewPublisherReply NewPublisherReply;
@ -93,9 +93,9 @@ typedef NewPublisherReply *NewPublisherReplyPtr;
struct NewSubscriberReply
{
Boolean canceled PACKED;
SignedByte formatsMask PACKED;
EditionContainerSpec container PACKED;
Boolean canceled LPACKED;
SignedByte formatsMask LPACKED;
EditionContainerSpec container LPACKED;
};
typedef struct NewSubscriberReply NewSubscriberReply;
@ -103,8 +103,8 @@ typedef NewSubscriberReply *NewSubscriberReplyPtr;
struct SectionOptionsReply
{
Boolean canceled PACKED;
Boolean changed PACKED;
Boolean canceled LPACKED;
Boolean changed LPACKED;
SectionHandle sectionH PACKED_P;
ResType action PACKED;
};
@ -122,14 +122,14 @@ typedef uint8 EditionOpenerVerb;
struct EditionOpenerParamBlock
{
EditionInfoRecord info PACKED;
EditionInfoRecord info LPACKED;
SectionHandle sectionH PACKED_P;
FSSpecPtr document PACKED_P;
OSType fdCreator PACKED;
int32 ioRefNum PACKED;
FormatIOProcPtr ioProc PACKED_P;
Boolean success PACKED;
SignedByte formatsMask PACKED;
Boolean success LPACKED;
SignedByte formatsMask LPACKED;
};
typedef struct EditionOpenerParamBlock EditionOpenerParamBlock;
@ -145,7 +145,7 @@ typedef uint8 FormatIOVerb;
struct FormatIOParamBlock
{
int32 ioRefNum PACKED;
FormatType format PACKED;
FormatType format LPACKED;
int32 formatIndex PACKED;
int32 offset PACKED;
Ptr buffPtr PACKED_P;

View File

@ -67,7 +67,7 @@ typedef struct {
INTEGER what PACKED;
LONGINT message PACKED;
LONGINT when PACKED;
Point where PACKED;
Point where LPACKED;
INTEGER modifiers PACKED;
} EventRecord;

View File

@ -74,7 +74,7 @@ typedef struct {
OSType fdType PACKED;
OSType fdCreator PACKED;
unsigned short fdFlags PACKED;
Point fdLocation PACKED;
Point fdLocation LPACKED;
unsigned short fdFldr PACKED;
} FInfo;
@ -86,14 +86,14 @@ typedef struct {
} FXInfo;
typedef struct {
Rect frRect PACKED;
Rect frRect LPACKED;
unsigned short frFlags PACKED;
Point frLocation PACKED;
Point frLocation LPACKED;
unsigned short frView PACKED;
} DInfo;
typedef struct {
Point frScroll PACKED;
Point frScroll LPACKED;
LONGINT frOpenChain PACKED;
unsigned short frUnused PACKED;
unsigned short frComment PACKED;
@ -120,8 +120,8 @@ typedef enum {
typedef struct {
COMMONFSQUEUEDEFS PACKED;
INTEGER ioRefNum PACKED;
SignedByte ioVersNum PACKED;
SignedByte ioPermssn PACKED;
SignedByte ioVersNum LPACKED;
SignedByte ioPermssn LPACKED;
LONGINT ioMisc PACKED; /* should be largest of Ptr, LONGINT */
Ptr ioBuffer PACKED_P;
LONGINT ioReqCount PACKED;
@ -133,12 +133,12 @@ typedef struct {
typedef struct {
COMMONFSQUEUEDEFS PACKED;
INTEGER ioFRefNum PACKED;
SignedByte ioFVersNum PACKED;
SignedByte filler1 PACKED;
SignedByte ioFVersNum LPACKED;
SignedByte filler1 LPACKED;
INTEGER ioFDirIndex PACKED;
SignedByte ioFlAttrib PACKED;
SignedByte ioFlVersNum PACKED;
FInfo ioFlFndrInfo PACKED;
SignedByte ioFlAttrib LPACKED;
SignedByte ioFlVersNum LPACKED;
FInfo ioFlFndrInfo LPACKED;
LONGINT ioFlNum PACKED;
INTEGER ioFlStBlk PACKED;
LONGINT ioFlLgLen PACKED;
@ -186,8 +186,8 @@ typedef ParamBlockRec *ParmBlkPtr;
typedef struct {
COMMONFSQUEUEDEFS PACKED;
INTEGER ioRefNum PACKED;
SignedByte ioVersNum PACKED;
SignedByte ioPermssn PACKED;
SignedByte ioVersNum LPACKED;
SignedByte ioPermssn LPACKED;
LONGINT ioMisc PACKED; /* should be largest of Ptr, LONGINT */
Ptr ioBuffer PACKED_P;
LONGINT ioReqCount PACKED;
@ -199,12 +199,12 @@ typedef struct {
typedef struct {
COMMONFSQUEUEDEFS PACKED;
INTEGER ioFRefNum PACKED;
SignedByte ioFVersNum PACKED;
SignedByte filler1 PACKED;
SignedByte ioFVersNum LPACKED;
SignedByte filler1 LPACKED;
INTEGER ioFDirIndex PACKED;
SignedByte ioFlAttrib PACKED;
SignedByte ioFlVersNum PACKED;
FInfo ioFlFndrInfo PACKED;
SignedByte ioFlAttrib LPACKED;
SignedByte ioFlVersNum LPACKED;
FInfo ioFlFndrInfo LPACKED;
/*-->*/ LONGINT ioDirID PACKED;
INTEGER ioFlStBlk PACKED;
LONGINT ioFlLgLen PACKED;
@ -256,15 +256,15 @@ typedef enum { hfileInfo, dirInfo } CInfoType;
#define COMMONCINFODEFS \
COMMONFSQUEUEDEFS PACKED; \
INTEGER ioFRefNum PACKED; \
SignedByte ioFVersNum PACKED; \
SignedByte filler1 PACKED; \
SignedByte ioFVersNum LPACKED; \
SignedByte filler1 LPACKED; \
INTEGER ioFDirIndex PACKED; \
SignedByte ioFlAttrib PACKED; \
SignedByte ioFlAttrib LPACKED; \
SignedByte ioACUser /* PACKED gets added in by guys who use this macro. */
typedef struct {
COMMONCINFODEFS PACKED;
FInfo ioFlFndrInfo PACKED;
COMMONCINFODEFS LPACKED;
FInfo ioFlFndrInfo LPACKED;
LONGINT ioDirID PACKED;
INTEGER ioFlStBlk PACKED;
LONGINT ioFlLgLen PACKED;
@ -275,21 +275,21 @@ typedef struct {
LONGINT ioFlCrDat PACKED;
LONGINT ioFlMdDat PACKED;
LONGINT ioFlBkDat PACKED;
FXInfo ioFlXFndrInfo PACKED;
FXInfo ioFlXFndrInfo LPACKED;
LONGINT ioFlParID PACKED;
LONGINT ioFlClpSiz PACKED;
} HFileInfo;
typedef struct {
COMMONCINFODEFS PACKED;
DInfo ioDrUsrWds PACKED;
COMMONCINFODEFS LPACKED;
DInfo ioDrUsrWds LPACKED;
LONGINT ioDrDirID PACKED;
unsigned short ioDrNmFls PACKED;
unsigned short filler3[9] PACKED;
LONGINT ioDrCrDat PACKED;
LONGINT ioDrMdDat PACKED;
LONGINT ioDrBkDat PACKED;
DXInfo ioDrFndrInfo PACKED;
DXInfo ioDrFndrInfo LPACKED;
LONGINT ioDrParID PACKED;
} DirInfo;
@ -356,7 +356,7 @@ typedef struct {
unsigned short vcbAlBlSt PACKED; /* 36 */
LONGINT vcbNxtCNID PACKED; /* 38 */
unsigned short vcbFreeBks PACKED; /* 42 */
Byte vcbVN[28] PACKED; /* 44 */
Byte vcbVN[28] LPACKED; /* 44 */
INTEGER vcbDrvNum PACKED; /* 72 */
INTEGER vcbDRefNum PACKED; /* 74 */
INTEGER vcbFSID PACKED; /* 76 */
@ -407,7 +407,7 @@ struct FSSpec
{
INTEGER vRefNum PACKED;
LONGINT parID PACKED;
Str63 name PACKED;
Str63 name LPACKED;
};
typedef struct FSSpec FSSpec;

View File

@ -23,8 +23,8 @@ typedef struct
Ptr ioDTBuffer PACKED;
LONGINT ioDTReqCount PACKED;
LONGINT ioDTActCount PACKED;
SignedByte filler1 PACKED;
SignedByte ioIconType PACKED;
SignedByte filler1 LPACKED;
SignedByte ioIconType LPACKED;
INTEGER filler2 PACKED;
LONGINT ioDirID PACKED;
OSType ioFileCreator PACKED;

View File

@ -89,12 +89,12 @@ typedef struct {
INTEGER fSize PACKED;
INTEGER face PACKED;
INTEGER device PACKED;
Point inNumer PACKED;
Point inDenom PACKED;
Point inNumer LPACKED;
Point inDenom LPACKED;
INTEGER aFID PACKED;
Handle fHand PACKED_P;
BOOLEAN usedFam PACKED;
Byte aFace PACKED;
BOOLEAN usedFam LPACKED;
Byte aFace LPACKED;
INTEGER vOutput PACKED;
INTEGER hOutput PACKED;
INTEGER vFactor PACKED;
@ -107,30 +107,30 @@ typedef struct {
typedef struct {
INTEGER family PACKED;
INTEGER size PACKED;
Style face PACKED;
BOOLEAN needBits PACKED;
Style face LPACKED;
BOOLEAN needBits LPACKED;
INTEGER device PACKED;
Point numer PACKED;
Point denom PACKED;
Point numer LPACKED;
Point denom LPACKED;
} FMInput;
typedef struct {
INTEGER errNum PACKED; /* 0x00 */
Handle fontHandle PACKED_P; /* 0x02 */
Byte bold PACKED; /* 0x06 */
Byte italic PACKED; /* 0x07 */
Byte ulOffset PACKED; /* 0x08 */
Byte ulShadow PACKED; /* 0x09 */
Byte ulThick PACKED; /* 0x0A */
Byte shadow PACKED; /* 0x0B */
SignedByte extra PACKED; /* 0x0C */
Byte ascent PACKED; /* 0x0D */
Byte descent PACKED; /* 0x0E */
Byte widMax PACKED; /* 0x0F */
SignedByte leading PACKED; /* 0x10 */
Byte unused PACKED; /* 0x11 */
Point numer PACKED; /* 0x12 */
Point denom PACKED; /* 0x16 */
Byte bold LPACKED; /* 0x06 */
Byte italic LPACKED; /* 0x07 */
Byte ulOffset LPACKED; /* 0x08 */
Byte ulShadow LPACKED; /* 0x09 */
Byte ulThick LPACKED; /* 0x0A */
Byte shadow LPACKED; /* 0x0B */
SignedByte extra LPACKED; /* 0x0C */
Byte ascent LPACKED; /* 0x0D */
Byte descent LPACKED; /* 0x0E */
Byte widMax LPACKED; /* 0x0F */
SignedByte leading LPACKED; /* 0x10 */
Byte unused LPACKED; /* 0x11 */
Point numer LPACKED; /* 0x12 */
Point denom LPACKED; /* 0x16 */
} FMOutput;
typedef FMOutput *FMOutPtr;

View File

@ -23,14 +23,14 @@ typedef struct HMMessageRecord
INTEGER hmmHelpType PACKED;
union
{
Str255 hmmString PACKED;
Str255 hmmString LPACKED;
INTEGER hmmPict PACKED;
HMStringResType hmmStringRes PACKED;
HMStringResType hmmStringRes LPACKED;
TEHandle hmmTEHandle PACKED_P;
PicHandle hmmPictHandle PACKED_P;
INTEGER hmmTERes PACKED;
INTEGER hmmSTRRes PACKED;
} u PACKED;
} u LPACKED;
} HMMessageRecord, *HMMessageRecPtr;
enum

View File

@ -97,9 +97,9 @@ typedef int16 IconTransformType;
typedef struct CIcon
{
PixMap iconPMap PACKED;
BitMap iconMask PACKED;
BitMap iconBMap PACKED;
PixMap iconPMap LPACKED;
BitMap iconMask LPACKED;
BitMap iconBMap LPACKED;
Handle iconData PACKED_P;
int16 iconMaskData[1] PACKED;
} CIcon, *CIconPtr;

View File

@ -55,30 +55,30 @@
#define verYugoslavia 25
typedef struct {
Byte decimalPt PACKED;
Byte thousSep PACKED;
Byte listSep PACKED;
Byte currSym1 PACKED;
Byte currSym2 PACKED;
Byte currSym3 PACKED;
Byte currFmt PACKED;
Byte dateOrder PACKED;
Byte shrtDateFmt PACKED;
Byte dateSep PACKED;
Byte timeCycle PACKED;
Byte timeFmt PACKED;
Byte decimalPt LPACKED;
Byte thousSep LPACKED;
Byte listSep LPACKED;
Byte currSym1 LPACKED;
Byte currSym2 LPACKED;
Byte currSym3 LPACKED;
Byte currFmt LPACKED;
Byte dateOrder LPACKED;
Byte shrtDateFmt LPACKED;
Byte dateSep LPACKED;
Byte timeCycle LPACKED;
Byte timeFmt LPACKED;
LONGINT mornStr PACKED;
LONGINT eveStr PACKED;
Byte timeSep PACKED;
Byte time1Suff PACKED;
Byte time2Suff PACKED;
Byte time3Suff PACKED;
Byte time4Suff PACKED;
Byte time5Suff PACKED;
Byte time6Suff PACKED;
Byte time7Suff PACKED;
Byte time8Suff PACKED;
Byte metricSys PACKED;
Byte timeSep LPACKED;
Byte time1Suff LPACKED;
Byte time2Suff LPACKED;
Byte time3Suff LPACKED;
Byte time4Suff LPACKED;
Byte time5Suff LPACKED;
Byte time6Suff LPACKED;
Byte time7Suff LPACKED;
Byte time8Suff LPACKED;
Byte metricSys LPACKED;
INTEGER intl0Vers PACKED;
} Intl0Rec;
typedef Intl0Rec *Intl0Ptr;
@ -88,12 +88,12 @@ typedef HIDDEN_Intl0Ptr *Intl0Hndl;
typedef Byte STRING15[16];
typedef struct {
STRING15 days[7] PACKED;
STRING15 months[12] PACKED;
Byte suppressDay PACKED;
Byte lngDateFmt PACKED;
Byte dayLeading0 PACKED;
Byte abbrLen PACKED;
STRING15 days[7] LPACKED;
STRING15 months[12] LPACKED;
Byte suppressDay LPACKED;
Byte lngDateFmt LPACKED;
Byte dayLeading0 LPACKED;
Byte abbrLen LPACKED;
LONGINT st0 PACKED;
LONGINT st1 PACKED;
LONGINT st2 PACKED;

View File

@ -24,26 +24,26 @@ typedef struct { DataPtr p PACKED_P; } HIDDEN_DataPtr;
typedef HIDDEN_DataPtr *DataHandle;
typedef struct {
Rect rView PACKED;
Rect rView LPACKED;
GrafPtr port PACKED_P;
Point indent PACKED;
Point cellSize PACKED;
Rect visible PACKED;
Point indent LPACKED;
Point cellSize LPACKED;
Rect visible LPACKED;
ControlHandle vScroll PACKED_P;
ControlHandle hScroll PACKED_P;
SignedByte selFlags PACKED;
BOOLEAN lActive PACKED;
SignedByte lReserved PACKED;
SignedByte listFlags PACKED;
SignedByte selFlags LPACKED;
BOOLEAN lActive LPACKED;
SignedByte lReserved LPACKED;
SignedByte listFlags LPACKED;
LONGINT clikTime PACKED;
Point clikLoc PACKED;
Point mouseLoc PACKED;
Point clikLoc LPACKED;
Point mouseLoc LPACKED;
Ptr lClikLoop PACKED_P;
Cell lastClick PACKED;
Cell lastClick LPACKED;
LONGINT refCon PACKED;
Handle listDefProc PACKED_P;
Handle userHandle PACKED_P;
Rect dataBounds PACKED;
Rect dataBounds LPACKED;
DataHandle cells PACKED_P;
INTEGER maxIndex PACKED;
INTEGER cellArray[1] PACKED;

View File

@ -26,7 +26,7 @@ typedef struct {
INTEGER menuHeight PACKED;
Handle menuProc PACKED_P;
LONGINT enableFlags PACKED;
Str255 menuData PACKED;
Str255 menuData LPACKED;
} MenuInfo;
typedef MenuInfo *MenuPtr;
typedef struct { MenuPtr p PACKED_P; } HIDDEN_MenuPtr;
@ -36,10 +36,10 @@ typedef struct MCEntry
{
INTEGER mctID PACKED;
INTEGER mctItem PACKED;
RGBColor mctRGB1 PACKED;
RGBColor mctRGB2 PACKED;
RGBColor mctRGB3 PACKED;
RGBColor mctRGB4 PACKED;
RGBColor mctRGB1 LPACKED;
RGBColor mctRGB2 LPACKED;
RGBColor mctRGB3 LPACKED;
RGBColor mctRGB4 LPACKED;
INTEGER mctReserved PACKED;
} MCEntry, *MCEntryPtr;
typedef struct { MCEntryPtr p PACKED_P; } HIDDEN_MCEntryPtr;

View File

@ -21,7 +21,7 @@ typedef struct {
INTEGER evtQWhat PACKED;
LONGINT evtQMessage PACKED;
LONGINT evtQWhen PACKED;
Point evtQWhere PACKED;
Point evtQWhere LPACKED;
INTEGER evtQModifiers PACKED;
} EvQEl;
@ -121,9 +121,9 @@ extern EvQEl *geteventelem (void);
typedef struct TargetID
{
int32 sessionID PACKED;
PPCPortRec name PACKED;
LocationNameRec location PACKED;
PPCPortRec recvrName PACKED;
PPCPortRec name LPACKED;
LocationNameRec location LPACKED;
PPCPortRec recvrName LPACKED;
} TargetID, TargetIDPtr;
typedef struct HighLevelEventMsg
@ -131,7 +131,7 @@ typedef struct HighLevelEventMsg
int16 HighLevelEventMsgHeaderlength PACKED;
int16 version PACKED;
int32 reserved1 PACKED;
EventRecord theMsgEvent PACKED;
EventRecord theMsgEvent LPACKED;
int32 userRefCon PACKED;
int32 postingOptions PACKED;
int32 msgLength PACKED;

View File

@ -25,10 +25,10 @@
#define prWrErr (-87)
typedef struct {
Byte valid PACKED;
Byte aTalkA PACKED;
Byte aTalkB PACKED;
Byte config PACKED;
Byte valid LPACKED;
Byte aTalkA LPACKED;
Byte aTalkB LPACKED;
Byte config LPACKED;
INTEGER portA PACKED;
INTEGER portB PACKED;
LONGINT alarm PACKED;
@ -65,8 +65,8 @@ typedef struct {
INTEGER machineType PACKED;
INTEGER systemVersion PACKED;
INTEGER processor PACKED;
BOOLEAN hasFPU PACKED;
BOOLEAN hasColorQD PACKED;
BOOLEAN hasFPU LPACKED;
BOOLEAN hasColorQD LPACKED;
INTEGER keyBoardType PACKED;
INTEGER atDrvrVersNum PACKED;
INTEGER sysVRefNum PACKED;

View File

@ -21,27 +21,27 @@ typedef struct LocationNameRec
union
{
EntityName npbEntity PACKED;
Str32 npbType PACKED;
} u PACKED;
EntityName npbEntity LPACKED;
Str32 npbType LPACKED;
} u LPACKED;
} LocationNameRec;
typedef struct PPCPortRec
{
ScriptCode nameScript PACKED;
Str32 name PACKED;
Str32 name LPACKED;
PPCPortKinds portKindsSelector PACKED;
union
{
Str32 portTypeStr PACKED;
Str32 portTypeStr LPACKED;
struct
{
OSType creator PACKED;
OSType type PACKED;
} port PACKED;
} u PACKED;
} port LPACKED;
} u LPACKED;
} PPCPortRec, *PPCPortPtr;
#endif /* !_PPC_H_ */

View File

@ -38,11 +38,11 @@
#define iPrDrvrRef (-3)
typedef struct {
GrafPort gPort PACKED;
QDProcs saveprocs PACKED;
GrafPort gPort LPACKED;
QDProcs saveprocs LPACKED;
LONGINT spare[4] PACKED;
BOOLEAN fOurPtr PACKED;
BOOLEAN fOurBits PACKED;
BOOLEAN fOurPtr LPACKED;
BOOLEAN fOurBits LPACKED;
} TPrPort;
typedef TPrPort *TPPrPort;
@ -50,7 +50,7 @@ typedef struct {
INTEGER iDev PACKED;
INTEGER iVRes PACKED;
INTEGER iHRes PACKED;
Rect rPage PACKED;
Rect rPage LPACKED;
} TPrInfo;
typedef enum {feedCut, feedFanFold, feedMechCut, feedOther} TFeed;
@ -59,8 +59,8 @@ typedef struct {
INTEGER wDev PACKED;
INTEGER iPageV PACKED;
INTEGER iPageH PACKED;
SignedByte bPort PACKED;
char feed PACKED;
SignedByte bPort LPACKED;
char feed LPACKED;
} TPrStl;
typedef enum { scanTB, scanBL, scanLR, scanRL } TScan;
@ -70,35 +70,35 @@ typedef struct {
INTEGER iBandH PACKED;
INTEGER iDevBytes PACKED;
INTEGER iBands PACKED;
SignedByte bPatScale PACKED;
SignedByte bULThick PACKED;
SignedByte bULOffset PACKED;
SignedByte bULShadow PACKED;
char scan PACKED;
SignedByte bXInfoX PACKED;
SignedByte bPatScale LPACKED;
SignedByte bULThick LPACKED;
SignedByte bULOffset LPACKED;
SignedByte bULShadow LPACKED;
char scan LPACKED;
SignedByte bXInfoX LPACKED;
} TPrXInfo;
typedef struct {
INTEGER iFstPage PACKED;
INTEGER iLstPage PACKED;
INTEGER iCopies PACKED;
SignedByte bJDocLoop PACKED;
BOOLEAN fFromUsr PACKED;
SignedByte bJDocLoop LPACKED;
BOOLEAN fFromUsr LPACKED;
ProcPtr pIdleProc PACKED_P;
StringPtr pFileName PACKED_P;
INTEGER iFileVol PACKED;
SignedByte bFileVers PACKED;
SignedByte bJobX PACKED;
SignedByte bFileVers LPACKED;
SignedByte bJobX LPACKED;
} TPrJob;
typedef struct {
INTEGER iPrVersion PACKED;
TPrInfo prInfo PACKED;
Rect rPaper PACKED;
TPrStl prStl PACKED;
TPrInfo prInfoPT PACKED;
TPrXInfo prXInfo PACKED;
TPrJob prJob PACKED;
TPrInfo prInfo LPACKED;
Rect rPaper LPACKED;
TPrStl prStl LPACKED;
TPrInfo prInfoPT LPACKED;
TPrXInfo prXInfo LPACKED;
TPrJob prJob LPACKED;
INTEGER printX[19] PACKED;
} TPrint;
typedef TPrint *TPPrint;
@ -114,8 +114,8 @@ typedef struct {
INTEGER iCurCopy PACKED;
INTEGER iTotBands PACKED;
INTEGER iCurBand PACKED;
BOOLEAN fPgDirty PACKED;
BOOLEAN fImaging PACKED;
BOOLEAN fPgDirty LPACKED;
BOOLEAN fImaging LPACKED;
THPrint hPrint PACKED_P;
TPPrPort pPRPort PACKED_P;
PicHandle hPic PACKED_P;
@ -123,12 +123,12 @@ typedef struct {
typedef struct {
/* From Technote 095 */
DialogRecord dlg PACKED;
DialogRecord dlg LPACKED;
ProcPtr pFltrProc PACKED_P;
ProcPtr pItemProc PACKED_P;
THPrint hPrintUsr PACKED_P;
BOOLEAN fDoIt PACKED;
BOOLEAN fDone PACKED;
BOOLEAN fDoIt LPACKED;
BOOLEAN fDone LPACKED;
LONGINT lUser1 PACKED;
LONGINT lUser2 PACKED;
LONGINT lUser3 PACKED;

View File

@ -50,7 +50,7 @@ typedef struct
INTEGER launchFileFlags PACKED;
LaunchFlags launchControlFlags PACKED;
FSSpecPtr launchAppSpec PACKED;
ProcessSerialNumber launchProcessSN PACKED;
ProcessSerialNumber launchProcessSN LPACKED;
LONGINT launchPreferredSize PACKED;
LONGINT launchMinimumSize PACKED;
LONGINT launchAvailableSize PACKED;
@ -71,14 +71,14 @@ typedef struct ProcessInfoRec
{
uint32 processInfoLength PACKED;
StringPtr processName PACKED_P;
ProcessSerialNumber processNumber PACKED;
ProcessSerialNumber processNumber LPACKED;
uint32 processType PACKED;
OSType processSignature PACKED;
uint32 processMode PACKED;
Ptr processLocation PACKED_P;
uint32 processSize PACKED;
uint32 processFreeMem PACKED;
ProcessSerialNumber processLauncher PACKED;
ProcessSerialNumber processLauncher LPACKED;
uint32 processLaunchDate PACKED;
uint32 processActiveTime PACKED;
FSSpecPtr processAppSpec PACKED_P;

View File

@ -70,7 +70,7 @@ typedef SignedByte Style;
typedef struct {
INTEGER rgnSize PACKED;
Rect rgnBBox PACKED;
Rect rgnBBox LPACKED;
} Region;
typedef Region *RgnPtr;
@ -81,7 +81,7 @@ typedef struct { RgnHandle p PACKED_P; } HIDDEN_RgnHandle;
typedef struct {
Ptr baseAddr PACKED_P;
INTEGER rowBytes PACKED;
Rect bounds PACKED;
Rect bounds LPACKED;
} BitMap;
typedef Byte Pattern[8];
@ -90,7 +90,7 @@ typedef INTEGER Bits16[16];
typedef struct {
Bits16 data PACKED;
Bits16 mask PACKED;
Point hotSpot PACKED;
Point hotSpot LPACKED;
} Cursor;
typedef Cursor *CursPtr;
@ -106,8 +106,8 @@ typedef SignedByte GrafVerb;
typedef struct {
INTEGER polySize PACKED;
Rect polyBBox PACKED;
Point polyPoints[1] PACKED;
Rect polyBBox LPACKED;
Point polyPoints[1] LPACKED;
} Polygon;
typedef Polygon *PolyPtr;
@ -145,20 +145,20 @@ typedef QDProcs *QDProcsPtr;
typedef struct {
INTEGER device PACKED;
BitMap portBits PACKED;
Rect portRect PACKED;
BitMap portBits LPACKED;
Rect portRect LPACKED;
RgnHandle visRgn PACKED_P;
RgnHandle clipRgn PACKED_P;
Pattern bkPat PACKED;
Pattern fillPat PACKED;
Point pnLoc PACKED;
Point pnSize PACKED;
Pattern bkPat LPACKED;
Pattern fillPat LPACKED;
Point pnLoc LPACKED;
Point pnSize LPACKED;
INTEGER pnMode PACKED;
Pattern pnPat PACKED;
Pattern pnPat LPACKED;
INTEGER pnVis PACKED;
INTEGER txFont PACKED;
Style txFace PACKED;
Byte filler PACKED;
Style txFace LPACKED;
Byte filler LPACKED;
INTEGER txMode PACKED;
INTEGER txSize PACKED;
Fixed spExtra PACKED;
@ -177,7 +177,7 @@ typedef struct { GrafPtr p PACKED_P; } HIDDEN_GrafPtr;
typedef struct {
INTEGER picSize PACKED;
Rect picFrame PACKED;
Rect picFrame LPACKED;
} Picture;
typedef Picture *PicPtr;
@ -185,10 +185,10 @@ typedef struct { PicPtr p PACKED_P; } HIDDEN_PicPtr;
typedef HIDDEN_PicPtr *PicHandle;
typedef struct {
Point pnLoc PACKED;
Point pnSize PACKED;
Point pnLoc LPACKED;
Point pnSize LPACKED;
INTEGER pnMode PACKED;
Pattern pnPat PACKED;
Pattern pnPat LPACKED;
} PenState;
/* IMV stuff is used when we parse Version 2 pictures, but the IMV calls
@ -229,7 +229,7 @@ typedef struct {
typedef struct ColorSpec
{
INTEGER value PACKED;
RGBColor rgb PACKED;
RGBColor rgb LPACKED;
} ColorSpec;
typedef ColorSpec cSpecArray[1]; /* can't use 0 */
@ -238,7 +238,7 @@ typedef struct {
LONGINT ctSeed PACKED;
unsigned short ctFlags PACKED;
INTEGER ctSize PACKED;
cSpecArray ctTable PACKED;
cSpecArray ctTable LPACKED;
} ColorTable, *CTabPtr;
typedef struct { CTabPtr p PACKED_P; } HIDDEN_CTabPtr;
@ -271,7 +271,7 @@ typedef struct {
typedef struct {
Ptr baseAddr PACKED_P;
INTEGER rowBytes PACKED;
Rect bounds PACKED;
Rect bounds LPACKED;
INTEGER pmVersion PACKED;
INTEGER packType PACKED;
LONGINT packSize PACKED;
@ -305,7 +305,7 @@ typedef struct {
Handle patXData PACKED_P;
INTEGER patXValid PACKED;
Handle patXMap PACKED_P;
Pattern pat1Data PACKED;
Pattern pat1Data LPACKED;
} PixPat, *PixPatPtr;
typedef struct { PixPatPtr p PACKED_P; } HIDDEN_PixPatPtr;
typedef HIDDEN_PixPatPtr *PixPatHandle;
@ -318,21 +318,21 @@ typedef struct {
Handle grafVars PACKED_P;
INTEGER chExtra PACKED;
INTEGER pnLocHFrac PACKED;
Rect portRect PACKED;
Rect portRect LPACKED;
RgnHandle visRgn PACKED_P;
RgnHandle clipRgn PACKED_P;
PixPatHandle bkPixPat PACKED_P;
RGBColor rgbFgColor PACKED;
RGBColor rgbBkColor PACKED;
Point pnLoc PACKED;
Point pnSize PACKED;
RGBColor rgbFgColor LPACKED;
RGBColor rgbBkColor LPACKED;
Point pnLoc LPACKED;
Point pnSize LPACKED;
INTEGER pnMode PACKED;
PixPatHandle pnPixPat PACKED_P;
PixPatHandle fillPixPat PACKED_P;
INTEGER pnVis PACKED;
INTEGER txFont PACKED;
Style txFace PACKED;
Byte filler PACKED;
Style txFace LPACKED;
Byte filler LPACKED;
INTEGER txMode PACKED;
INTEGER txSize PACKED;
Fixed spExtra PACKED;
@ -357,7 +357,7 @@ typedef struct {
Handle crsrXHandle PACKED_P;
Bits16 crsr1Data PACKED;
Bits16 crsrMask PACKED;
Point crsrHotSpot PACKED;
Point crsrHotSpot LPACKED;
LONGINT crsrXTable PACKED;
LONGINT crsrID PACKED;
} CCrsr, *CCrsrPtr;

View File

@ -14,7 +14,7 @@ typedef union {
struct {
ULONGINT hi PACKED;
ULONGINT lo PACKED;
} hilo PACKED;
} hilo LPACKED;
signed long long val PACKED;
} comp_t;
@ -25,7 +25,7 @@ typedef union {
struct {
ULONGINT lo PACKED;
ULONGINT hi PACKED;
} hilo PACKED;
} hilo LPACKED;
signed long long val PACKED;
} native_comp_t;
#else /* Not LITTLEENDIAN */
@ -44,16 +44,16 @@ typedef struct {
} s PACKED;
#endif
unsigned short sgn_and_exp PACKED;
} se PACKED;
} se LPACKED;
/* Mantissa. */
union {
struct {
ULONGINT man_hi PACKED;
ULONGINT man_lo PACKED;
} hilo PACKED;
} hilo LPACKED;
unsigned long long man PACKED;
} man PACKED;
} man LPACKED;
} x80_t;
@ -75,10 +75,10 @@ typedef struct {
#define SIGDIGLEN 20
typedef struct {
unsigned char sgn PACKED;
unsigned char unused_filler PACKED;
unsigned char sgn LPACKED;
unsigned char unused_filler LPACKED;
INTEGER exp PACKED;
unsigned char sig[SIGDIGLEN] PACKED;
unsigned char sig[SIGDIGLEN] LPACKED;
} Decimal;
typedef enum { FloatDecimal, FixedDecimal = 256 } toobigdecformstyle_t;

View File

@ -132,9 +132,9 @@ typedef INTEGER FormatStatus;
typedef struct
{
Byte fLength PACKED;
Byte fVersion PACKED;
SignedByte data[253] PACKED;
Byte fLength LPACKED;
Byte fVersion LPACKED;
SignedByte data[253] LPACKED;
}
NumFormatStringRec;
@ -156,10 +156,10 @@ typedef struct
{
INTEGER version PACKED;
WideChar data[31] PACKED;
WideCharArr pePlus PACKED;
WideCharArr peMinus PACKED;
WideCharArr peMinusPlus PACKED;
WideCharArr altNumTable PACKED;
WideCharArr pePlus LPACKED;
WideCharArr peMinus LPACKED;
WideCharArr peMinusPlus LPACKED;
WideCharArr altNumTable LPACKED;
CHAR reserved[20] PACKED;
}
NumberParts;

View File

@ -22,7 +22,7 @@ typedef struct {
INTEGER vRefNum PACKED;
OSType fType PACKED;
INTEGER versNum PACKED;
Str255 fName PACKED;
Str255 fName LPACKED;
} AppFile;

View File

@ -68,23 +68,23 @@ typedef __SignedByte SPortSel;
#endif /* BINCOMPAT */
typedef struct {
__Byte fXOn PACKED;
__Byte fCTS PACKED;
__Byte xOn PACKED;
__Byte xOff PACKED;
__Byte errs PACKED;
__Byte evts PACKED;
__Byte fInX PACKED;
__Byte null PACKED;
__Byte fXOn LPACKED;
__Byte fCTS LPACKED;
__Byte xOn LPACKED;
__Byte xOff LPACKED;
__Byte errs LPACKED;
__Byte evts LPACKED;
__Byte fInX LPACKED;
__Byte null LPACKED;
} SerShk;
typedef struct {
__Byte cumErrs PACKED;
__Byte xOffSent PACKED;
__Byte rdPend PACKED;
__Byte wrPend PACKED;
__Byte ctsHold PACKED;
__Byte xOffHold PACKED;
__Byte cumErrs LPACKED;
__Byte xOffSent LPACKED;
__Byte rdPend LPACKED;
__Byte wrPend LPACKED;
__Byte ctsHold LPACKED;
__Byte xOffHold LPACKED;
} SerStaRec;
#define MODEMINAME ".AIn"

View File

@ -17,7 +17,7 @@ typedef Byte FreeWave[30001];
typedef struct {
INTEGER mode PACKED;
Fixed fcount PACKED;
FreeWave waveBytes PACKED;
FreeWave waveBytes LPACKED;
} FFSynthRec;
typedef FFSynthRec *FFSynthPtr;
@ -30,7 +30,7 @@ typedef Tone Tones[5001];
typedef struct {
INTEGER mode PACKED;
Tones triplets PACKED;
Tones triplets LPACKED;
} SWSynthRec;
typedef SWSynthRec *SWSynthPtr;

View File

@ -31,12 +31,12 @@ typedef struct _SndChannel {
ProcPtr callBack PACKED_P;
LONGINT userInfo PACKED;
LONGINT wait PACKED;
SndCommand cmdInProg PACKED;
SndCommand cmdInProg LPACKED;
INTEGER flags PACKED;
INTEGER qLength PACKED;
INTEGER qHead PACKED;
INTEGER qTail PACKED;
SndCommand queue[stdQLength] PACKED;
SndCommand queue[stdQLength] LPACKED;
} SndChannel, *SndChannelPtr;
#define SND_CHAN_FLAGS_X(c) (c->flags)
@ -81,7 +81,7 @@ typedef struct {
LONGINT altbegin PACKED;
LONGINT altend PACKED;
INTEGER basenote PACKED;
unsigned char buf[1] PACKED;
unsigned char buf[1] LPACKED;
} soundbuffer_t;
typedef struct _SoundHeader {
@ -90,9 +90,9 @@ typedef struct _SoundHeader {
Fixed sampleRate PACKED;
LONGINT loopStart PACKED;
LONGINT loopEnd PACKED;
Byte encode PACKED;
Byte baseFrequency PACKED;
Byte sampleArea[0] PACKED;
Byte encode LPACKED;
Byte baseFrequency LPACKED;
Byte sampleArea[0] LPACKED;
} SoundHeader, *SoundHeaderPtr;
typedef struct _ExtSoundHeader {
@ -101,8 +101,8 @@ typedef struct _ExtSoundHeader {
Fixed sampleRate PACKED;
LONGINT loopStart PACKED;
LONGINT loopEnd PACKED;
Byte encode PACKED;
Byte baseFrequency PACKED;
Byte encode LPACKED;
Byte baseFrequency LPACKED;
LONGINT numFrames PACKED;
Extended AIFFSampleRate PACKED; /* ??? should be Extended80 */
Ptr MarkerChunk PACKED;
@ -113,7 +113,7 @@ typedef struct _ExtSoundHeader {
LONGINT futureUse2 PACKED;
LONGINT futureUse3 PACKED;
LONGINT futureUse4 PACKED;
Byte sampleArea[0] PACKED;
Byte sampleArea[0] LPACKED;
} ExtSoundHeader, *ExtSoundHeaderPtr;
enum {
@ -147,7 +147,7 @@ typedef struct
LONGINT dbNumFrames PACKED;
LONGINT dbFlags PACKED;
LONGINT dbUserInfo[2] PACKED;
Byte dbSoundData[0] PACKED;
Byte dbSoundData[0] LPACKED;
} SndDoubleBuffer, *SndDoubleBufferPtr;
enum {
@ -170,10 +170,10 @@ typedef struct _SCSTATUS {
Fixed scStartTime PACKED;
Fixed scEndTime PACKED;
Fixed scCurrentTime PACKED;
Boolean scChannelBusy PACKED;
Boolean scChannelDisposed PACKED;
Boolean scChannelPaused PACKED;
Boolean scUnused PACKED;
Boolean scChannelBusy LPACKED;
Boolean scChannelDisposed LPACKED;
Boolean scChannelPaused LPACKED;
Boolean scUnused LPACKED;
LONGINT scChannelAttributes PACKED;
LONGINT scCPULoad PACKED;
} SCStatus, *SCStatusPtr;

View File

@ -29,12 +29,12 @@
#define getScroll 8
typedef struct {
BOOLEAN good PACKED;
BOOLEAN copy PACKED;
BOOLEAN good LPACKED;
BOOLEAN copy LPACKED;
OSType fType PACKED;
INTEGER vRefNum PACKED;
INTEGER version PACKED;
Str63 fName PACKED;
Str63 fName LPACKED;
} SFReply;
typedef OSType SFTypeList[4];
@ -46,14 +46,14 @@ extern LONGINT CurDirStore;
typedef struct
{
BOOLEAN sfGood PACKED;
BOOLEAN sfReplacing PACKED;
BOOLEAN sfGood LPACKED;
BOOLEAN sfReplacing LPACKED;
OSType sfType PACKED;
FSSpec sfFile PACKED;
FSSpec sfFile LPACKED;
ScriptCode sfScript PACKED;
INTEGER sfFlags PACKED;
BOOLEAN sfIsFolder PACKED;
BOOLEAN sfIsVolume PACKED;
BOOLEAN sfIsFolder LPACKED;
BOOLEAN sfIsVolume LPACKED;
LONGINT sfReserved1 PACKED;
INTEGER sfReserved2 PACKED;
} StandardFileReply;

View File

@ -51,12 +51,12 @@
#define teBitTest (-1)
typedef struct {
Rect destRect PACKED;
Rect viewRect PACKED;
Rect selRect PACKED;
Rect destRect LPACKED;
Rect viewRect LPACKED;
Rect selRect LPACKED;
INTEGER lineHeight PACKED;
INTEGER fontAscent PACKED;
Point selPoint PACKED;
Point selPoint LPACKED;
INTEGER selStart PACKED;
INTEGER selEnd PACKED;
INTEGER active PACKED;
@ -74,8 +74,8 @@ typedef struct {
INTEGER clikStuff PACKED;
INTEGER crOnly PACKED;
INTEGER txFont PACKED;
Style txFace PACKED;
Byte filler PACKED;
Style txFace LPACKED;
Byte filler LPACKED;
INTEGER txMode PACKED;
INTEGER txSize PACKED;
GrafPtr inPort PACKED_P;
@ -99,10 +99,10 @@ typedef struct {
INTEGER stHeight PACKED;
INTEGER stAscent PACKED;
INTEGER stFont PACKED;
Style stFace PACKED;
Byte filler PACKED;
Style stFace LPACKED;
Byte filler LPACKED;
INTEGER stSize PACKED;
RGBColor stColor PACKED;
RGBColor stColor LPACKED;
} STElement;
typedef STElement TEStyleTable[1];
@ -122,10 +122,10 @@ typedef HIDDEN_LHPtr *LHHandle;
typedef struct {
INTEGER tsFont PACKED;
Style tsFace PACKED;
Byte filler PACKED;
Style tsFace LPACKED;
Byte filler LPACKED;
INTEGER tsSize PACKED;
RGBColor tsColor PACKED;
RGBColor tsColor LPACKED;
} TextStyle;
typedef struct {
@ -133,17 +133,17 @@ typedef struct {
INTEGER scrpHeight PACKED;
INTEGER scrpAscent PACKED;
INTEGER scrpFont PACKED;
Style scrpFace PACKED;
Byte filler PACKED;
Style scrpFace LPACKED;
Byte filler LPACKED;
INTEGER scrpSize PACKED;
RGBColor scrpColor PACKED;
RGBColor scrpColor LPACKED;
} ScrpSTElement;
typedef ScrpSTElement ScrpSTTable[1];
typedef struct {
INTEGER scrpNStyles PACKED;
ScrpSTTable scrpStyleTab PACKED;
ScrpSTTable scrpStyleTab LPACKED;
} StScrpRec;
typedef StScrpRec *StScrpPtr;
@ -166,7 +166,7 @@ typedef struct {
LHHandle lhTab PACKED_P;
LONGINT teRefCon PACKED;
NullSTHandle nullStyle PACKED_P;
StyleRun runs[1] PACKED;
StyleRun runs[1] LPACKED;
} TEStyleRec;
typedef TEStyleRec *TEStylePtr;

View File

@ -79,12 +79,12 @@ typedef struct { WindowPeek p PACKED_P; } HIDDEN_WindowPeek;
#include "ControlMgr.h"
struct __wr {
GrafPort port PACKED;
GrafPort port LPACKED;
INTEGER windowKind PACKED;
BOOLEAN visible PACKED;
BOOLEAN hilited PACKED;
BOOLEAN goAwayFlag PACKED;
BOOLEAN spareFlag PACKED;
BOOLEAN visible LPACKED;
BOOLEAN hilited LPACKED;
BOOLEAN goAwayFlag LPACKED;
BOOLEAN spareFlag LPACKED;
RgnHandle strucRgn PACKED_P;
RgnHandle contRgn PACKED_P;
RgnHandle updateRgn PACKED_P;
@ -99,8 +99,8 @@ struct __wr {
};
typedef struct {
Rect userState PACKED,
stdState PACKED;
Rect userState LPACKED,
stdState LPACKED;
} WStateData;
#define inZoomIn 7

View File

@ -42,14 +42,14 @@ typedef struct
uint32 oldest_definition_version PACKED;
uint32 stack_size PACKED;
int16 appl_library_dir PACKED;
uint8 fragment_type PACKED;
uint8 fragment_location PACKED;
uint8 fragment_type LPACKED;
uint8 fragment_location LPACKED;
int32 offset_to_fragment PACKED;
int32 fragment_length PACKED;
uint32 reserved0 PACKED;
uint32 reserved1 PACKED;
uint16 cfir_length PACKED;
unsigned char name[1] PACKED;
unsigned char name[1] LPACKED;
}
cfir_t;
@ -112,7 +112,7 @@ typedef struct MemFragment
{
Ptr address PACKED;
uint32 length PACKED;
BOOLEAN inPlace PACKED;
BOOLEAN inPlace LPACKED;
}
MemFragment;
@ -141,7 +141,7 @@ typedef struct FragmentLocator
DiskFragment onDisk;
SegmentedFragment inSegs;
}
u PACKED;
u LPACKED;
}
FragmentLocator;
@ -149,7 +149,7 @@ typedef struct InitBlock
{
uint32 contextID PACKED;
uint32 closureID PACKED;
FragmentLocator fragLocator PACKED;
FragmentLocator fragLocator LPACKED;
Ptr libName PACKED;
uint32 reserved4a PACKED;
uint32 reserved4b PACKED;

View File

@ -13,8 +13,8 @@
typedef struct GrafVars
{
RGBColor rgbOpColor PACKED;
RGBColor rgbHiliteColor PACKED;
RGBColor rgbOpColor LPACKED;
RGBColor rgbHiliteColor LPACKED;
Handle pmFgColor PACKED_P;
INTEGER pmFgIndex PACKED;
Handle pmBkColor PACKED_P;

View File

@ -33,13 +33,13 @@ typedef struct {
typedef struct {
LONGINT flags PACKED;
DrvQEl dq PACKED;
DrvQEl dq LPACKED;
Ptr devicename PACKED; /* "/usr" "/dev/rfd0" whatever */
#if !defined(__alpha)
char *filler PACKED;
#endif
INTEGER partition PACKED; /* for multiply partitioned drives */
hfs_access_t hfs PACKED; /* currently only for floppies -- ick */
hfs_access_t hfs LPACKED; /* currently only for floppies -- ick */
} DrvQExtra;
#define OURUFSDREF (-102)
@ -69,8 +69,8 @@ extern boolean_t cd_mounted_by_trickery_p;
typedef struct {
LONGINT fdfnum PACKED; /* LONGINT fcbFlNum */
Byte fcflags PACKED; /* Byte fcbMdRByt */
Byte fcbTypByt PACKED;
Byte fcflags LPACKED; /* Byte fcbMdRByt */
Byte fcbTypByt LPACKED;
INTEGER fcbSBlk PACKED;
LONGINT fcleof PACKED; /* LONGINT fcbEOF */
LONGINT fcPLen PACKED;
@ -84,21 +84,21 @@ typedef struct {
LONGINT fcbFType PACKED;
LONGINT hiddenfd PACKED; /* instead of LONGINT fcbCatPos */
LONGINT fcparid PACKED; /* LONGINT fcbDirID */
Byte fcname[32] PACKED; /* Str31 fcbCName */
Byte fcname[32] LPACKED; /* Str31 fcbCName */
} fcbrec;
#define NFCB 348 /* should be related to NOFILE */
typedef struct {
INTEGER nbytes PACKED;
fcbrec fc[NFCB] PACKED;
fcbrec fc[NFCB] LPACKED;
} fcbhidden;
#define ROMlib_fcblocks (((fcbhidden *)MR(FCBSPtr))->fc)
typedef struct { /* add new elements to the beginning of this struct */
LONGINT magicword PACKED;
FInfo FndrInfo PACKED;
FInfo FndrInfo LPACKED;
LONGINT LgLen PACKED;
LONGINT RLgLen PACKED;
LONGINT CrDat PACKED;
@ -202,7 +202,7 @@ typedef struct hashlink_str {
} hashlink_t;
typedef struct {
VCB vcb PACKED;
VCB vcb LPACKED;
char *unixname PACKED;
#if !defined(__alpha)
char *filler PACKED;
@ -215,9 +215,9 @@ typedef struct {
#if !defined(__alpha)
char *filler2 PACKED;
#endif
} ufs PACKED;
hfs_access_t hfs PACKED;
} u PACKED;
} ufs LPACKED;
hfs_access_t hfs LPACKED;
} u LPACKED;
} VCBExtra;
enum

View File

@ -48,8 +48,8 @@ typedef struct {
} Single_dates;
typedef struct {
FInfo finfo PACKED;
FXInfo fxinfo PACKED;
FInfo finfo LPACKED;
FXInfo fxinfo LPACKED;
} Single_finfo;
typedef ULONGINT Single_attribs;

View File

@ -58,7 +58,7 @@ typedef struct {
unsigned short drAlBlSt PACKED;
LONGINT drNxtCNID PACKED;
unsigned short drFreeBks PACKED;
unsigned char drVN[28] PACKED;
unsigned char drVN[28] LPACKED;
LONGINT drVolBkUp PACKED;
unsigned short drVSeqNum PACKED;
LONGINT drWrCnt PACKED;
@ -72,9 +72,9 @@ typedef struct {
unsigned short drVCBMSize PACKED;
unsigned short drCtlCSize PACKED;
LONGINT drXTFlSize PACKED;
xtntrec drXTExtRec PACKED;
xtntrec drXTExtRec LPACKED;
LONGINT drCTFlSize PACKED;
xtntrec drCTExtRec PACKED;
xtntrec drCTExtRec LPACKED;
} volumeinfo, *volumeinfoPtr;
typedef struct { volumeinfoPtr p PACKED_P; } HIDDEN_volumeinfoPtr;
typedef HIDDEN_volumeinfoPtr *volumeinfoHandle;
@ -87,8 +87,8 @@ typedef HIDDEN_volumeinfoPtr *volumeinfoHandle;
typedef struct {
LONGINT ndFLink PACKED;
LONGINT ndBLink PACKED;
unsigned char ndType PACKED;
char ndLevel PACKED;
unsigned char ndType LPACKED;
char ndLevel LPACKED;
short ndNRecs PACKED;
unsigned short idunno PACKED;
} btnode;
@ -96,15 +96,15 @@ typedef struct {
typedef enum { indexnode, mapnode = 2, leafnode = 0xFF } btnodetype;
typedef struct {
unsigned char ckrKeyLen PACKED;
char ckrResrv1 PACKED;
unsigned char ckrKeyLen LPACKED;
char ckrResrv1 LPACKED;
LONGINT ckrParID PACKED;
unsigned char ckrCName[32] PACKED;
unsigned char ckrCName[32] LPACKED;
} catkey;
typedef struct {
unsigned char xkrKeyLen PACKED;
unsigned char xkrFkType PACKED;
unsigned char xkrKeyLen LPACKED;
unsigned char xkrFkType LPACKED;
LONGINT xkrFNum PACKED;
unsigned short xkrFABN PACKED;
} xtntkey;
@ -118,11 +118,11 @@ typedef union {
#define FILETYPE 2
typedef struct {
char cdrType PACKED;
char cdrResrv2 PACKED;
char filFlags PACKED;
char filTyp PACKED;
FInfo filUsrWds PACKED; /* not sure what form */
char cdrType LPACKED;
char cdrResrv2 LPACKED;
char filFlags LPACKED;
char filTyp LPACKED;
FInfo filUsrWds LPACKED; /* not sure what form */
LONGINT filFlNum PACKED;
unsigned short filStBlk PACKED; /* I don't think this is used */
LONGINT filLgLen PACKED;
@ -135,16 +135,16 @@ typedef struct {
LONGINT filBkDat PACKED;
LONGINT filFndrInfo[4] PACKED;
unsigned short filClpSize PACKED;
xtntrec filExtRec PACKED;
xtntrec filRExtRec PACKED;
xtntrec filExtRec LPACKED;
xtntrec filRExtRec LPACKED;
LONGINT filResrv PACKED;
} filerec;
#define DIRTYPE 1
typedef struct {
char cdrType PACKED;
char cdrResrv2 PACKED;
char cdrType LPACKED;
char cdrResrv2 LPACKED;
unsigned short dirFlags PACKED;
unsigned short dirVal PACKED;
LONGINT dirDirID PACKED;
@ -159,11 +159,11 @@ typedef struct {
#define THREADTYPE 3
typedef struct {
char cdrType PACKED;
char cdrResrv2 PACKED;
char thdResrv[8] PACKED;
char cdrType LPACKED;
char cdrResrv2 LPACKED;
char thdResrv[8] LPACKED;
LONGINT thdParID PACKED;
unsigned char thdCName[32] PACKED;
unsigned char thdCName[32] LPACKED;
} threadrec;
typedef enum { firstisless = -1, same, firstisgreater } compretval;
@ -178,8 +178,8 @@ typedef compretval (*compfp)(void *first, void *second);
typedef struct {
LONGINT fcbFlNum PACKED;
Byte fcbMdRByt PACKED;
Byte fcbTypByt PACKED;
Byte fcbMdRByt LPACKED;
Byte fcbTypByt LPACKED;
unsigned short fcbSBlk PACKED;
LONGINT fcbEOF PACKED;
LONGINT fcbPLen PACKED;
@ -189,11 +189,11 @@ typedef struct {
unsigned short fcbFlPos PACKED;
LONGINT fcbClmpSize PACKED;
LONGINT fcbBTCBPtr PACKED;
xtntrec fcbExtRec PACKED;
xtntrec fcbExtRec LPACKED;
LONGINT fcbFType PACKED;
ULONGINT fcbCatPos PACKED;
LONGINT fcbDirID PACKED;
unsigned char fcbCName[32] PACKED;
unsigned char fcbCName[32] LPACKED;
} filecontrolblock;
enum { datafork, resourcefork = 0xFF };
@ -212,8 +212,8 @@ typedef enum { reading, writing } accesstype;
typedef struct {
LONGINT flink PACKED; /* 0 */
LONGINT blink PACKED; /* 4 */
unsigned char type PACKED; /* 8 */
unsigned char dummy PACKED; /* 9 */
unsigned char type LPACKED; /* 8 */
unsigned char dummy LPACKED; /* 9 */
unsigned short hesthreejim PACKED; /* 10 */
INTEGER macdisk_uses_it PACKED; /* 12 */
INTEGER height PACKED; /* 14 */
@ -225,9 +225,9 @@ typedef struct {
unsigned short indexkeylen PACKED; /* 34 */
LONGINT nnodes PACKED; /* 36 */
LONGINT nfreenodes PACKED; /* 40 */
unsigned char reserved[72] PACKED; /* 44 */
unsigned char dummy2[132] PACKED; /* 116 */
unsigned char map[256] PACKED; /* 248 */
unsigned char reserved[72] LPACKED; /* 44 */
unsigned char dummy2[132] LPACKED; /* 116 */
unsigned char map[256] LPACKED; /* 248 */
LONGINT unknown2[2] PACKED; /* 504 */
} btblock0;
@ -259,9 +259,9 @@ typedef struct _cacheentry {
uint16 refnum PACKED;
ULONGINT physblock PACKED;
ULONGINT logblk PACKED;
unsigned char flags PACKED;
forktype forktype PACKED;
char buf[PHYSBSIZE] PACKED;
unsigned char flags LPACKED;
forktype forktype LPACKED;
char buf[PHYSBSIZE] LPACKED;
} cacheentry;
#define CACHEDIRTY (1 << 7)

View File

@ -60,7 +60,7 @@ typedef struct HFSPlusForkData
UInt64 logicalSize PACKED;
UInt32 clumpSize PACKED;
UInt32 totalBlocks PACKED;
HFSPlusExtentRecord extents PACKED;
HFSPlusExtentRecord extents LPACKED;
}
HFSPlusForkData;
@ -99,8 +99,8 @@ typedef struct BTNodeDescriptor
{
UInt32 fLink PACKED;
UInt32 bLink PACKED;
SInt8 kind PACKED;
UInt8 height PACKED;
SInt8 kind LPACKED;
UInt8 height LPACKED;
UInt16 numRecords PACKED;
UInt16 reserved PACKED;
}
@ -119,8 +119,8 @@ typedef struct BTHeaderRec
UInt32 freeNodes PACKED;
UInt16 reserfed1 PACKED;
UInt32 clumpSize PACKED;
UInt8 btreeType PACKED;
UInt8 reserfed2 PACKED;
UInt8 btreeType LPACKED;
UInt8 reserfed2 LPACKED;
UInt32 attributes PACKED;
UInt32 reserved3[16] PACKED;
}
@ -130,7 +130,7 @@ typedef struct HFSPlusCatalogKey
{
UInt16 keyLength PACKED;
HFSCatalogNodeID parentID PACKED;
HFSUniStr255 nodeName PACKED;
HFSUniStr255 nodeName LPACKED;
}
HFSPlusCatalogKey;
@ -145,9 +145,9 @@ typedef struct HFSPlusCatalogFolder
UInt32 attributeModDate PACKED;
UInt32 accessDate PACKED;
UInt32 backupDate PACKED;
HFSPlusPermissions permissions PACKED;
DInfo userInfo PACKED;
DXInfo finderInfo PACKED;
HFSPlusPermissions permissions LPACKED;
DInfo userInfo LPACKED;
DXInfo finderInfo LPACKED;
UInt32 textEncoding PACKED;
UInt32 reserved PACKED;
}
@ -164,13 +164,13 @@ typedef struct HFSPlusCatalogFile
UInt32 attributeModDate PACKED;
UInt32 accessDate PACKED;
UInt32 backupDate PACKED;
HFSPlusPermissions permissions PACKED;
FInfo userInfo PACKED;
FXInfo finderInfo PACKED;
HFSPlusPermissions permissions LPACKED;
FInfo userInfo LPACKED;
FXInfo finderInfo LPACKED;
UInt32 textEncoding PACKED;
UInt32 reserved2 PACKED;
HFSPlusForkData dataFork PACKED;
HFSPlusForkData resourceFork PACKED;
HFSPlusForkData dataFork LPACKED;
HFSPlusForkData resourceFork LPACKED;
}
HFSPlusCatalogFile;
@ -179,15 +179,15 @@ typedef struct HFSPlusCatalogThread
SInt16 recordType PACKED;
SInt16 reserved PACKED;
HFSCatalogNodeID parentID PACKED;
HFSUniStr255 nodeName PACKED;
HFSUniStr255 nodeName LPACKED;
}
HFSPlusCatalogThread;
typedef struct HFSPlusExtentKey
{
UInt16 keyLength PACKED;
UInt8 forkType PACKED;
UInt8 pad PACKED;
UInt8 forkType LPACKED;
UInt8 pad LPACKED;
HFSCatalogNodeID fileID PACKED;
UInt32 startBlock PACKED;
}
@ -197,7 +197,7 @@ typedef struct HFSPlusAttrForkData
{
UInt32 recordType PACKED;
UInt32 reserved PACKED;
HFSPlusForkData theFork PACKED;
HFSPlusForkData theFork LPACKED;
}
HFSPlusAttrForkData;
@ -205,7 +205,7 @@ typedef struct HFSPlusAttrExtents
{
UInt32 recordType PACKED;
UInt32 reserved PACKED;
HFSPlusExtentRecord extents PACKED;
HFSPlusExtentRecord extents LPACKED;
}
HFSPlusAttrExtents;

View File

@ -12,9 +12,9 @@
typedef struct {
Handle itmhand PACKED_P;
Rect itmr PACKED;
unsigned char itmtype PACKED;
unsigned char itmlen PACKED;
Rect itmr LPACKED;
unsigned char itmtype LPACKED;
unsigned char itmlen LPACKED;
} itmstr;
typedef itmstr *itmp;
@ -53,7 +53,7 @@ extern void dialog_compute_rect (Rect *dialog_rect, Rect *dst_rect,
int position);
typedef struct {
Rect altr PACKED;
Rect altr LPACKED;
INTEGER altiid PACKED;
INTEGER altstag PACKED;
} altstr;
@ -64,15 +64,15 @@ typedef HIDDEN_altp *alth;
typedef struct
{
Rect dlgr PACKED;
Rect dlgr LPACKED;
INTEGER dlgprocid PACKED;
char dlgvis PACKED;
char dlgfil1 PACKED;
char dlggaflag PACKED;
char dlgfil2 PACKED;
char dlgvis LPACKED;
char dlgfil1 LPACKED;
char dlggaflag LPACKED;
char dlgfil2 LPACKED;
LONGINT dlgrc PACKED;
INTEGER dlgditl PACKED;
char dlglen PACKED;
char dlglen LPACKED;
} dlogstr;
typedef dlogstr *dlogp;
typedef struct { dlogp p PACKED_P; } HIDDEN_dlogp;
@ -81,11 +81,11 @@ typedef HIDDEN_dlogp *dlogh;
typedef struct item_style_info
{
int16 font PACKED;
Style face PACKED;
unsigned char filler PACKED;
Style face LPACKED;
unsigned char filler LPACKED;
int16 size PACKED;
RGBColor foreground PACKED;
RGBColor background PACKED;
RGBColor foreground LPACKED;
RGBColor background LPACKED;
int16 mode PACKED;
} item_style_info_t;

View File

@ -14,14 +14,14 @@ typedef unsigned char modifier_table_number_t;
typedef struct
{
unsigned char to_look_for PACKED;
unsigned char replacement PACKED;
unsigned char to_look_for LPACKED;
unsigned char replacement LPACKED;
} completer_pair_t;
typedef struct
{
INTEGER n_recs PACKED;
completer_pair_t completer_recs[0] PACKED; /* VARIABLE LENGTH */
completer_pair_t completer_recs[0] LPACKED; /* VARIABLE LENGTH */
} completer_t;
#define COMPLETER_N_RECS_X(p) ((p)->n_recs)
@ -31,11 +31,11 @@ typedef struct
typedef struct
{
modifier_table_number_t table_number PACKED;
virt_key_t virt_key PACKED;
completer_t completer PACKED; /* VARIABLE LENGTH */
unsigned char filler PACKED;
unsigned char no_match PACKED;
modifier_table_number_t table_number LPACKED;
virt_key_t virt_key LPACKED;
completer_t completer LPACKED; /* VARIABLE LENGTH */
unsigned char filler LPACKED;
unsigned char no_match LPACKED;
} dead_key_rec_t;
#define DEAD_KEY_TABLE_NUMBER_X(p) ((p)->table_number)
@ -56,11 +56,11 @@ typedef struct
typedef struct
{
INTEGER version PACKED;
modifier_table_number_t modifier_table[256] PACKED;
modifier_table_number_t modifier_table[256] LPACKED;
INTEGER n_tables PACKED;
unsigned char table[0][128] PACKED; /* VARIABLE LENGTH */
unsigned char table[0][128] LPACKED; /* VARIABLE LENGTH */
INTEGER n_dead_key_recs PACKED;
dead_key_rec_t dead_key_recs[0] PACKED; /* VARIABLE LENGTH */
dead_key_rec_t dead_key_recs[0] LPACKED; /* VARIABLE LENGTH */
} kchr_str, *kchr_ptr_t;
typedef struct { kchr_ptr_t p PACKED_P; } HIDDEN_kchr_ptr, *kchr_hand;

View File

@ -34,13 +34,26 @@
#if !defined (PACKED)
# define PACKED __attribute__((packed))
// We used to blindly use PACKED on all members of a structure, but gcc
// now (perhaps starting with 4.3) issues warnings when we do this with
// certain types. LPACKED stands for Legacy Packed and I'm leaving it in
// the code for now, just on the off chance that there's an earlier version
// of gcc where we actually need the __attribute__((packed)) on the members
// that are now causing warnings.
//
// Once testing shows that LPACKED was never needed, someone should remove it.
# define LPACKED /* legacy packed, gcc 4.3 complains */
#endif
#if !defined (PACKED_P)
#if !defined (__alpha)
#define PACKED_P PACKED
#define LPACKED_P LPACKED
#else
#define PACKED_P :32 PACKED
#define LPACKED_P :32 LPACKED
#endif
#endif

View File

@ -30,11 +30,11 @@
#define MI_TITLE(mi) (HxX (mi, menuTitle))
typedef struct {
Byte micon PACKED;
Byte mkeyeq PACKED;
Byte mmarker PACKED;
Byte mstyle PACKED;
Byte mnextlen PACKED;
Byte micon LPACKED;
Byte mkeyeq LPACKED;
Byte mmarker LPACKED;
Byte mstyle LPACKED;
Byte mnextlen LPACKED;
} mext, *mextp;
extern void C_mdef0(INTEGER, MenuHandle, Rect *, Point, INTEGER *);
@ -122,14 +122,14 @@ typedef struct menu_list
} menu_list;
typedef menu_list menu_list_ptr;
typedef struct { menu_list_ptr p PACKED_P; } HIDDEN_menu_list_ptr;
typedef struct { menu_list_ptr p LPACKED_P; } HIDDEN_menu_list_ptr;
typedef HIDDEN_menu_list_ptr *menu_list_handle;
typedef struct {
INTEGER muoff PACKED;
INTEGER muright PACKED;
INTEGER mufu PACKED;
muelem mulist[MLMAX] PACKED; /* WILL NEED Cx() */
muelem mulist[MLMAX] LPACKED; /* WILL NEED Cx() */
} menulist;
typedef menulist *menulistp;
@ -160,9 +160,9 @@ typedef HIDDEN_menulistp *mlhandle;
typedef struct { /* from MPW Private.a */
INTEGER lastMBSave PACKED; /* offset to top most menu saved */
Handle mbCustomStorage PACKED_P; /* for custom jobs (i.e. we don't use) */
Rect mbItemRect PACKED; /* currently chosen menu */
Byte mbMenuDelay PACKED; /* MenuDelay from param ram */
Byte mbMenuDrag PACKED; /* MenuDrag from param ram */
Rect mbItemRect LPACKED; /* currently chosen menu */
Byte mbMenuDelay LPACKED; /* MenuDelay from param ram */
Byte mbMenuDrag LPACKED; /* MenuDrag from param ram */
INTEGER mbUglyScroll PACKED; /* HMenu flag having to do with scrolling?? */
INTEGER mbIconState PACKED; /* ??? NMgr icon state */
} mbdfheader;
@ -172,7 +172,7 @@ typedef struct { mbdfheaderptr p PACKED_P; } HIDDEN_mbdfheaderptr;
typedef HIDDEN_mbdfheaderptr *mbdfheaderhand;
typedef struct {
Rect mbRectSave PACKED; /* where it is on screen */
Rect mbRectSave LPACKED; /* where it is on screen */
Handle mbBitsSave PACKED_P; /* where the bits are */
INTEGER mbMenuDir PACKED; /* what direction the menu was placed */
INTEGER mbMLOffset PACKED; /* 6 byte offset into MenuList */

View File

@ -33,8 +33,8 @@ typedef uint8 RDFlagsType;
typedef struct RoutineRecord
{
ProcInfoType procInfo PACKED;
uint8 reserved1 PACKED;
ISAType ISA PACKED;
uint8 reserved1 LPACKED;
ISAType ISA LPACKED;
RoutineFlagsType routineFlags PACKED;
ProcPtr procDescriptor PACKED;
uint32 reserved2 PACKED;
@ -45,13 +45,13 @@ RoutineRecord;
typedef struct RoutineDescriptor
{
uint16 goMixedModeTrap PACKED;
uint8 version PACKED;
RDFlagsType routineDescriptorFlags PACKED;
uint8 version LPACKED;
RDFlagsType routineDescriptorFlags LPACKED;
uint32 reserved1 PACKED;
uint8 reserved2 PACKED;
uint8 selectorInfo PACKED;
uint8 reserved2 LPACKED;
uint8 selectorInfo LPACKED;
uint16 routineCount PACKED;
RoutineRecord routineRecords[1] PACKED;
RoutineRecord routineRecords[1] LPACKED;
}
RoutineDescriptor;

View File

@ -27,10 +27,10 @@ typedef struct block_header
#endif
/* various flags */
uint8 flags PACKED;
uint8 master_ptr_flags PACKED;
uint8 reserved PACKED;
uint8 size_correction PACKED;
uint8 flags LPACKED;
uint8 master_ptr_flags LPACKED;
uint8 reserved LPACKED;
uint8 size_correction LPACKED;
uint32 size PACKED;

View File

@ -93,20 +93,20 @@ typedef unsigned char comPattern[8];
typedef struct {
short device PACKED;
comBitMap portBits PACKED;
comBitMap portBits LPACKED;
comRect portRect PACKED;
comRgnHandle visRgn PACKED_P;
comRgnHandle clipRgn PACKED_P;
comPattern bkPat PACKED;
comPattern fillPat PACKED;
comPattern bkPat LPACKED;
comPattern fillPat LPACKED;
comPoint pnLoc PACKED;
comPoint pnSize PACKED;
short pnMode PACKED;
comPattern pnPat PACKED;
comPattern pnPat LPACKED;
short pnVis PACKED;
short txFont PACKED;
char txFace PACKED;
char padding PACKED;
char txFace LPACKED;
char padding LPACKED;
short txMode PACKED;
short txSize PACKED;
comFixed spExtra PACKED;

View File

@ -18,8 +18,8 @@ typedef struct {
ULONGINT pmMapBlkCnt PACKED;
ULONGINT pmPyPartStart PACKED;
ULONGINT pmPartBlkCnt PACKED;
unsigned char pmPartName[32] PACKED; /* NUL terminated */
unsigned char pmPartType[32] PACKED; /* NUL terminated */
unsigned char pmPartName[32] LPACKED; /* NUL terminated */
unsigned char pmPartType[32] LPACKED; /* NUL terminated */
ULONGINT pmLgDataStart PACKED;
ULONGINT pmDataCnt PACKED;
ULONGINT pmPartStatus PACKED;
@ -30,8 +30,8 @@ typedef struct {
ULONGINT pmBootEntry PACKED;
ULONGINT pmBootEntry2 PACKED;
ULONGINT pmBootCksum PACKED;
unsigned char pmProcessor[16] PACKED; /* NUL terminated */
unsigned char bootargs[120] PACKED; /* IMV-579 says 128 PACKED, but they probably
unsigned char pmProcessor[16] LPACKED; /* NUL terminated */
unsigned char bootargs[120] LPACKED; /* IMV-579 says 128 PACKED, but they probably
mean that the total should be 512 */
} partmapentry_t;
@ -50,7 +50,7 @@ typedef struct {
typedef struct {
unsigned short pdSig PACKED; /* 0x5453 == 'TS' */
oldmapentry_t oldmapentry[NOLDENTRIES] PACKED;
oldmapentry_t oldmapentry[NOLDENTRIES] LPACKED;
} oldblock1_t;
#define OLDMAPSIG0 'T'

View File

@ -64,10 +64,10 @@ typedef struct PEFSectionHeader
uint32 unpackedSize PACKED;
uint32 packedSize PACKED;
uint32 containerOffset PACKED;
uint8 sectionKind PACKED;
uint8 shareKind PACKED;
uint8 alignment PACKED;
uint8 reservedA PACKED;
uint8 sectionKind LPACKED;
uint8 shareKind LPACKED;
uint8 alignment LPACKED;
uint8 reservedA LPACKED;
}
PEFSectionHeader_t;
@ -158,8 +158,8 @@ typedef struct PEFImportedLibrary
uint32 currentVersion PACKED;
uint32 importedSymbolCount PACKED;
uint32 firstImportedSymbol PACKED;
uint8 options PACKED;
uint8 reservedA PACKED;
uint8 options LPACKED;
uint8 reservedA LPACKED;
uint16 reservedB PACKED;
}
PEFImportedLibrary_t;

View File

@ -58,15 +58,15 @@ typedef struct {
LONGINT picsize PACKED; /* 0x04 - 0x07 */
LONGINT pichowfar PACKED; /* 0x08 - 0x0B */
RgnHandle picclip PACKED_P; /* 0x0C - 0x0F */
Pattern picbkpat PACKED; /* 0x10 - 0x17 */
Pattern picbkpat LPACKED; /* 0x10 - 0x17 */
INTEGER picfont PACKED; /* 0x18 - 0x19 */
Style picface PACKED; /* 0x1A */
char picfiller PACKED; /* 0x1B */
Style picface LPACKED; /* 0x1A */
char picfiller LPACKED; /* 0x1B */
INTEGER pictxmode PACKED; /* 0x1C - 0x1D */
INTEGER pictxsize PACKED; /* 0x1E - 0x1F */
Fixed picspextra PACKED; /* 0x20 - 0x23 */
Point pictxnum PACKED; /* 0x24 - 0x27 */
Point pictxden PACKED; /* 0x28 - 0x2B */
Point pictxnum LPACKED; /* 0x24 - 0x27 */
Point pictxden LPACKED; /* 0x28 - 0x2B */
/*
* NOTE: After doing:
@ -83,14 +83,14 @@ typedef struct {
* and pictextpnloc.
*/
Point picdrawpnloc PACKED; /* 0x2C - 0x2F */
Point pictextpnloc PACKED; /* 0x30 - 0x33 */
Point picpnsize PACKED; /* 0x34 - 0x37 */
Point picdrawpnloc LPACKED; /* 0x2C - 0x2F */
Point pictextpnloc LPACKED; /* 0x30 - 0x33 */
Point picpnsize LPACKED; /* 0x34 - 0x37 */
INTEGER picpnmode PACKED; /* 0x38 - 0x39 */
Pattern picpnpat PACKED; /* 0x3A - 0x41 */
Pattern picfillpat PACKED; /* 0x42 - 0x49 */
Rect piclastrect PACKED; /* 0x4A - 0x51 */
Point picov PACKED; /* 0x52 - 0x55 */
Pattern picpnpat LPACKED; /* 0x3A - 0x41 */
Pattern picfillpat LPACKED; /* 0x42 - 0x49 */
Rect piclastrect LPACKED; /* 0x4A - 0x51 */
Point picov LPACKED; /* 0x52 - 0x55 */
INTEGER picidunno PACKED; /* 0x56 - 0x59 ColorBit ? */

View File

@ -108,10 +108,10 @@ typedef struct
INTEGER iError PACKED;
LONGINT lReserved PACKED;
INTEGER iRgType PACKED;
TRslRg xRslRg PACKED;
TRslRg yRslRg PACKED;
TRslRg xRslRg LPACKED;
TRslRg yRslRg LPACKED;
INTEGER iRslRecCnt PACKED;
TRslRec rgRslRec[27] PACKED;
TRslRec rgRslRec[27] LPACKED;
}
TGetRslBlk;
@ -128,11 +128,11 @@ TSetRslBlk;
typedef struct
{
Byte tJus PACKED;
Byte tFlop PACKED;
Byte tJus LPACKED;
Byte tFlop LPACKED;
INTEGER tAngle PACKED;
Byte tLine PACKED;
Byte tCmnt PACKED;
Byte tLine LPACKED;
Byte tCmnt LPACKED;
Fixed tAngleFixed PACKED;
}
TTxtPicRec, *TTxtPicPtr;

View File

@ -23,12 +23,12 @@ typedef struct {
} reshead;
typedef struct {
Byte rsrvsys[112] PACKED;
Byte rsrvapp[128] PACKED;
Byte rsrvsys[112] LPACKED;
Byte rsrvapp[128] LPACKED;
} rsrvrec;
typedef struct {
reshead rh PACKED;
reshead rh LPACKED;
Handle nextmap PACKED_P;
INTEGER resfn PACKED;
INTEGER resfatr PACKED;
@ -61,8 +61,8 @@ typedef struct {
typedef struct {
INTEGER rid PACKED;
INTEGER noff PACKED;
Byte ratr PACKED;
Byte doff[3] PACKED;
Byte ratr LPACKED;
Byte doff[3] LPACKED;
Handle rhand PACKED_P;
} resref;
@ -195,8 +195,8 @@ typedef struct
LONGINT compressedResourceTag PACKED;
LONGINT typeFlags PACKED;
LONGINT uncompressedSize PACKED;
uint8 workingBufferFractionalRatio PACKED;
uint8 expansionBufferSize PACKED;
uint8 workingBufferFractionalRatio LPACKED;
uint8 expansionBufferSize LPACKED;
INTEGER dcmpID;
}
dcomp_info_t;

View File

@ -27,11 +27,17 @@ struct splash_screen_header
int16 button_x_byte __attribute__ ((packed));
uint16 n_buttons __attribute__ ((packed));
/* gcc 4.3.0 will complain about the packed attributes below
so they're commented out below. Most likely they were
never needed and should be completely excised from the
code. */
struct splash_screen_rect button_rects[4]
__attribute__ ((packed));
/* __attribute__ ((packed)) */;
uint8 bg_pixel __attribute__ ((packed));
uint8 dummy_1[3] __attribute__ ((packed));
uint8 bg_pixel /* __attribute__ ((packed)) */;
uint8 dummy_1[3] /* __attribute__ ((packed)) */;
};
struct splash_screen_color

View File

@ -22,7 +22,7 @@ typedef struct
Point _tpsize PACKED;
INTEGER _tpmode PACKED;
#else
PenState _tpstate PACKED_P;
PenState _tpstate LPACKED_P;
#endif
GrafPtr _tport PACKED_P;
@ -32,8 +32,8 @@ typedef struct
INTEGER _tfont PACKED;
INTEGER _tmode PACKED;
INTEGER _tsize PACKED;
Style _tstyle PACKED;
Byte filler PACKED;
Style _tstyle LPACKED;
Byte filler LPACKED;
RgnHandle _tsaveclip PACKED_P;
/* ### is tesave mac-visible state? how is color and whatnot really
@ -64,10 +64,10 @@ typedef struct generic_elt
int16 Height PACKED;
int16 Ascent PACKED;
int16 Font PACKED;
Style Face PACKED;
Byte filler PACKED;
Style Face LPACKED;
Byte filler LPACKED;
int16 Size PACKED;
RGBColor Color PACKED;
RGBColor Color LPACKED;
} generic_elt_t;
extern void generic_elt_copy (generic_elt_t *dst, generic_elt_t *src);

View File

@ -374,9 +374,9 @@ size_info_t size_info;
#define VERSFMT "(0x%02x, 0x%02x, 0x%02x, 0x%02x, %d)"
#define VERSSIZE(vp) (sizeof(VERSFMT) + (vp)->shortname[0] + 6)
typedef struct {
unsigned char c[4] PACKED;
unsigned char c[4] LPACKED;
short loc PACKED;
unsigned char shortname[1] PACKED;
unsigned char shortname[1] LPACKED;
} vers_t;
LONGINT ROMlib_creator;

View File

@ -486,18 +486,18 @@ write_desktop (info_t * infop)
typedef struct
{
char zeros[22] PACKED;
char zeros[22] LPACKED;
INTEGER fileattrs PACKED;
INTEGER typeoff PACKED;
INTEGER nameoff PACKED;
INTEGER ntypesminus1 PACKED;
char restype1[4] PACKED;
char restype1[4] LPACKED;
INTEGER ntype1minus1 PACKED;
INTEGER reflistoff1 PACKED;
INTEGER resid1 PACKED;
INTEGER resnamoff1 PACKED;
char resattr1 PACKED;
unsigned char resdoff1[3] PACKED;
char resattr1 LPACKED;
unsigned char resdoff1[3] LPACKED;
LONGINT reszero1 PACKED;
}
map_t;
@ -508,11 +508,11 @@ write_desktop (info_t * infop)
LONGINT mapoff PACKED;
LONGINT datlen PACKED;
LONGINT maplen PACKED;
char sysuse[112] PACKED;
char appluse[128] PACKED;
char sysuse[112] LPACKED;
char appluse[128] LPACKED;
LONGINT datalen1 PACKED;
char data1[DATLEN - sizeof (LONGINT)] PACKED;
map_t map PACKED;
char data1[DATLEN - sizeof (LONGINT)] LPACKED;
map_t map LPACKED;
}
res_data_t;

View File

@ -87,12 +87,15 @@ typedef struct {
short h PACKED;
} Point;
#if !defined(LPACKED)
# define LPACKED
#endif
typedef struct {
OSType fdType PACKED;
OSType fdCreator PACKED;
unsigned short fdFlags PACKED;
Point fdLocation PACKED;
Point fdLocation LPACKED;
unsigned short fdFldr PACKED;
} FInfo;
@ -116,7 +119,7 @@ typedef struct {
unsigned short drAlBlSt PACKED;
long drNxtCNID PACKED;
unsigned short drFreeBks PACKED;
unsigned char drVN[28] PACKED;
unsigned char drVN[28] LPACKED;
long drVolBkUp PACKED;
unsigned short drVSeqNum PACKED;
long drWrCnt PACKED;
@ -130,16 +133,16 @@ typedef struct {
unsigned short drVCBMSize PACKED;
unsigned short drCtlCSize PACKED;
long drXTFlSize PACKED;
xtntrec drXTExtRec PACKED;
xtntrec drXTExtRec LPACKED;
long drCTFlSize PACKED;
xtntrec drCTExtRec PACKED;
xtntrec drCTExtRec LPACKED;
} volumeinfo, *volumeinfoPtr, **volumeinfoHandle;
typedef struct {
long ndFLink PACKED;
long ndBLink PACKED;
unsigned char ndType PACKED;
char ndLevel PACKED;
unsigned char ndType LPACKED;
char ndLevel LPACKED;
short ndNRecs PACKED;
unsigned short idunno PACKED;
} btnode;
@ -147,15 +150,15 @@ typedef struct {
typedef enum { indexnode, leafnode = 0xFF } btnodetype;
typedef struct {
unsigned char ckrKeyLen PACKED;
char ckrResrv1 PACKED;
unsigned char ckrKeyLen LPACKED;
char ckrResrv1 LPACKED;
long ckrParID PACKED;
unsigned char ckrCName[32] PACKED;
unsigned char ckrCName[32] LPACKED;
} catkey;
typedef struct {
unsigned char xkrKeyLen PACKED;
unsigned char xkrFkType PACKED;
unsigned char xkrKeyLen LPACKED;
unsigned char xkrFkType LPACKED;
long xkrFNum PACKED;
unsigned short xkrFABN PACKED;
} xtntkey;
@ -169,11 +172,11 @@ typedef union {
#define FILETYPE 2
typedef struct {
char cdrType PACKED;
char cdrResrv2 PACKED;
char filFlags PACKED;
char filTyp PACKED;
FInfo filUsrWds PACKED; /* not sure what form */
char cdrType LPACKED;
char cdrResrv2 LPACKED;
char filFlags LPACKED;
char filTyp LPACKED;
FInfo filUsrWds LPACKED; /* not sure what form */
long filFlNum PACKED;
unsigned short filStBlk PACKED; /* I don't think this is used */
long filLgLen PACKED;
@ -186,16 +189,16 @@ typedef struct {
long filBkDat PACKED;
long filFndrInfo[4] PACKED;
unsigned short filClpSize PACKED;
xtntrec filExtRec PACKED;
xtntrec filRExtRec PACKED;
xtntrec filExtRec LPACKED;
xtntrec filRExtRec LPACKED;
long filResrv PACKED;
} filerec;
#define DIRTYPE 1
typedef struct {
char cdrType PACKED;
char cdrResrv2 PACKED;
char cdrType LPACKED;
char cdrResrv2 LPACKED;
unsigned short dirFlags PACKED;
unsigned short dirVal PACKED;
long dirDirID PACKED;
@ -210,11 +213,11 @@ typedef struct {
#define THREADTYPE 3
typedef struct {
char cdrType PACKED;
char cdrResrv2 PACKED;
char thdResrv[8] PACKED;
char cdrType LPACKED;
char cdrResrv2 LPACKED;
char thdResrv[8] LPACKED;
long thdParID PACKED;
unsigned char thdCName[32] PACKED;
unsigned char thdCName[32] LPACKED;
} threadrec;
typedef enum { datafork, resourcefork = 0xFF } forktype;
@ -226,8 +229,8 @@ typedef enum { reading, writing } accesstype;
typedef struct {
long flink PACKED; /* 0 */
long blink PACKED; /* 4 */
unsigned char type PACKED; /* 8 */
unsigned char dummy PACKED; /* 9 */
unsigned char type LPACKED; /* 8 */
unsigned char dummy LPACKED; /* 9 */
unsigned short hesthreejim PACKED; /* 10 */
long height PACKED; /* 12 */
long root PACKED; /* 16 */
@ -238,9 +241,9 @@ typedef struct {
unsigned short indexkeylen PACKED; /* 34 */
long nnodes PACKED; /* 36 */
long nfreenodes PACKED; /* 40 */
unsigned char reserved[72] PACKED; /* 44 */
unsigned char dummy2[132] PACKED; /* 116 */
unsigned char map[256] PACKED; /* 248 */
unsigned char reserved[72] LPACKED; /* 44 */
unsigned char dummy2[132] LPACKED; /* 116 */
unsigned char map[256] LPACKED; /* 248 */
long unknown2[2] PACKED; /* 504 */
} btblock0;

View File

@ -220,9 +220,9 @@ P2(PUBLIC pascal trap, void, ShieldCursor, Rect *, rp, Point, p) /* IMI-474 */
typedef struct ccrsr_res
{
CCrsr crsr PACKED;
PixMap crsr_map PACKED;
char data PACKED;
CCrsr crsr LPACKED;
PixMap crsr_map LPACKED;
char data LPACKED;
} ccrsr_res, *ccrsr_res_ptr;
typedef struct { ccrsr_res_ptr p PACKED_P; } HIDDEN_ccrsr_res_ptr;

View File

@ -29,9 +29,9 @@ HCreateResFile_helper (INTEGER vrefnum, LONGINT parid, Str255 name,
INTEGER f;
LONGINT leof, lc;
struct { /* empty resource template */
reshead bhead PACKED;
rsrvrec bfill PACKED;
resmap bmap PACKED;
reshead bhead LPACKED;
rsrvrec bfill LPACKED;
resmap bmap LPACKED;
INTEGER negone PACKED;
} buf;

View File

@ -75,7 +75,8 @@ struct directory_entry
struct ifd
{
int16 count __attribute__ ((packed));
struct directory_entry entries[1] __attribute__ ((packed));
/* gcc 4.3.0 warns if we leave the following packed attribute in */
struct directory_entry entries[1] /* __attribute__ ((packed)) */;
};
static void

View File

@ -52,39 +52,39 @@ PRIVATE struct {
INTEGER id2 PACKED,
len2 PACKED;
Point point2 PACKED;
unsigned char str2[52] PACKED;
Point point2 LPACKED;
unsigned char str2[52] LPACKED;
INTEGER id3 PACKED,
len3 PACKED;
Rect rect3 PACKED;
char icon3[32][4] PACKED;
Rect rect3 LPACKED;
char icon3[32][4] LPACKED;
INTEGER id4 PACKED,
len4 PACKED;
Point point4 PACKED;
char str4[46] PACKED;
Point point4 LPACKED;
char str4[46] LPACKED;
INTEGER id5 PACKED,
len5 PACKED,
num5 PACKED,
str5 PACKED;
Rect rect5 PACKED;
Rect rect5 LPACKED;
INTEGER proc5 PACKED,
str5b PACKED;
Rect rect5b PACKED;
Rect rect5b LPACKED;
INTEGER proc5b PACKED;
INTEGER id6 PACKED,
len6 PACKED;
char str6[4] PACKED;
char str6[4] LPACKED;
INTEGER id7 PACKED,
len7 PACKED;
char str7[6] PACKED;
char str7[6] LPACKED;
INTEGER id8 PACKED,
len8 PACKED;
@ -186,14 +186,14 @@ struct adef {
struct tdef {
INTEGER id PACKED,
alen PACKED;
Point loc PACKED;
char text[1] PACKED; /* at least one NUL byte */
Point loc LPACKED;
char text[1] LPACKED; /* at least one NUL byte */
};
struct idef {
INTEGER id PACKED,
alen PACKED;
Rect loc PACKED;
Rect loc LPACKED;
LONGINT ike[32] PACKED;
};
@ -210,15 +210,15 @@ struct bdef {
nbut PACKED;
struct but {
INTEGER butstrid PACKED;
Rect butloc PACKED;
Rect butloc LPACKED;
INTEGER butprocid PACKED;
} buts[1] PACKED;
} buts[1] LPACKED;
};
struct sdef {
INTEGER id PACKED,
alen PACKED;
char text[1] PACKED;
char text[1] LPACKED;
};
A1(PRIVATE, INTEGER *, findid, INTEGER, id)

View File

@ -548,14 +548,14 @@ P8 (PUBLIC pascal trap, CWindowPtr, NewCWindow,
}
typedef struct {
Rect _wrect PACKED;
Rect _wrect LPACKED;
INTEGER _wprocid PACKED;
char _wvisible PACKED;
char _padding1 PACKED;
char _wgoaway PACKED;
char _padding2 PACKED;
char _wvisible LPACKED;
char _padding1 LPACKED;
char _wgoaway LPACKED;
char _padding2 LPACKED;
LONGINT _wrefcon PACKED;
Byte _wtitle PACKED;
Byte _wtitle LPACKED;
} windrestype;
typedef windrestype *windrestypeptr;