diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 15:02:02 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 15:02:02 (GMT) |
commit | 65cbf93fce1eaf6cfc89b93e9a5c798b4ac81aa0 (patch) | |
tree | 97ea112375ea86c214559e5dc0eeddc434e93132 /Mac/Modules/win | |
parent | 55309a31df89d83c996426413915c1717b367a8d (diff) | |
download | cpython-65cbf93fce1eaf6cfc89b93e9a5c798b4ac81aa0.zip cpython-65cbf93fce1eaf6cfc89b93e9a5c798b4ac81aa0.tar.gz cpython-65cbf93fce1eaf6cfc89b93e9a5c798b4ac81aa0.tar.bz2 |
Get rid of support for Universal Headers older than 3.4 and various other
outdated things.
Diffstat (limited to 'Mac/Modules/win')
-rw-r--r-- | Mac/Modules/win/_Winmodule.c | 11 | ||||
-rw-r--r-- | Mac/Modules/win/winsupport.py | 11 |
2 files changed, 0 insertions, 22 deletions
diff --git a/Mac/Modules/win/_Winmodule.c b/Mac/Modules/win/_Winmodule.c index db3e31e..ef75cba 100644 --- a/Mac/Modules/win/_Winmodule.c +++ b/Mac/Modules/win/_Winmodule.c @@ -36,21 +36,10 @@ extern int _WinObj_Convert(PyObject *, WindowRef *); #define WinObj_Convert _WinObj_Convert #endif -#if !ACCESSOR_CALLS_ARE_FUNCTIONS && UNIVERSAL_INTERFACES_VERSION < 0x340 -/* Carbon calls that we emulate in classic mode */ -#define GetWindowSpareFlag(win) (((CWindowPeek)(win))->spareFlag) -#define GetWindowFromPort(port) ((WindowRef)(port)) -#define GetWindowPortBounds(win, rectp) (*(rectp) = ((CWindowPeek)(win))->port.portRect) -#endif -#if !ACCESSOR_CALLS_ARE_FUNCTIONS -#define IsPointerValid(p) (((long)p&3) == 0) -#endif -#if ACCESSOR_CALLS_ARE_FUNCTIONS /* Classic calls that we emulate in carbon mode */ #define GetWindowUpdateRgn(win, rgn) GetWindowRegion((win), kWindowUpdateRgn, (rgn)) #define GetWindowStructureRgn(win, rgn) GetWindowRegion((win), kWindowStructureRgn, (rgn)) #define GetWindowContentRgn(win, rgn) GetWindowRegion((win), kWindowContentRgn, (rgn)) -#endif /* Function to dispose a window, with a "normal" calling sequence */ static void diff --git a/Mac/Modules/win/winsupport.py b/Mac/Modules/win/winsupport.py index 5d041d6..d99ca1e 100644 --- a/Mac/Modules/win/winsupport.py +++ b/Mac/Modules/win/winsupport.py @@ -74,21 +74,10 @@ extern int _WinObj_Convert(PyObject *, WindowRef *); #define WinObj_Convert _WinObj_Convert #endif -#if !ACCESSOR_CALLS_ARE_FUNCTIONS && UNIVERSAL_INTERFACES_VERSION < 0x340 -/* Carbon calls that we emulate in classic mode */ -#define GetWindowSpareFlag(win) (((CWindowPeek)(win))->spareFlag) -#define GetWindowFromPort(port) ((WindowRef)(port)) -#define GetWindowPortBounds(win, rectp) (*(rectp) = ((CWindowPeek)(win))->port.portRect) -#endif -#if !ACCESSOR_CALLS_ARE_FUNCTIONS -#define IsPointerValid(p) (((long)p&3) == 0) -#endif -#if ACCESSOR_CALLS_ARE_FUNCTIONS /* Classic calls that we emulate in carbon mode */ #define GetWindowUpdateRgn(win, rgn) GetWindowRegion((win), kWindowUpdateRgn, (rgn)) #define GetWindowStructureRgn(win, rgn) GetWindowRegion((win), kWindowStructureRgn, (rgn)) #define GetWindowContentRgn(win, rgn) GetWindowRegion((win), kWindowContentRgn, (rgn)) -#endif /* Function to dispose a window, with a "normal" calling sequence */ static void |