mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Lots more Carbon/Carbon.h includes, new UPP routine names, function prototypes. Most toolbox modules now compile, link and import in MacOSX-MachO python.
This commit is contained in:
parent
1129671350
commit
fa77e1a1b1
41 changed files with 2230 additions and 5765 deletions
|
|
@ -36,8 +36,13 @@ FMFontFamily = Type("FMFontFamily", "h")
|
|||
FMFontStyle = Type("FMFontStyle", "h")
|
||||
|
||||
includestuff = includestuff + """
|
||||
#ifdef WITHOUT_FRAMEWORKS
|
||||
#include <Devices.h> /* Defines OpenDeskAcc in universal headers */
|
||||
#include <%s>""" % MACHEADERFILE + """
|
||||
#include <Menus.h>
|
||||
#else
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_TOOLBOX_OBJECT_GLUE
|
||||
|
||||
|
|
@ -63,8 +68,8 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
|
|||
"""
|
||||
|
||||
initstuff = initstuff + """
|
||||
PyMac_INIT_TOOLBOX_OBJECT_NEW(MenuObj_New);
|
||||
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MenuObj_Convert);
|
||||
PyMac_INIT_TOOLBOX_OBJECT_NEW(MenuHandle, MenuObj_New);
|
||||
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MenuHandle, MenuObj_Convert);
|
||||
"""
|
||||
|
||||
class MyObjectDefinition(GlobalObjectDefinition):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue