[Python-checkins] CVS: python/dist/src/Mac/Modules/ctl _Ctlmodule.c,1.6,1.7 ctlsupport.py,1.44,1.45

Jack Jansen jackjansen@users.sourceforge.net
Wed, 12 Dec 2001 14:51:42 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/ctl
In directory usw-pr-cvs1:/tmp/cvs-serv24369/Mac/Modules/Ctl

Modified Files:
	_Ctlmodule.c ctlsupport.py 
Log Message:
Shut up gcc warning.


Index: _Ctlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ctl/_Ctlmodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** _Ctlmodule.c	2001/12/12 22:38:27	1.6
--- _Ctlmodule.c	2001/12/12 22:51:37	1.7
***************
*** 5204,5213 ****
  	if ( self->ob_callbackdict == NULL ||
  			(func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == NULL ) {
! 		PySys_WriteStderr("Control callback %x without callback object\n", which);
  		return NULL;
  	}
  	rv = PyEval_CallObject(func, arglist);
  	if ( rv == NULL )
! 		PySys_WriteStderr("Exception in control callback %x handler\n", which);
  	return rv;
  }
--- 5204,5213 ----
  	if ( self->ob_callbackdict == NULL ||
  			(func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == NULL ) {
! 		PySys_WriteStderr("Control callback %x without callback object\n", (unsigned)which);
  		return NULL;
  	}
  	rv = PyEval_CallObject(func, arglist);
  	if ( rv == NULL )
! 		PySys_WriteStderr("Exception in control callback %x handler\n", (unsigned)which);
  	return rv;
  }

Index: ctlsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ctl/ctlsupport.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** ctlsupport.py	2001/12/12 22:38:27	1.44
--- ctlsupport.py	2001/12/12 22:51:39	1.45
***************
*** 267,276 ****
  	if ( self->ob_callbackdict == NULL ||
  			(func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == NULL ) {
! 		PySys_WriteStderr("Control callback %x without callback object\\n", which);
  		return NULL;
  	}
  	rv = PyEval_CallObject(func, arglist);
  	if ( rv == NULL )
! 		PySys_WriteStderr("Exception in control callback %x handler\\n", which);
  	return rv;
  }
--- 267,276 ----
  	if ( self->ob_callbackdict == NULL ||
  			(func = PyDict_GetItemString(self->ob_callbackdict, keybuf)) == NULL ) {
! 		PySys_WriteStderr("Control callback %x without callback object\\n", (unsigned)which);
  		return NULL;
  	}
  	rv = PyEval_CallObject(func, arglist);
  	if ( rv == NULL )
! 		PySys_WriteStderr("Exception in control callback %x handler\\n", (unsigned)which);
  	return rv;
  }