~pythonregexp2.7/python/issue2636-22

« back to all changes in this revision

Viewing changes to Mac/Modules/help/_Helpmodule.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"
144
145
        return _res;
145
146
}
146
147
 
 
148
#endif /* __LP64__ */
 
149
 
147
150
static PyMethodDef Help_methods[] = {
 
151
#ifndef __LP64__
148
152
        {"HMGetHelpMenu", (PyCFunction)Help_HMGetHelpMenu, 1,
149
153
         PyDoc_STR("() -> (MenuRef outHelpMenu, MenuItemIndex outFirstCustomItemIndex)")},
150
154
        {"HMAreHelpTagsDisplayed", (PyCFunction)Help_HMAreHelpTagsDisplayed, 1,
161
165
         PyDoc_STR("(DialogPtr inDialog, SInt16 inHdlgRsrcID, SInt16 inItemStart) -> None")},
162
166
        {"HMHideTag", (PyCFunction)Help_HMHideTag, 1,
163
167
         PyDoc_STR("() -> None")},
 
168
#endif /* __LP64__ */
164
169
        {NULL, NULL, 0}
165
170
};
166
171
 
170
175
void init_Help(void)
171
176
{
172
177
        PyObject *m;
 
178
#ifndef __LP64__
173
179
        PyObject *d;
 
180
#endif /* __LP64__ */
174
181
 
175
182
 
176
183
 
177
184
 
178
185
        m = Py_InitModule("_Help", Help_methods);
 
186
#ifndef __LP64__
179
187
        d = PyModule_GetDict(m);
180
188
        Help_Error = PyMac_GetOSErrException();
181
189
        if (Help_Error == NULL ||
182
190
            PyDict_SetItemString(d, "Error", Help_Error) != 0)
183
191
                return;
 
192
#endif /* __LP64__ */
184
193
}
185
194
 
186
195
/* ======================== End module _Help ======================== */