Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a44923fb
Commit
a44923fb
authored
Jul 14, 2000
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define.
parent
74a1e63a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
83 deletions
+0
-83
Mac/Include/macglue.h
Mac/Include/macglue.h
+0
-8
Mac/Modules/ae/AEmodule.c
Mac/Modules/ae/AEmodule.c
+0
-22
Mac/Modules/ae/aesupport.py
Mac/Modules/ae/aesupport.py
+0
-22
Mac/Modules/ctbmodule.c
Mac/Modules/ctbmodule.c
+0
-6
Mac/Modules/dlg/Dlgmodule.c
Mac/Modules/dlg/Dlgmodule.c
+0
-4
Mac/Modules/dlg/dlgsupport.py
Mac/Modules/dlg/dlgsupport.py
+0
-4
Mac/Modules/scrap/Scrapmodule.c
Mac/Modules/scrap/Scrapmodule.c
+0
-5
Mac/Modules/snd/Sndmodule.c
Mac/Modules/snd/Sndmodule.c
+0
-6
Mac/Modules/snd/sndsupport.py
Mac/Modules/snd/sndsupport.py
+0
-6
No files found.
Mac/Include/macglue.h
View file @
a44923fb
...
...
@@ -22,10 +22,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
#ifndef SystemSevenOrLater
#define SystemSevenOrLater 1
#endif
#include <Types.h>
#include <Files.h>
#include <Events.h>
...
...
@@ -45,10 +41,6 @@ typedef struct {
}
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 */
...
...
Mac/Modules/ae/AEmodule.c
View file @
a44923fb
...
...
@@ -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
;
...
...
Mac/Modules/ae/aesupport.py
View file @
a44923fb
...
...
@@ -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;
...
...
Mac/Modules/ctbmodule.c
View file @
a44923fb
...
...
@@ -36,12 +36,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#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
...
...
Mac/Modules/dlg/Dlgmodule.c
View file @
a44923fb
...
...
@@ -10,10 +10,6 @@
#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
;
...
...
Mac/Modules/dlg/dlgsupport.py
View file @
a44923fb
...
...
@@ -31,10 +31,6 @@ EventMask = Type("EventMask", "H")
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;
...
...
Mac/Modules/scrap/Scrapmodule.c
View file @
a44923fb
...
...
@@ -2,11 +2,6 @@
/* ========================== Module Scrap ========================== */
#include "Python.h"
#define SystemSevenOrLater 1
#include "macglue.h"
#include <Memory.h>
#include <Dialogs.h>
...
...
Mac/Modules/snd/Sndmodule.c
View file @
a44923fb
...
...
@@ -10,12 +10,6 @@
#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) */
...
...
Mac/Modules/snd/sndsupport.py
View file @
a44923fb
...
...
@@ -18,12 +18,6 @@ class SndMethod(SndMixIn, OSErrMethodGenerator): pass
includestuff
=
includestuff
+
"""
#include <Sound.h>
#ifndef HAVE_UNIVERSAL_HEADERS
#define SndCallBackUPP ProcPtr
#define NewSndCallBackProc(x) ((SndCallBackProcPtr)(x))
#define SndListHandle Handle
#endif
"""
initstuff
=
initstuff
+
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment