Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate. Also blacklisted some constants with definitions that were not Python-compatible.
This commit is contained in:
parent
d69711cb1e
commit
9d79990ac7
|
@ -98,6 +98,9 @@ static PyObject *AEDesc_AECoerceDesc(AEDescObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
DescType toType;
|
||||
AEDesc result;
|
||||
#ifndef AECoerceDesc
|
||||
PyMac_PRECHECK(AECoerceDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &toType))
|
||||
return NULL;
|
||||
|
@ -115,6 +118,9 @@ static PyObject *AEDesc_AEDuplicateDesc(AEDescObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEDesc result;
|
||||
#ifndef AEDuplicateDesc
|
||||
PyMac_PRECHECK(AEDuplicateDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AEDuplicateDesc(&_self->ob_itself,
|
||||
|
@ -130,6 +136,9 @@ static PyObject *AEDesc_AECountItems(AEDescObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
long theCount;
|
||||
#ifndef AECountItems
|
||||
PyMac_PRECHECK(AECountItems);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AECountItems(&_self->ob_itself,
|
||||
|
@ -149,6 +158,9 @@ static PyObject *AEDesc_AEPutPtr(AEDescObject *_self, PyObject *_args)
|
|||
char *dataPtr__in__;
|
||||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
#ifndef AEPutPtr
|
||||
PyMac_PRECHECK(AEPutPtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&s#",
|
||||
&index,
|
||||
PyMac_GetOSType, &typeCode,
|
||||
|
@ -171,6 +183,9 @@ static PyObject *AEDesc_AEPutDesc(AEDescObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
long index;
|
||||
AEDesc theAEDesc;
|
||||
#ifndef AEPutDesc
|
||||
PyMac_PRECHECK(AEPutDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&",
|
||||
&index,
|
||||
AEDesc_Convert, &theAEDesc))
|
||||
|
@ -195,6 +210,9 @@ static PyObject *AEDesc_AEGetNthPtr(AEDescObject *_self, PyObject *_args)
|
|||
char *dataPtr__out__;
|
||||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
#ifndef AEGetNthPtr
|
||||
PyMac_PRECHECK(AEGetNthPtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&i",
|
||||
&index,
|
||||
PyMac_GetOSType, &desiredType,
|
||||
|
@ -230,6 +248,9 @@ static PyObject *AEDesc_AEGetNthDesc(AEDescObject *_self, PyObject *_args)
|
|||
DescType desiredType;
|
||||
AEKeyword theAEKeyword;
|
||||
AEDesc result;
|
||||
#ifndef AEGetNthDesc
|
||||
PyMac_PRECHECK(AEGetNthDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&",
|
||||
&index,
|
||||
PyMac_GetOSType, &desiredType))
|
||||
|
@ -253,6 +274,9 @@ static PyObject *AEDesc_AESizeOfNthItem(AEDescObject *_self, PyObject *_args)
|
|||
long index;
|
||||
DescType typeCode;
|
||||
Size dataSize;
|
||||
#ifndef AESizeOfNthItem
|
||||
PyMac_PRECHECK(AESizeOfNthItem);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&index))
|
||||
return NULL;
|
||||
|
@ -272,6 +296,9 @@ static PyObject *AEDesc_AEDeleteItem(AEDescObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
long index;
|
||||
#ifndef AEDeleteItem
|
||||
PyMac_PRECHECK(AEDeleteItem);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&index))
|
||||
return NULL;
|
||||
|
@ -292,6 +319,9 @@ static PyObject *AEDesc_AEPutParamPtr(AEDescObject *_self, PyObject *_args)
|
|||
char *dataPtr__in__;
|
||||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
#ifndef AEPutParamPtr
|
||||
PyMac_PRECHECK(AEPutParamPtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&s#",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
PyMac_GetOSType, &typeCode,
|
||||
|
@ -314,6 +344,9 @@ static PyObject *AEDesc_AEPutParamDesc(AEDescObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
AEKeyword theAEKeyword;
|
||||
AEDesc theAEDesc;
|
||||
#ifndef AEPutParamDesc
|
||||
PyMac_PRECHECK(AEPutParamDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
AEDesc_Convert, &theAEDesc))
|
||||
|
@ -337,6 +370,9 @@ static PyObject *AEDesc_AEGetParamPtr(AEDescObject *_self, PyObject *_args)
|
|||
char *dataPtr__out__;
|
||||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
#ifndef AEGetParamPtr
|
||||
PyMac_PRECHECK(AEGetParamPtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&i",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
PyMac_GetOSType, &desiredType,
|
||||
|
@ -369,6 +405,9 @@ static PyObject *AEDesc_AEGetParamDesc(AEDescObject *_self, PyObject *_args)
|
|||
AEKeyword theAEKeyword;
|
||||
DescType desiredType;
|
||||
AEDesc result;
|
||||
#ifndef AEGetParamDesc
|
||||
PyMac_PRECHECK(AEGetParamDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
PyMac_GetOSType, &desiredType))
|
||||
|
@ -390,6 +429,9 @@ static PyObject *AEDesc_AESizeOfParam(AEDescObject *_self, PyObject *_args)
|
|||
AEKeyword theAEKeyword;
|
||||
DescType typeCode;
|
||||
Size dataSize;
|
||||
#ifndef AESizeOfParam
|
||||
PyMac_PRECHECK(AESizeOfParam);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &theAEKeyword))
|
||||
return NULL;
|
||||
|
@ -409,6 +451,9 @@ static PyObject *AEDesc_AEDeleteParam(AEDescObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEKeyword theAEKeyword;
|
||||
#ifndef AEDeleteParam
|
||||
PyMac_PRECHECK(AEDeleteParam);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &theAEKeyword))
|
||||
return NULL;
|
||||
|
@ -430,6 +475,9 @@ static PyObject *AEDesc_AEGetAttributePtr(AEDescObject *_self, PyObject *_args)
|
|||
char *dataPtr__out__;
|
||||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
#ifndef AEGetAttributePtr
|
||||
PyMac_PRECHECK(AEGetAttributePtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&i",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
PyMac_GetOSType, &desiredType,
|
||||
|
@ -462,6 +510,9 @@ static PyObject *AEDesc_AEGetAttributeDesc(AEDescObject *_self, PyObject *_args)
|
|||
AEKeyword theAEKeyword;
|
||||
DescType desiredType;
|
||||
AEDesc result;
|
||||
#ifndef AEGetAttributeDesc
|
||||
PyMac_PRECHECK(AEGetAttributeDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
PyMac_GetOSType, &desiredType))
|
||||
|
@ -483,6 +534,9 @@ static PyObject *AEDesc_AESizeOfAttribute(AEDescObject *_self, PyObject *_args)
|
|||
AEKeyword theAEKeyword;
|
||||
DescType typeCode;
|
||||
Size dataSize;
|
||||
#ifndef AESizeOfAttribute
|
||||
PyMac_PRECHECK(AESizeOfAttribute);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &theAEKeyword))
|
||||
return NULL;
|
||||
|
@ -506,6 +560,9 @@ static PyObject *AEDesc_AEPutAttributePtr(AEDescObject *_self, PyObject *_args)
|
|||
char *dataPtr__in__;
|
||||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
#ifndef AEPutAttributePtr
|
||||
PyMac_PRECHECK(AEPutAttributePtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&s#",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
PyMac_GetOSType, &typeCode,
|
||||
|
@ -528,6 +585,9 @@ static PyObject *AEDesc_AEPutAttributeDesc(AEDescObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
AEKeyword theAEKeyword;
|
||||
AEDesc theAEDesc;
|
||||
#ifndef AEPutAttributeDesc
|
||||
PyMac_PRECHECK(AEPutAttributeDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &theAEKeyword,
|
||||
AEDesc_Convert, &theAEDesc))
|
||||
|
@ -547,6 +607,9 @@ static PyObject *AEDesc_AEGetDescDataSize(AEDescObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Size _rv;
|
||||
#ifndef AEGetDescDataSize
|
||||
PyMac_PRECHECK(AEGetDescDataSize);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = AEGetDescDataSize(&_self->ob_itself);
|
||||
|
@ -564,6 +627,9 @@ static PyObject *AEDesc_AESend(AEDescObject *_self, PyObject *_args)
|
|||
AESendMode sendMode;
|
||||
AESendPriority sendPriority;
|
||||
long timeOutInTicks;
|
||||
#ifndef AESend
|
||||
PyMac_PRECHECK(AESend);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lhl",
|
||||
&sendMode,
|
||||
&sendPriority,
|
||||
|
@ -586,6 +652,9 @@ static PyObject *AEDesc_AEResetTimer(AEDescObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef AEResetTimer
|
||||
PyMac_PRECHECK(AEResetTimer);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AEResetTimer(&_self->ob_itself);
|
||||
|
@ -599,6 +668,9 @@ static PyObject *AEDesc_AESuspendTheCurrentEvent(AEDescObject *_self, PyObject *
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef AESuspendTheCurrentEvent
|
||||
PyMac_PRECHECK(AESuspendTheCurrentEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AESuspendTheCurrentEvent(&_self->ob_itself);
|
||||
|
@ -615,6 +687,9 @@ static PyObject *AEDesc_AEResumeTheCurrentEvent(AEDescObject *_self, PyObject *_
|
|||
AppleEvent reply;
|
||||
AEEventHandlerUPP dispatcher__proc__ = upp_GenericEventHandler;
|
||||
PyObject *dispatcher;
|
||||
#ifndef AEResumeTheCurrentEvent
|
||||
PyMac_PRECHECK(AEResumeTheCurrentEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O",
|
||||
AEDesc_Convert, &reply,
|
||||
&dispatcher))
|
||||
|
@ -633,6 +708,9 @@ static PyObject *AEDesc_AEGetTheCurrentEvent(AEDescObject *_self, PyObject *_arg
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef AEGetTheCurrentEvent
|
||||
PyMac_PRECHECK(AEGetTheCurrentEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AEGetTheCurrentEvent(&_self->ob_itself);
|
||||
|
@ -646,6 +724,9 @@ static PyObject *AEDesc_AESetTheCurrentEvent(AEDescObject *_self, PyObject *_arg
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef AESetTheCurrentEvent
|
||||
PyMac_PRECHECK(AESetTheCurrentEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AESetTheCurrentEvent(&_self->ob_itself);
|
||||
|
@ -661,6 +742,9 @@ static PyObject *AEDesc_AEResolve(AEDescObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
short callbackFlags;
|
||||
AEDesc theToken;
|
||||
#ifndef AEResolve
|
||||
PyMac_PRECHECK(AEResolve);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&callbackFlags))
|
||||
return NULL;
|
||||
|
@ -815,6 +899,9 @@ static PyObject *AE_AECoercePtr(PyObject *_self, PyObject *_args)
|
|||
int dataPtr__in_len__;
|
||||
DescType toType;
|
||||
AEDesc result;
|
||||
#ifndef AECoercePtr
|
||||
PyMac_PRECHECK(AECoercePtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&s#O&",
|
||||
PyMac_GetOSType, &typeCode,
|
||||
&dataPtr__in__, &dataPtr__in_len__,
|
||||
|
@ -840,6 +927,9 @@ static PyObject *AE_AECreateDesc(PyObject *_self, PyObject *_args)
|
|||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
AEDesc result;
|
||||
#ifndef AECreateDesc
|
||||
PyMac_PRECHECK(AECreateDesc);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&s#",
|
||||
PyMac_GetOSType, &typeCode,
|
||||
&dataPtr__in__, &dataPtr__in_len__))
|
||||
|
@ -863,6 +953,9 @@ static PyObject *AE_AECreateList(PyObject *_self, PyObject *_args)
|
|||
int factoringPtr__in_len__;
|
||||
Boolean isRecord;
|
||||
AEDescList resultList;
|
||||
#ifndef AECreateList
|
||||
PyMac_PRECHECK(AECreateList);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "s#b",
|
||||
&factoringPtr__in__, &factoringPtr__in_len__,
|
||||
&isRecord))
|
||||
|
@ -887,6 +980,9 @@ static PyObject *AE_AECreateAppleEvent(PyObject *_self, PyObject *_args)
|
|||
AEReturnID returnID;
|
||||
AETransactionID transactionID;
|
||||
AppleEvent result;
|
||||
#ifndef AECreateAppleEvent
|
||||
PyMac_PRECHECK(AECreateAppleEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&hl",
|
||||
PyMac_GetOSType, &theAEEventClass,
|
||||
PyMac_GetOSType, &theAEEventID,
|
||||
|
@ -917,6 +1013,9 @@ static PyObject *AE_AEReplaceDescData(PyObject *_self, PyObject *_args)
|
|||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
AEDesc theAEDesc;
|
||||
#ifndef AEReplaceDescData
|
||||
PyMac_PRECHECK(AEReplaceDescData);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&s#",
|
||||
PyMac_GetOSType, &typeCode,
|
||||
&dataPtr__in__, &dataPtr__in_len__))
|
||||
|
@ -937,6 +1036,9 @@ static PyObject *AE_AEProcessAppleEvent(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
EventRecord theEventRecord;
|
||||
#ifndef AEProcessAppleEvent
|
||||
PyMac_PRECHECK(AEProcessAppleEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetEventRecord, &theEventRecord))
|
||||
return NULL;
|
||||
|
@ -952,6 +1054,9 @@ static PyObject *AE_AEGetInteractionAllowed(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEInteractAllowed level;
|
||||
#ifndef AEGetInteractionAllowed
|
||||
PyMac_PRECHECK(AEGetInteractionAllowed);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AEGetInteractionAllowed(&level);
|
||||
|
@ -966,6 +1071,9 @@ static PyObject *AE_AESetInteractionAllowed(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEInteractAllowed level;
|
||||
#ifndef AESetInteractionAllowed
|
||||
PyMac_PRECHECK(AESetInteractionAllowed);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&level))
|
||||
return NULL;
|
||||
|
@ -981,6 +1089,9 @@ static PyObject *AE_AEInteractWithUser(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
long timeOutInTicks;
|
||||
#ifndef AEInteractWithUser
|
||||
PyMac_PRECHECK(AEInteractWithUser);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&timeOutInTicks))
|
||||
return NULL;
|
||||
|
@ -1001,6 +1112,9 @@ static PyObject *AE_AEInstallEventHandler(PyObject *_self, PyObject *_args)
|
|||
AEEventID theAEEventID;
|
||||
AEEventHandlerUPP handler__proc__ = upp_GenericEventHandler;
|
||||
PyObject *handler;
|
||||
#ifndef AEInstallEventHandler
|
||||
PyMac_PRECHECK(AEInstallEventHandler);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O",
|
||||
PyMac_GetOSType, &theAEEventClass,
|
||||
PyMac_GetOSType, &theAEEventID,
|
||||
|
@ -1023,6 +1137,9 @@ static PyObject *AE_AERemoveEventHandler(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
AEEventClass theAEEventClass;
|
||||
AEEventID theAEEventID;
|
||||
#ifndef AERemoveEventHandler
|
||||
PyMac_PRECHECK(AERemoveEventHandler);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &theAEEventClass,
|
||||
PyMac_GetOSType, &theAEEventID))
|
||||
|
@ -1045,6 +1162,9 @@ static PyObject *AE_AEGetEventHandler(PyObject *_self, PyObject *_args)
|
|||
AEEventID theAEEventID;
|
||||
AEEventHandlerUPP handler__proc__ = upp_GenericEventHandler;
|
||||
PyObject *handler;
|
||||
#ifndef AEGetEventHandler
|
||||
PyMac_PRECHECK(AEGetEventHandler);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &theAEEventClass,
|
||||
PyMac_GetOSType, &theAEEventID))
|
||||
|
@ -1065,6 +1185,9 @@ static PyObject *AE_AEInstallSpecialHandler(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEKeyword functionClass;
|
||||
#ifndef AEInstallSpecialHandler
|
||||
PyMac_PRECHECK(AEInstallSpecialHandler);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &functionClass))
|
||||
return NULL;
|
||||
|
@ -1082,6 +1205,9 @@ static PyObject *AE_AERemoveSpecialHandler(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEKeyword functionClass;
|
||||
#ifndef AERemoveSpecialHandler
|
||||
PyMac_PRECHECK(AERemoveSpecialHandler);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &functionClass))
|
||||
return NULL;
|
||||
|
@ -1100,6 +1226,9 @@ static PyObject *AE_AEManagerInfo(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
AEKeyword keyWord;
|
||||
long result;
|
||||
#ifndef AEManagerInfo
|
||||
PyMac_PRECHECK(AEManagerInfo);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &keyWord))
|
||||
return NULL;
|
||||
|
@ -1115,6 +1244,9 @@ static PyObject *AE_AEObjectInit(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef AEObjectInit
|
||||
PyMac_PRECHECK(AEObjectInit);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AEObjectInit();
|
||||
|
@ -1129,6 +1261,9 @@ static PyObject *AE_AEDisposeToken(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEDesc theToken;
|
||||
#ifndef AEDisposeToken
|
||||
PyMac_PRECHECK(AEDisposeToken);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = AEDisposeToken(&theToken);
|
||||
|
@ -1148,6 +1283,9 @@ static PyObject *AE_AECallObjectAccessor(PyObject *_self, PyObject *_args)
|
|||
DescType keyForm;
|
||||
AEDesc keyData;
|
||||
AEDesc token;
|
||||
#ifndef AECallObjectAccessor
|
||||
PyMac_PRECHECK(AECallObjectAccessor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&O&O&",
|
||||
PyMac_GetOSType, &desiredClass,
|
||||
AEDesc_Convert, &containerToken,
|
||||
|
|
|
@ -77,6 +77,9 @@ static PyObject *ThemeDrawingStateObj_SetThemeDrawingState(ThemeDrawingStateObje
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _rv;
|
||||
Boolean inDisposeNow;
|
||||
#ifndef SetThemeDrawingState
|
||||
PyMac_PRECHECK(SetThemeDrawingState);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&inDisposeNow))
|
||||
return NULL;
|
||||
|
@ -91,6 +94,9 @@ static PyObject *ThemeDrawingStateObj_DisposeThemeDrawingState(ThemeDrawingState
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSStatus _rv;
|
||||
#ifndef DisposeThemeDrawingState
|
||||
PyMac_PRECHECK(DisposeThemeDrawingState);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = DisposeThemeDrawingState(_self->ob_itself);
|
||||
|
@ -148,6 +154,9 @@ static PyObject *App_RegisterAppearanceClient(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
#ifndef RegisterAppearanceClient
|
||||
PyMac_PRECHECK(RegisterAppearanceClient);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = RegisterAppearanceClient();
|
||||
|
@ -161,6 +170,9 @@ static PyObject *App_UnregisterAppearanceClient(PyObject *_self, PyObject *_args
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
#ifndef UnregisterAppearanceClient
|
||||
PyMac_PRECHECK(UnregisterAppearanceClient);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = UnregisterAppearanceClient();
|
||||
|
@ -177,6 +189,9 @@ static PyObject *App_SetThemePen(PyObject *_self, PyObject *_args)
|
|||
ThemeBrush inBrush;
|
||||
SInt16 inDepth;
|
||||
Boolean inIsColorDevice;
|
||||
#ifndef SetThemePen
|
||||
PyMac_PRECHECK(SetThemePen);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hhb",
|
||||
&inBrush,
|
||||
&inDepth,
|
||||
|
@ -198,6 +213,9 @@ static PyObject *App_SetThemeBackground(PyObject *_self, PyObject *_args)
|
|||
ThemeBrush inBrush;
|
||||
SInt16 inDepth;
|
||||
Boolean inIsColorDevice;
|
||||
#ifndef SetThemeBackground
|
||||
PyMac_PRECHECK(SetThemeBackground);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hhb",
|
||||
&inBrush,
|
||||
&inDepth,
|
||||
|
@ -219,6 +237,9 @@ static PyObject *App_SetThemeTextColor(PyObject *_self, PyObject *_args)
|
|||
ThemeTextColor inColor;
|
||||
SInt16 inDepth;
|
||||
Boolean inIsColorDevice;
|
||||
#ifndef SetThemeTextColor
|
||||
PyMac_PRECHECK(SetThemeTextColor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hhb",
|
||||
&inColor,
|
||||
&inDepth,
|
||||
|
@ -240,6 +261,9 @@ static PyObject *App_SetThemeWindowBackground(PyObject *_self, PyObject *_args)
|
|||
WindowPtr inWindow;
|
||||
ThemeBrush inBrush;
|
||||
Boolean inUpdate;
|
||||
#ifndef SetThemeWindowBackground
|
||||
PyMac_PRECHECK(SetThemeWindowBackground);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hb",
|
||||
WinObj_Convert, &inWindow,
|
||||
&inBrush,
|
||||
|
@ -260,6 +284,9 @@ static PyObject *App_DrawThemeWindowHeader(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeWindowHeader
|
||||
PyMac_PRECHECK(DrawThemeWindowHeader);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -278,6 +305,9 @@ static PyObject *App_DrawThemeWindowListViewHeader(PyObject *_self, PyObject *_a
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeWindowListViewHeader
|
||||
PyMac_PRECHECK(DrawThemeWindowListViewHeader);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -296,6 +326,9 @@ static PyObject *App_DrawThemePlacard(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemePlacard
|
||||
PyMac_PRECHECK(DrawThemePlacard);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -314,6 +347,9 @@ static PyObject *App_DrawThemeEditTextFrame(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeEditTextFrame
|
||||
PyMac_PRECHECK(DrawThemeEditTextFrame);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -332,6 +368,9 @@ static PyObject *App_DrawThemeListBoxFrame(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeListBoxFrame
|
||||
PyMac_PRECHECK(DrawThemeListBoxFrame);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -350,6 +389,9 @@ static PyObject *App_DrawThemeFocusRect(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
Boolean inHasFocus;
|
||||
#ifndef DrawThemeFocusRect
|
||||
PyMac_PRECHECK(DrawThemeFocusRect);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&b",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inHasFocus))
|
||||
|
@ -368,6 +410,9 @@ static PyObject *App_DrawThemePrimaryGroup(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemePrimaryGroup
|
||||
PyMac_PRECHECK(DrawThemePrimaryGroup);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -386,6 +431,9 @@ static PyObject *App_DrawThemeSecondaryGroup(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeSecondaryGroup
|
||||
PyMac_PRECHECK(DrawThemeSecondaryGroup);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -404,6 +452,9 @@ static PyObject *App_DrawThemeSeparator(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeSeparator
|
||||
PyMac_PRECHECK(DrawThemeSeparator);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -422,6 +473,9 @@ static PyObject *App_DrawThemeModelessDialogFrame(PyObject *_self, PyObject *_ar
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeModelessDialogFrame
|
||||
PyMac_PRECHECK(DrawThemeModelessDialogFrame);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -441,6 +495,9 @@ static PyObject *App_DrawThemeGenericWell(PyObject *_self, PyObject *_args)
|
|||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
Boolean inFillCenter;
|
||||
#ifndef DrawThemeGenericWell
|
||||
PyMac_PRECHECK(DrawThemeGenericWell);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&lb",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState,
|
||||
|
@ -460,6 +517,9 @@ static PyObject *App_DrawThemeFocusRegion(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
Boolean inHasFocus;
|
||||
#ifndef DrawThemeFocusRegion
|
||||
PyMac_PRECHECK(DrawThemeFocusRegion);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&inHasFocus))
|
||||
return NULL;
|
||||
|
@ -477,6 +537,9 @@ static PyObject *App_IsThemeInColor(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
SInt16 inDepth;
|
||||
Boolean inIsColorDevice;
|
||||
#ifndef IsThemeInColor
|
||||
PyMac_PRECHECK(IsThemeInColor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hb",
|
||||
&inDepth,
|
||||
&inIsColorDevice))
|
||||
|
@ -493,6 +556,9 @@ static PyObject *App_GetThemeAccentColors(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
CTabHandle outColors;
|
||||
#ifndef GetThemeAccentColors
|
||||
PyMac_PRECHECK(GetThemeAccentColors);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetThemeAccentColors(&outColors);
|
||||
|
@ -509,6 +575,9 @@ static PyObject *App_DrawThemeMenuBarBackground(PyObject *_self, PyObject *_args
|
|||
Rect inBounds;
|
||||
ThemeMenuBarState inState;
|
||||
UInt32 inAttributes;
|
||||
#ifndef DrawThemeMenuBarBackground
|
||||
PyMac_PRECHECK(DrawThemeMenuBarBackground);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&Hl",
|
||||
PyMac_GetRect, &inBounds,
|
||||
&inState,
|
||||
|
@ -528,6 +597,9 @@ static PyObject *App_GetThemeMenuBarHeight(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
SInt16 outHeight;
|
||||
#ifndef GetThemeMenuBarHeight
|
||||
PyMac_PRECHECK(GetThemeMenuBarHeight);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetThemeMenuBarHeight(&outHeight);
|
||||
|
@ -543,6 +615,9 @@ static PyObject *App_DrawThemeMenuBackground(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inMenuRect;
|
||||
ThemeMenuType inMenuType;
|
||||
#ifndef DrawThemeMenuBackground
|
||||
PyMac_PRECHECK(DrawThemeMenuBackground);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&H",
|
||||
PyMac_GetRect, &inMenuRect,
|
||||
&inMenuType))
|
||||
|
@ -561,6 +636,9 @@ static PyObject *App_GetThemeMenuBackgroundRegion(PyObject *_self, PyObject *_ar
|
|||
OSStatus _err;
|
||||
Rect inMenuRect;
|
||||
ThemeMenuType menuType;
|
||||
#ifndef GetThemeMenuBackgroundRegion
|
||||
PyMac_PRECHECK(GetThemeMenuBackgroundRegion);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&H",
|
||||
PyMac_GetRect, &inMenuRect,
|
||||
&menuType))
|
||||
|
@ -579,6 +657,9 @@ static PyObject *App_DrawThemeMenuSeparator(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
Rect inItemRect;
|
||||
#ifndef DrawThemeMenuSeparator
|
||||
PyMac_PRECHECK(DrawThemeMenuSeparator);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetRect, &inItemRect))
|
||||
return NULL;
|
||||
|
@ -594,6 +675,9 @@ static PyObject *App_GetThemeMenuSeparatorHeight(PyObject *_self, PyObject *_arg
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
SInt16 outHeight;
|
||||
#ifndef GetThemeMenuSeparatorHeight
|
||||
PyMac_PRECHECK(GetThemeMenuSeparatorHeight);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetThemeMenuSeparatorHeight(&outHeight);
|
||||
|
@ -610,6 +694,9 @@ static PyObject *App_GetThemeMenuItemExtra(PyObject *_self, PyObject *_args)
|
|||
ThemeMenuItemType inItemType;
|
||||
SInt16 outHeight;
|
||||
SInt16 outWidth;
|
||||
#ifndef GetThemeMenuItemExtra
|
||||
PyMac_PRECHECK(GetThemeMenuItemExtra);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "H",
|
||||
&inItemType))
|
||||
return NULL;
|
||||
|
@ -629,6 +716,9 @@ static PyObject *App_GetThemeMenuTitleExtra(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
SInt16 outWidth;
|
||||
Boolean inIsSquished;
|
||||
#ifndef GetThemeMenuTitleExtra
|
||||
PyMac_PRECHECK(GetThemeMenuTitleExtra);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&inIsSquished))
|
||||
return NULL;
|
||||
|
@ -646,6 +736,9 @@ static PyObject *App_DrawThemeTabPane(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect inRect;
|
||||
ThemeDrawState inState;
|
||||
#ifndef DrawThemeTabPane
|
||||
PyMac_PRECHECK(DrawThemeTabPane);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inState))
|
||||
|
@ -665,6 +758,9 @@ static PyObject *App_GetThemeTabRegion(PyObject *_self, PyObject *_args)
|
|||
Rect inRect;
|
||||
ThemeTabStyle inStyle;
|
||||
ThemeTabDirection inDirection;
|
||||
#ifndef GetThemeTabRegion
|
||||
PyMac_PRECHECK(GetThemeTabRegion);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HH",
|
||||
PyMac_GetRect, &inRect,
|
||||
&inStyle,
|
||||
|
@ -685,6 +781,9 @@ static PyObject *App_SetThemeCursor(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
ThemeCursor inCursor;
|
||||
#ifndef SetThemeCursor
|
||||
PyMac_PRECHECK(SetThemeCursor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&inCursor))
|
||||
return NULL;
|
||||
|
@ -701,6 +800,9 @@ static PyObject *App_SetAnimatedThemeCursor(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
ThemeCursor inCursor;
|
||||
UInt32 inAnimationStep;
|
||||
#ifndef SetAnimatedThemeCursor
|
||||
PyMac_PRECHECK(SetAnimatedThemeCursor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "ll",
|
||||
&inCursor,
|
||||
&inAnimationStep))
|
||||
|
@ -718,6 +820,9 @@ static PyObject *App_GetThemeScrollBarThumbStyle(PyObject *_self, PyObject *_arg
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
ThemeScrollBarThumbStyle outStyle;
|
||||
#ifndef GetThemeScrollBarThumbStyle
|
||||
PyMac_PRECHECK(GetThemeScrollBarThumbStyle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetThemeScrollBarThumbStyle(&outStyle);
|
||||
|
@ -732,6 +837,9 @@ static PyObject *App_GetThemeScrollBarArrowStyle(PyObject *_self, PyObject *_arg
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
ThemeScrollBarArrowStyle outStyle;
|
||||
#ifndef GetThemeScrollBarArrowStyle
|
||||
PyMac_PRECHECK(GetThemeScrollBarArrowStyle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetThemeScrollBarArrowStyle(&outStyle);
|
||||
|
@ -746,6 +854,9 @@ static PyObject *App_GetThemeCheckBoxStyle(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
ThemeCheckBoxStyle outStyle;
|
||||
#ifndef GetThemeCheckBoxStyle
|
||||
PyMac_PRECHECK(GetThemeCheckBoxStyle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetThemeCheckBoxStyle(&outStyle);
|
||||
|
@ -761,6 +872,9 @@ static PyObject *App_UseThemeFont(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
ThemeFontID inFontID;
|
||||
ScriptCode inScript;
|
||||
#ifndef UseThemeFont
|
||||
PyMac_PRECHECK(UseThemeFont);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "Hh",
|
||||
&inFontID,
|
||||
&inScript))
|
||||
|
@ -785,6 +899,9 @@ static PyObject *App_DrawThemeTextBox(PyObject *_self, PyObject *_args)
|
|||
Boolean inWrapToWidth;
|
||||
Rect inBoundingBox;
|
||||
SInt16 inJust;
|
||||
#ifndef DrawThemeTextBox
|
||||
PyMac_PRECHECK(DrawThemeTextBox);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HlbO&h",
|
||||
CFStringRefObj_Convert, &inString,
|
||||
&inFontID,
|
||||
|
@ -819,6 +936,9 @@ static PyObject *App_TruncateThemeText(PyObject *_self, PyObject *_args)
|
|||
SInt16 inPixelWidthLimit;
|
||||
TruncCode inTruncWhere;
|
||||
Boolean outTruncated;
|
||||
#ifndef TruncateThemeText
|
||||
PyMac_PRECHECK(TruncateThemeText);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&Hlhh",
|
||||
CFMutableStringRefObj_Convert, &inString,
|
||||
&inFontID,
|
||||
|
@ -851,6 +971,9 @@ static PyObject *App_GetThemeTextDimensions(PyObject *_self, PyObject *_args)
|
|||
Boolean inWrapToWidth;
|
||||
Point ioBounds;
|
||||
SInt16 outBaseline;
|
||||
#ifndef GetThemeTextDimensions
|
||||
PyMac_PRECHECK(GetThemeTextDimensions);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HlbO&",
|
||||
CFStringRefObj_Convert, &inString,
|
||||
&inFontID,
|
||||
|
@ -881,6 +1004,9 @@ static PyObject *App_GetThemeTextShadowOutset(PyObject *_self, PyObject *_args)
|
|||
ThemeFontID inFontID;
|
||||
ThemeDrawState inState;
|
||||
Rect outOutset;
|
||||
#ifndef GetThemeTextShadowOutset
|
||||
PyMac_PRECHECK(GetThemeTextShadowOutset);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "Hl",
|
||||
&inFontID,
|
||||
&inState))
|
||||
|
@ -904,6 +1030,9 @@ static PyObject *App_DrawThemeScrollBarArrows(PyObject *_self, PyObject *_args)
|
|||
ThemeTrackPressState pressState;
|
||||
Boolean isHoriz;
|
||||
Rect trackBounds;
|
||||
#ifndef DrawThemeScrollBarArrows
|
||||
PyMac_PRECHECK(DrawThemeScrollBarArrows);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&bbb",
|
||||
PyMac_GetRect, &bounds,
|
||||
&enableState,
|
||||
|
@ -930,6 +1059,9 @@ static PyObject *App_GetThemeScrollBarTrackRect(PyObject *_self, PyObject *_args
|
|||
ThemeTrackPressState pressState;
|
||||
Boolean isHoriz;
|
||||
Rect trackBounds;
|
||||
#ifndef GetThemeScrollBarTrackRect
|
||||
PyMac_PRECHECK(GetThemeScrollBarTrackRect);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&bbb",
|
||||
PyMac_GetRect, &bounds,
|
||||
&enableState,
|
||||
|
@ -958,6 +1090,9 @@ static PyObject *App_HitTestThemeScrollBarArrows(PyObject *_self, PyObject *_arg
|
|||
Point ptHit;
|
||||
Rect trackBounds;
|
||||
ControlPartCode partcode;
|
||||
#ifndef HitTestThemeScrollBarArrows
|
||||
PyMac_PRECHECK(HitTestThemeScrollBarArrows);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&bbbO&",
|
||||
PyMac_GetRect, &scrollBarBounds,
|
||||
&enableState,
|
||||
|
@ -987,6 +1122,9 @@ static PyObject *App_DrawThemeScrollBarDelimiters(PyObject *_self, PyObject *_ar
|
|||
Rect inContRect;
|
||||
ThemeDrawState state;
|
||||
ThemeWindowAttributes attributes;
|
||||
#ifndef DrawThemeScrollBarDelimiters
|
||||
PyMac_PRECHECK(DrawThemeScrollBarDelimiters);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "HO&ll",
|
||||
&flavor,
|
||||
PyMac_GetRect, &inContRect,
|
||||
|
@ -1012,6 +1150,9 @@ static PyObject *App_DrawThemeButton(PyObject *_self, PyObject *_args)
|
|||
ThemeButtonDrawInfo inNewInfo;
|
||||
ThemeButtonDrawInfo inPrevInfo;
|
||||
UInt32 inUserData;
|
||||
#ifndef DrawThemeButton
|
||||
PyMac_PRECHECK(DrawThemeButton);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HO&O&l",
|
||||
PyMac_GetRect, &inBounds,
|
||||
&inKind,
|
||||
|
@ -1039,6 +1180,9 @@ static PyObject *App_GetThemeButtonRegion(PyObject *_self, PyObject *_args)
|
|||
Rect inBounds;
|
||||
UInt16 inKind;
|
||||
ThemeButtonDrawInfo inNewInfo;
|
||||
#ifndef GetThemeButtonRegion
|
||||
PyMac_PRECHECK(GetThemeButtonRegion);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HO&",
|
||||
PyMac_GetRect, &inBounds,
|
||||
&inKind,
|
||||
|
@ -1062,6 +1206,9 @@ static PyObject *App_GetThemeButtonContentBounds(PyObject *_self, PyObject *_arg
|
|||
UInt16 inKind;
|
||||
ThemeButtonDrawInfo inDrawInfo;
|
||||
Rect outBounds;
|
||||
#ifndef GetThemeButtonContentBounds
|
||||
PyMac_PRECHECK(GetThemeButtonContentBounds);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HO&",
|
||||
PyMac_GetRect, &inBounds,
|
||||
&inKind,
|
||||
|
@ -1085,6 +1232,9 @@ static PyObject *App_GetThemeButtonBackgroundBounds(PyObject *_self, PyObject *_
|
|||
UInt16 inKind;
|
||||
ThemeButtonDrawInfo inDrawInfo;
|
||||
Rect outBounds;
|
||||
#ifndef GetThemeButtonBackgroundBounds
|
||||
PyMac_PRECHECK(GetThemeButtonBackgroundBounds);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HO&",
|
||||
PyMac_GetRect, &inBounds,
|
||||
&inKind,
|
||||
|
@ -1105,6 +1255,9 @@ static PyObject *App_PlayThemeSound(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
ThemeSoundKind kind;
|
||||
#ifndef PlayThemeSound
|
||||
PyMac_PRECHECK(PlayThemeSound);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &kind))
|
||||
return NULL;
|
||||
|
@ -1120,6 +1273,9 @@ static PyObject *App_BeginThemeDragSound(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
ThemeDragSoundKind kind;
|
||||
#ifndef BeginThemeDragSound
|
||||
PyMac_PRECHECK(BeginThemeDragSound);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &kind))
|
||||
return NULL;
|
||||
|
@ -1134,6 +1290,9 @@ static PyObject *App_EndThemeDragSound(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
#ifndef EndThemeDragSound
|
||||
PyMac_PRECHECK(EndThemeDragSound);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = EndThemeDragSound();
|
||||
|
@ -1149,6 +1308,9 @@ static PyObject *App_DrawThemeTickMark(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
Rect bounds;
|
||||
ThemeDrawState state;
|
||||
#ifndef DrawThemeTickMark
|
||||
PyMac_PRECHECK(DrawThemeTickMark);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
PyMac_GetRect, &bounds,
|
||||
&state))
|
||||
|
@ -1169,6 +1331,9 @@ static PyObject *App_DrawThemeChasingArrows(PyObject *_self, PyObject *_args)
|
|||
UInt32 index;
|
||||
ThemeDrawState state;
|
||||
UInt32 eraseData;
|
||||
#ifndef DrawThemeChasingArrows
|
||||
PyMac_PRECHECK(DrawThemeChasingArrows);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&lll",
|
||||
PyMac_GetRect, &bounds,
|
||||
&index,
|
||||
|
@ -1195,6 +1360,9 @@ static PyObject *App_DrawThemePopupArrow(PyObject *_self, PyObject *_args)
|
|||
ThemePopupArrowSize size;
|
||||
ThemeDrawState state;
|
||||
UInt32 eraseData;
|
||||
#ifndef DrawThemePopupArrow
|
||||
PyMac_PRECHECK(DrawThemePopupArrow);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&HHll",
|
||||
PyMac_GetRect, &bounds,
|
||||
&orientation,
|
||||
|
@ -1222,6 +1390,9 @@ static PyObject *App_DrawThemeStandaloneGrowBox(PyObject *_self, PyObject *_args
|
|||
ThemeGrowDirection growDirection;
|
||||
Boolean isSmall;
|
||||
ThemeDrawState state;
|
||||
#ifndef DrawThemeStandaloneGrowBox
|
||||
PyMac_PRECHECK(DrawThemeStandaloneGrowBox);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&Hbl",
|
||||
PyMac_GetPoint, &origin,
|
||||
&growDirection,
|
||||
|
@ -1246,6 +1417,9 @@ static PyObject *App_DrawThemeStandaloneNoGrowBox(PyObject *_self, PyObject *_ar
|
|||
ThemeGrowDirection growDirection;
|
||||
Boolean isSmall;
|
||||
ThemeDrawState state;
|
||||
#ifndef DrawThemeStandaloneNoGrowBox
|
||||
PyMac_PRECHECK(DrawThemeStandaloneNoGrowBox);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&Hbl",
|
||||
PyMac_GetPoint, &origin,
|
||||
&growDirection,
|
||||
|
@ -1270,6 +1444,9 @@ static PyObject *App_GetThemeStandaloneGrowBoxBounds(PyObject *_self, PyObject *
|
|||
ThemeGrowDirection growDirection;
|
||||
Boolean isSmall;
|
||||
Rect bounds;
|
||||
#ifndef GetThemeStandaloneGrowBoxBounds
|
||||
PyMac_PRECHECK(GetThemeStandaloneGrowBoxBounds);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&Hb",
|
||||
PyMac_GetPoint, &origin,
|
||||
&growDirection,
|
||||
|
@ -1289,6 +1466,9 @@ static PyObject *App_NormalizeThemeDrawingState(PyObject *_self, PyObject *_args
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
#ifndef NormalizeThemeDrawingState
|
||||
PyMac_PRECHECK(NormalizeThemeDrawingState);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = NormalizeThemeDrawingState();
|
||||
|
@ -1303,6 +1483,9 @@ static PyObject *App_GetThemeDrawingState(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSStatus _err;
|
||||
ThemeDrawingState outState;
|
||||
#ifndef GetThemeDrawingState
|
||||
PyMac_PRECHECK(GetThemeDrawingState);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetThemeDrawingState(&outState);
|
||||
|
@ -1321,6 +1504,9 @@ static PyObject *App_ApplyThemeBackground(PyObject *_self, PyObject *_args)
|
|||
ThemeDrawState inState;
|
||||
SInt16 inDepth;
|
||||
Boolean inColorDev;
|
||||
#ifndef ApplyThemeBackground
|
||||
PyMac_PRECHECK(ApplyThemeBackground);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&lhb",
|
||||
&inKind,
|
||||
PyMac_GetRect, &bounds,
|
||||
|
@ -1347,6 +1533,9 @@ static PyObject *App_SetThemeTextColorForWindow(PyObject *_self, PyObject *_args
|
|||
Boolean isActive;
|
||||
SInt16 depth;
|
||||
Boolean isColorDev;
|
||||
#ifndef SetThemeTextColorForWindow
|
||||
PyMac_PRECHECK(SetThemeTextColorForWindow);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&bhb",
|
||||
WinObj_Convert, &window,
|
||||
&isActive,
|
||||
|
@ -1368,6 +1557,9 @@ static PyObject *App_IsValidAppearanceFileType(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
OSType fileType;
|
||||
#ifndef IsValidAppearanceFileType
|
||||
PyMac_PRECHECK(IsValidAppearanceFileType);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetOSType, &fileType))
|
||||
return NULL;
|
||||
|
@ -1385,6 +1577,9 @@ static PyObject *App_GetThemeBrushAsColor(PyObject *_self, PyObject *_args)
|
|||
SInt16 inDepth;
|
||||
Boolean inColorDev;
|
||||
RGBColor outColor;
|
||||
#ifndef GetThemeBrushAsColor
|
||||
PyMac_PRECHECK(GetThemeBrushAsColor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hhb",
|
||||
&inBrush,
|
||||
&inDepth,
|
||||
|
@ -1408,6 +1603,9 @@ static PyObject *App_GetThemeTextColor(PyObject *_self, PyObject *_args)
|
|||
SInt16 inDepth;
|
||||
Boolean inColorDev;
|
||||
RGBColor outColor;
|
||||
#ifndef GetThemeTextColor
|
||||
PyMac_PRECHECK(GetThemeTextColor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hhb",
|
||||
&inColor,
|
||||
&inDepth,
|
||||
|
@ -1431,6 +1629,9 @@ static PyObject *App_GetThemeMetric(PyObject *_self, PyObject *_args)
|
|||
OSStatus _err;
|
||||
ThemeMetric inMetric;
|
||||
SInt32 outMetric;
|
||||
#ifndef GetThemeMetric
|
||||
PyMac_PRECHECK(GetThemeMetric);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&inMetric))
|
||||
return NULL;
|
||||
|
|
|
@ -118,12 +118,12 @@ object = MyObjectDefinition(OBJECTNAME, OBJECTPREFIX, OBJECTTYPE)
|
|||
module.addobject(object)
|
||||
|
||||
ThemeDrawingState = OpaqueByValueType("ThemeDrawingState", "ThemeDrawingStateObj")
|
||||
Method = MethodGenerator
|
||||
Method = WeakLinkMethodGenerator
|
||||
|
||||
|
||||
# Create the generator classes used to populate the lists
|
||||
Function = OSErrFunctionGenerator
|
||||
##Method = OSErrMethodGenerator
|
||||
Function = OSErrWeakLinkFunctionGenerator
|
||||
##Method = OSErrWeakLinkMethodGenerator
|
||||
|
||||
# Create and populate the lists
|
||||
functions = []
|
||||
|
|
|
@ -95,6 +95,7 @@ class MyScanner(Scanner_OSX):
|
|||
"CFStringCreateMutableWithExternalCharactersNoCopy", # Not a clue...
|
||||
"CFStringSetExternalCharactersNoCopy",
|
||||
"CFStringGetCharacterAtIndex", # No format for single unichars yet.
|
||||
"kCFStringEncodingInvalidId", # incompatible constant declaration
|
||||
]
|
||||
|
||||
def makegreylist(self):
|
||||
|
|
|
@ -109,6 +109,9 @@ static PyObject *CmpInstObj_CloseComponent(ComponentInstanceObject *_self, PyObj
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef CloseComponent
|
||||
PyMac_PRECHECK(CloseComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = CloseComponent(_self->ob_itself);
|
||||
|
@ -122,6 +125,9 @@ static PyObject *CmpInstObj_GetComponentInstanceError(ComponentInstanceObject *_
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef GetComponentInstanceError
|
||||
PyMac_PRECHECK(GetComponentInstanceError);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetComponentInstanceError(_self->ob_itself);
|
||||
|
@ -135,6 +141,9 @@ static PyObject *CmpInstObj_SetComponentInstanceError(ComponentInstanceObject *_
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr theError;
|
||||
#ifndef SetComponentInstanceError
|
||||
PyMac_PRECHECK(SetComponentInstanceError);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&theError))
|
||||
return NULL;
|
||||
|
@ -149,6 +158,9 @@ static PyObject *CmpInstObj_GetComponentInstanceStorage(ComponentInstanceObject
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Handle _rv;
|
||||
#ifndef GetComponentInstanceStorage
|
||||
PyMac_PRECHECK(GetComponentInstanceStorage);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetComponentInstanceStorage(_self->ob_itself);
|
||||
|
@ -161,6 +173,9 @@ static PyObject *CmpInstObj_SetComponentInstanceStorage(ComponentInstanceObject
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Handle theStorage;
|
||||
#ifndef SetComponentInstanceStorage
|
||||
PyMac_PRECHECK(SetComponentInstanceStorage);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theStorage))
|
||||
return NULL;
|
||||
|
@ -177,6 +192,9 @@ static PyObject *CmpInstObj_GetComponentInstanceA5(ComponentInstanceObject *_sel
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
#ifndef GetComponentInstanceA5
|
||||
PyMac_PRECHECK(GetComponentInstanceA5);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetComponentInstanceA5(_self->ob_itself);
|
||||
|
@ -192,6 +210,9 @@ static PyObject *CmpInstObj_SetComponentInstanceA5(ComponentInstanceObject *_sel
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long theA5;
|
||||
#ifndef SetComponentInstanceA5
|
||||
PyMac_PRECHECK(SetComponentInstanceA5);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&theA5))
|
||||
return NULL;
|
||||
|
@ -208,6 +229,9 @@ static PyObject *CmpInstObj_ComponentFunctionImplemented(ComponentInstanceObject
|
|||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
short ftnNumber;
|
||||
#ifndef ComponentFunctionImplemented
|
||||
PyMac_PRECHECK(ComponentFunctionImplemented);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&ftnNumber))
|
||||
return NULL;
|
||||
|
@ -222,6 +246,9 @@ static PyObject *CmpInstObj_GetComponentVersion(ComponentInstanceObject *_self,
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
#ifndef GetComponentVersion
|
||||
PyMac_PRECHECK(GetComponentVersion);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetComponentVersion(_self->ob_itself);
|
||||
|
@ -235,6 +262,9 @@ static PyObject *CmpInstObj_ComponentSetTarget(ComponentInstanceObject *_self, P
|
|||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
ComponentInstance target;
|
||||
#ifndef ComponentSetTarget
|
||||
PyMac_PRECHECK(ComponentSetTarget);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
CmpInstObj_Convert, &target))
|
||||
return NULL;
|
||||
|
@ -361,6 +391,9 @@ static PyObject *CmpObj_UnregisterComponent(ComponentObject *_self, PyObject *_a
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef UnregisterComponent
|
||||
PyMac_PRECHECK(UnregisterComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = UnregisterComponent(_self->ob_itself);
|
||||
|
@ -378,6 +411,9 @@ static PyObject *CmpObj_GetComponentInfo(ComponentObject *_self, PyObject *_args
|
|||
Handle componentName;
|
||||
Handle componentInfo;
|
||||
Handle componentIcon;
|
||||
#ifndef GetComponentInfo
|
||||
PyMac_PRECHECK(GetComponentInfo);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&",
|
||||
ResObj_Convert, &componentName,
|
||||
ResObj_Convert, &componentInfo,
|
||||
|
@ -398,6 +434,9 @@ static PyObject *CmpObj_OpenComponent(ComponentObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
ComponentInstance _rv;
|
||||
#ifndef OpenComponent
|
||||
PyMac_PRECHECK(OpenComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = OpenComponent(_self->ob_itself);
|
||||
|
@ -410,6 +449,9 @@ static PyObject *CmpObj_ResolveComponentAlias(ComponentObject *_self, PyObject *
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Component _rv;
|
||||
#ifndef ResolveComponentAlias
|
||||
PyMac_PRECHECK(ResolveComponentAlias);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = ResolveComponentAlias(_self->ob_itself);
|
||||
|
@ -425,6 +467,9 @@ static PyObject *CmpObj_GetComponentPublicIndString(ComponentObject *_self, PyOb
|
|||
Str255 theString;
|
||||
short strListID;
|
||||
short index;
|
||||
#ifndef GetComponentPublicIndString
|
||||
PyMac_PRECHECK(GetComponentPublicIndString);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hh",
|
||||
PyMac_GetStr255, theString,
|
||||
&strListID,
|
||||
|
@ -444,6 +489,9 @@ static PyObject *CmpObj_GetComponentRefcon(ComponentObject *_self, PyObject *_ar
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
#ifndef GetComponentRefcon
|
||||
PyMac_PRECHECK(GetComponentRefcon);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetComponentRefcon(_self->ob_itself);
|
||||
|
@ -456,6 +504,9 @@ static PyObject *CmpObj_SetComponentRefcon(ComponentObject *_self, PyObject *_ar
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long theRefcon;
|
||||
#ifndef SetComponentRefcon
|
||||
PyMac_PRECHECK(SetComponentRefcon);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&theRefcon))
|
||||
return NULL;
|
||||
|
@ -470,6 +521,9 @@ static PyObject *CmpObj_OpenComponentResFile(ComponentObject *_self, PyObject *_
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
short _rv;
|
||||
#ifndef OpenComponentResFile
|
||||
PyMac_PRECHECK(OpenComponentResFile);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = OpenComponentResFile(_self->ob_itself);
|
||||
|
@ -485,6 +539,9 @@ static PyObject *CmpObj_GetComponentResource(ComponentObject *_self, PyObject *_
|
|||
OSType resType;
|
||||
short resID;
|
||||
Handle theResource;
|
||||
#ifndef GetComponentResource
|
||||
PyMac_PRECHECK(GetComponentResource);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&h",
|
||||
PyMac_GetOSType, &resType,
|
||||
&resID))
|
||||
|
@ -506,6 +563,9 @@ static PyObject *CmpObj_GetComponentIndString(ComponentObject *_self, PyObject *
|
|||
Str255 theString;
|
||||
short strListID;
|
||||
short index;
|
||||
#ifndef GetComponentIndString
|
||||
PyMac_PRECHECK(GetComponentIndString);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hh",
|
||||
PyMac_GetStr255, theString,
|
||||
&strListID,
|
||||
|
@ -525,6 +585,9 @@ static PyObject *CmpObj_CountComponentInstances(ComponentObject *_self, PyObject
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
#ifndef CountComponentInstances
|
||||
PyMac_PRECHECK(CountComponentInstances);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = CountComponentInstances(_self->ob_itself);
|
||||
|
@ -538,6 +601,9 @@ static PyObject *CmpObj_SetDefaultComponent(ComponentObject *_self, PyObject *_a
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
short flags;
|
||||
#ifndef SetDefaultComponent
|
||||
PyMac_PRECHECK(SetDefaultComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&flags))
|
||||
return NULL;
|
||||
|
@ -554,6 +620,9 @@ static PyObject *CmpObj_CaptureComponent(ComponentObject *_self, PyObject *_args
|
|||
PyObject *_res = NULL;
|
||||
Component _rv;
|
||||
Component capturingComponent;
|
||||
#ifndef CaptureComponent
|
||||
PyMac_PRECHECK(CaptureComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
CmpObj_Convert, &capturingComponent))
|
||||
return NULL;
|
||||
|
@ -568,6 +637,9 @@ static PyObject *CmpObj_UncaptureComponent(ComponentObject *_self, PyObject *_ar
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef UncaptureComponent
|
||||
PyMac_PRECHECK(UncaptureComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = UncaptureComponent(_self->ob_itself);
|
||||
|
@ -582,6 +654,9 @@ static PyObject *CmpObj_GetComponentIconSuite(ComponentObject *_self, PyObject *
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
Handle iconSuite;
|
||||
#ifndef GetComponentIconSuite
|
||||
PyMac_PRECHECK(GetComponentIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetComponentIconSuite(_self->ob_itself,
|
||||
|
@ -669,6 +744,9 @@ static PyObject *Cm_RegisterComponentResource(PyObject *_self, PyObject *_args)
|
|||
Component _rv;
|
||||
ComponentResourceHandle cr;
|
||||
short global;
|
||||
#ifndef RegisterComponentResource
|
||||
PyMac_PRECHECK(RegisterComponentResource);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&h",
|
||||
ResObj_Convert, &cr,
|
||||
&global))
|
||||
|
@ -686,6 +764,9 @@ static PyObject *Cm_FindNextComponent(PyObject *_self, PyObject *_args)
|
|||
Component _rv;
|
||||
Component aComponent;
|
||||
ComponentDescription looking;
|
||||
#ifndef FindNextComponent
|
||||
PyMac_PRECHECK(FindNextComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
CmpObj_Convert, &aComponent,
|
||||
CmpDesc_Convert, &looking))
|
||||
|
@ -702,6 +783,9 @@ static PyObject *Cm_CountComponents(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
ComponentDescription looking;
|
||||
#ifndef CountComponents
|
||||
PyMac_PRECHECK(CountComponents);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
CmpDesc_Convert, &looking))
|
||||
return NULL;
|
||||
|
@ -715,6 +799,9 @@ static PyObject *Cm_GetComponentListModSeed(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
#ifndef GetComponentListModSeed
|
||||
PyMac_PRECHECK(GetComponentListModSeed);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetComponentListModSeed();
|
||||
|
@ -728,6 +815,9 @@ static PyObject *Cm_CloseComponentResFile(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
short refnum;
|
||||
#ifndef CloseComponentResFile
|
||||
PyMac_PRECHECK(CloseComponentResFile);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&refnum))
|
||||
return NULL;
|
||||
|
@ -744,6 +834,9 @@ static PyObject *Cm_OpenDefaultComponent(PyObject *_self, PyObject *_args)
|
|||
ComponentInstance _rv;
|
||||
OSType componentType;
|
||||
OSType componentSubType;
|
||||
#ifndef OpenDefaultComponent
|
||||
PyMac_PRECHECK(OpenDefaultComponent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &componentType,
|
||||
PyMac_GetOSType, &componentSubType))
|
||||
|
@ -761,6 +854,9 @@ static PyObject *Cm_RegisterComponentResourceFile(PyObject *_self, PyObject *_ar
|
|||
long _rv;
|
||||
short resRefNum;
|
||||
short global;
|
||||
#ifndef RegisterComponentResourceFile
|
||||
PyMac_PRECHECK(RegisterComponentResourceFile);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hh",
|
||||
&resRefNum,
|
||||
&global))
|
||||
|
|
|
@ -91,6 +91,9 @@ static PyObject *DragObj_DisposeDrag(DragObjObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef DisposeDrag
|
||||
PyMac_PRECHECK(DisposeDrag);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = DisposeDrag(_self->ob_itself);
|
||||
|
@ -110,6 +113,9 @@ static PyObject *DragObj_AddDragItemFlavor(DragObjObject *_self, PyObject *_args
|
|||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
FlavorFlags theFlags;
|
||||
#ifndef AddDragItemFlavor
|
||||
PyMac_PRECHECK(AddDragItemFlavor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&z#l",
|
||||
&theItemRef,
|
||||
PyMac_GetOSType, &theType,
|
||||
|
@ -138,6 +144,9 @@ static PyObject *DragObj_SetDragItemFlavorData(DragObjObject *_self, PyObject *_
|
|||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
UInt32 dataOffset;
|
||||
#ifndef SetDragItemFlavorData
|
||||
PyMac_PRECHECK(SetDragItemFlavorData);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&z#l",
|
||||
&theItemRef,
|
||||
PyMac_GetOSType, &theType,
|
||||
|
@ -164,6 +173,9 @@ static PyObject *DragObj_SetDragImage(DragObjObject *_self, PyObject *_args)
|
|||
RgnHandle imageRgn;
|
||||
Point imageOffsetPt;
|
||||
DragImageFlags theImageFlags;
|
||||
#ifndef SetDragImage
|
||||
PyMac_PRECHECK(SetDragImage);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&l",
|
||||
ResObj_Convert, &imagePixMap,
|
||||
ResObj_Convert, &imageRgn,
|
||||
|
@ -187,6 +199,9 @@ static PyObject *DragObj_ChangeDragBehaviors(DragObjObject *_self, PyObject *_ar
|
|||
OSErr _err;
|
||||
DragBehaviors inBehaviorsToSet;
|
||||
DragBehaviors inBehaviorsToClear;
|
||||
#ifndef ChangeDragBehaviors
|
||||
PyMac_PRECHECK(ChangeDragBehaviors);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "ll",
|
||||
&inBehaviorsToSet,
|
||||
&inBehaviorsToClear))
|
||||
|
@ -206,6 +221,9 @@ static PyObject *DragObj_TrackDrag(DragObjObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
EventRecord theEvent;
|
||||
RgnHandle theRegion;
|
||||
#ifndef TrackDrag
|
||||
PyMac_PRECHECK(TrackDrag);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetEventRecord, &theEvent,
|
||||
ResObj_Convert, &theRegion))
|
||||
|
@ -224,6 +242,9 @@ static PyObject *DragObj_CountDragItems(DragObjObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
UInt16 numItems;
|
||||
#ifndef CountDragItems
|
||||
PyMac_PRECHECK(CountDragItems);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = CountDragItems(_self->ob_itself,
|
||||
|
@ -240,6 +261,9 @@ static PyObject *DragObj_GetDragItemReferenceNumber(DragObjObject *_self, PyObje
|
|||
OSErr _err;
|
||||
UInt16 index;
|
||||
ItemReference theItemRef;
|
||||
#ifndef GetDragItemReferenceNumber
|
||||
PyMac_PRECHECK(GetDragItemReferenceNumber);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "H",
|
||||
&index))
|
||||
return NULL;
|
||||
|
@ -258,6 +282,9 @@ static PyObject *DragObj_CountDragItemFlavors(DragObjObject *_self, PyObject *_a
|
|||
OSErr _err;
|
||||
ItemReference theItemRef;
|
||||
UInt16 numFlavors;
|
||||
#ifndef CountDragItemFlavors
|
||||
PyMac_PRECHECK(CountDragItemFlavors);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&theItemRef))
|
||||
return NULL;
|
||||
|
@ -277,6 +304,9 @@ static PyObject *DragObj_GetFlavorType(DragObjObject *_self, PyObject *_args)
|
|||
ItemReference theItemRef;
|
||||
UInt16 index;
|
||||
FlavorType theType;
|
||||
#ifndef GetFlavorType
|
||||
PyMac_PRECHECK(GetFlavorType);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lH",
|
||||
&theItemRef,
|
||||
&index))
|
||||
|
@ -298,6 +328,9 @@ static PyObject *DragObj_GetFlavorFlags(DragObjObject *_self, PyObject *_args)
|
|||
ItemReference theItemRef;
|
||||
FlavorType theType;
|
||||
FlavorFlags theFlags;
|
||||
#ifndef GetFlavorFlags
|
||||
PyMac_PRECHECK(GetFlavorFlags);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&",
|
||||
&theItemRef,
|
||||
PyMac_GetOSType, &theType))
|
||||
|
@ -319,6 +352,9 @@ static PyObject *DragObj_GetFlavorDataSize(DragObjObject *_self, PyObject *_args
|
|||
ItemReference theItemRef;
|
||||
FlavorType theType;
|
||||
Size dataSize;
|
||||
#ifndef GetFlavorDataSize
|
||||
PyMac_PRECHECK(GetFlavorDataSize);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&",
|
||||
&theItemRef,
|
||||
PyMac_GetOSType, &theType))
|
||||
|
@ -343,6 +379,9 @@ static PyObject *DragObj_GetFlavorData(DragObjObject *_self, PyObject *_args)
|
|||
long dataPtr__len__;
|
||||
int dataPtr__in_len__;
|
||||
UInt32 dataOffset;
|
||||
#ifndef GetFlavorData
|
||||
PyMac_PRECHECK(GetFlavorData);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&il",
|
||||
&theItemRef,
|
||||
PyMac_GetOSType, &theType,
|
||||
|
@ -374,6 +413,9 @@ static PyObject *DragObj_GetDragItemBounds(DragObjObject *_self, PyObject *_args
|
|||
OSErr _err;
|
||||
ItemReference theItemRef;
|
||||
Rect itemBounds;
|
||||
#ifndef GetDragItemBounds
|
||||
PyMac_PRECHECK(GetDragItemBounds);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&theItemRef))
|
||||
return NULL;
|
||||
|
@ -392,6 +434,9 @@ static PyObject *DragObj_SetDragItemBounds(DragObjObject *_self, PyObject *_args
|
|||
OSErr _err;
|
||||
ItemReference theItemRef;
|
||||
Rect itemBounds;
|
||||
#ifndef SetDragItemBounds
|
||||
PyMac_PRECHECK(SetDragItemBounds);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "lO&",
|
||||
&theItemRef,
|
||||
PyMac_GetRect, &itemBounds))
|
||||
|
@ -410,6 +455,9 @@ static PyObject *DragObj_GetDropLocation(DragObjObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEDesc dropLocation;
|
||||
#ifndef GetDropLocation
|
||||
PyMac_PRECHECK(GetDropLocation);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetDropLocation(_self->ob_itself,
|
||||
|
@ -425,6 +473,9 @@ static PyObject *DragObj_SetDropLocation(DragObjObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
AEDesc dropLocation;
|
||||
#ifndef SetDropLocation
|
||||
PyMac_PRECHECK(SetDropLocation);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
AEDesc_Convert, &dropLocation))
|
||||
return NULL;
|
||||
|
@ -441,6 +492,9 @@ static PyObject *DragObj_GetDragAttributes(DragObjObject *_self, PyObject *_args
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
DragAttributes flags;
|
||||
#ifndef GetDragAttributes
|
||||
PyMac_PRECHECK(GetDragAttributes);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetDragAttributes(_self->ob_itself,
|
||||
|
@ -457,6 +511,9 @@ static PyObject *DragObj_GetDragMouse(DragObjObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
Point mouse;
|
||||
Point globalPinnedMouse;
|
||||
#ifndef GetDragMouse
|
||||
PyMac_PRECHECK(GetDragMouse);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetDragMouse(_self->ob_itself,
|
||||
|
@ -474,6 +531,9 @@ static PyObject *DragObj_SetDragMouse(DragObjObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
Point globalPinnedMouse;
|
||||
#ifndef SetDragMouse
|
||||
PyMac_PRECHECK(SetDragMouse);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetPoint, &globalPinnedMouse))
|
||||
return NULL;
|
||||
|
@ -490,6 +550,9 @@ static PyObject *DragObj_GetDragOrigin(DragObjObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
Point globalInitialMouse;
|
||||
#ifndef GetDragOrigin
|
||||
PyMac_PRECHECK(GetDragOrigin);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetDragOrigin(_self->ob_itself,
|
||||
|
@ -507,6 +570,9 @@ static PyObject *DragObj_GetDragModifiers(DragObjObject *_self, PyObject *_args)
|
|||
SInt16 modifiers;
|
||||
SInt16 mouseDownModifiers;
|
||||
SInt16 mouseUpModifiers;
|
||||
#ifndef GetDragModifiers
|
||||
PyMac_PRECHECK(GetDragModifiers);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = GetDragModifiers(_self->ob_itself,
|
||||
|
@ -527,6 +593,9 @@ static PyObject *DragObj_ShowDragHilite(DragObjObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
RgnHandle hiliteFrame;
|
||||
Boolean inside;
|
||||
#ifndef ShowDragHilite
|
||||
PyMac_PRECHECK(ShowDragHilite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&b",
|
||||
ResObj_Convert, &hiliteFrame,
|
||||
&inside))
|
||||
|
@ -544,6 +613,9 @@ static PyObject *DragObj_HideDragHilite(DragObjObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef HideDragHilite
|
||||
PyMac_PRECHECK(HideDragHilite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = HideDragHilite(_self->ob_itself);
|
||||
|
@ -559,6 +631,9 @@ static PyObject *DragObj_DragPreScroll(DragObjObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
SInt16 dH;
|
||||
SInt16 dV;
|
||||
#ifndef DragPreScroll
|
||||
PyMac_PRECHECK(DragPreScroll);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hh",
|
||||
&dH,
|
||||
&dV))
|
||||
|
@ -576,6 +651,9 @@ static PyObject *DragObj_DragPostScroll(DragObjObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef DragPostScroll
|
||||
PyMac_PRECHECK(DragPostScroll);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = DragPostScroll(_self->ob_itself);
|
||||
|
@ -590,6 +668,9 @@ static PyObject *DragObj_UpdateDragHilite(DragObjObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
RgnHandle updateRgn;
|
||||
#ifndef UpdateDragHilite
|
||||
PyMac_PRECHECK(UpdateDragHilite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &updateRgn))
|
||||
return NULL;
|
||||
|
@ -701,6 +782,9 @@ static PyObject *Drag_NewDrag(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
DragRef theDrag;
|
||||
#ifndef NewDrag
|
||||
PyMac_PRECHECK(NewDrag);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = NewDrag(&theDrag);
|
||||
|
@ -716,6 +800,9 @@ static PyObject *Drag_GetDragHiliteColor(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
WindowPtr window;
|
||||
RGBColor color;
|
||||
#ifndef GetDragHiliteColor
|
||||
PyMac_PRECHECK(GetDragHiliteColor);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
WinObj_Convert, &window))
|
||||
return NULL;
|
||||
|
@ -732,6 +819,9 @@ static PyObject *Drag_WaitMouseMoved(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
Point initialMouse;
|
||||
#ifndef WaitMouseMoved
|
||||
PyMac_PRECHECK(WaitMouseMoved);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetPoint, &initialMouse))
|
||||
return NULL;
|
||||
|
@ -749,6 +839,9 @@ static PyObject *Drag_ZoomRects(PyObject *_self, PyObject *_args)
|
|||
Rect toRect;
|
||||
SInt16 zoomSteps;
|
||||
ZoomAcceleration acceleration;
|
||||
#ifndef ZoomRects
|
||||
PyMac_PRECHECK(ZoomRects);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hh",
|
||||
PyMac_GetRect, &fromRect,
|
||||
PyMac_GetRect, &toRect,
|
||||
|
@ -773,6 +866,9 @@ static PyObject *Drag_ZoomRegion(PyObject *_self, PyObject *_args)
|
|||
Point zoomDistance;
|
||||
SInt16 zoomSteps;
|
||||
ZoomAcceleration acceleration;
|
||||
#ifndef ZoomRegion
|
||||
PyMac_PRECHECK(ZoomRegion);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hh",
|
||||
ResObj_Convert, ®ion,
|
||||
PyMac_GetPoint, &zoomDistance,
|
||||
|
|
|
@ -33,6 +33,9 @@ static PyObject *Evt_GetMouse(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Point mouseLoc;
|
||||
#ifndef GetMouse
|
||||
PyMac_PRECHECK(GetMouse);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
GetMouse(&mouseLoc);
|
||||
|
@ -45,6 +48,9 @@ static PyObject *Evt_Button(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
#ifndef Button
|
||||
PyMac_PRECHECK(Button);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = Button();
|
||||
|
@ -57,6 +63,9 @@ static PyObject *Evt_StillDown(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
#ifndef StillDown
|
||||
PyMac_PRECHECK(StillDown);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = StillDown();
|
||||
|
@ -69,6 +78,9 @@ static PyObject *Evt_WaitMouseUp(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
#ifndef WaitMouseUp
|
||||
PyMac_PRECHECK(WaitMouseUp);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = WaitMouseUp();
|
||||
|
@ -81,6 +93,9 @@ static PyObject *Evt_GetCaretTime(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt32 _rv;
|
||||
#ifndef GetCaretTime
|
||||
PyMac_PRECHECK(GetCaretTime);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetCaretTime();
|
||||
|
@ -93,6 +108,9 @@ static PyObject *Evt_GetKeys(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
KeyMap theKeys__out__;
|
||||
#ifndef GetKeys
|
||||
PyMac_PRECHECK(GetKeys);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
GetKeys(theKeys__out__);
|
||||
|
@ -105,6 +123,9 @@ static PyObject *Evt_GetDblTime(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt32 _rv;
|
||||
#ifndef GetDblTime
|
||||
PyMac_PRECHECK(GetDblTime);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetDblTime();
|
||||
|
@ -117,6 +138,9 @@ static PyObject *Evt_SetEventMask(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
EventMask value;
|
||||
#ifndef SetEventMask
|
||||
PyMac_PRECHECK(SetEventMask);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "H",
|
||||
&value))
|
||||
return NULL;
|
||||
|
@ -132,6 +156,9 @@ static PyObject *Evt_GetNextEvent(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
EventMask eventMask;
|
||||
EventRecord theEvent;
|
||||
#ifndef GetNextEvent
|
||||
PyMac_PRECHECK(GetNextEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "H",
|
||||
&eventMask))
|
||||
return NULL;
|
||||
|
@ -149,6 +176,9 @@ static PyObject *Evt_EventAvail(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
EventMask eventMask;
|
||||
EventRecord theEvent;
|
||||
#ifndef EventAvail
|
||||
PyMac_PRECHECK(EventAvail);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "H",
|
||||
&eventMask))
|
||||
return NULL;
|
||||
|
@ -166,6 +196,9 @@ static PyObject *Evt_PostEvent(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
EventKind eventNum;
|
||||
UInt32 eventMsg;
|
||||
#ifndef PostEvent
|
||||
PyMac_PRECHECK(PostEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "Hl",
|
||||
&eventNum,
|
||||
&eventMsg))
|
||||
|
@ -186,6 +219,9 @@ static PyObject *Evt_OSEventAvail(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
EventMask mask;
|
||||
EventRecord theEvent;
|
||||
#ifndef OSEventAvail
|
||||
PyMac_PRECHECK(OSEventAvail);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "H",
|
||||
&mask))
|
||||
return NULL;
|
||||
|
@ -206,6 +242,9 @@ static PyObject *Evt_GetOSEvent(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
EventMask mask;
|
||||
EventRecord theEvent;
|
||||
#ifndef GetOSEvent
|
||||
PyMac_PRECHECK(GetOSEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "H",
|
||||
&mask))
|
||||
return NULL;
|
||||
|
@ -223,6 +262,9 @@ static PyObject *Evt_FlushEvents(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
EventMask whichMask;
|
||||
EventMask stopMask;
|
||||
#ifndef FlushEvents
|
||||
PyMac_PRECHECK(FlushEvents);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "HH",
|
||||
&whichMask,
|
||||
&stopMask))
|
||||
|
@ -241,6 +283,9 @@ static PyObject *Evt_SystemClick(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
EventRecord theEvent;
|
||||
WindowPtr theWindow;
|
||||
#ifndef SystemClick
|
||||
PyMac_PRECHECK(SystemClick);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetEventRecord, &theEvent,
|
||||
WinObj_Convert, &theWindow))
|
||||
|
@ -258,6 +303,9 @@ static PyObject *Evt_SystemClick(PyObject *_self, PyObject *_args)
|
|||
static PyObject *Evt_SystemTask(PyObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef SystemTask
|
||||
PyMac_PRECHECK(SystemTask);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
SystemTask();
|
||||
|
@ -274,6 +322,9 @@ static PyObject *Evt_SystemEvent(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
EventRecord theEvent;
|
||||
#ifndef SystemEvent
|
||||
PyMac_PRECHECK(SystemEvent);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetEventRecord, &theEvent))
|
||||
return NULL;
|
||||
|
@ -290,6 +341,9 @@ static PyObject *Evt_GetGlobalMouse(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Point globalMouse;
|
||||
#ifndef GetGlobalMouse
|
||||
PyMac_PRECHECK(GetGlobalMouse);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
GetGlobalMouse(&globalMouse);
|
||||
|
@ -305,6 +359,9 @@ static PyObject *Evt_GetCurrentKeyModifiers(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt32 _rv;
|
||||
#ifndef GetCurrentKeyModifiers
|
||||
PyMac_PRECHECK(GetCurrentKeyModifiers);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetCurrentKeyModifiers();
|
||||
|
@ -320,6 +377,9 @@ static PyObject *Evt_CheckEventQueueForUserCancel(PyObject *_self, PyObject *_ar
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
#ifndef CheckEventQueueForUserCancel
|
||||
PyMac_PRECHECK(CheckEventQueueForUserCancel);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = CheckEventQueueForUserCancel();
|
||||
|
@ -333,6 +393,9 @@ static PyObject *Evt_KeyScript(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
short code;
|
||||
#ifndef KeyScript
|
||||
PyMac_PRECHECK(KeyScript);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&code))
|
||||
return NULL;
|
||||
|
@ -348,6 +411,9 @@ static PyObject *Evt_IsCmdChar(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
EventRecord event;
|
||||
short test;
|
||||
#ifndef IsCmdChar
|
||||
PyMac_PRECHECK(IsCmdChar);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&h",
|
||||
PyMac_GetEventRecord, &event,
|
||||
&test))
|
||||
|
@ -363,6 +429,9 @@ static PyObject *Evt_LMGetKeyThresh(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
SInt16 _rv;
|
||||
#ifndef LMGetKeyThresh
|
||||
PyMac_PRECHECK(LMGetKeyThresh);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = LMGetKeyThresh();
|
||||
|
@ -375,6 +444,9 @@ static PyObject *Evt_LMSetKeyThresh(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
SInt16 value;
|
||||
#ifndef LMSetKeyThresh
|
||||
PyMac_PRECHECK(LMSetKeyThresh);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&value))
|
||||
return NULL;
|
||||
|
@ -388,6 +460,9 @@ static PyObject *Evt_LMGetKeyRepThresh(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
SInt16 _rv;
|
||||
#ifndef LMGetKeyRepThresh
|
||||
PyMac_PRECHECK(LMGetKeyRepThresh);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = LMGetKeyRepThresh();
|
||||
|
@ -400,6 +475,9 @@ static PyObject *Evt_LMSetKeyRepThresh(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
SInt16 value;
|
||||
#ifndef LMSetKeyRepThresh
|
||||
PyMac_PRECHECK(LMSetKeyRepThresh);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&value))
|
||||
return NULL;
|
||||
|
@ -413,6 +491,9 @@ static PyObject *Evt_LMGetKbdLast(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt8 _rv;
|
||||
#ifndef LMGetKbdLast
|
||||
PyMac_PRECHECK(LMGetKbdLast);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = LMGetKbdLast();
|
||||
|
@ -425,6 +506,9 @@ static PyObject *Evt_LMSetKbdLast(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt8 value;
|
||||
#ifndef LMSetKbdLast
|
||||
PyMac_PRECHECK(LMSetKbdLast);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&value))
|
||||
return NULL;
|
||||
|
@ -438,6 +522,9 @@ static PyObject *Evt_LMGetKbdType(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt8 _rv;
|
||||
#ifndef LMGetKbdType
|
||||
PyMac_PRECHECK(LMGetKbdType);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = LMGetKbdType();
|
||||
|
@ -450,6 +537,9 @@ static PyObject *Evt_LMSetKbdType(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt8 value;
|
||||
#ifndef LMSetKbdType
|
||||
PyMac_PRECHECK(LMSetKbdType);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&value))
|
||||
return NULL;
|
||||
|
@ -463,6 +553,9 @@ static PyObject *Evt_TickCount(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt32 _rv;
|
||||
#ifndef TickCount
|
||||
PyMac_PRECHECK(TickCount);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = TickCount();
|
||||
|
|
|
@ -64,6 +64,9 @@ static PyObject *Fm_Error;
|
|||
static PyObject *Fm_InitFonts(PyObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef InitFonts
|
||||
PyMac_PRECHECK(InitFonts);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
InitFonts();
|
||||
|
@ -78,6 +81,9 @@ static PyObject *Fm_GetFontName(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
short familyID;
|
||||
Str255 name;
|
||||
#ifndef GetFontName
|
||||
PyMac_PRECHECK(GetFontName);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&familyID))
|
||||
return NULL;
|
||||
|
@ -93,6 +99,9 @@ static PyObject *Fm_GetFNum(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Str255 name;
|
||||
short familyID;
|
||||
#ifndef GetFNum
|
||||
PyMac_PRECHECK(GetFNum);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetStr255, name))
|
||||
return NULL;
|
||||
|
@ -109,6 +118,9 @@ static PyObject *Fm_RealFont(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
short fontNum;
|
||||
short size;
|
||||
#ifndef RealFont
|
||||
PyMac_PRECHECK(RealFont);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hh",
|
||||
&fontNum,
|
||||
&size))
|
||||
|
@ -126,6 +138,9 @@ static PyObject *Fm_SetFontLock(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean lockFlag;
|
||||
#ifndef SetFontLock
|
||||
PyMac_PRECHECK(SetFontLock);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&lockFlag))
|
||||
return NULL;
|
||||
|
@ -140,6 +155,9 @@ static PyObject *Fm_SetFScaleDisable(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean fscaleDisable;
|
||||
#ifndef SetFScaleDisable
|
||||
PyMac_PRECHECK(SetFScaleDisable);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&fscaleDisable))
|
||||
return NULL;
|
||||
|
@ -153,6 +171,9 @@ static PyObject *Fm_FontMetrics(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
FMetricRec theMetrics;
|
||||
#ifndef FontMetrics
|
||||
PyMac_PRECHECK(FontMetrics);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
FontMetrics(&theMetrics);
|
||||
|
@ -165,6 +186,9 @@ static PyObject *Fm_SetFractEnable(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean fractEnable;
|
||||
#ifndef SetFractEnable
|
||||
PyMac_PRECHECK(SetFractEnable);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&fractEnable))
|
||||
return NULL;
|
||||
|
@ -178,6 +202,9 @@ static PyObject *Fm_GetDefFontSize(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
short _rv;
|
||||
#ifndef GetDefFontSize
|
||||
PyMac_PRECHECK(GetDefFontSize);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetDefFontSize();
|
||||
|
@ -192,6 +219,9 @@ static PyObject *Fm_IsOutline(PyObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
Point numer;
|
||||
Point denom;
|
||||
#ifndef IsOutline
|
||||
PyMac_PRECHECK(IsOutline);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetPoint, &numer,
|
||||
PyMac_GetPoint, &denom))
|
||||
|
@ -207,6 +237,9 @@ static PyObject *Fm_SetOutlinePreferred(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean outlinePreferred;
|
||||
#ifndef SetOutlinePreferred
|
||||
PyMac_PRECHECK(SetOutlinePreferred);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&outlinePreferred))
|
||||
return NULL;
|
||||
|
@ -220,6 +253,9 @@ static PyObject *Fm_GetOutlinePreferred(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
#ifndef GetOutlinePreferred
|
||||
PyMac_PRECHECK(GetOutlinePreferred);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetOutlinePreferred();
|
||||
|
@ -232,6 +268,9 @@ static PyObject *Fm_SetPreserveGlyph(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean preserveGlyph;
|
||||
#ifndef SetPreserveGlyph
|
||||
PyMac_PRECHECK(SetPreserveGlyph);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&preserveGlyph))
|
||||
return NULL;
|
||||
|
@ -245,6 +284,9 @@ static PyObject *Fm_GetPreserveGlyph(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
#ifndef GetPreserveGlyph
|
||||
PyMac_PRECHECK(GetPreserveGlyph);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetPreserveGlyph();
|
||||
|
@ -259,6 +301,9 @@ static PyObject *Fm_FlushFonts(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef FlushFonts
|
||||
PyMac_PRECHECK(FlushFonts);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = FlushFonts();
|
||||
|
@ -273,6 +318,9 @@ static PyObject *Fm_GetSysFont(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
short _rv;
|
||||
#ifndef GetSysFont
|
||||
PyMac_PRECHECK(GetSysFont);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetSysFont();
|
||||
|
@ -285,6 +333,9 @@ static PyObject *Fm_GetAppFont(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
short _rv;
|
||||
#ifndef GetAppFont
|
||||
PyMac_PRECHECK(GetAppFont);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetAppFont();
|
||||
|
@ -300,6 +351,9 @@ static PyObject *Fm_QDTextBounds(PyObject *_self, PyObject *_args)
|
|||
int inText__len__;
|
||||
int inText__in_len__;
|
||||
Rect bounds;
|
||||
#ifndef QDTextBounds
|
||||
PyMac_PRECHECK(QDTextBounds);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "s#",
|
||||
&inText__in__, &inText__in_len__))
|
||||
return NULL;
|
||||
|
|
|
@ -34,6 +34,9 @@ static PyObject *Icn_GetCIcon(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
CIconHandle _rv;
|
||||
SInt16 iconID;
|
||||
#ifndef GetCIcon
|
||||
PyMac_PRECHECK(GetCIcon);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&iconID))
|
||||
return NULL;
|
||||
|
@ -48,6 +51,9 @@ static PyObject *Icn_PlotCIcon(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Rect theRect;
|
||||
CIconHandle theIcon;
|
||||
#ifndef PlotCIcon
|
||||
PyMac_PRECHECK(PlotCIcon);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetRect, &theRect,
|
||||
ResObj_Convert, &theIcon))
|
||||
|
@ -63,6 +69,9 @@ static PyObject *Icn_DisposeCIcon(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
CIconHandle theIcon;
|
||||
#ifndef DisposeCIcon
|
||||
PyMac_PRECHECK(DisposeCIcon);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theIcon))
|
||||
return NULL;
|
||||
|
@ -77,6 +86,9 @@ static PyObject *Icn_GetIcon(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Handle _rv;
|
||||
SInt16 iconID;
|
||||
#ifndef GetIcon
|
||||
PyMac_PRECHECK(GetIcon);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&iconID))
|
||||
return NULL;
|
||||
|
@ -91,6 +103,9 @@ static PyObject *Icn_PlotIcon(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Rect theRect;
|
||||
Handle theIcon;
|
||||
#ifndef PlotIcon
|
||||
PyMac_PRECHECK(PlotIcon);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetRect, &theRect,
|
||||
ResObj_Convert, &theIcon))
|
||||
|
@ -110,6 +125,9 @@ static PyObject *Icn_PlotIconID(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconTransformType transform;
|
||||
SInt16 theResID;
|
||||
#ifndef PlotIconID
|
||||
PyMac_PRECHECK(PlotIconID);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hhh",
|
||||
PyMac_GetRect, &theRect,
|
||||
&align,
|
||||
|
@ -131,6 +149,9 @@ static PyObject *Icn_NewIconSuite(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
IconSuiteRef theIconSuite;
|
||||
#ifndef NewIconSuite
|
||||
PyMac_PRECHECK(NewIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = NewIconSuite(&theIconSuite);
|
||||
|
@ -147,6 +168,9 @@ static PyObject *Icn_AddIconToSuite(PyObject *_self, PyObject *_args)
|
|||
Handle theIconData;
|
||||
IconSuiteRef theSuite;
|
||||
ResType theType;
|
||||
#ifndef AddIconToSuite
|
||||
PyMac_PRECHECK(AddIconToSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&",
|
||||
ResObj_Convert, &theIconData,
|
||||
ResObj_Convert, &theSuite,
|
||||
|
@ -168,6 +192,9 @@ static PyObject *Icn_GetIconFromSuite(PyObject *_self, PyObject *_args)
|
|||
Handle theIconData;
|
||||
IconSuiteRef theSuite;
|
||||
ResType theType;
|
||||
#ifndef GetIconFromSuite
|
||||
PyMac_PRECHECK(GetIconFromSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
ResObj_Convert, &theSuite,
|
||||
PyMac_GetOSType, &theType))
|
||||
|
@ -188,6 +215,9 @@ static PyObject *Icn_GetIconSuite(PyObject *_self, PyObject *_args)
|
|||
IconSuiteRef theIconSuite;
|
||||
SInt16 theResID;
|
||||
IconSelectorValue selector;
|
||||
#ifndef GetIconSuite
|
||||
PyMac_PRECHECK(GetIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hl",
|
||||
&theResID,
|
||||
&selector))
|
||||
|
@ -207,6 +237,9 @@ static PyObject *Icn_DisposeIconSuite(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
IconSuiteRef theIconSuite;
|
||||
Boolean disposeData;
|
||||
#ifndef DisposeIconSuite
|
||||
PyMac_PRECHECK(DisposeIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&b",
|
||||
ResObj_Convert, &theIconSuite,
|
||||
&disposeData))
|
||||
|
@ -227,6 +260,9 @@ static PyObject *Icn_PlotIconSuite(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconTransformType transform;
|
||||
IconSuiteRef theIconSuite;
|
||||
#ifndef PlotIconSuite
|
||||
PyMac_PRECHECK(PlotIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hhO&",
|
||||
PyMac_GetRect, &theRect,
|
||||
&align,
|
||||
|
@ -251,6 +287,9 @@ static PyObject *Icn_LoadIconCache(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconTransformType transform;
|
||||
IconCacheRef theIconCache;
|
||||
#ifndef LoadIconCache
|
||||
PyMac_PRECHECK(LoadIconCache);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hhO&",
|
||||
PyMac_GetRect, &theRect,
|
||||
&align,
|
||||
|
@ -274,6 +313,9 @@ static PyObject *Icn_GetLabel(PyObject *_self, PyObject *_args)
|
|||
SInt16 labelNumber;
|
||||
RGBColor labelColor;
|
||||
Str255 labelString;
|
||||
#ifndef GetLabel
|
||||
PyMac_PRECHECK(GetLabel);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hO&",
|
||||
&labelNumber,
|
||||
PyMac_GetStr255, labelString))
|
||||
|
@ -295,6 +337,9 @@ static PyObject *Icn_PtInIconID(PyObject *_self, PyObject *_args)
|
|||
Rect iconRect;
|
||||
IconAlignmentType align;
|
||||
SInt16 iconID;
|
||||
#ifndef PtInIconID
|
||||
PyMac_PRECHECK(PtInIconID);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hh",
|
||||
PyMac_GetPoint, &testPt,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -318,6 +363,9 @@ static PyObject *Icn_PtInIconSuite(PyObject *_self, PyObject *_args)
|
|||
Rect iconRect;
|
||||
IconAlignmentType align;
|
||||
IconSuiteRef theIconSuite;
|
||||
#ifndef PtInIconSuite
|
||||
PyMac_PRECHECK(PtInIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hO&",
|
||||
PyMac_GetPoint, &testPt,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -341,6 +389,9 @@ static PyObject *Icn_RectInIconID(PyObject *_self, PyObject *_args)
|
|||
Rect iconRect;
|
||||
IconAlignmentType align;
|
||||
SInt16 iconID;
|
||||
#ifndef RectInIconID
|
||||
PyMac_PRECHECK(RectInIconID);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hh",
|
||||
PyMac_GetRect, &testRect,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -364,6 +415,9 @@ static PyObject *Icn_RectInIconSuite(PyObject *_self, PyObject *_args)
|
|||
Rect iconRect;
|
||||
IconAlignmentType align;
|
||||
IconSuiteRef theIconSuite;
|
||||
#ifndef RectInIconSuite
|
||||
PyMac_PRECHECK(RectInIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hO&",
|
||||
PyMac_GetRect, &testRect,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -387,6 +441,9 @@ static PyObject *Icn_IconIDToRgn(PyObject *_self, PyObject *_args)
|
|||
Rect iconRect;
|
||||
IconAlignmentType align;
|
||||
SInt16 iconID;
|
||||
#ifndef IconIDToRgn
|
||||
PyMac_PRECHECK(IconIDToRgn);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hh",
|
||||
ResObj_Convert, &theRgn,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -411,6 +468,9 @@ static PyObject *Icn_IconSuiteToRgn(PyObject *_self, PyObject *_args)
|
|||
Rect iconRect;
|
||||
IconAlignmentType align;
|
||||
IconSuiteRef theIconSuite;
|
||||
#ifndef IconSuiteToRgn
|
||||
PyMac_PRECHECK(IconSuiteToRgn);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hO&",
|
||||
ResObj_Convert, &theRgn,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -433,6 +493,9 @@ static PyObject *Icn_SetSuiteLabel(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
IconSuiteRef theSuite;
|
||||
SInt16 theLabel;
|
||||
#ifndef SetSuiteLabel
|
||||
PyMac_PRECHECK(SetSuiteLabel);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&h",
|
||||
ResObj_Convert, &theSuite,
|
||||
&theLabel))
|
||||
|
@ -450,6 +513,9 @@ static PyObject *Icn_GetSuiteLabel(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
SInt16 _rv;
|
||||
IconSuiteRef theSuite;
|
||||
#ifndef GetSuiteLabel
|
||||
PyMac_PRECHECK(GetSuiteLabel);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theSuite))
|
||||
return NULL;
|
||||
|
@ -467,6 +533,9 @@ static PyObject *Icn_PlotIconHandle(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconTransformType transform;
|
||||
Handle theIcon;
|
||||
#ifndef PlotIconHandle
|
||||
PyMac_PRECHECK(PlotIconHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hhO&",
|
||||
PyMac_GetRect, &theRect,
|
||||
&align,
|
||||
|
@ -491,6 +560,9 @@ static PyObject *Icn_PlotSICNHandle(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconTransformType transform;
|
||||
Handle theSICN;
|
||||
#ifndef PlotSICNHandle
|
||||
PyMac_PRECHECK(PlotSICNHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hhO&",
|
||||
PyMac_GetRect, &theRect,
|
||||
&align,
|
||||
|
@ -515,6 +587,9 @@ static PyObject *Icn_PlotCIconHandle(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconTransformType transform;
|
||||
CIconHandle theCIcon;
|
||||
#ifndef PlotCIconHandle
|
||||
PyMac_PRECHECK(PlotCIconHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hhO&",
|
||||
PyMac_GetRect, &theRect,
|
||||
&align,
|
||||
|
@ -536,6 +611,9 @@ static PyObject *Icn_PlotCIconHandle(PyObject *_self, PyObject *_args)
|
|||
static PyObject *Icn_IconServicesTerminate(PyObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef IconServicesTerminate
|
||||
PyMac_PRECHECK(IconServicesTerminate);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
IconServicesTerminate();
|
||||
|
@ -552,6 +630,9 @@ static PyObject *Icn_IconRefToIconFamily(PyObject *_self, PyObject *_args)
|
|||
IconRef theIconRef;
|
||||
IconSelectorValue whichIcons;
|
||||
IconFamilyHandle iconFamily;
|
||||
#ifndef IconRefToIconFamily
|
||||
PyMac_PRECHECK(IconRefToIconFamily);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
ResObj_Convert, &theIconRef,
|
||||
&whichIcons))
|
||||
|
@ -572,6 +653,9 @@ static PyObject *Icn_IconFamilyToIconSuite(PyObject *_self, PyObject *_args)
|
|||
IconFamilyHandle iconFamily;
|
||||
IconSelectorValue whichIcons;
|
||||
IconSuiteRef iconSuite;
|
||||
#ifndef IconFamilyToIconSuite
|
||||
PyMac_PRECHECK(IconFamilyToIconSuite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
ResObj_Convert, &iconFamily,
|
||||
&whichIcons))
|
||||
|
@ -592,6 +676,9 @@ static PyObject *Icn_IconSuiteToIconFamily(PyObject *_self, PyObject *_args)
|
|||
IconSuiteRef iconSuite;
|
||||
IconSelectorValue whichIcons;
|
||||
IconFamilyHandle iconFamily;
|
||||
#ifndef IconSuiteToIconFamily
|
||||
PyMac_PRECHECK(IconSuiteToIconFamily);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
ResObj_Convert, &iconSuite,
|
||||
&whichIcons))
|
||||
|
@ -612,6 +699,9 @@ static PyObject *Icn_SetIconFamilyData(PyObject *_self, PyObject *_args)
|
|||
IconFamilyHandle iconFamily;
|
||||
OSType iconType;
|
||||
Handle h;
|
||||
#ifndef SetIconFamilyData
|
||||
PyMac_PRECHECK(SetIconFamilyData);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&",
|
||||
ResObj_Convert, &iconFamily,
|
||||
PyMac_GetOSType, &iconType,
|
||||
|
@ -633,6 +723,9 @@ static PyObject *Icn_GetIconFamilyData(PyObject *_self, PyObject *_args)
|
|||
IconFamilyHandle iconFamily;
|
||||
OSType iconType;
|
||||
Handle h;
|
||||
#ifndef GetIconFamilyData
|
||||
PyMac_PRECHECK(GetIconFamilyData);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&",
|
||||
ResObj_Convert, &iconFamily,
|
||||
PyMac_GetOSType, &iconType,
|
||||
|
@ -653,6 +746,9 @@ static PyObject *Icn_GetIconRefOwners(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
IconRef theIconRef;
|
||||
UInt16 owners;
|
||||
#ifndef GetIconRefOwners
|
||||
PyMac_PRECHECK(GetIconRefOwners);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theIconRef))
|
||||
return NULL;
|
||||
|
@ -669,6 +765,9 @@ static PyObject *Icn_AcquireIconRef(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
IconRef theIconRef;
|
||||
#ifndef AcquireIconRef
|
||||
PyMac_PRECHECK(AcquireIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theIconRef))
|
||||
return NULL;
|
||||
|
@ -684,6 +783,9 @@ static PyObject *Icn_ReleaseIconRef(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
IconRef theIconRef;
|
||||
#ifndef ReleaseIconRef
|
||||
PyMac_PRECHECK(ReleaseIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theIconRef))
|
||||
return NULL;
|
||||
|
@ -701,6 +803,9 @@ static PyObject *Icn_GetIconRefFromFile(PyObject *_self, PyObject *_args)
|
|||
FSSpec theFile;
|
||||
IconRef theIconRef;
|
||||
SInt16 theLabel;
|
||||
#ifndef GetIconRefFromFile
|
||||
PyMac_PRECHECK(GetIconRefFromFile);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetFSSpec, &theFile))
|
||||
return NULL;
|
||||
|
@ -722,6 +827,9 @@ static PyObject *Icn_GetIconRef(PyObject *_self, PyObject *_args)
|
|||
OSType creator;
|
||||
OSType iconType;
|
||||
IconRef theIconRef;
|
||||
#ifndef GetIconRef
|
||||
PyMac_PRECHECK(GetIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hO&O&",
|
||||
&vRefNum,
|
||||
PyMac_GetOSType, &creator,
|
||||
|
@ -747,6 +855,9 @@ static PyObject *Icn_GetIconRefFromFolder(PyObject *_self, PyObject *_args)
|
|||
SInt8 attributes;
|
||||
SInt8 accessPrivileges;
|
||||
IconRef theIconRef;
|
||||
#ifndef GetIconRefFromFolder
|
||||
PyMac_PRECHECK(GetIconRefFromFolder);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hllbb",
|
||||
&vRefNum,
|
||||
&parentFolderID,
|
||||
|
@ -774,6 +885,9 @@ static PyObject *Icn_RegisterIconRefFromIconFamily(PyObject *_self, PyObject *_a
|
|||
OSType iconType;
|
||||
IconFamilyHandle iconFamily;
|
||||
IconRef theIconRef;
|
||||
#ifndef RegisterIconRefFromIconFamily
|
||||
PyMac_PRECHECK(RegisterIconRefFromIconFamily);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&",
|
||||
PyMac_GetOSType, &creator,
|
||||
PyMac_GetOSType, &iconType,
|
||||
|
@ -798,6 +912,9 @@ static PyObject *Icn_RegisterIconRefFromResource(PyObject *_self, PyObject *_arg
|
|||
FSSpec resourceFile;
|
||||
SInt16 resourceID;
|
||||
IconRef theIconRef;
|
||||
#ifndef RegisterIconRefFromResource
|
||||
PyMac_PRECHECK(RegisterIconRefFromResource);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&h",
|
||||
PyMac_GetOSType, &creator,
|
||||
PyMac_GetOSType, &iconType,
|
||||
|
@ -821,6 +938,9 @@ static PyObject *Icn_UnregisterIconRef(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
OSType creator;
|
||||
OSType iconType;
|
||||
#ifndef UnregisterIconRef
|
||||
PyMac_PRECHECK(UnregisterIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &creator,
|
||||
PyMac_GetOSType, &iconType))
|
||||
|
@ -838,6 +958,9 @@ static PyObject *Icn_UpdateIconRef(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
IconRef theIconRef;
|
||||
#ifndef UpdateIconRef
|
||||
PyMac_PRECHECK(UpdateIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theIconRef))
|
||||
return NULL;
|
||||
|
@ -855,6 +978,9 @@ static PyObject *Icn_OverrideIconRefFromResource(PyObject *_self, PyObject *_arg
|
|||
IconRef theIconRef;
|
||||
FSSpec resourceFile;
|
||||
SInt16 resourceID;
|
||||
#ifndef OverrideIconRefFromResource
|
||||
PyMac_PRECHECK(OverrideIconRefFromResource);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&h",
|
||||
ResObj_Convert, &theIconRef,
|
||||
PyMac_GetFSSpec, &resourceFile,
|
||||
|
@ -875,6 +1001,9 @@ static PyObject *Icn_OverrideIconRef(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
IconRef oldIconRef;
|
||||
IconRef newIconRef;
|
||||
#ifndef OverrideIconRef
|
||||
PyMac_PRECHECK(OverrideIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
ResObj_Convert, &oldIconRef,
|
||||
ResObj_Convert, &newIconRef))
|
||||
|
@ -892,6 +1021,9 @@ static PyObject *Icn_RemoveIconRefOverride(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
IconRef theIconRef;
|
||||
#ifndef RemoveIconRefOverride
|
||||
PyMac_PRECHECK(RemoveIconRefOverride);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theIconRef))
|
||||
return NULL;
|
||||
|
@ -909,6 +1041,9 @@ static PyObject *Icn_CompositeIconRef(PyObject *_self, PyObject *_args)
|
|||
IconRef backgroundIconRef;
|
||||
IconRef foregroundIconRef;
|
||||
IconRef compositeIconRef;
|
||||
#ifndef CompositeIconRef
|
||||
PyMac_PRECHECK(CompositeIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
ResObj_Convert, &backgroundIconRef,
|
||||
ResObj_Convert, &foregroundIconRef))
|
||||
|
@ -929,6 +1064,9 @@ static PyObject *Icn_IsIconRefComposite(PyObject *_self, PyObject *_args)
|
|||
IconRef compositeIconRef;
|
||||
IconRef backgroundIconRef;
|
||||
IconRef foregroundIconRef;
|
||||
#ifndef IsIconRefComposite
|
||||
PyMac_PRECHECK(IsIconRefComposite);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &compositeIconRef))
|
||||
return NULL;
|
||||
|
@ -947,6 +1085,9 @@ static PyObject *Icn_IsValidIconRef(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
IconRef theIconRef;
|
||||
#ifndef IsValidIconRef
|
||||
PyMac_PRECHECK(IsValidIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theIconRef))
|
||||
return NULL;
|
||||
|
@ -965,6 +1106,9 @@ static PyObject *Icn_PlotIconRef(PyObject *_self, PyObject *_args)
|
|||
IconTransformType transform;
|
||||
IconServicesUsageFlags theIconServicesUsageFlags;
|
||||
IconRef theIconRef;
|
||||
#ifndef PlotIconRef
|
||||
PyMac_PRECHECK(PlotIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&hhlO&",
|
||||
PyMac_GetRect, &theRect,
|
||||
&align,
|
||||
|
@ -992,6 +1136,9 @@ static PyObject *Icn_PtInIconRef(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconServicesUsageFlags theIconServicesUsageFlags;
|
||||
IconRef theIconRef;
|
||||
#ifndef PtInIconRef
|
||||
PyMac_PRECHECK(PtInIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hlO&",
|
||||
PyMac_GetPoint, &testPt,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -1018,6 +1165,9 @@ static PyObject *Icn_RectInIconRef(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconServicesUsageFlags iconServicesUsageFlags;
|
||||
IconRef theIconRef;
|
||||
#ifndef RectInIconRef
|
||||
PyMac_PRECHECK(RectInIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hlO&",
|
||||
PyMac_GetRect, &testRect,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -1044,6 +1194,9 @@ static PyObject *Icn_IconRefToRgn(PyObject *_self, PyObject *_args)
|
|||
IconAlignmentType align;
|
||||
IconServicesUsageFlags iconServicesUsageFlags;
|
||||
IconRef theIconRef;
|
||||
#ifndef IconRefToRgn
|
||||
PyMac_PRECHECK(IconRefToRgn);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&hlO&",
|
||||
ResObj_Convert, &theRgn,
|
||||
PyMac_GetRect, &iconRect,
|
||||
|
@ -1070,6 +1223,9 @@ static PyObject *Icn_GetIconSizesFromIconRef(PyObject *_self, PyObject *_args)
|
|||
IconSelectorValue iconSelectorOutputPtr;
|
||||
IconServicesUsageFlags iconServicesUsageFlags;
|
||||
IconRef theIconRef;
|
||||
#ifndef GetIconSizesFromIconRef
|
||||
PyMac_PRECHECK(GetIconSizesFromIconRef);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "llO&",
|
||||
&iconSelectorInput,
|
||||
&iconServicesUsageFlags,
|
||||
|
@ -1091,6 +1247,9 @@ static PyObject *Icn_FlushIconRefs(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
OSType creator;
|
||||
OSType iconType;
|
||||
#ifndef FlushIconRefs
|
||||
PyMac_PRECHECK(FlushIconRefs);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetOSType, &creator,
|
||||
PyMac_GetOSType, &iconType))
|
||||
|
@ -1108,6 +1267,9 @@ static PyObject *Icn_FlushIconRefsByVolume(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
SInt16 vRefNum;
|
||||
#ifndef FlushIconRefsByVolume
|
||||
PyMac_PRECHECK(FlushIconRefsByVolume);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&vRefNum))
|
||||
return NULL;
|
||||
|
@ -1124,6 +1286,9 @@ static PyObject *Icn_SetCustomIconsEnabled(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
SInt16 vRefNum;
|
||||
Boolean enableCustomIcons;
|
||||
#ifndef SetCustomIconsEnabled
|
||||
PyMac_PRECHECK(SetCustomIconsEnabled);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hb",
|
||||
&vRefNum,
|
||||
&enableCustomIcons))
|
||||
|
@ -1142,6 +1307,9 @@ static PyObject *Icn_GetCustomIconsEnabled(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
SInt16 vRefNum;
|
||||
Boolean customIconsEnabled;
|
||||
#ifndef GetCustomIconsEnabled
|
||||
PyMac_PRECHECK(GetCustomIconsEnabled);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&vRefNum))
|
||||
return NULL;
|
||||
|
@ -1158,6 +1326,9 @@ static PyObject *Icn_IsIconRefMaskEmpty(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
IconRef iconRef;
|
||||
#ifndef IsIconRefMaskEmpty
|
||||
PyMac_PRECHECK(IsIconRefMaskEmpty);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &iconRef))
|
||||
return NULL;
|
||||
|
@ -1176,6 +1347,9 @@ static PyObject *Icn_GetIconRefVariant(PyObject *_self, PyObject *_args)
|
|||
IconRef inIconRef;
|
||||
OSType inVariant;
|
||||
IconTransformType outTransform;
|
||||
#ifndef GetIconRefVariant
|
||||
PyMac_PRECHECK(GetIconRefVariant);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
ResObj_Convert, &inIconRef,
|
||||
PyMac_GetOSType, &inVariant))
|
||||
|
@ -1200,6 +1374,9 @@ static PyObject *Icn_RegisterIconRefFromIconFile(PyObject *_self, PyObject *_arg
|
|||
OSType iconType;
|
||||
FSSpec iconFile;
|
||||
IconRef theIconRef;
|
||||
#ifndef RegisterIconRefFromIconFile
|
||||
PyMac_PRECHECK(RegisterIconRefFromIconFile);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&O&",
|
||||
PyMac_GetOSType, &creator,
|
||||
PyMac_GetOSType, &iconType,
|
||||
|
@ -1224,6 +1401,9 @@ static PyObject *Icn_ReadIconFile(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
FSSpec iconFile;
|
||||
IconFamilyHandle iconFamily;
|
||||
#ifndef ReadIconFile
|
||||
PyMac_PRECHECK(ReadIconFile);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetFSSpec, &iconFile))
|
||||
return NULL;
|
||||
|
@ -1244,6 +1424,9 @@ static PyObject *Icn_WriteIconFile(PyObject *_self, PyObject *_args)
|
|||
OSErr _err;
|
||||
IconFamilyHandle iconFamily;
|
||||
FSSpec iconFile;
|
||||
#ifndef WriteIconFile
|
||||
PyMac_PRECHECK(WriteIconFile);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
ResObj_Convert, &iconFamily,
|
||||
PyMac_GetFSSpec, &iconFile))
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -80,6 +80,9 @@ static PyObject *GWorldObj_GetGWorldDevice(GWorldObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
GDHandle _rv;
|
||||
#ifndef GetGWorldDevice
|
||||
PyMac_PRECHECK(GetGWorldDevice);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetGWorldDevice(_self->ob_itself);
|
||||
|
@ -92,6 +95,9 @@ static PyObject *GWorldObj_GetGWorldPixMap(GWorldObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
PixMapHandle _rv;
|
||||
#ifndef GetGWorldPixMap
|
||||
PyMac_PRECHECK(GetGWorldPixMap);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = GetGWorldPixMap(_self->ob_itself);
|
||||
|
@ -104,6 +110,9 @@ static PyObject *GWorldObj_as_GrafPtr(GWorldObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
GrafPtr _rv;
|
||||
#ifndef as_GrafPtr
|
||||
PyMac_PRECHECK(as_GrafPtr);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = as_GrafPtr(_self->ob_itself);
|
||||
|
@ -169,6 +178,9 @@ static PyObject *Qdoffs_NewGWorld(PyObject *_self, PyObject *_args)
|
|||
CTabHandle cTable;
|
||||
GDHandle aGDevice;
|
||||
GWorldFlags flags;
|
||||
#ifndef NewGWorld
|
||||
PyMac_PRECHECK(NewGWorld);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hO&O&O&l",
|
||||
&PixelDepth,
|
||||
PyMac_GetRect, &boundsRect,
|
||||
|
@ -193,6 +205,9 @@ static PyObject *Qdoffs_LockPixels(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
PixMapHandle pm;
|
||||
#ifndef LockPixels
|
||||
PyMac_PRECHECK(LockPixels);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &pm))
|
||||
return NULL;
|
||||
|
@ -206,6 +221,9 @@ static PyObject *Qdoffs_UnlockPixels(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
PixMapHandle pm;
|
||||
#ifndef UnlockPixels
|
||||
PyMac_PRECHECK(UnlockPixels);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &pm))
|
||||
return NULL;
|
||||
|
@ -225,6 +243,9 @@ static PyObject *Qdoffs_UpdateGWorld(PyObject *_self, PyObject *_args)
|
|||
CTabHandle cTable;
|
||||
GDHandle aGDevice;
|
||||
GWorldFlags flags;
|
||||
#ifndef UpdateGWorld
|
||||
PyMac_PRECHECK(UpdateGWorld);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hO&O&O&l",
|
||||
&pixelDepth,
|
||||
PyMac_GetRect, &boundsRect,
|
||||
|
@ -249,6 +270,9 @@ static PyObject *Qdoffs_GetGWorld(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
CGrafPtr port;
|
||||
GDHandle gdh;
|
||||
#ifndef GetGWorld
|
||||
PyMac_PRECHECK(GetGWorld);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
GetGWorld(&port,
|
||||
|
@ -264,6 +288,9 @@ static PyObject *Qdoffs_SetGWorld(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
CGrafPtr port;
|
||||
GDHandle gdh;
|
||||
#ifndef SetGWorld
|
||||
PyMac_PRECHECK(SetGWorld);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
GrafObj_Convert, &port,
|
||||
OptResObj_Convert, &gdh))
|
||||
|
@ -279,6 +306,9 @@ static PyObject *Qdoffs_CTabChanged(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
CTabHandle ctab;
|
||||
#ifndef CTabChanged
|
||||
PyMac_PRECHECK(CTabChanged);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
OptResObj_Convert, &ctab))
|
||||
return NULL;
|
||||
|
@ -292,6 +322,9 @@ static PyObject *Qdoffs_PixPatChanged(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
PixPatHandle ppat;
|
||||
#ifndef PixPatChanged
|
||||
PyMac_PRECHECK(PixPatChanged);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &ppat))
|
||||
return NULL;
|
||||
|
@ -305,6 +338,9 @@ static PyObject *Qdoffs_PortChanged(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
GrafPtr port;
|
||||
#ifndef PortChanged
|
||||
PyMac_PRECHECK(PortChanged);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
GrafObj_Convert, &port))
|
||||
return NULL;
|
||||
|
@ -318,6 +354,9 @@ static PyObject *Qdoffs_GDeviceChanged(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
GDHandle gdh;
|
||||
#ifndef GDeviceChanged
|
||||
PyMac_PRECHECK(GDeviceChanged);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
OptResObj_Convert, &gdh))
|
||||
return NULL;
|
||||
|
@ -331,6 +370,9 @@ static PyObject *Qdoffs_AllowPurgePixels(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
PixMapHandle pm;
|
||||
#ifndef AllowPurgePixels
|
||||
PyMac_PRECHECK(AllowPurgePixels);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &pm))
|
||||
return NULL;
|
||||
|
@ -344,6 +386,9 @@ static PyObject *Qdoffs_NoPurgePixels(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
PixMapHandle pm;
|
||||
#ifndef NoPurgePixels
|
||||
PyMac_PRECHECK(NoPurgePixels);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &pm))
|
||||
return NULL;
|
||||
|
@ -358,6 +403,9 @@ static PyObject *Qdoffs_GetPixelsState(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
GWorldFlags _rv;
|
||||
PixMapHandle pm;
|
||||
#ifndef GetPixelsState
|
||||
PyMac_PRECHECK(GetPixelsState);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &pm))
|
||||
return NULL;
|
||||
|
@ -372,6 +420,9 @@ static PyObject *Qdoffs_SetPixelsState(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
PixMapHandle pm;
|
||||
GWorldFlags state;
|
||||
#ifndef SetPixelsState
|
||||
PyMac_PRECHECK(SetPixelsState);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&l",
|
||||
ResObj_Convert, &pm,
|
||||
&state))
|
||||
|
@ -388,6 +439,9 @@ static PyObject *Qdoffs_GetPixRowBytes(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
PixMapHandle pm;
|
||||
#ifndef GetPixRowBytes
|
||||
PyMac_PRECHECK(GetPixRowBytes);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &pm))
|
||||
return NULL;
|
||||
|
@ -405,6 +459,9 @@ static PyObject *Qdoffs_NewScreenBuffer(PyObject *_self, PyObject *_args)
|
|||
Boolean purgeable;
|
||||
GDHandle gdh;
|
||||
PixMapHandle offscreenPixMap;
|
||||
#ifndef NewScreenBuffer
|
||||
PyMac_PRECHECK(NewScreenBuffer);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&b",
|
||||
PyMac_GetRect, &globalRect,
|
||||
&purgeable))
|
||||
|
@ -424,6 +481,9 @@ static PyObject *Qdoffs_DisposeScreenBuffer(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
PixMapHandle offscreenPixMap;
|
||||
#ifndef DisposeScreenBuffer
|
||||
PyMac_PRECHECK(DisposeScreenBuffer);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &offscreenPixMap))
|
||||
return NULL;
|
||||
|
@ -438,6 +498,9 @@ static PyObject *Qdoffs_QDDone(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
GrafPtr port;
|
||||
#ifndef QDDone
|
||||
PyMac_PRECHECK(QDDone);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
GrafObj_Convert, &port))
|
||||
return NULL;
|
||||
|
@ -451,6 +514,9 @@ static PyObject *Qdoffs_OffscreenVersion(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
#ifndef OffscreenVersion
|
||||
PyMac_PRECHECK(OffscreenVersion);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = OffscreenVersion();
|
||||
|
@ -467,6 +533,9 @@ static PyObject *Qdoffs_NewTempScreenBuffer(PyObject *_self, PyObject *_args)
|
|||
Boolean purgeable;
|
||||
GDHandle gdh;
|
||||
PixMapHandle offscreenPixMap;
|
||||
#ifndef NewTempScreenBuffer
|
||||
PyMac_PRECHECK(NewTempScreenBuffer);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&b",
|
||||
PyMac_GetRect, &globalRect,
|
||||
&purgeable))
|
||||
|
@ -487,6 +556,9 @@ static PyObject *Qdoffs_PixMap32Bit(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Boolean _rv;
|
||||
PixMapHandle pmHandle;
|
||||
#ifndef PixMap32Bit
|
||||
PyMac_PRECHECK(PixMap32Bit);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &pmHandle))
|
||||
return NULL;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -109,6 +109,9 @@ static PyObject *TEObj_TESetText(TEObject *_self, PyObject *_args)
|
|||
char *text__in__;
|
||||
long text__len__;
|
||||
int text__in_len__;
|
||||
#ifndef TESetText
|
||||
PyMac_PRECHECK(TESetText);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "s#",
|
||||
&text__in__, &text__in_len__))
|
||||
return NULL;
|
||||
|
@ -124,6 +127,9 @@ static PyObject *TEObj_TEGetText(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
CharsHandle _rv;
|
||||
#ifndef TEGetText
|
||||
PyMac_PRECHECK(TEGetText);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = TEGetText(_self->ob_itself);
|
||||
|
@ -135,6 +141,9 @@ static PyObject *TEObj_TEGetText(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TEIdle(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TEIdle
|
||||
PyMac_PRECHECK(TEIdle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TEIdle(_self->ob_itself);
|
||||
|
@ -148,6 +157,9 @@ static PyObject *TEObj_TESetSelect(TEObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
long selStart;
|
||||
long selEnd;
|
||||
#ifndef TESetSelect
|
||||
PyMac_PRECHECK(TESetSelect);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "ll",
|
||||
&selStart,
|
||||
&selEnd))
|
||||
|
@ -163,6 +175,9 @@ static PyObject *TEObj_TESetSelect(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TEActivate(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TEActivate
|
||||
PyMac_PRECHECK(TEActivate);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TEActivate(_self->ob_itself);
|
||||
|
@ -174,6 +189,9 @@ static PyObject *TEObj_TEActivate(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TEDeactivate(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TEDeactivate
|
||||
PyMac_PRECHECK(TEDeactivate);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TEDeactivate(_self->ob_itself);
|
||||
|
@ -186,6 +204,9 @@ static PyObject *TEObj_TEKey(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
CharParameter key;
|
||||
#ifndef TEKey
|
||||
PyMac_PRECHECK(TEKey);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&key))
|
||||
return NULL;
|
||||
|
@ -199,6 +220,9 @@ static PyObject *TEObj_TEKey(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TECut(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TECut
|
||||
PyMac_PRECHECK(TECut);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TECut(_self->ob_itself);
|
||||
|
@ -210,6 +234,9 @@ static PyObject *TEObj_TECut(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TECopy(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TECopy
|
||||
PyMac_PRECHECK(TECopy);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TECopy(_self->ob_itself);
|
||||
|
@ -221,6 +248,9 @@ static PyObject *TEObj_TECopy(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TEPaste(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TEPaste
|
||||
PyMac_PRECHECK(TEPaste);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TEPaste(_self->ob_itself);
|
||||
|
@ -232,6 +262,9 @@ static PyObject *TEObj_TEPaste(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TEDelete(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TEDelete
|
||||
PyMac_PRECHECK(TEDelete);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TEDelete(_self->ob_itself);
|
||||
|
@ -246,6 +279,9 @@ static PyObject *TEObj_TEInsert(TEObject *_self, PyObject *_args)
|
|||
char *text__in__;
|
||||
long text__len__;
|
||||
int text__in_len__;
|
||||
#ifndef TEInsert
|
||||
PyMac_PRECHECK(TEInsert);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "s#",
|
||||
&text__in__, &text__in_len__))
|
||||
return NULL;
|
||||
|
@ -261,6 +297,9 @@ static PyObject *TEObj_TESetAlignment(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
short just;
|
||||
#ifndef TESetAlignment
|
||||
PyMac_PRECHECK(TESetAlignment);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&just))
|
||||
return NULL;
|
||||
|
@ -275,6 +314,9 @@ static PyObject *TEObj_TEUpdate(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Rect rUpdate;
|
||||
#ifndef TEUpdate
|
||||
PyMac_PRECHECK(TEUpdate);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetRect, &rUpdate))
|
||||
return NULL;
|
||||
|
@ -290,6 +332,9 @@ static PyObject *TEObj_TEScroll(TEObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
short dh;
|
||||
short dv;
|
||||
#ifndef TEScroll
|
||||
PyMac_PRECHECK(TEScroll);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hh",
|
||||
&dh,
|
||||
&dv))
|
||||
|
@ -305,6 +350,9 @@ static PyObject *TEObj_TEScroll(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TESelView(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TESelView
|
||||
PyMac_PRECHECK(TESelView);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TESelView(_self->ob_itself);
|
||||
|
@ -318,6 +366,9 @@ static PyObject *TEObj_TEPinScroll(TEObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
short dh;
|
||||
short dv;
|
||||
#ifndef TEPinScroll
|
||||
PyMac_PRECHECK(TEPinScroll);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hh",
|
||||
&dh,
|
||||
&dv))
|
||||
|
@ -334,6 +385,9 @@ static PyObject *TEObj_TEAutoView(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Boolean fAuto;
|
||||
#ifndef TEAutoView
|
||||
PyMac_PRECHECK(TEAutoView);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&fAuto))
|
||||
return NULL;
|
||||
|
@ -347,6 +401,9 @@ static PyObject *TEObj_TEAutoView(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TECalText(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TECalText
|
||||
PyMac_PRECHECK(TECalText);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TECalText(_self->ob_itself);
|
||||
|
@ -360,6 +417,9 @@ static PyObject *TEObj_TEGetOffset(TEObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
short _rv;
|
||||
Point pt;
|
||||
#ifndef TEGetOffset
|
||||
PyMac_PRECHECK(TEGetOffset);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
PyMac_GetPoint, &pt))
|
||||
return NULL;
|
||||
|
@ -375,6 +435,9 @@ static PyObject *TEObj_TEGetPoint(TEObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Point _rv;
|
||||
short offset;
|
||||
#ifndef TEGetPoint
|
||||
PyMac_PRECHECK(TEGetPoint);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&offset))
|
||||
return NULL;
|
||||
|
@ -390,6 +453,9 @@ static PyObject *TEObj_TEClick(TEObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
Point pt;
|
||||
Boolean fExtend;
|
||||
#ifndef TEClick
|
||||
PyMac_PRECHECK(TEClick);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&b",
|
||||
PyMac_GetPoint, &pt,
|
||||
&fExtend))
|
||||
|
@ -406,6 +472,9 @@ static PyObject *TEObj_TESetStyleHandle(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
TEStyleHandle theHandle;
|
||||
#ifndef TESetStyleHandle
|
||||
PyMac_PRECHECK(TESetStyleHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &theHandle))
|
||||
return NULL;
|
||||
|
@ -420,6 +489,9 @@ static PyObject *TEObj_TEGetStyleHandle(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
TEStyleHandle _rv;
|
||||
#ifndef TEGetStyleHandle
|
||||
PyMac_PRECHECK(TEGetStyleHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = TEGetStyleHandle(_self->ob_itself);
|
||||
|
@ -435,6 +507,9 @@ static PyObject *TEObj_TEGetStyle(TEObject *_self, PyObject *_args)
|
|||
TextStyle theStyle;
|
||||
short lineHeight;
|
||||
short fontAscent;
|
||||
#ifndef TEGetStyle
|
||||
PyMac_PRECHECK(TEGetStyle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "h",
|
||||
&offset))
|
||||
return NULL;
|
||||
|
@ -453,6 +528,9 @@ static PyObject *TEObj_TEGetStyle(TEObject *_self, PyObject *_args)
|
|||
static PyObject *TEObj_TEStylePaste(TEObject *_self, PyObject *_args)
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
#ifndef TEStylePaste
|
||||
PyMac_PRECHECK(TEStylePaste);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
TEStylePaste(_self->ob_itself);
|
||||
|
@ -467,6 +545,9 @@ static PyObject *TEObj_TESetStyle(TEObject *_self, PyObject *_args)
|
|||
short mode;
|
||||
TextStyle newStyle;
|
||||
Boolean fRedraw;
|
||||
#ifndef TESetStyle
|
||||
PyMac_PRECHECK(TESetStyle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hO&b",
|
||||
&mode,
|
||||
TextStyle_Convert, &newStyle,
|
||||
|
@ -488,6 +569,9 @@ static PyObject *TEObj_TEReplaceStyle(TEObject *_self, PyObject *_args)
|
|||
TextStyle oldStyle;
|
||||
TextStyle newStyle;
|
||||
Boolean fRedraw;
|
||||
#ifndef TEReplaceStyle
|
||||
PyMac_PRECHECK(TEReplaceStyle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hO&O&b",
|
||||
&mode,
|
||||
TextStyle_Convert, &oldStyle,
|
||||
|
@ -508,6 +592,9 @@ static PyObject *TEObj_TEGetStyleScrapHandle(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
StScrpHandle _rv;
|
||||
#ifndef TEGetStyleScrapHandle
|
||||
PyMac_PRECHECK(TEGetStyleScrapHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = TEGetStyleScrapHandle(_self->ob_itself);
|
||||
|
@ -523,6 +610,9 @@ static PyObject *TEObj_TEStyleInsert(TEObject *_self, PyObject *_args)
|
|||
long text__len__;
|
||||
int text__in_len__;
|
||||
StScrpHandle hST;
|
||||
#ifndef TEStyleInsert
|
||||
PyMac_PRECHECK(TEStyleInsert);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "s#O&",
|
||||
&text__in__, &text__in_len__,
|
||||
ResObj_Convert, &hST))
|
||||
|
@ -542,6 +632,9 @@ static PyObject *TEObj_TEGetHeight(TEObject *_self, PyObject *_args)
|
|||
long _rv;
|
||||
long endLine;
|
||||
long startLine;
|
||||
#ifndef TEGetHeight
|
||||
PyMac_PRECHECK(TEGetHeight);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "ll",
|
||||
&endLine,
|
||||
&startLine))
|
||||
|
@ -560,6 +653,9 @@ static PyObject *TEObj_TEContinuousStyle(TEObject *_self, PyObject *_args)
|
|||
Boolean _rv;
|
||||
short mode;
|
||||
TextStyle aStyle;
|
||||
#ifndef TEContinuousStyle
|
||||
PyMac_PRECHECK(TEContinuousStyle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hO&",
|
||||
&mode,
|
||||
TextStyle_Convert, &aStyle))
|
||||
|
@ -581,6 +677,9 @@ static PyObject *TEObj_TEUseStyleScrap(TEObject *_self, PyObject *_args)
|
|||
long rangeEnd;
|
||||
StScrpHandle newStyles;
|
||||
Boolean fRedraw;
|
||||
#ifndef TEUseStyleScrap
|
||||
PyMac_PRECHECK(TEUseStyleScrap);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "llO&b",
|
||||
&rangeStart,
|
||||
&rangeEnd,
|
||||
|
@ -603,6 +702,9 @@ static PyObject *TEObj_TENumStyles(TEObject *_self, PyObject *_args)
|
|||
long _rv;
|
||||
long rangeStart;
|
||||
long rangeEnd;
|
||||
#ifndef TENumStyles
|
||||
PyMac_PRECHECK(TENumStyles);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "ll",
|
||||
&rangeStart,
|
||||
&rangeEnd))
|
||||
|
@ -621,6 +723,9 @@ static PyObject *TEObj_TEFeatureFlag(TEObject *_self, PyObject *_args)
|
|||
short _rv;
|
||||
short feature;
|
||||
short action;
|
||||
#ifndef TEFeatureFlag
|
||||
PyMac_PRECHECK(TEFeatureFlag);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "hh",
|
||||
&feature,
|
||||
&action))
|
||||
|
@ -638,6 +743,9 @@ static PyObject *TEObj_TEGetHiliteRgn(TEObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
RgnHandle region;
|
||||
#ifndef TEGetHiliteRgn
|
||||
PyMac_PRECHECK(TEGetHiliteRgn);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, ®ion))
|
||||
return NULL;
|
||||
|
@ -653,6 +761,9 @@ static PyObject *TEObj_as_Resource(TEObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Handle _rv;
|
||||
#ifndef as_Resource
|
||||
PyMac_PRECHECK(as_Resource);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = as_Resource(_self->ob_itself);
|
||||
|
@ -818,6 +929,9 @@ static PyObject *TE_TEScrapHandle(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Handle _rv;
|
||||
#ifndef TEScrapHandle
|
||||
PyMac_PRECHECK(TEScrapHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = TEScrapHandle();
|
||||
|
@ -830,6 +944,9 @@ static PyObject *TE_TEGetScrapLength(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long _rv;
|
||||
#ifndef TEGetScrapLength
|
||||
PyMac_PRECHECK(TEGetScrapLength);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = TEGetScrapLength();
|
||||
|
@ -844,6 +961,9 @@ static PyObject *TE_TENew(PyObject *_self, PyObject *_args)
|
|||
TEHandle _rv;
|
||||
Rect destRect;
|
||||
Rect viewRect;
|
||||
#ifndef TENew
|
||||
PyMac_PRECHECK(TENew);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetRect, &destRect,
|
||||
PyMac_GetRect, &viewRect))
|
||||
|
@ -863,6 +983,9 @@ static PyObject *TE_TETextBox(PyObject *_self, PyObject *_args)
|
|||
int text__in_len__;
|
||||
Rect box;
|
||||
short just;
|
||||
#ifndef TETextBox
|
||||
PyMac_PRECHECK(TETextBox);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "s#O&h",
|
||||
&text__in__, &text__in_len__,
|
||||
PyMac_GetRect, &box,
|
||||
|
@ -883,6 +1006,9 @@ static PyObject *TE_TEStyleNew(PyObject *_self, PyObject *_args)
|
|||
TEHandle _rv;
|
||||
Rect destRect;
|
||||
Rect viewRect;
|
||||
#ifndef TEStyleNew
|
||||
PyMac_PRECHECK(TEStyleNew);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&O&",
|
||||
PyMac_GetRect, &destRect,
|
||||
PyMac_GetRect, &viewRect))
|
||||
|
@ -898,6 +1024,9 @@ static PyObject *TE_TESetScrapLength(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
long length;
|
||||
#ifndef TESetScrapLength
|
||||
PyMac_PRECHECK(TESetScrapLength);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "l",
|
||||
&length))
|
||||
return NULL;
|
||||
|
@ -911,6 +1040,9 @@ static PyObject *TE_TEFromScrap(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef TEFromScrap
|
||||
PyMac_PRECHECK(TEFromScrap);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = TEFromScrap();
|
||||
|
@ -924,6 +1056,9 @@ static PyObject *TE_TEToScrap(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
OSErr _err;
|
||||
#ifndef TEToScrap
|
||||
PyMac_PRECHECK(TEToScrap);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_err = TEToScrap();
|
||||
|
@ -939,6 +1074,9 @@ static PyObject *TE_TEGetScrapHandle(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Handle _rv;
|
||||
#ifndef TEGetScrapHandle
|
||||
PyMac_PRECHECK(TEGetScrapHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = TEGetScrapHandle();
|
||||
|
@ -954,6 +1092,9 @@ static PyObject *TE_TESetScrapHandle(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
Handle value;
|
||||
#ifndef TESetScrapHandle
|
||||
PyMac_PRECHECK(TESetScrapHandle);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &value))
|
||||
return NULL;
|
||||
|
@ -968,6 +1109,9 @@ static PyObject *TE_LMGetWordRedraw(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt8 _rv;
|
||||
#ifndef LMGetWordRedraw
|
||||
PyMac_PRECHECK(LMGetWordRedraw);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
_rv = LMGetWordRedraw();
|
||||
|
@ -980,6 +1124,9 @@ static PyObject *TE_LMSetWordRedraw(PyObject *_self, PyObject *_args)
|
|||
{
|
||||
PyObject *_res = NULL;
|
||||
UInt8 value;
|
||||
#ifndef LMSetWordRedraw
|
||||
PyMac_PRECHECK(LMSetWordRedraw);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "b",
|
||||
&value))
|
||||
return NULL;
|
||||
|
@ -994,6 +1141,9 @@ static PyObject *TE_as_TE(PyObject *_self, PyObject *_args)
|
|||
PyObject *_res = NULL;
|
||||
TEHandle _rv;
|
||||
Handle h;
|
||||
#ifndef as_TE
|
||||
PyMac_PRECHECK(as_TE);
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
ResObj_Convert, &h))
|
||||
return NULL;
|
||||
|
|
|
@ -48,6 +48,8 @@ class MyScanner(Scanner):
|
|||
|
||||
def writeinitialdefs(self):
|
||||
self.defsfile.write("kPascalStackBased = None # workaround for header parsing\n")
|
||||
self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
|
||||
|
||||
def makeblacklistnames(self):
|
||||
return [
|
||||
"WEDispose",
|
||||
|
@ -56,6 +58,22 @@ class MyScanner(Scanner):
|
|||
"WEVersion", # Unfortunately...
|
||||
"WEPut", # XXXX TBD: needs array of flavortypes.
|
||||
"WEGetOneAttribute", # XXXX TBD: output buffer
|
||||
# Incompatible constant definitions
|
||||
"weDoAutoScroll",
|
||||
"weDoOutlineHilite",
|
||||
"weDoReadOnly",
|
||||
"weDoUndo",
|
||||
"weDoIntCutAndPaste",
|
||||
"weDoDragAndDrop",
|
||||
"weDoInhibitRecal",
|
||||
"weDoUseTempMem",
|
||||
"weDoDrawOffscreen",
|
||||
"weDoInhibitRedraw",
|
||||
"weDoMonoStyled",
|
||||
"weDoMultipleUndo",
|
||||
"weDoNoKeyboardSync",
|
||||
"weDoInhibitICSupport",
|
||||
"weDoInhibitColor",
|
||||
]
|
||||
|
||||
def makeblacklisttypes(self):
|
||||
|
|
|
@ -32,6 +32,8 @@ class MyScanner(Scanner):
|
|||
|
||||
def writeinitialdefs(self):
|
||||
self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
|
||||
self.defsfile.write("false = 0\n")
|
||||
self.defsfile.write("true = 1\n")
|
||||
|
||||
def makeblacklistnames(self):
|
||||
return [
|
||||
|
|
Loading…
Reference in New Issue