~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Mac/Modules/ibcarbon/_IBCarbon.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "Python.h"
5
5
 
6
6
 
 
7
#ifndef __LP64__
7
8
 
8
9
#include <Carbon/Carbon.h>
9
10
#include "pymactoolbox.h"
224
225
                             IBNibRefObj_New, outNibRef);
225
226
        return _res;
226
227
}
 
228
#endif /* __LP64__ */
227
229
 
228
230
static PyMethodDef IBCarbon_methods[] = {
 
231
#ifndef __LP64__
229
232
        {"CreateNibReference", (PyCFunction)IBCarbon_CreateNibReference, 1,
230
233
         PyDoc_STR("(CFStringRef inNibName) -> (IBNibRef outNibRef)")},
 
234
#endif /* __LP64__ */
231
235
        {NULL, NULL, 0}
232
236
};
233
237
 
237
241
void init_IBCarbon(void)
238
242
{
239
243
        PyObject *m;
 
244
#ifndef __LP64__
240
245
        PyObject *d;
 
246
#endif /* __LP64__ */
241
247
 
242
248
 
243
249
 
244
250
 
245
251
 
246
252
        m = Py_InitModule("_IBCarbon", IBCarbon_methods);
 
253
#ifndef __LP64__
247
254
        d = PyModule_GetDict(m);
248
255
        IBCarbon_Error = PyMac_GetOSErrException();
249
256
        if (IBCarbon_Error == NULL ||
256
263
        /* Backward-compatible name */
257
264
        Py_INCREF(&IBNibRef_Type);
258
265
        PyModule_AddObject(m, "IBNibRefType", (PyObject *)&IBNibRef_Type);
 
266
#endif /* __LP64__ */
259
267
}
260
268
 
261
269
/* ====================== End module _IBCarbon ====================== */