mirror of https://git.wuffs.org/MWCC
almost finished Resources.c, two small issues in ReadResourceFork and FSpOpenResFile
This commit is contained in:
parent
26b57fbea1
commit
4c9d73d724
File diff suppressed because it is too large
Load Diff
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue