[Python-checkins] CVS: python/dist/src/Mac/Modules/res resedit.py,1.5,1.6

Jack Jansen jackjansen@users.sourceforge.net
Wed, 05 Sep 2001 08:44:40 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/res
In directory usw-pr-cvs1:/tmp/cvs-serv31614/python/Mac/Modules/res

Modified Files:
	resedit.py 
Log Message:
A few more gcc warnings bite the dust.

Index: resedit.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/res/resedit.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** resedit.py	2001/09/05 10:31:52	1.5
--- resedit.py	2001/09/05 15:44:37	1.6
***************
*** 14,18 ****
  memcpy(*h, buf, len);
  HUnlock(h);
! return ResObj_New(h);
  """
  
--- 14,19 ----
  memcpy(*h, buf, len);
  HUnlock(h);
! _res = ResObj_New(h);
! return _res;
  """
  
***************
*** 44,48 ****
  rv = (ResourceObject *)ResObj_New(h);
  rv->ob_freeit = PyMac_AutoDisposeHandle;
! return (PyObject *)rv;
  """
  
--- 45,50 ----
  rv = (ResourceObject *)ResObj_New(h);
  rv->ob_freeit = PyMac_AutoDisposeHandle;
! _res = (PyObject *)rv;
! return _res;
  """
  
***************
*** 93,97 ****
  else
  	_self->ob_freeit = NULL;
! return Py_BuildValue("i", old);
  """
  f = ManualGenerator("AutoDispose", AutoDispose_body)
--- 95,100 ----
  else
  	_self->ob_freeit = NULL;
! _res = Py_BuildValue("i", old);
! return _res;
  """
  f = ManualGenerator("AutoDispose", AutoDispose_body)