[Python-checkins] CVS: python/dist/src/Mac/Modules/snd sndsupport.py,1.17,1.18

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


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

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

Index: sndsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/snd/sndsupport.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** sndsupport.py	2001/08/23 13:51:17	1.17
--- sndsupport.py	2001/09/05 10:28:53	1.18
***************
*** 96,100 ****
  
  includestuff = includestuff + """
! 
  /* Create a SndCommand object (an (int, int, int) tuple) */
  static PyObject *
--- 96,100 ----
  
  includestuff = includestuff + """
! #if !TARGET_API_MAC_CARBON
  /* Create a SndCommand object (an (int, int, int) tuple) */
  static PyObject *
***************
*** 103,106 ****
--- 103,107 ----
  	return Py_BuildValue("hhl", pc->cmd, pc->param1, pc->param2);
  }
+ #endif
  
  /* Convert a SndCommand argument */
***************
*** 231,234 ****
--- 232,238 ----
  		Output("SndDisposeChannel(%s, 1);", itselfname)
  		
+ 	def outputConvert(self):
+ 		pass # Not needed
+ 		
  #
  
***************
*** 271,275 ****
  	
  	def outputConvert(self):
! 		Output("%s%s_Convert(PyObject *v, %s *p_itself)", self.static, self.prefix, self.itselftype)
  		OutLbrace()
  		self.outputCheckConvertArg()
--- 275,279 ----
  	
  	def outputConvert(self):
! 		Output("%sint %s_Convert(PyObject *v, %s *p_itself)", self.static, self.prefix, self.itselftype)
  		OutLbrace()
  		self.outputCheckConvertArg()
***************
*** 334,338 ****
  sndobject = SndObjectDefinition('SndChannel', 'SndCh', 'SndChannelPtr')
  spbobject = SpbObjectDefinition('SPB', 'SPBObj', 'SPBPtr')
! spbgenerator = ManualGenerator("SPB", "return SPBObj_New();")
  module = MacModule('_Snd', 'Snd', includestuff, finalstuff, initstuff)
  module.addobject(sndobject)
--- 338,342 ----
  sndobject = SndObjectDefinition('SndChannel', 'SndCh', 'SndChannelPtr')
  spbobject = SpbObjectDefinition('SPB', 'SPBObj', 'SPBPtr')
! spbgenerator = ManualGenerator("SPB", "_res = SPBObj_New(); return _res;")
  module = MacModule('_Snd', 'Snd', includestuff, finalstuff, initstuff)
  module.addobject(sndobject)