diff options
author | Ash Wolf <ninji@wuffs.org> | 2022-10-11 18:54:59 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2022-10-11 18:54:59 +0100 |
commit | 4c9d73d7243c82ca3f55d2d8a388328968303b3f (patch) | |
tree | 99b087cb9bc6d68c41aa3e075420ac8606995880 /includes | |
parent | 26b57fbea1a969ef6405365ff78391e9d3605621 (diff) | |
download | MWCC-4c9d73d7243c82ca3f55d2d8a388328968303b3f.tar.gz MWCC-4c9d73d7243c82ca3f55d2d8a388328968303b3f.zip |
almost finished Resources.c, two small issues in ReadResourceFork and FSpOpenResFile
Diffstat (limited to '')
-rw-r--r-- | includes/mwcc_decomp.h | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/includes/mwcc_decomp.h b/includes/mwcc_decomp.h index 3b4d2b1..bc9d071 100644 --- a/includes/mwcc_decomp.h +++ b/includes/mwcc_decomp.h @@ -63,7 +63,8 @@ enum { resFNotFound = -193, // resource file not found addResFailed = -194, // AddResource failed rmvResFailed = -196, // RmveResource failed - resAttrErr = -198 // inconsistent attribute + resAttrErr = -198, // inconsistent attribute + mapReadErr = -199 // map inconsistent with operation }; enum { kNilOptions = 0 }; enum { kUnknownType = 0x3F3F3F3F }; @@ -78,6 +79,9 @@ typedef const unsigned char *ConstStr255Param; // XXX: MacTypes.h defines StrLength() which is an inline for C++ and a macro for C // This might be useful? +#ifdef __MWERKS__ +#pragma options align=mac68k +#endif typedef struct Point { SInt16 v, h; } Point; @@ -85,9 +89,31 @@ typedef struct Point { typedef struct Rect { SInt16 top, left, bottom, right; } Rect; +#ifdef __MWERKS__ +#pragma options align=reset +#endif // ------- // Files.h +#ifdef __MWERKS__ +#pragma options align=mac68k +#endif +enum { + fsCurPerm = 0x00, + fsRdPerm = 0x01, + fsWrPerm = 0x02, + fsRdWrPerm = 0x03, + fsRdWrShPerm = 0x04, + fsRdDenyPerm = 0x10, + fsWrDenyPerm = 0x20 +}; +enum { + fsAtMark = 0, + fsFromStart = 1, + fsFromLEOF = 2, + fsFromMark = 3 +}; + typedef struct FSSpec { SInt16 vRefNum; SInt32 parID; @@ -231,7 +257,9 @@ typedef union CInfoPBRec { DirInfo hDirInfo; } CInfoPBRec; typedef CInfoPBRec *CInfoPBPtr; -//#endif +#ifdef __MWERKS__ +#pragma options align=reset +#endif //#include "../sdk_hdrs/CompilerMapping.h" //#include "../sdk_hdrs/DropInCompilerLinker.h" |