******************************************************************/
-#ifndef SystemSevenOrLater
-#define SystemSevenOrLater 1
-#endif
-
#include <Types.h>
#include <Files.h>
#include <Events.h>
} PyMacSchedParams;
-#ifdef GENERATINGCFM /* Defined to 0 or 1 in Universal headers */
-#define HAVE_UNIVERSAL_HEADERS
-#endif
-
#ifdef USE_GUSI1
void PyMac_FixGUSIcd(void); /* Workaround for GUSI chdir() call */
extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */
#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;
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;
#include <ToolUtils.h>
#include <OSUtils.h>
-#ifndef HAVE_UNIVERSAL_HEADERS
-#define ConnectionCompletionUPP ProcPtr
-#define ConnectionChooseIdleUPP ProcPtr
-#define NewConnectionCompletionProc(x) (x)
-#define NewConnectionChooseIdleProc(x) (x)
-#endif
#define _UnimplementedToolTrap 0xA89F
#define _CommToolboxTrap 0x8B
#include <Dialogs.h>
-#ifndef HAVE_UNIVERSAL_HEADERS
-#define NewModalFilterProc(x) (x)
-#endif
-
/* XXX Shouldn't this be a stack? */
static PyObject *Dlg_FilterProc_callback = NULL;
includestuff = includestuff + """
#include <Dialogs.h>
-#ifndef HAVE_UNIVERSAL_HEADERS
-#define NewModalFilterProc(x) (x)
-#endif
-
/* XXX Shouldn't this be a stack? */
static PyObject *Dlg_FilterProc_callback = NULL;
/* ========================== Module Scrap ========================== */
#include "Python.h"
-
-
-
-#define SystemSevenOrLater 1
-
#include "macglue.h"
#include <Memory.h>
#include <Dialogs.h>
#include <Sound.h>
-#ifndef HAVE_UNIVERSAL_HEADERS
-#define SndCallBackUPP ProcPtr
-#define NewSndCallBackProc(x) ((SndCallBackProcPtr)(x))
-#define SndListHandle Handle
-#endif
-
#include <OSUtils.h> /* for Set(Current)A5 */
/* Create a SndCommand object (an (int, int, int) tuple) */
includestuff = includestuff + """
#include <Sound.h>
-
-#ifndef HAVE_UNIVERSAL_HEADERS
-#define SndCallBackUPP ProcPtr
-#define NewSndCallBackProc(x) ((SndCallBackProcPtr)(x))
-#define SndListHandle Handle
-#endif
"""
initstuff = initstuff + """