~pythonregexp2.7/python/issue2636-01

« back to all changes in this revision

Viewing changes to Mac/Modules/dlg/_Dlgmodule.c

  • 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:
3
3
 
4
4
#include "Python.h"
5
5
 
 
6
#ifndef __LP64__
6
7
 
7
8
 
8
9
#include "pymactoolbox.h"
1564
1565
        return it;
1565
1566
}
1566
1567
 
 
1568
#else /* __LP64__ */
 
1569
 
 
1570
static PyMethodDef Dlg_methods[] = {
 
1571
        {NULL, NULL, 0}
 
1572
};
 
1573
 
 
1574
#endif /* __LP64__ */
 
1575
 
1567
1576
 
1568
1577
void init_Dlg(void)
1569
1578
{
1570
1579
        PyObject *m;
 
1580
#ifndef __LP64__
1571
1581
        PyObject *d;
1572
1582
 
1573
1583
 
1575
1585
                PyMac_INIT_TOOLBOX_OBJECT_NEW(DialogPtr, DlgObj_New);
1576
1586
                PyMac_INIT_TOOLBOX_OBJECT_NEW(DialogPtr, DlgObj_WhichDialog);
1577
1587
                PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DialogPtr, DlgObj_Convert);
1578
 
 
 
1588
#endif /* !__LP64__ */
1579
1589
 
1580
1590
        m = Py_InitModule("_Dlg", Dlg_methods);
 
1591
 
 
1592
#ifndef __LP64__
1581
1593
        d = PyModule_GetDict(m);
1582
1594
        Dlg_Error = PyMac_GetOSErrException();
1583
1595
        if (Dlg_Error == NULL ||
1590
1602
        /* Backward-compatible name */
1591
1603
        Py_INCREF(&Dialog_Type);
1592
1604
        PyModule_AddObject(m, "DialogType", (PyObject *)&Dialog_Type);
 
1605
#endif /* !__LP64__ */
1593
1606
}
1594
1607
 
1595
1608
/* ======================== End module _Dlg ========================= */