[Python-checkins] CVS: python/dist/src/Tools/bgen/bgen macsupport.py,1.18,1.19

Jack Jansen python-dev@python.org
Sat, 15 Jul 2000 15:29:33 -0700


Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24422

Modified Files:
	macsupport.py 
Log Message:
Modified the standard mac preamble so we include pymactoolbox.h in
stead of defining lots of function prototypes in each module.


Index: macsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/macsupport.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** macsupport.py	2000/07/06 15:17:52	1.18
--- macsupport.py	2000/07/15 22:29:30	1.19
***************
*** 101,140 ****
  # 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);
  """
  
--- 101,106 ----
  # Stuff added immediately after the system include files
  includestuff = """
  #include "macglue.h"
! #include "pymactoolbox.h"
  """