Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8081e9

Browse files
committed
Modified the standard mac preamble so we include pymactoolbox.h in
stead of defining lots of function prototypes in each module.
1 parent 629eee0 commit c8081e9

1 file changed

Lines changed: 1 addition & 35 deletions

File tree

Tools/bgen/bgen/macsupport.py

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -100,42 +100,8 @@ def errorCheck(self, name):
100100

101101
# Stuff added immediately after the system include files
102102
includestuff = """
103-
#define SystemSevenOrLater 1
104-
105103
#include "macglue.h"
106-
#include <Memory.h>
107-
#include <Dialogs.h>
108-
#include <Menus.h>
109-
#include <Controls.h>
110-
111-
extern PyObject *ResObj_New(Handle);
112-
extern int ResObj_Convert(PyObject *, Handle *);
113-
extern PyObject *OptResObj_New(Handle);
114-
extern int OptResObj_Convert(PyObject *, Handle *);
115-
116-
extern PyObject *WinObj_New(WindowPtr);
117-
extern int WinObj_Convert(PyObject *, WindowPtr *);
118-
extern PyTypeObject Window_Type;
119-
#define WinObj_Check(x) ((x)->ob_type == &Window_Type)
120-
121-
extern PyObject *DlgObj_New(DialogPtr);
122-
extern int DlgObj_Convert(PyObject *, DialogPtr *);
123-
extern PyTypeObject Dialog_Type;
124-
#define DlgObj_Check(x) ((x)->ob_type == &Dialog_Type)
125-
126-
extern PyObject *MenuObj_New(MenuHandle);
127-
extern int MenuObj_Convert(PyObject *, MenuHandle *);
128-
129-
extern PyObject *CtlObj_New(ControlHandle);
130-
extern int CtlObj_Convert(PyObject *, ControlHandle *);
131-
132-
extern PyObject *GrafObj_New(GrafPtr);
133-
extern int GrafObj_Convert(PyObject *, GrafPtr *);
134-
135-
extern PyObject *BMObj_New(BitMapPtr);
136-
extern int BMObj_Convert(PyObject *, BitMapPtr *);
137-
138-
extern PyObject *WinObj_WhichWindow(WindowPtr);
104+
#include "pymactoolbox.h"
139105
"""
140106

141107
# Stuff added just before the module's init function

0 commit comments

Comments
 (0)