mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define.
This commit is contained in:
parent
74a1e63a89
commit
a44923fbfe
9 changed files with 0 additions and 83 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue