~pythonregexp2.7/python/issue2636-22

« back to all changes in this revision

Viewing changes to Mac/Modules/fm/_Fmmodule.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:36:32 UTC
  • mfrom: (39021.1.402 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143632-wwwkx92u1t5l7yd3
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include "Python.h"
5
5
 
 
6
#ifndef __LP64__
6
7
 
7
8
 
8
9
#include "pymactoolbox.h"
335
336
        {NULL, NULL, 0}
336
337
};
337
338
 
338
 
 
339
 
 
 
339
#else  /* __LP64__ */
 
340
 
 
341
static PyMethodDef Fm_methods[] = {
 
342
        {NULL, NULL, 0}
 
343
};
 
344
 
 
345
#endif  /* __LP64__ */
340
346
 
341
347
void init_Fm(void)
342
348
{
343
349
        PyObject *m;
 
350
#ifndef __LP64__
344
351
        PyObject *d;
 
352
#endif  /* __LP64__ */
345
353
 
346
354
 
347
355
 
348
356
 
349
357
        m = Py_InitModule("_Fm", Fm_methods);
 
358
#ifndef __LP64__
350
359
        d = PyModule_GetDict(m);
351
360
        Fm_Error = PyMac_GetOSErrException();
352
361
        if (Fm_Error == NULL ||
353
362
            PyDict_SetItemString(d, "Error", Fm_Error) != 0)
354
363
                return;
 
364
#endif  /* __LP64__ */
355
365
}
356
366
 
357
367
/* ========================= End module _Fm ========================= */