{
PyObject *_res = NULL;
short _rv;
+#ifndef HomeResFile
+ PyMac_PRECHECK(HomeResFile);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = HomeResFile(_self->ob_itself);
static PyObject *ResObj_MacLoadResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef MacLoadResource
+ PyMac_PRECHECK(MacLoadResource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
MacLoadResource(_self->ob_itself);
static PyObject *ResObj_ReleaseResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef ReleaseResource
+ PyMac_PRECHECK(ReleaseResource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ReleaseResource(_self->ob_itself);
static PyObject *ResObj_DetachResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef DetachResource
+ PyMac_PRECHECK(DetachResource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
DetachResource(_self->ob_itself);
{
PyObject *_res = NULL;
short _rv;
+#ifndef GetResAttrs
+ PyMac_PRECHECK(GetResAttrs);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetResAttrs(_self->ob_itself);
short theID;
ResType theType;
Str255 name;
+#ifndef GetResInfo
+ PyMac_PRECHECK(GetResInfo);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetResInfo(_self->ob_itself,
PyObject *_res = NULL;
short theID;
Str255 name;
+#ifndef SetResInfo
+ PyMac_PRECHECK(SetResInfo);
+#endif
if (!PyArg_ParseTuple(_args, "hO&",
&theID,
PyMac_GetStr255, name))
ResType theType;
short theID;
Str255 name;
+#ifndef AddResource
+ PyMac_PRECHECK(AddResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&hO&",
PyMac_GetOSType, &theType,
&theID,
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetResourceSizeOnDisk
+ PyMac_PRECHECK(GetResourceSizeOnDisk);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetResourceSizeOnDisk(_self->ob_itself);
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetMaxResourceSize
+ PyMac_PRECHECK(GetMaxResourceSize);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetMaxResourceSize(_self->ob_itself);
{
PyObject *_res = NULL;
long _rv;
+#ifndef RsrcMapEntry
+ PyMac_PRECHECK(RsrcMapEntry);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = RsrcMapEntry(_self->ob_itself);
{
PyObject *_res = NULL;
short attrs;
+#ifndef SetResAttrs
+ PyMac_PRECHECK(SetResAttrs);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&attrs))
return NULL;
static PyObject *ResObj_ChangedResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef ChangedResource
+ PyMac_PRECHECK(ChangedResource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ChangedResource(_self->ob_itself);
static PyObject *ResObj_RemoveResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef RemoveResource
+ PyMac_PRECHECK(RemoveResource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
RemoveResource(_self->ob_itself);
static PyObject *ResObj_WriteResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef WriteResource
+ PyMac_PRECHECK(WriteResource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
WriteResource(_self->ob_itself);
{
PyObject *_res = NULL;
long newSize;
+#ifndef SetResourceSize
+ PyMac_PRECHECK(SetResourceSize);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&newSize))
return NULL;
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef GetNextFOND
+ PyMac_PRECHECK(GetNextFOND);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetNextFOND(_self->ob_itself);
static PyObject *ResObj_LoadResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef LoadResource
+ PyMac_PRECHECK(LoadResource);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
LoadResource(_self->ob_itself);
{
PyObject *_res = NULL;
short _rv;
+#ifndef InitResources
+ PyMac_PRECHECK(InitResources);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = InitResources();
static PyObject *Res_RsrcZoneInit(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef RsrcZoneInit
+ PyMac_PRECHECK(RsrcZoneInit);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
RsrcZoneInit();
{
PyObject *_res = NULL;
short refNum;
+#ifndef CloseResFile
+ PyMac_PRECHECK(CloseResFile);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&refNum))
return NULL;
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef ResError
+ PyMac_PRECHECK(ResError);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = ResError();
{
PyObject *_res = NULL;
short _rv;
+#ifndef CurResFile
+ PyMac_PRECHECK(CurResFile);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = CurResFile();
{
PyObject *_res = NULL;
Str255 fileName;
+#ifndef CreateResFile
+ PyMac_PRECHECK(CreateResFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetStr255, fileName))
return NULL;
PyObject *_res = NULL;
short _rv;
Str255 fileName;
+#ifndef OpenResFile
+ PyMac_PRECHECK(OpenResFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetStr255, fileName))
return NULL;
{
PyObject *_res = NULL;
short refNum;
+#ifndef UseResFile
+ PyMac_PRECHECK(UseResFile);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&refNum))
return NULL;
{
PyObject *_res = NULL;
short _rv;
+#ifndef CountTypes
+ PyMac_PRECHECK(CountTypes);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = CountTypes();
{
PyObject *_res = NULL;
short _rv;
+#ifndef Count1Types
+ PyMac_PRECHECK(Count1Types);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = Count1Types();
PyObject *_res = NULL;
ResType theType;
short index;
+#ifndef GetIndType
+ PyMac_PRECHECK(GetIndType);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&index))
return NULL;
PyObject *_res = NULL;
ResType theType;
short index;
+#ifndef Get1IndType
+ PyMac_PRECHECK(Get1IndType);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&index))
return NULL;
{
PyObject *_res = NULL;
Boolean load;
+#ifndef SetResLoad
+ PyMac_PRECHECK(SetResLoad);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&load))
return NULL;
PyObject *_res = NULL;
short _rv;
ResType theType;
+#ifndef CountResources
+ PyMac_PRECHECK(CountResources);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetOSType, &theType))
return NULL;
PyObject *_res = NULL;
short _rv;
ResType theType;
+#ifndef Count1Resources
+ PyMac_PRECHECK(Count1Resources);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetOSType, &theType))
return NULL;
Handle _rv;
ResType theType;
short index;
+#ifndef GetIndResource
+ PyMac_PRECHECK(GetIndResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
PyMac_GetOSType, &theType,
&index))
Handle _rv;
ResType theType;
short index;
+#ifndef Get1IndResource
+ PyMac_PRECHECK(Get1IndResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
PyMac_GetOSType, &theType,
&index))
Handle _rv;
ResType theType;
short theID;
+#ifndef GetResource
+ PyMac_PRECHECK(GetResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
PyMac_GetOSType, &theType,
&theID))
Handle _rv;
ResType theType;
short theID;
+#ifndef Get1Resource
+ PyMac_PRECHECK(Get1Resource);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
PyMac_GetOSType, &theType,
&theID))
Handle _rv;
ResType theType;
Str255 name;
+#ifndef GetNamedResource
+ PyMac_PRECHECK(GetNamedResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetOSType, &theType,
PyMac_GetStr255, name))
Handle _rv;
ResType theType;
Str255 name;
+#ifndef Get1NamedResource
+ PyMac_PRECHECK(Get1NamedResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetOSType, &theType,
PyMac_GetStr255, name))
PyObject *_res = NULL;
short _rv;
ResType theType;
+#ifndef UniqueID
+ PyMac_PRECHECK(UniqueID);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetOSType, &theType))
return NULL;
PyObject *_res = NULL;
short _rv;
ResType theType;
+#ifndef Unique1ID
+ PyMac_PRECHECK(Unique1ID);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetOSType, &theType))
return NULL;
{
PyObject *_res = NULL;
short refNum;
+#ifndef UpdateResFile
+ PyMac_PRECHECK(UpdateResFile);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&refNum))
return NULL;
{
PyObject *_res = NULL;
Boolean install;
+#ifndef SetResPurge
+ PyMac_PRECHECK(SetResPurge);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&install))
return NULL;
PyObject *_res = NULL;
short _rv;
short refNum;
+#ifndef GetResFileAttrs
+ PyMac_PRECHECK(GetResFileAttrs);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&refNum))
return NULL;
PyObject *_res = NULL;
short refNum;
short attrs;
+#ifndef SetResFileAttrs
+ PyMac_PRECHECK(SetResFileAttrs);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&refNum,
&attrs))
Str255 fileName;
short vRefNum;
SignedByte permission;
+#ifndef OpenRFPerm
+ PyMac_PRECHECK(OpenRFPerm);
+#endif
if (!PyArg_ParseTuple(_args, "O&hb",
PyMac_GetStr255, fileName,
&vRefNum,
Handle _rv;
ResType theType;
short theID;
+#ifndef RGetResource
+ PyMac_PRECHECK(RGetResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
PyMac_GetOSType, &theType,
&theID))
long dirID;
Str255 fileName;
SignedByte permission;
+#ifndef HOpenResFile
+ PyMac_PRECHECK(HOpenResFile);
+#endif
if (!PyArg_ParseTuple(_args, "hlO&b",
&vRefNum,
&dirID,
short vRefNum;
long dirID;
Str255 fileName;
+#ifndef HCreateResFile
+ PyMac_PRECHECK(HCreateResFile);
+#endif
if (!PyArg_ParseTuple(_args, "hlO&",
&vRefNum,
&dirID,
short _rv;
FSSpec spec;
SignedByte permission;
+#ifndef FSpOpenResFile
+ PyMac_PRECHECK(FSpOpenResFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&b",
PyMac_GetFSSpec, &spec,
&permission))
OSType creator;
OSType fileType;
ScriptCode scriptTag;
+#ifndef FSpCreateResFile
+ PyMac_PRECHECK(FSpCreateResFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&h",
PyMac_GetFSSpec, &spec,
PyMac_GetOSType, &creator,
OSErr _err;
SInt16 refNum;
RsrcChainLocation where;
+#ifndef InsertResourceFile
+ PyMac_PRECHECK(InsertResourceFile);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&refNum,
&where))
PyObject *_res = NULL;
OSErr _err;
SInt16 refNum;
+#ifndef DetachResourceFile
+ PyMac_PRECHECK(DetachResourceFile);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&refNum))
return NULL;
FSSpec resourceFile;
Boolean inChain;
SInt16 refNum;
+#ifndef FSpResourceFileAlreadyOpen
+ PyMac_PRECHECK(FSpResourceFileAlreadyOpen);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetFSSpec, &resourceFile))
return NULL;
FSSpec spec;
SignedByte permission;
SInt16 refNum;
+#ifndef FSpOpenOrphanResFile
+ PyMac_PRECHECK(FSpOpenOrphanResFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&b",
PyMac_GetFSSpec, &spec,
&permission))
PyObject *_res = NULL;
OSErr _err;
SInt16 refNum;
+#ifndef GetTopResourceFile
+ PyMac_PRECHECK(GetTopResourceFile);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetTopResourceFile(&refNum);
OSErr _err;
SInt16 curRefNum;
SInt16 nextRefNum;
+#ifndef GetNextResourceFile
+ PyMac_PRECHECK(GetNextResourceFile);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&curRefNum))
return NULL;
short _rv;
FSRef ref;
SignedByte permission;
+#ifndef FSOpenResFile
+ PyMac_PRECHECK(FSOpenResFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&b",
PyMac_GetFSRef, &ref,
&permission))
int nameLength__in_len__;
FSRef newRef;
FSSpec newSpec;
+#ifndef FSCreateResFile
+ PyMac_PRECHECK(FSCreateResFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&u#",
PyMac_GetFSRef, &parentRef,
&nameLength__in__, &nameLength__in_len__))
FSRef resourceFileRef;
Boolean inChain;
SInt16 refNum;
+#ifndef FSResourceFileAlreadyOpen
+ PyMac_PRECHECK(FSResourceFileAlreadyOpen);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetFSRef, &resourceFileRef))
return NULL;
int forkNameLength__in_len__;
FSRef newRef;
FSSpec newSpec;
+#ifndef FSCreateResourceFile
+ PyMac_PRECHECK(FSCreateResourceFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&u#u#",
PyMac_GetFSRef, &parentRef,
&nameLength__in__, &nameLength__in_len__,
int forkNameLength__in_len__;
SignedByte permissions;
SInt16 refNum;
+#ifndef FSOpenResourceFile
+ PyMac_PRECHECK(FSOpenResourceFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&u#b",
PyMac_GetFSRef, &ref,
&forkNameLength__in__, &forkNameLength__in_len__,