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/ae | |
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/ae')
-rw-r--r-- | Mac/Modules/ae/_AEmodule.c | 8 | ||||
-rw-r--r-- | Mac/Modules/ae/aesupport.py | 8 |
2 files changed, 0 insertions, 16 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c index ab54ca0..14f0305 100644 --- a/Mac/Modules/ae/_AEmodule.c +++ b/Mac/Modules/ae/_AEmodule.c @@ -38,11 +38,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *); #define AEDesc_Convert _AEDesc_Convert #endif -#if UNIVERSAL_INTERFACES_VERSION >= 0x0340 typedef long refcontype; -#else -typedef unsigned long refcontype; -#endif static pascal OSErr GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype refcon); /* Forward */ @@ -1426,11 +1422,7 @@ void init_AE(void) upp_AEIdleProc = NewAEIdleUPP(AEIdleProc); -#if UNIVERSAL_INTERFACES_VERSION >= 0x03400 - upp_GenericEventHandler = NewAEEventHandlerUPP(&GenericEventHandler); -#else upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler); -#endif PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New); PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert); diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index 346340b..16b9c5d 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -100,11 +100,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *); #define AEDesc_Convert _AEDesc_Convert #endif -#if UNIVERSAL_INTERFACES_VERSION >= 0x0340 typedef long refcontype; -#else -typedef unsigned long refcontype; -#endif static pascal OSErr GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype refcon); /* Forward */ @@ -163,11 +159,7 @@ GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype ref initstuff = initstuff + """ upp_AEIdleProc = NewAEIdleUPP(AEIdleProc); -#if UNIVERSAL_INTERFACES_VERSION >= 0x03400 - upp_GenericEventHandler = NewAEEventHandlerUPP(&GenericEventHandler); -#else upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler); -#endif PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New); PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert); """ |