[Python-checkins] CVS: python/dist/src/Mac/Modules/qd qdsupport.py,1.34,1.35

Jack Jansen jackjansen@users.sourceforge.net
Wed, 05 Sep 2001 03:29:10 -0700


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

Modified Files:
	qdsupport.py 
Log Message:
Shut up many more gcc warnings.

Index: qdsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qd/qdsupport.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** qdsupport.py	2001/08/23 13:50:22	1.34
--- qdsupport.py	2001/09/05 10:29:07	1.35
***************
*** 25,29 ****
  class TextThingieClass(FixedInputBufferType):
  	def getargsCheck(self, name):
! 		pass
  
  TextThingie = TextThingieClass(None)
--- 25,33 ----
  class TextThingieClass(FixedInputBufferType):
  	def getargsCheck(self, name):
! 		Output("/* Fool compiler warnings */")
! 		Output("%s__in_len__ = %s__in_len__;", name, name)
! 
! 	def declareSize(self, name):
! 		Output("int %s__in_len__;", name)
  
  TextThingie = TextThingieClass(None)
***************
*** 567,571 ****
  	return NULL;
  cp = _self->ob_itself->baseAddr+from;
! return PyString_FromStringAndSize(cp, length);
  """
  f = ManualGenerator("getdata", getdata_body)
--- 571,576 ----
  	return NULL;
  cp = _self->ob_itself->baseAddr+from;
! _res = PyString_FromStringAndSize(cp, length);
! return _res;
  """
  f = ManualGenerator("getdata", getdata_body)
***************
*** 583,587 ****
  memcpy(cp, icp, length);
  Py_INCREF(Py_None);
! return Py_None;
  """
  f = ManualGenerator("putdata", putdata_body)
--- 588,593 ----
  memcpy(cp, icp, length);
  Py_INCREF(Py_None);
! _res = Py_None;
! return _res;
  """
  f = ManualGenerator("putdata", putdata_body)