~pythonregexp2.7/python/issue2636-01

« back to all changes in this revision

Viewing changes to Include/pymactoolbox.h

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:37:21 UTC
  • mfrom: (39022.1.14 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143721-bj0g1mwta28038da
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#endif
9
9
 
10
10
#include <Carbon/Carbon.h>
 
11
 
 
12
#ifndef __LP64__
11
13
#include <QuickTime/QuickTime.h>
 
14
#endif /* !__LP64__ */
12
15
 
13
16
/*
14
17
** Helper routines for error codes and such.
18
21
PyObject *PyMac_GetOSErrException(void);        /* Initialize & return it */
19
22
PyObject *PyErr_Mac(PyObject *, int);           /* Exception with a mac error */
20
23
PyObject *PyMac_Error(OSErr);                   /* Uses PyMac_GetOSErrException */
 
24
#ifndef __LP64__ 
21
25
extern OSErr PyMac_GetFullPathname(FSSpec *, char *, int); /* convert
22
26
                                                              fsspec->path */
 
27
#endif /* __LP64__ */
 
28
 
23
29
/*
24
30
** These conversion routines are defined in mactoolboxglue.c itself.
25
31
*/
83
89
#endif /* USE_TOOLBOX_OBJECT_GLUE */
84
90
 
85
91
/* macfs exports */
 
92
#ifndef __LP64__
86
93
int PyMac_GetFSSpec(PyObject *, FSSpec *);      /* argument parser for FSSpec */
87
94
PyObject *PyMac_BuildFSSpec(FSSpec *);          /* Convert FSSpec to PyObject */
 
95
#endif /* !__LP64__ */
88
96
 
89
97
int PyMac_GetFSRef(PyObject *, FSRef *);        /* argument parser for FSRef */
90
98
PyObject *PyMac_BuildFSRef(FSRef *);            /* Convert FSRef to PyObject */
101
109
extern int CmpInstObj_Convert(PyObject *, ComponentInstance *);
102
110
 
103
111
/* Ctl exports */
 
112
#ifndef __LP64__
104
113
extern PyObject *CtlObj_New(ControlHandle);
105
114
extern int CtlObj_Convert(PyObject *, ControlHandle *);
 
115
#endif /* !__LP64__ */
106
116
 
107
117
/* Dlg exports */
 
118
#ifndef __LP64__
108
119
extern PyObject *DlgObj_New(DialogPtr);
109
120
extern int DlgObj_Convert(PyObject *, DialogPtr *);
110
121
extern PyObject *DlgObj_WhichDialog(DialogPtr);
 
122
#endif /* !__LP64__ */
111
123
 
112
124
/* Drag exports */
 
125
#ifndef __LP64__
113
126
extern PyObject *DragObj_New(DragReference);
114
127
extern int DragObj_Convert(PyObject *, DragReference *);
 
128
#endif /* !__LP64__ */
115
129
 
116
130
/* List exports */
 
131
#ifndef __LP64__
117
132
extern PyObject *ListObj_New(ListHandle);
118
133
extern int ListObj_Convert(PyObject *, ListHandle *);
 
134
#endif /* !__LP64__ */
119
135
 
120
136
/* Menu exports */
 
137
#ifndef __LP64__
121
138
extern PyObject *MenuObj_New(MenuHandle);
122
139
extern int MenuObj_Convert(PyObject *, MenuHandle *);
 
140
#endif /* !__LP64__ */
123
141
 
124
142
/* Qd exports */
 
143
#ifndef __LP64__
125
144
extern PyObject *GrafObj_New(GrafPtr);
126
145
extern int GrafObj_Convert(PyObject *, GrafPtr *);
127
146
extern PyObject *BMObj_New(BitMapPtr);
128
147
extern int BMObj_Convert(PyObject *, BitMapPtr *);
129
148
extern PyObject *QdRGB_New(RGBColor *);
130
149
extern int QdRGB_Convert(PyObject *, RGBColor *);
 
150
#endif /* !__LP64__ */
131
151
 
132
152
/* Qdoffs exports */
 
153
#ifndef __LP64__
133
154
extern PyObject *GWorldObj_New(GWorldPtr);
134
155
extern int GWorldObj_Convert(PyObject *, GWorldPtr *);
 
156
#endif /* !__LP64__ */
135
157
 
136
158
/* Qt exports */
 
159
#ifndef __LP64__
137
160
extern PyObject *TrackObj_New(Track);
138
161
extern int TrackObj_Convert(PyObject *, Track *);
139
162
extern PyObject *MovieObj_New(Movie);
146
169
extern int UserDataObj_Convert(PyObject *, UserData *);
147
170
extern PyObject *MediaObj_New(Media);
148
171
extern int MediaObj_Convert(PyObject *, Media *);
 
172
#endif /* !__LP64__ */
149
173
 
150
174
/* Res exports */
151
175
extern PyObject *ResObj_New(Handle);
154
178
extern int OptResObj_Convert(PyObject *, Handle *);
155
179
 
156
180
/* TE exports */
 
181
#ifndef __LP64__
157
182
extern PyObject *TEObj_New(TEHandle);
158
183
extern int TEObj_Convert(PyObject *, TEHandle *);
 
184
#endif /* !__LP64__ */
159
185
 
160
186
/* Win exports */
 
187
#ifndef __LP64__
161
188
extern PyObject *WinObj_New(WindowPtr);
162
189
extern int WinObj_Convert(PyObject *, WindowPtr *);
163
190
extern PyObject *WinObj_WhichWindow(WindowPtr);
 
191
#endif /* !__LP64__ */
164
192
 
165
193
/* CF exports */
166
194
extern PyObject *CFObj_New(CFTypeRef);