diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:52:50 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:52:50 (GMT) |
commit | a44923fbfe9c48f04dce9e8e111e9b898f60d14b (patch) | |
tree | 18d3fa5e8539925d8497741bdf99b1651696592b /Mac/Modules/ae | |
parent | 74a1e63a89cdaad288260600cf77e3a20811f49b (diff) | |
download | cpython-a44923fbfe9c48f04dce9e8e111e9b898f60d14b.zip cpython-a44923fbfe9c48f04dce9e8e111e9b898f60d14b.tar.gz cpython-a44923fbfe9c48f04dce9e8e111e9b898f60d14b.tar.bz2 |
Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define.
Diffstat (limited to 'Mac/Modules/ae')
-rw-r--r-- | Mac/Modules/ae/AEmodule.c | 22 | ||||
-rw-r--r-- | Mac/Modules/ae/aesupport.py | 22 |
2 files changed, 0 insertions, 44 deletions
diff --git a/Mac/Modules/ae/AEmodule.c b/Mac/Modules/ae/AEmodule.c index 435560a..ab07544 100644 --- a/Mac/Modules/ae/AEmodule.c +++ b/Mac/Modules/ae/AEmodule.c @@ -10,28 +10,6 @@ #include <AppleEvents.h> -#ifndef HAVE_UNIVERSAL_HEADERS -#define AEIdleProcPtr IdleProcPtr -#define AEFilterProcPtr EventFilterProcPtr -#define AEEventHandlerProcPtr EventHandlerProcPtr -#endif - -#ifndef HAVE_UNIVERSAL_HEADERS -/* I'm trying to setup the code here so that is easily automated, -** as follows: -** - Use the UPP in the source -** - for pre-universal headers, #define each UPP as the corresponding ProcPtr -** - for each routine we pass we declare a upp_xxx that -** we initialize to the correct value in the init routine. -*/ -#define AEIdleUPP AEIdleProcPtr -#define AEFilterUPP AEFilterProcPtr -#define AEEventHandlerUPP AEEventHandlerProcPtr -#define NewAEIdleProc(x) (x) -#define NewAEFilterProc(x) (x) -#define NewAEEventHandlerProc(x) (x) -#endif - static pascal OSErr GenericEventHandler(); /* Forward */ AEEventHandlerUPP upp_GenericEventHandler; diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index 9423312..9931f9d 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -84,28 +84,6 @@ AEMethod = OSErrMethodGenerator includestuff = includestuff + """ #include <AppleEvents.h> -#ifndef HAVE_UNIVERSAL_HEADERS -#define AEIdleProcPtr IdleProcPtr -#define AEFilterProcPtr EventFilterProcPtr -#define AEEventHandlerProcPtr EventHandlerProcPtr -#endif - -#ifndef HAVE_UNIVERSAL_HEADERS -/* I'm trying to setup the code here so that is easily automated, -** as follows: -** - Use the UPP in the source -** - for pre-universal headers, #define each UPP as the corresponding ProcPtr -** - for each routine we pass we declare a upp_xxx that -** we initialize to the correct value in the init routine. -*/ -#define AEIdleUPP AEIdleProcPtr -#define AEFilterUPP AEFilterProcPtr -#define AEEventHandlerUPP AEEventHandlerProcPtr -#define NewAEIdleProc(x) (x) -#define NewAEFilterProc(x) (x) -#define NewAEEventHandlerProc(x) (x) -#endif - static pascal OSErr GenericEventHandler(); /* Forward */ AEEventHandlerUPP upp_GenericEventHandler; |