[Python-checkins] CVS: python/dist/src/Mac/Modules/list listsupport.py,1.8,1.9

Jack Jansen jackjansen@users.sourceforge.net
Tue, 22 May 2001 14:52:55 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/list
In directory usw-pr-cvs1:/tmp/cvs-serv14292/Python/Mac/Modules/list

Modified Files:
	listsupport.py 
Log Message:
Lots more Carbon/Carbon.h includes, new UPP routine names, function prototypes. Most toolbox modules now compile, link and import in MacOSX-MachO python.

Index: listsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/list/listsupport.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** listsupport.py	2001/05/17 21:56:08	1.8
--- listsupport.py	2001/05/22 21:52:53	1.9
***************
*** 36,41 ****
  
  includestuff = includestuff + """
! #include <%s>""" % MACHEADERFILE + """
! 
  
  #ifdef USE_TOOLBOX_OBJECT_GLUE
--- 36,44 ----
  
  includestuff = includestuff + """
! #ifdef WITHOUT_FRAMEWORKS
! #include <Lists.h>
! #else
! #include <Carbon/Carbon.h>
! #endif
  
  #ifdef USE_TOOLBOX_OBJECT_GLUE
***************
*** 77,82 ****
  
  initstuff = initstuff + """
! 	PyMac_INIT_TOOLBOX_OBJECT_NEW(ListObj_New);
! 	PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ListObj_Convert);
  """
  
--- 80,85 ----
  
  initstuff = initstuff + """
! 	PyMac_INIT_TOOLBOX_OBJECT_NEW(ListHandle, ListObj_New);
! 	PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ListHandle, ListObj_Convert);
  """
  
***************
*** 103,110 ****
  setattrCode = """
  static int
! ListObj_setattr(self, name, value)
! 	ListObject *self;
! 	char *name;
! 	PyObject *value;
  {
  	long intval;
--- 106,110 ----
  setattrCode = """
  static int
! ListObj_setattr(ListObject *self, char *name, PyObject *value)
  {
  	long intval;