diff options
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; |