[Python-checkins] CVS: python/dist/src/Python sysmodule.c,2.58,2.59

Guido van Rossum python-dev@python.org
Thu, 30 Mar 2000 19:38:32 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Python
In directory eric:/projects/python/develop/guido/src/Python

Modified Files:
	sysmodule.c 
Log Message:
Use modern PyArg_ParseTuple style, with function names.
(Mostly.)


Index: sysmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Python/sysmodule.c,v
retrieving revision 2.58
retrieving revision 2.59
diff -C2 -r2.58 -r2.59
*** sysmodule.c	2000/02/29 13:59:29	2.58
--- sysmodule.c	2000/03/31 00:38:29	2.59
***************
*** 107,111 ****
  {
  	PyThreadState *tstate;
! 	if (!PyArg_Parse(args, ""))
  		return NULL;
  	tstate = PyThreadState_Get();
--- 107,111 ----
  {
  	PyThreadState *tstate;
! 	if (!PyArg_ParseTuple(args, ":exc_info"))
  		return NULL;
  	tstate = PyThreadState_Get();
***************
*** 215,219 ****
  {
  	int flag;
! 	if (!PyArg_Parse(args, "i", &flag))
  		return NULL;
  	mallopt(M_DEBUG, flag);
--- 215,219 ----
  {
  	int flag;
! 	if (!PyArg_ParseTuple(args, "i:mdebug", &flag))
  		return NULL;
  	mallopt(M_DEBUG, flag);
***************
*** 229,233 ****
  {
  	PyObject *arg;
! 	if (!PyArg_Parse(args, "O", &arg))
  		return NULL;
  	return PyInt_FromLong((long) arg->ob_refcnt);
--- 229,233 ----
  {
  	PyObject *arg;
! 	if (!PyArg_ParseTuple(args, "O:getrefcount", &arg))
  		return NULL;
  	return PyInt_FromLong((long) arg->ob_refcnt);
***************
*** 247,251 ****
  	extern PyObject *get_counts Py_PROTO((void));
  
! 	if (!PyArg_Parse(args, ""))
  		return NULL;
  	return get_counts();
--- 247,251 ----
  	extern PyObject *get_counts Py_PROTO((void));
  
! 	if (!PyArg_ParseTuple(args, ":getcounts"))
  		return NULL;
  	return get_counts();
***************
*** 265,272 ****
  static PyMethodDef sys_methods[] = {
  	/* Might as well keep this in alphabetic order */
! 	{"exc_info",	sys_exc_info, 0, exc_info_doc},
  	{"exit",	sys_exit, 0, exit_doc},
  #ifdef COUNT_ALLOCS
! 	{"getcounts",	sys_getcounts, 0},
  #endif
  #ifdef DYNAMIC_EXECUTION_PROFILE
--- 265,272 ----
  static PyMethodDef sys_methods[] = {
  	/* Might as well keep this in alphabetic order */
! 	{"exc_info",	sys_exc_info, 1, exc_info_doc},
  	{"exit",	sys_exit, 0, exit_doc},
  #ifdef COUNT_ALLOCS
! 	{"getcounts",	sys_getcounts, 1},
  #endif
  #ifdef DYNAMIC_EXECUTION_PROFILE
***************
*** 276,282 ****
  	{"getobjects",	_Py_GetObjects, 1},
  #endif
! 	{"getrefcount",	sys_getrefcount, 0, getrefcount_doc},
  #ifdef USE_MALLOPT
! 	{"mdebug",	sys_mdebug, 0},
  #endif
  	{"setcheckinterval",	sys_setcheckinterval, 1, setcheckinterval_doc},
--- 276,282 ----
  	{"getobjects",	_Py_GetObjects, 1},
  #endif
! 	{"getrefcount",	sys_getrefcount, 1, getrefcount_doc},
  #ifdef USE_MALLOPT
! 	{"mdebug",	sys_mdebug, 1},
  #endif
  	{"setcheckinterval",	sys_setcheckinterval, 1, setcheckinterval_doc},