[Python-checkins] CVS: python/dist/src/Mac/Modules/cf cfsupport.py,1.10,1.11

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


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

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

Index: cfsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/cf/cfsupport.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** cfsupport.py	2001/09/04 22:25:47	1.10
--- cfsupport.py	2001/09/05 10:31:37	1.11
***************
*** 191,195 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFTypeRef type-%%d object at 0x%%8.8x for 0x%%8.8x>", CFGetTypeID(self->ob_itself), (unsigned long)self, (unsigned long)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 191,195 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFTypeRef type-%%d object at 0x%%8.8x for 0x%%8.8x>", CFGetTypeID(self->ob_itself), (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 206,210 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFArrayRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 206,210 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFArrayRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 218,222 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableArrayRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 218,222 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableArrayRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 230,234 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFDictionaryRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 230,234 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFDictionaryRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 242,246 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableDictionaryRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 242,246 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableDictionaryRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 254,258 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFDataRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 254,258 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFDataRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 266,270 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableDataRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 266,270 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableDataRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 297,301 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFStringRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 297,301 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFStringRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 313,317 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableStringRef object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 313,317 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFMutableStringRef object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
***************
*** 325,329 ****
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFURL object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()
--- 325,329 ----
  		OutLbrace()
  		Output("char buf[100];")
! 		Output("""sprintf(buf, "<CFURL object at 0x%%8.8x for 0x%%8.8x>", (unsigned)self, (unsigned)self->ob_itself);""")
  		Output("return PyString_FromString(buf);")
  		OutRbrace()