mirror of https://github.com/python/cpython.git
Enable FSpResourceFileAlreadyOpen only for Carbon. This is not strictly correct: OS9 InterfaceLib has it, but enabling it will make Python refuse to run on 8.6 and earlier.
This commit is contained in:
parent
cfef0096f9
commit
043732e95d
|
@ -1353,6 +1353,8 @@ static PyObject *Res_DetachResourceFile(_self, _args)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if TARGET_API_MAC_CARBON
|
||||||
|
|
||||||
static PyObject *Res_FSpResourceFileAlreadyOpen(_self, _args)
|
static PyObject *Res_FSpResourceFileAlreadyOpen(_self, _args)
|
||||||
PyObject *_self;
|
PyObject *_self;
|
||||||
PyObject *_args;
|
PyObject *_args;
|
||||||
|
@ -1378,6 +1380,7 @@ static PyObject *Res_FSpResourceFileAlreadyOpen(_self, _args)
|
||||||
refNum);
|
refNum);
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if TARGET_API_MAC_CARBON
|
#if TARGET_API_MAC_CARBON
|
||||||
|
|
||||||
|
@ -1600,8 +1603,11 @@ static PyMethodDef Res_methods[] = {
|
||||||
{"DetachResourceFile", (PyCFunction)Res_DetachResourceFile, 1,
|
{"DetachResourceFile", (PyCFunction)Res_DetachResourceFile, 1,
|
||||||
"(SInt16 refNum) -> (OSErr _rv)"},
|
"(SInt16 refNum) -> (OSErr _rv)"},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if TARGET_API_MAC_CARBON
|
||||||
{"FSpResourceFileAlreadyOpen", (PyCFunction)Res_FSpResourceFileAlreadyOpen, 1,
|
{"FSpResourceFileAlreadyOpen", (PyCFunction)Res_FSpResourceFileAlreadyOpen, 1,
|
||||||
"(FSSpec resourceFile) -> (Boolean _rv, Boolean inChain, SInt16 refNum)"},
|
"(FSSpec resourceFile) -> (Boolean _rv, Boolean inChain, SInt16 refNum)"},
|
||||||
|
#endif
|
||||||
|
|
||||||
#if TARGET_API_MAC_CARBON
|
#if TARGET_API_MAC_CARBON
|
||||||
{"FSpOpenOrphanResFile", (PyCFunction)Res_FSpOpenOrphanResFile, 1,
|
{"FSpOpenOrphanResFile", (PyCFunction)Res_FSpOpenOrphanResFile, 1,
|
||||||
|
|
|
@ -63,6 +63,7 @@ def makegreylist(self):
|
||||||
'FSpOpenOrphanResFile',
|
'FSpOpenOrphanResFile',
|
||||||
'DetachResourceFile',
|
'DetachResourceFile',
|
||||||
'InsertResourceFile',
|
'InsertResourceFile',
|
||||||
|
'FSpResourceFileAlreadyOpen',
|
||||||
])]
|
])]
|
||||||
|
|
||||||
def makerepairinstructions(self):
|
def makerepairinstructions(self):
|
||||||
|
|
Loading…
Reference in New Issue