[Python-checkins] CVS: python/dist/src/Modules resource.c,2.12,2.13 termios.c,2.11,2.12 timemodule.c,2.90,2.91

Peter Schneider-Kamp python-dev@python.org
Mon, 10 Jul 2000 05:15:56 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17857

Modified Files:
	resource.c termios.c timemodule.c 
Log Message:

ANSI-fication



Index: resource.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/resource.c,v
retrieving revision 2.12
retrieving revision 2.13
diff -C2 -r2.12 -r2.13
*** resource.c	2000/06/30 23:58:05	2.12
--- resource.c	2000/07/10 12:15:54	2.13
***************
*** 33,39 ****
  
  static PyObject *
! resource_getrusage(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	int who;
--- 33,37 ----
  
  static PyObject *
! resource_getrusage(PyObject *self, PyObject *args)
  {
  	int who;
***************
*** 80,86 ****
  
  static PyObject *
! resource_getrlimit(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	struct rlimit rl;
--- 78,82 ----
  
  static PyObject *
! resource_getrlimit(PyObject *self, PyObject *args)
  {
  	struct rlimit rl;
***************
*** 112,118 ****
  
  static PyObject *
! resource_setrlimit(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	struct rlimit rl;
--- 108,112 ----
  
  static PyObject *
! resource_setrlimit(PyObject *self, PyObject *args)
  {
  	struct rlimit rl;
***************
*** 158,164 ****
  
  static PyObject *
! resource_getpagesize(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	if (!PyArg_ParseTuple(args, ":getpagesize"))
--- 152,156 ----
  
  static PyObject *
! resource_getpagesize(PyObject *self, PyObject *args)
  {
  	if (!PyArg_ParseTuple(args, ":getpagesize"))

Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.11
retrieving revision 2.12
diff -C2 -r2.11 -r2.12
*** termios.c	1999/01/14 19:31:42	2.11
--- termios.c	2000/07/10 12:15:54	2.12
***************
*** 47,53 ****
  
  static PyObject *
! termios_tcgetattr(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	int fd;
--- 47,51 ----
  
  static PyObject *
! termios_tcgetattr(PyObject *self, PyObject *args)
  {
  	int fd;
***************
*** 127,133 ****
  
  static PyObject *
! termios_tcsetattr(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	int fd, when;
--- 125,129 ----
  
  static PyObject *
! termios_tcsetattr(PyObject *self, PyObject *args)
  {
  	int fd, when;
***************
*** 196,202 ****
  
  static PyObject *
! termios_tcsendbreak(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	int fd, duration;
--- 192,196 ----
  
  static PyObject *
! termios_tcsendbreak(PyObject *self, PyObject *args)
  {
  	int fd, duration;
***************
*** 220,226 ****
  
  static PyObject *
! termios_tcdrain(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	int fd;
--- 214,218 ----
  
  static PyObject *
! termios_tcdrain(PyObject *self, PyObject *args)
  {
  	int fd;
***************
*** 247,253 ****
  
  static PyObject *
! termios_tcflush(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	int fd, queue;
--- 239,243 ----
  
  static PyObject *
! termios_tcflush(PyObject *self, PyObject *args)
  {
  	int fd, queue;
***************
*** 274,280 ****
  
  static PyObject *
! termios_tcflow(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	int fd, action;
--- 264,268 ----
  
  static PyObject *
! termios_tcflow(PyObject *self, PyObject *args)
  {
  	int fd, action;

Index: timemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/timemodule.c,v
retrieving revision 2.90
retrieving revision 2.91
diff -C2 -r2.90 -r2.91
*** timemodule.c	2000/07/09 03:09:56	2.90
--- timemodule.c	2000/07/10 12:15:54	2.91
***************
*** 129,135 ****
  
  static PyObject *
! time_time(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	double secs;
--- 129,133 ----
  
  static PyObject *
! time_time(PyObject *self, PyObject *args)
  {
  	double secs;
***************
*** 161,167 ****
  
  static PyObject *
! time_clock(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	if (!PyArg_NoArgs(args))
--- 159,163 ----
  
  static PyObject *
! time_clock(PyObject *self, PyObject *args)
  {
  	if (!PyArg_NoArgs(args))
***************
*** 174,180 ****
  /* Due to Mark Hammond */
  static PyObject *
! time_clock(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	static LARGE_INTEGER ctrStart;
--- 170,174 ----
  /* Due to Mark Hammond */
  static PyObject *
! time_clock(PyObject *self, PyObject *args)
  {
  	static LARGE_INTEGER ctrStart;
***************
*** 218,224 ****
  
  static PyObject *
! time_sleep(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	double secs;
--- 212,216 ----
  
  static PyObject *
! time_sleep(PyObject *self, PyObject *args)
  {
  	double secs;
***************
*** 238,243 ****
  
  static PyObject *
! tmtotuple(p)
! 	struct tm *p;
  {
  	return Py_BuildValue("(iiiiiiiii)",
--- 230,234 ----
  
  static PyObject *
! tmtotuple(struct tm *p)
  {
  	return Py_BuildValue("(iiiiiiiii)",
***************
*** 254,260 ****
  
  static PyObject *
! time_convert(when, function)
! 	time_t when;
! 	struct tm * (*function)(const time_t *);
  {
  	struct tm *p;
--- 245,249 ----
  
  static PyObject *
! time_convert(time_t when, struct tm * (*function)(const time_t *))
  {
  	struct tm *p;
***************
*** 275,281 ****
  
  static PyObject *
! time_gmtime(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	double when;
--- 264,268 ----
  
  static PyObject *
! time_gmtime(PyObject *self, PyObject *args)
  {
  	double when;
***************
*** 291,297 ****
  
  static PyObject *
! time_localtime(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	double when;
--- 278,282 ----
  
  static PyObject *
! time_localtime(PyObject *self, PyObject *args)
  {
  	double when;
***************
*** 306,312 ****
  
  static int
! gettmarg(args, p)
! 	PyObject *args;
! 	struct tm *p;
  {
  	int y;
--- 291,295 ----
  
  static int
! gettmarg(PyObject *args, struct tm *p)
  {
  	int y;
***************
*** 352,358 ****
  #ifdef HAVE_STRFTIME
  static PyObject *
! time_strftime(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	PyObject *tup;
--- 335,339 ----
  #ifdef HAVE_STRFTIME
  static PyObject *
! time_strftime(PyObject *self, PyObject *args)
  {
  	PyObject *tup;
***************
*** 408,414 ****
  
  static PyObject *
! time_strptime(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	struct tm tm;
--- 389,393 ----
  
  static PyObject *
! time_strptime(PyObject *self, PyObject *args)
  {
  	struct tm tm;
***************
*** 442,448 ****
  
  static PyObject *
! time_asctime(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	PyObject *tup;
--- 421,425 ----
  
  static PyObject *
! time_asctime(PyObject *self, PyObject *args)
  {
  	PyObject *tup;
***************
*** 465,471 ****
  
  static PyObject *
! time_ctime(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	double dt;
--- 442,446 ----
  
  static PyObject *
! time_ctime(PyObject *self, PyObject *args)
  {
  	double dt;
***************
*** 496,502 ****
  #ifdef HAVE_MKTIME
  static PyObject *
! time_mktime(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	PyObject *tup;
--- 471,475 ----
  #ifdef HAVE_MKTIME
  static PyObject *
! time_mktime(PyObject *self, PyObject *args)
  {
  	PyObject *tup;
***************
*** 550,557 ****
  
  static void
! ins(d, name, v)
! 	PyObject *d;
! 	char *name;
! 	PyObject *v;
  {
  	if (v == NULL)
--- 523,527 ----
  
  static void
! ins(PyObject *d, char *name, PyObject *v)
  {
  	if (v == NULL)