mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
MacOS9isms.
This commit is contained in:
parent
10d176f77e
commit
e48cef7aba
57 changed files with 57 additions and 520 deletions
|
@ -39,12 +39,7 @@ FMFontStyle = Type("FMFontStyle", "h")
|
|||
UniChar = Type("UniChar", "h")
|
||||
|
||||
includestuff = includestuff + """
|
||||
#ifdef WITHOUT_FRAMEWORKS
|
||||
#include <Devices.h> /* Defines OpenDeskAcc in universal headers */
|
||||
#include <Menus.h>
|
||||
#else
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_TOOLBOX_OBJECT_GLUE
|
||||
|
@ -56,16 +51,6 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
|
|||
#define MenuObj_Convert _MenuObj_Convert
|
||||
#endif
|
||||
|
||||
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
|
||||
#define GetMenuID(menu) ((*(menu))->menuID)
|
||||
#define GetMenuWidth(menu) ((*(menu))->menuWidth)
|
||||
#define GetMenuHeight(menu) ((*(menu))->menuHeight)
|
||||
|
||||
#define SetMenuID(menu, id) ((*(menu))->menuID = (id))
|
||||
#define SetMenuWidth(menu, width) ((*(menu))->menuWidth = (width))
|
||||
#define SetMenuHeight(menu, height) ((*(menu))->menuHeight = (height))
|
||||
#endif
|
||||
|
||||
#define as_Menu(h) ((MenuHandle)h)
|
||||
#define as_Resource(h) ((Handle)h)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue