| 1 | --- Include/pymactoolbox.h.orig 2004-11-04 23:02:59.000000000 -0800 |
| 2 | +++ Include/pymactoolbox.h 2009-09-02 00:30:17.000000000 -0700 |
| 3 | @@ -8,7 +8,12 @@ |
| 4 | #endif |
| 5 | |
| 6 | #include <Carbon/Carbon.h> |
| 7 | + |
| 8 | +#ifndef __LP64__ |
| 9 | +#ifndef __LP64__ |
| 10 | #include <QuickTime/QuickTime.h> |
| 11 | +#endif /* !__LP64__ */ |
| 12 | +#endif /* !__LP64__ */ |
| 13 | |
| 14 | /* |
| 15 | ** Helper routines for error codes and such. |
| 16 | @@ -18,8 +23,11 @@ |
| 17 | PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */ |
| 18 | PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */ |
| 19 | PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */ |
| 20 | +#ifndef __LP64__ |
| 21 | extern OSErr PyMac_GetFullPathname(FSSpec *, char *, int); /* convert |
| 22 | fsspec->path */ |
| 23 | +#endif /* __LP64__ */ |
| 24 | + |
| 25 | /* |
| 26 | ** These conversion routines are defined in mactoolboxglue.c itself. |
| 27 | */ |
| 28 | @@ -83,8 +91,10 @@ |
| 29 | #endif /* USE_TOOLBOX_OBJECT_GLUE */ |
| 30 | |
| 31 | /* macfs exports */ |
| 32 | +#ifndef __LP64__ |
| 33 | int PyMac_GetFSSpec(PyObject *, FSSpec *); /* argument parser for FSSpec */ |
| 34 | PyObject *PyMac_BuildFSSpec(FSSpec *); /* Convert FSSpec to PyObject */ |
| 35 | +#endif /* !__LP64__ */ |
| 36 | |
| 37 | int PyMac_GetFSRef(PyObject *, FSRef *); /* argument parser for FSRef */ |
| 38 | PyObject *PyMac_BuildFSRef(FSRef *); /* Convert FSRef to PyObject */ |
| 39 | @@ -101,39 +111,55 @@ |
| 40 | extern int CmpInstObj_Convert(PyObject *, ComponentInstance *); |
| 41 | |
| 42 | /* Ctl exports */ |
| 43 | +#ifndef __LP64__ |
| 44 | extern PyObject *CtlObj_New(ControlHandle); |
| 45 | extern int CtlObj_Convert(PyObject *, ControlHandle *); |
| 46 | +#endif /* !__LP64__ */ |
| 47 | |
| 48 | /* Dlg exports */ |
| 49 | +#ifndef __LP64__ |
| 50 | extern PyObject *DlgObj_New(DialogPtr); |
| 51 | extern int DlgObj_Convert(PyObject *, DialogPtr *); |
| 52 | extern PyObject *DlgObj_WhichDialog(DialogPtr); |
| 53 | +#endif /* !__LP64__ */ |
| 54 | |
| 55 | /* Drag exports */ |
| 56 | +#ifndef __LP64__ |
| 57 | extern PyObject *DragObj_New(DragReference); |
| 58 | extern int DragObj_Convert(PyObject *, DragReference *); |
| 59 | +#endif /* !__LP64__ */ |
| 60 | |
| 61 | /* List exports */ |
| 62 | +#ifndef __LP64__ |
| 63 | extern PyObject *ListObj_New(ListHandle); |
| 64 | extern int ListObj_Convert(PyObject *, ListHandle *); |
| 65 | +#endif /* !__LP64__ */ |
| 66 | |
| 67 | /* Menu exports */ |
| 68 | +#ifndef __LP64__ |
| 69 | extern PyObject *MenuObj_New(MenuHandle); |
| 70 | extern int MenuObj_Convert(PyObject *, MenuHandle *); |
| 71 | +#endif /* !__LP64__ */ |
| 72 | |
| 73 | /* Qd exports */ |
| 74 | +#ifndef __LP64__ |
| 75 | extern PyObject *GrafObj_New(GrafPtr); |
| 76 | extern int GrafObj_Convert(PyObject *, GrafPtr *); |
| 77 | extern PyObject *BMObj_New(BitMapPtr); |
| 78 | extern int BMObj_Convert(PyObject *, BitMapPtr *); |
| 79 | extern PyObject *QdRGB_New(RGBColor *); |
| 80 | extern int QdRGB_Convert(PyObject *, RGBColor *); |
| 81 | +#endif /* !__LP64__ */ |
| 82 | |
| 83 | /* Qdoffs exports */ |
| 84 | +#ifndef __LP64__ |
| 85 | extern PyObject *GWorldObj_New(GWorldPtr); |
| 86 | extern int GWorldObj_Convert(PyObject *, GWorldPtr *); |
| 87 | +#endif /* !__LP64__ */ |
| 88 | |
| 89 | +#ifndef __LP64__ |
| 90 | /* Qt exports */ |
| 91 | +#ifndef __LP64__ |
| 92 | extern PyObject *TrackObj_New(Track); |
| 93 | extern int TrackObj_Convert(PyObject *, Track *); |
| 94 | extern PyObject *MovieObj_New(Movie); |
| 95 | @@ -146,6 +172,8 @@ |
| 96 | extern int UserDataObj_Convert(PyObject *, UserData *); |
| 97 | extern PyObject *MediaObj_New(Media); |
| 98 | extern int MediaObj_Convert(PyObject *, Media *); |
| 99 | +#endif /* !__LP64__ */ |
| 100 | +#endif /* !__LP64__ */ |
| 101 | |
| 102 | /* Res exports */ |
| 103 | extern PyObject *ResObj_New(Handle); |
| 104 | @@ -154,13 +182,17 @@ |
| 105 | extern int OptResObj_Convert(PyObject *, Handle *); |
| 106 | |
| 107 | /* TE exports */ |
| 108 | +#ifndef __LP64__ |
| 109 | extern PyObject *TEObj_New(TEHandle); |
| 110 | extern int TEObj_Convert(PyObject *, TEHandle *); |
| 111 | +#endif /* !__LP64__ */ |
| 112 | |
| 113 | /* Win exports */ |
| 114 | +#ifndef __LP64__ |
| 115 | extern PyObject *WinObj_New(WindowPtr); |
| 116 | extern int WinObj_Convert(PyObject *, WindowPtr *); |
| 117 | extern PyObject *WinObj_WhichWindow(WindowPtr); |
| 118 | +#endif /* !__LP64__ */ |
| 119 | |
| 120 | /* CF exports */ |
| 121 | extern PyObject *CFObj_New(CFTypeRef); |