diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-15 22:29:30 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-15 22:29:30 (GMT) |
commit | c8081e9bfa47bbb8278b465d9da6d1097d68341a (patch) | |
tree | 97302864ae2ef244e324fb86745a61bbbc6cc0a8 /Tools/bgen | |
parent | 629eee063689dc045a5d6a3243e9f4dac432903f (diff) | |
download | cpython-c8081e9bfa47bbb8278b465d9da6d1097d68341a.zip cpython-c8081e9bfa47bbb8278b465d9da6d1097d68341a.tar.gz cpython-c8081e9bfa47bbb8278b465d9da6d1097d68341a.tar.bz2 |
Modified the standard mac preamble so we include pymactoolbox.h in
stead of defining lots of function prototypes in each module.
Diffstat (limited to 'Tools/bgen')
-rw-r--r-- | Tools/bgen/bgen/macsupport.py | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py index 5259f05..edaa535 100644 --- a/Tools/bgen/bgen/macsupport.py +++ b/Tools/bgen/bgen/macsupport.py @@ -100,42 +100,8 @@ VarVarOutBuffer = VarVarHeapOutputBufferType('char', 'long', 'l') # (buf, len, & # Stuff added immediately after the system include files includestuff = """ -#define SystemSevenOrLater 1 - #include "macglue.h" -#include <Memory.h> -#include <Dialogs.h> -#include <Menus.h> -#include <Controls.h> - -extern PyObject *ResObj_New(Handle); -extern int ResObj_Convert(PyObject *, Handle *); -extern PyObject *OptResObj_New(Handle); -extern int OptResObj_Convert(PyObject *, Handle *); - -extern PyObject *WinObj_New(WindowPtr); -extern int WinObj_Convert(PyObject *, WindowPtr *); -extern PyTypeObject Window_Type; -#define WinObj_Check(x) ((x)->ob_type == &Window_Type) - -extern PyObject *DlgObj_New(DialogPtr); -extern int DlgObj_Convert(PyObject *, DialogPtr *); -extern PyTypeObject Dialog_Type; -#define DlgObj_Check(x) ((x)->ob_type == &Dialog_Type) - -extern PyObject *MenuObj_New(MenuHandle); -extern int MenuObj_Convert(PyObject *, MenuHandle *); - -extern PyObject *CtlObj_New(ControlHandle); -extern int CtlObj_Convert(PyObject *, ControlHandle *); - -extern PyObject *GrafObj_New(GrafPtr); -extern int GrafObj_Convert(PyObject *, GrafPtr *); - -extern PyObject *BMObj_New(BitMapPtr); -extern int BMObj_Convert(PyObject *, BitMapPtr *); - -extern PyObject *WinObj_WhichWindow(WindowPtr); +#include "pymactoolbox.h" """ # Stuff added just before the module's init function |