Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/python2....
File: pymactoolbox.h
/*
[0] Fix | Delete
** pymactoolbox.h - globals defined in mactoolboxglue.c
[1] Fix | Delete
*/
[2] Fix | Delete
#ifndef Py_PYMACTOOLBOX_H
[3] Fix | Delete
#define Py_PYMACTOOLBOX_H
[4] Fix | Delete
#ifdef __cplusplus
[5] Fix | Delete
extern "C" {
[6] Fix | Delete
#endif
[7] Fix | Delete
[8] Fix | Delete
#include <Carbon/Carbon.h>
[9] Fix | Delete
[10] Fix | Delete
/*
[11] Fix | Delete
** Issue #27806: Workaround for gcc 4.x which does not have _has_include.
[12] Fix | Delete
*/
[13] Fix | Delete
#ifndef __has_include
[14] Fix | Delete
#define __has_include(x) 0
[15] Fix | Delete
#endif
[16] Fix | Delete
/* Workaround */
[17] Fix | Delete
[18] Fix | Delete
#if __has_include(<Availability.h>)
[19] Fix | Delete
#include <Availability.h>
[20] Fix | Delete
#define APPLE_SUPPORTS_QUICKTIME (__MAC_OS_X_VERSION_MAX_ALLOWED < 101200) && !__LP64__
[21] Fix | Delete
#else
[22] Fix | Delete
#define APPLE_SUPPORTS_QUICKTIME !__LP64__
[23] Fix | Delete
#endif
[24] Fix | Delete
[25] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[26] Fix | Delete
#include <QuickTime/QuickTime.h>
[27] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[28] Fix | Delete
[29] Fix | Delete
/*
[30] Fix | Delete
** Helper routines for error codes and such.
[31] Fix | Delete
*/
[32] Fix | Delete
char *PyMac_StrError(int); /* strerror with mac errors */
[33] Fix | Delete
extern PyObject *PyMac_OSErrException; /* Exception for OSErr */
[34] Fix | Delete
PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */
[35] Fix | Delete
PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
[36] Fix | Delete
PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
[37] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[38] Fix | Delete
extern OSErr PyMac_GetFullPathname(FSSpec *, char *, int); /* convert
[39] Fix | Delete
fsspec->path */
[40] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[41] Fix | Delete
[42] Fix | Delete
/*
[43] Fix | Delete
** These conversion routines are defined in mactoolboxglue.c itself.
[44] Fix | Delete
*/
[45] Fix | Delete
int PyMac_GetOSType(PyObject *, OSType *); /* argument parser for OSType */
[46] Fix | Delete
PyObject *PyMac_BuildOSType(OSType); /* Convert OSType to PyObject */
[47] Fix | Delete
[48] Fix | Delete
PyObject *PyMac_BuildNumVersion(NumVersion);/* Convert NumVersion to PyObject */
[49] Fix | Delete
[50] Fix | Delete
int PyMac_GetStr255(PyObject *, Str255); /* argument parser for Str255 */
[51] Fix | Delete
PyObject *PyMac_BuildStr255(Str255); /* Convert Str255 to PyObject */
[52] Fix | Delete
PyObject *PyMac_BuildOptStr255(Str255); /* Convert Str255 to PyObject,
[53] Fix | Delete
NULL to None */
[54] Fix | Delete
[55] Fix | Delete
int PyMac_GetRect(PyObject *, Rect *); /* argument parser for Rect */
[56] Fix | Delete
PyObject *PyMac_BuildRect(Rect *); /* Convert Rect to PyObject */
[57] Fix | Delete
[58] Fix | Delete
int PyMac_GetPoint(PyObject *, Point *); /* argument parser for Point */
[59] Fix | Delete
PyObject *PyMac_BuildPoint(Point); /* Convert Point to PyObject */
[60] Fix | Delete
[61] Fix | Delete
int PyMac_GetEventRecord(PyObject *, EventRecord *); /* argument parser for
[62] Fix | Delete
EventRecord */
[63] Fix | Delete
PyObject *PyMac_BuildEventRecord(EventRecord *); /* Convert EventRecord to
[64] Fix | Delete
PyObject */
[65] Fix | Delete
[66] Fix | Delete
int PyMac_GetFixed(PyObject *, Fixed *); /* argument parser for Fixed */
[67] Fix | Delete
PyObject *PyMac_BuildFixed(Fixed); /* Convert Fixed to PyObject */
[68] Fix | Delete
int PyMac_Getwide(PyObject *, wide *); /* argument parser for wide */
[69] Fix | Delete
PyObject *PyMac_Buildwide(wide *); /* Convert wide to PyObject */
[70] Fix | Delete
[71] Fix | Delete
/*
[72] Fix | Delete
** The rest of the routines are implemented by extension modules. If they are
[73] Fix | Delete
** dynamically loaded mactoolboxglue will contain a stub implementation of the
[74] Fix | Delete
** routine, which imports the module, whereupon the module's init routine will
[75] Fix | Delete
** communicate the routine pointer back to the stub.
[76] Fix | Delete
** If USE_TOOLBOX_OBJECT_GLUE is not defined there is no glue code, and the
[77] Fix | Delete
** extension modules simply declare the routine. This is the case for static
[78] Fix | Delete
** builds (and could be the case for MacPython CFM builds, because CFM extension
[79] Fix | Delete
** modules can reference each other without problems).
[80] Fix | Delete
*/
[81] Fix | Delete
[82] Fix | Delete
#ifdef USE_TOOLBOX_OBJECT_GLUE
[83] Fix | Delete
/*
[84] Fix | Delete
** These macros are used in the module init code. If we use toolbox object glue
[85] Fix | Delete
** it sets the function pointer to point to the real function.
[86] Fix | Delete
*/
[87] Fix | Delete
#define PyMac_INIT_TOOLBOX_OBJECT_NEW(object, rtn) { \
[88] Fix | Delete
extern PyObject *(*PyMacGluePtr_##rtn)(object); \
[89] Fix | Delete
PyMacGluePtr_##rtn = _##rtn; \
[90] Fix | Delete
}
[91] Fix | Delete
#define PyMac_INIT_TOOLBOX_OBJECT_CONVERT(object, rtn) { \
[92] Fix | Delete
extern int (*PyMacGluePtr_##rtn)(PyObject *, object *); \
[93] Fix | Delete
PyMacGluePtr_##rtn = _##rtn; \
[94] Fix | Delete
}
[95] Fix | Delete
#else
[96] Fix | Delete
/*
[97] Fix | Delete
** If we don't use toolbox object glue the init macros are empty. Moreover, we define
[98] Fix | Delete
** _xxx_New to be the same as xxx_New, and the code in mactoolboxglue isn't included.
[99] Fix | Delete
*/
[100] Fix | Delete
#define PyMac_INIT_TOOLBOX_OBJECT_NEW(object, rtn)
[101] Fix | Delete
#define PyMac_INIT_TOOLBOX_OBJECT_CONVERT(object, rtn)
[102] Fix | Delete
#endif /* USE_TOOLBOX_OBJECT_GLUE */
[103] Fix | Delete
[104] Fix | Delete
/* macfs exports */
[105] Fix | Delete
#ifndef __LP64__
[106] Fix | Delete
int PyMac_GetFSSpec(PyObject *, FSSpec *); /* argument parser for FSSpec */
[107] Fix | Delete
PyObject *PyMac_BuildFSSpec(FSSpec *); /* Convert FSSpec to PyObject */
[108] Fix | Delete
#endif /* !__LP64__ */
[109] Fix | Delete
[110] Fix | Delete
int PyMac_GetFSRef(PyObject *, FSRef *); /* argument parser for FSRef */
[111] Fix | Delete
PyObject *PyMac_BuildFSRef(FSRef *); /* Convert FSRef to PyObject */
[112] Fix | Delete
[113] Fix | Delete
/* AE exports */
[114] Fix | Delete
extern PyObject *AEDesc_New(AppleEvent *); /* XXXX Why passed by address?? */
[115] Fix | Delete
extern PyObject *AEDesc_NewBorrowed(AppleEvent *);
[116] Fix | Delete
extern int AEDesc_Convert(PyObject *, AppleEvent *);
[117] Fix | Delete
[118] Fix | Delete
/* Cm exports */
[119] Fix | Delete
extern PyObject *CmpObj_New(Component);
[120] Fix | Delete
extern int CmpObj_Convert(PyObject *, Component *);
[121] Fix | Delete
extern PyObject *CmpInstObj_New(ComponentInstance);
[122] Fix | Delete
extern int CmpInstObj_Convert(PyObject *, ComponentInstance *);
[123] Fix | Delete
[124] Fix | Delete
/* Ctl exports */
[125] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[126] Fix | Delete
extern PyObject *CtlObj_New(ControlHandle);
[127] Fix | Delete
extern int CtlObj_Convert(PyObject *, ControlHandle *);
[128] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[129] Fix | Delete
[130] Fix | Delete
/* Dlg exports */
[131] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[132] Fix | Delete
extern PyObject *DlgObj_New(DialogPtr);
[133] Fix | Delete
extern int DlgObj_Convert(PyObject *, DialogPtr *);
[134] Fix | Delete
extern PyObject *DlgObj_WhichDialog(DialogPtr);
[135] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[136] Fix | Delete
[137] Fix | Delete
/* Drag exports */
[138] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[139] Fix | Delete
extern PyObject *DragObj_New(DragReference);
[140] Fix | Delete
extern int DragObj_Convert(PyObject *, DragReference *);
[141] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[142] Fix | Delete
[143] Fix | Delete
/* List exports */
[144] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[145] Fix | Delete
extern PyObject *ListObj_New(ListHandle);
[146] Fix | Delete
extern int ListObj_Convert(PyObject *, ListHandle *);
[147] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[148] Fix | Delete
[149] Fix | Delete
/* Menu exports */
[150] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[151] Fix | Delete
extern PyObject *MenuObj_New(MenuHandle);
[152] Fix | Delete
extern int MenuObj_Convert(PyObject *, MenuHandle *);
[153] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[154] Fix | Delete
[155] Fix | Delete
/* Qd exports */
[156] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[157] Fix | Delete
extern PyObject *GrafObj_New(GrafPtr);
[158] Fix | Delete
extern int GrafObj_Convert(PyObject *, GrafPtr *);
[159] Fix | Delete
extern PyObject *BMObj_New(BitMapPtr);
[160] Fix | Delete
extern int BMObj_Convert(PyObject *, BitMapPtr *);
[161] Fix | Delete
extern PyObject *QdRGB_New(RGBColor *);
[162] Fix | Delete
extern int QdRGB_Convert(PyObject *, RGBColor *);
[163] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[164] Fix | Delete
[165] Fix | Delete
/* Qdoffs exports */
[166] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[167] Fix | Delete
extern PyObject *GWorldObj_New(GWorldPtr);
[168] Fix | Delete
extern int GWorldObj_Convert(PyObject *, GWorldPtr *);
[169] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[170] Fix | Delete
[171] Fix | Delete
/* Qt exports */
[172] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[173] Fix | Delete
extern PyObject *TrackObj_New(Track);
[174] Fix | Delete
extern int TrackObj_Convert(PyObject *, Track *);
[175] Fix | Delete
extern PyObject *MovieObj_New(Movie);
[176] Fix | Delete
extern int MovieObj_Convert(PyObject *, Movie *);
[177] Fix | Delete
extern PyObject *MovieCtlObj_New(MovieController);
[178] Fix | Delete
extern int MovieCtlObj_Convert(PyObject *, MovieController *);
[179] Fix | Delete
extern PyObject *TimeBaseObj_New(TimeBase);
[180] Fix | Delete
extern int TimeBaseObj_Convert(PyObject *, TimeBase *);
[181] Fix | Delete
extern PyObject *UserDataObj_New(UserData);
[182] Fix | Delete
extern int UserDataObj_Convert(PyObject *, UserData *);
[183] Fix | Delete
extern PyObject *MediaObj_New(Media);
[184] Fix | Delete
extern int MediaObj_Convert(PyObject *, Media *);
[185] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[186] Fix | Delete
[187] Fix | Delete
/* Res exports */
[188] Fix | Delete
extern PyObject *ResObj_New(Handle);
[189] Fix | Delete
extern int ResObj_Convert(PyObject *, Handle *);
[190] Fix | Delete
extern PyObject *OptResObj_New(Handle);
[191] Fix | Delete
extern int OptResObj_Convert(PyObject *, Handle *);
[192] Fix | Delete
[193] Fix | Delete
/* TE exports */
[194] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[195] Fix | Delete
extern PyObject *TEObj_New(TEHandle);
[196] Fix | Delete
extern int TEObj_Convert(PyObject *, TEHandle *);
[197] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[198] Fix | Delete
[199] Fix | Delete
/* Win exports */
[200] Fix | Delete
#if APPLE_SUPPORTS_QUICKTIME
[201] Fix | Delete
extern PyObject *WinObj_New(WindowPtr);
[202] Fix | Delete
extern int WinObj_Convert(PyObject *, WindowPtr *);
[203] Fix | Delete
extern PyObject *WinObj_WhichWindow(WindowPtr);
[204] Fix | Delete
#endif /* APPLE_SUPPORTS_QUICKTIME */
[205] Fix | Delete
[206] Fix | Delete
/* CF exports */
[207] Fix | Delete
extern PyObject *CFObj_New(CFTypeRef);
[208] Fix | Delete
extern int CFObj_Convert(PyObject *, CFTypeRef *);
[209] Fix | Delete
extern PyObject *CFTypeRefObj_New(CFTypeRef);
[210] Fix | Delete
extern int CFTypeRefObj_Convert(PyObject *, CFTypeRef *);
[211] Fix | Delete
extern PyObject *CFStringRefObj_New(CFStringRef);
[212] Fix | Delete
extern int CFStringRefObj_Convert(PyObject *, CFStringRef *);
[213] Fix | Delete
extern PyObject *CFMutableStringRefObj_New(CFMutableStringRef);
[214] Fix | Delete
extern int CFMutableStringRefObj_Convert(PyObject *, CFMutableStringRef *);
[215] Fix | Delete
extern PyObject *CFArrayRefObj_New(CFArrayRef);
[216] Fix | Delete
extern int CFArrayRefObj_Convert(PyObject *, CFArrayRef *);
[217] Fix | Delete
extern PyObject *CFMutableArrayRefObj_New(CFMutableArrayRef);
[218] Fix | Delete
extern int CFMutableArrayRefObj_Convert(PyObject *, CFMutableArrayRef *);
[219] Fix | Delete
extern PyObject *CFDictionaryRefObj_New(CFDictionaryRef);
[220] Fix | Delete
extern int CFDictionaryRefObj_Convert(PyObject *, CFDictionaryRef *);
[221] Fix | Delete
extern PyObject *CFMutableDictionaryRefObj_New(CFMutableDictionaryRef);
[222] Fix | Delete
extern int CFMutableDictionaryRefObj_Convert(PyObject *, CFMutableDictionaryRef *);
[223] Fix | Delete
extern PyObject *CFURLRefObj_New(CFURLRef);
[224] Fix | Delete
extern int CFURLRefObj_Convert(PyObject *, CFURLRef *);
[225] Fix | Delete
extern int OptionalCFURLRefObj_Convert(PyObject *, CFURLRef *);
[226] Fix | Delete
[227] Fix | Delete
#ifdef __cplusplus
[228] Fix | Delete
}
[229] Fix | Delete
#endif
[230] Fix | Delete
#endif
[231] Fix | Delete
[232] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function