[Python-checkins] CVS: python/dist/src/Modules dlmodule.c,2.9,2.10 newmodule.c,2.23,2.24 xxmodule.c,2.18,2.19

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


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

Modified Files:
	dlmodule.c newmodule.c xxmodule.c 
Log Message:


ANSI-fication


Index: dlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/dlmodule.c,v
retrieving revision 2.9
retrieving revision 2.10
diff -C2 -r2.9 -r2.10
*** dlmodule.c	2000/06/30 23:58:05	2.9
--- dlmodule.c	2000/07/10 11:56:03	2.10
***************
*** 30,35 ****
  
  static PyObject *
! newdlobject(handle)
! 	PyUnivPtr *handle;
  {
  	dlobject *xp;
--- 30,34 ----
  
  static PyObject *
! newdlobject(PyUnivPtr *handle)
  {
  	dlobject *xp;
***************
*** 42,47 ****
  
  static void
! dl_dealloc(xp)
! 	dlobject *xp;
  {
  	if (xp->dl_handle != NULL)
--- 41,45 ----
  
  static void
! dl_dealloc(dlobject *xp)
  {
  	if (xp->dl_handle != NULL)
***************
*** 51,57 ****
  
  static PyObject *
! dl_close(xp, args)
! 	dlobject *xp;
! 	PyObject *args;
  {
  	if (!PyArg_Parse(args, ""))
--- 49,53 ----
  
  static PyObject *
! dl_close(dlobject *xp, PyObject *args)
  {
  	if (!PyArg_Parse(args, ""))
***************
*** 66,72 ****
  
  static PyObject *
! dl_sym(xp, args)
! 	dlobject *xp;
! 	PyObject *args;
  {
  	char *name;
--- 62,66 ----
  
  static PyObject *
! dl_sym(dlobject *xp, PyObject *args)
  {
  	char *name;
***************
*** 83,89 ****
  
  static PyObject *
! dl_call(xp, args)
! 	dlobject *xp;
! 	PyObject *args; /* (varargs) */
  {
  	PyObject *name;
--- 77,81 ----
  
  static PyObject *
! dl_call(dlobject *xp, PyObject *args)
  {
  	PyObject *name;
***************
*** 142,148 ****
  
  static PyObject *
! dl_getattr(xp, name)
! 	dlobject *xp;
! 	char *name;
  {
  	return Py_FindMethod(dlobject_methods, (PyObject *)xp, name);
--- 134,138 ----
  
  static PyObject *
! dl_getattr(dlobject *xp, char *name)
  {
  	return Py_FindMethod(dlobject_methods, (PyObject *)xp, name);
***************
*** 170,176 ****
  
  static PyObject *
! dl_open(self, args)
! 	PyObject *self;
! 	PyObject *args;
  {
  	char *name;
--- 160,164 ----
  
  static PyObject *
! dl_open(PyObject *self, PyObject *args)
  {
  	char *name;

Index: newmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/newmodule.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -r2.23 -r2.24
*** newmodule.c	2000/06/30 23:58:05	2.23
--- newmodule.c	2000/07/10 11:56:03	2.24
***************
*** 18,24 ****
  
  static PyObject *
! new_instance(unused, args)
! 	PyObject* unused;
! 	PyObject* args;
  {
  	PyObject* klass;
--- 18,22 ----
  
  static PyObject *
! new_instance(PyObject* unused, PyObject* args)
  {
  	PyObject* klass;
***************
*** 44,50 ****
  
  static PyObject *
! new_instancemethod(unused, args)
! 	PyObject* unused;
! 	PyObject* args;
  {
  	PyObject* func;
--- 42,46 ----
  
  static PyObject *
! new_instancemethod(PyObject* unused, PyObject* args)
  {
  	PyObject* func;
***************
*** 76,82 ****
  
  static PyObject *
! new_function(unused, args)
! 	PyObject* unused;
! 	PyObject* args;
  {
  	PyObject* code;
--- 72,76 ----
  
  static PyObject *
! new_function(PyObject* unused, PyObject* args)
  {
  	PyObject* code;
***************
*** 115,121 ****
  
  static PyObject *
! new_code(unused, args)
! 	PyObject* unused;
! 	PyObject* args;
  {
  	int argcount;
--- 109,113 ----
  
  static PyObject *
! new_code(PyObject* unused, PyObject* args)
  {
  	int argcount;
***************
*** 163,169 ****
  
  static PyObject *
! new_module(unused, args)
! 	PyObject* unused;
! 	PyObject* args;
  {
  	char *name;
--- 155,159 ----
  
  static PyObject *
! new_module(PyObject* unused, PyObject* args)
  {
  	char *name;
***************
*** 178,184 ****
  
  static PyObject *
! new_class(unused, args)
! 	PyObject* unused;
! 	PyObject* args;
  {
  	PyObject * name;
--- 168,172 ----
  
  static PyObject *
! new_class(PyObject* unused, PyObject* args)
  {
  	PyObject * name;

Index: xxmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/xxmodule.c,v
retrieving revision 2.18
retrieving revision 2.19
diff -C2 -r2.18 -r2.19
*** xxmodule.c	2000/06/30 23:58:05	2.18
--- xxmodule.c	2000/07/10 11:56:03	2.19
***************
*** 38,43 ****
  
  static XxoObject *
! newXxoObject(arg)
! 	PyObject *arg;
  {
  	XxoObject *self;
--- 38,42 ----
  
  static XxoObject *
! newXxoObject(PyObject *arg)
  {
  	XxoObject *self;
***************
*** 52,57 ****
  
  static void
! Xxo_dealloc(self)
! 	XxoObject *self;
  {
  	Py_XDECREF(self->x_attr);
--- 51,55 ----
  
  static void
! Xxo_dealloc(XxoObject *self)
  {
  	Py_XDECREF(self->x_attr);
***************
*** 60,66 ****
  
  static PyObject *
! Xxo_demo(self, args)
! 	XxoObject *self;
! 	PyObject *args;
  {
  	if (!PyArg_ParseTuple(args, ":demo"))
--- 58,62 ----
  
  static PyObject *
! Xxo_demo(XxoObject *self, PyObject *args)
  {
  	if (!PyArg_ParseTuple(args, ":demo"))
***************
*** 76,82 ****
  
  static PyObject *
! Xxo_getattr(self, name)
! 	XxoObject *self;
! 	char *name;
  {
  	if (self->x_attr != NULL) {
--- 72,76 ----
  
  static PyObject *
! Xxo_getattr(XxoObject *self, char *name)
  {
  	if (self->x_attr != NULL) {
***************
*** 91,98 ****
  
  static int
! Xxo_setattr(self, name, v)
! 	XxoObject *self;
! 	char *name;
! 	PyObject *v;
  {
  	if (self->x_attr == NULL) {
--- 85,89 ----
  
  static int
! Xxo_setattr(XxoObject *self, char *name, PyObject *v)
  {
  	if (self->x_attr == NULL) {
***************
*** 137,143 ****
  
  static PyObject *
! xx_foo(self, args)
! 	PyObject *self; /* Not used */
! 	PyObject *args;
  {
  	long i, j;
--- 128,132 ----
  
  static PyObject *
! xx_foo(PyObject *self, PyObject *args)
  {
  	long i, j;
***************
*** 153,159 ****
  
  static PyObject *
! xx_new(self, args)
! 	PyObject *self; /* Not used */
! 	PyObject *args;
  {
  	XxoObject *rv;
--- 142,146 ----
  
  static PyObject *
! xx_new(PyObject *self, PyObject *args)
  {
  	XxoObject *rv;
***************
*** 170,176 ****
  
  static PyObject *
! xx_bug(self, args)
!     PyObject *self;
!     PyObject *args;
  {
  	PyObject *list, *item;
--- 157,161 ----
  
  static PyObject *
! xx_bug(PyObject *self, PyObject *args)
  {
  	PyObject *list, *item;
***************
*** 193,199 ****
  
  static PyObject *
! xx_roj(self, args)
! 	PyObject *self; /* Not used */
! 	PyObject *args;
  {
  	PyObject *a;
--- 178,182 ----
  
  static PyObject *
! xx_roj(PyObject *self, PyObject *args)
  {
  	PyObject *a;