{
PyObject *_res = NULL;
OSErr _err;
+#ifndef CloseComponent
+ PyMac_PRECHECK(CloseComponent);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = CloseComponent(_self->ob_itself);
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef GetComponentInstanceError
+ PyMac_PRECHECK(GetComponentInstanceError);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetComponentInstanceError(_self->ob_itself);
{
PyObject *_res = NULL;
OSErr theError;
+#ifndef SetComponentInstanceError
+ PyMac_PRECHECK(SetComponentInstanceError);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&theError))
return NULL;
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef GetComponentInstanceStorage
+ PyMac_PRECHECK(GetComponentInstanceStorage);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetComponentInstanceStorage(_self->ob_itself);
{
PyObject *_res = NULL;
Handle theStorage;
+#ifndef SetComponentInstanceStorage
+ PyMac_PRECHECK(SetComponentInstanceStorage);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theStorage))
return NULL;
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetComponentInstanceA5
+ PyMac_PRECHECK(GetComponentInstanceA5);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetComponentInstanceA5(_self->ob_itself);
{
PyObject *_res = NULL;
long theA5;
+#ifndef SetComponentInstanceA5
+ PyMac_PRECHECK(SetComponentInstanceA5);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&theA5))
return NULL;
PyObject *_res = NULL;
long _rv;
short ftnNumber;
+#ifndef ComponentFunctionImplemented
+ PyMac_PRECHECK(ComponentFunctionImplemented);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&ftnNumber))
return NULL;
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetComponentVersion
+ PyMac_PRECHECK(GetComponentVersion);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetComponentVersion(_self->ob_itself);
PyObject *_res = NULL;
long _rv;
ComponentInstance target;
+#ifndef ComponentSetTarget
+ PyMac_PRECHECK(ComponentSetTarget);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
CmpInstObj_Convert, &target))
return NULL;
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef UnregisterComponent
+ PyMac_PRECHECK(UnregisterComponent);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = UnregisterComponent(_self->ob_itself);
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,
{
PyObject *_res = NULL;
ComponentInstance _rv;
+#ifndef OpenComponent
+ PyMac_PRECHECK(OpenComponent);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = OpenComponent(_self->ob_itself);
{
PyObject *_res = NULL;
Component _rv;
+#ifndef ResolveComponentAlias
+ PyMac_PRECHECK(ResolveComponentAlias);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = ResolveComponentAlias(_self->ob_itself);
Str255 theString;
short strListID;
short index;
+#ifndef GetComponentPublicIndString
+ PyMac_PRECHECK(GetComponentPublicIndString);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetStr255, theString,
&strListID,
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetComponentRefcon
+ PyMac_PRECHECK(GetComponentRefcon);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetComponentRefcon(_self->ob_itself);
{
PyObject *_res = NULL;
long theRefcon;
+#ifndef SetComponentRefcon
+ PyMac_PRECHECK(SetComponentRefcon);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&theRefcon))
return NULL;
{
PyObject *_res = NULL;
short _rv;
+#ifndef OpenComponentResFile
+ PyMac_PRECHECK(OpenComponentResFile);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = OpenComponentResFile(_self->ob_itself);
OSType resType;
short resID;
Handle theResource;
+#ifndef GetComponentResource
+ PyMac_PRECHECK(GetComponentResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
PyMac_GetOSType, &resType,
&resID))
Str255 theString;
short strListID;
short index;
+#ifndef GetComponentIndString
+ PyMac_PRECHECK(GetComponentIndString);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetStr255, theString,
&strListID,
{
PyObject *_res = NULL;
long _rv;
+#ifndef CountComponentInstances
+ PyMac_PRECHECK(CountComponentInstances);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = CountComponentInstances(_self->ob_itself);
PyObject *_res = NULL;
OSErr _err;
short flags;
+#ifndef SetDefaultComponent
+ PyMac_PRECHECK(SetDefaultComponent);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&flags))
return NULL;
PyObject *_res = NULL;
Component _rv;
Component capturingComponent;
+#ifndef CaptureComponent
+ PyMac_PRECHECK(CaptureComponent);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
CmpObj_Convert, &capturingComponent))
return NULL;
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef UncaptureComponent
+ PyMac_PRECHECK(UncaptureComponent);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = UncaptureComponent(_self->ob_itself);
PyObject *_res = NULL;
OSErr _err;
Handle iconSuite;
+#ifndef GetComponentIconSuite
+ PyMac_PRECHECK(GetComponentIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetComponentIconSuite(_self->ob_itself,
Component _rv;
ComponentResourceHandle cr;
short global;
+#ifndef RegisterComponentResource
+ PyMac_PRECHECK(RegisterComponentResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
ResObj_Convert, &cr,
&global))
Component _rv;
Component aComponent;
ComponentDescription looking;
+#ifndef FindNextComponent
+ PyMac_PRECHECK(FindNextComponent);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
CmpObj_Convert, &aComponent,
CmpDesc_Convert, &looking))
PyObject *_res = NULL;
long _rv;
ComponentDescription looking;
+#ifndef CountComponents
+ PyMac_PRECHECK(CountComponents);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
CmpDesc_Convert, &looking))
return NULL;
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetComponentListModSeed
+ PyMac_PRECHECK(GetComponentListModSeed);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetComponentListModSeed();
PyObject *_res = NULL;
OSErr _err;
short refnum;
+#ifndef CloseComponentResFile
+ PyMac_PRECHECK(CloseComponentResFile);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&refnum))
return NULL;
ComponentInstance _rv;
OSType componentType;
OSType componentSubType;
+#ifndef OpenDefaultComponent
+ PyMac_PRECHECK(OpenDefaultComponent);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetOSType, &componentType,
PyMac_GetOSType, &componentSubType))
long _rv;
short resRefNum;
short global;
+#ifndef RegisterComponentResourceFile
+ PyMac_PRECHECK(RegisterComponentResourceFile);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&resRefNum,
&global))