ANSI-fication of the sources.

This commit is contained in:
Fred Drake 2000-07-09 06:21:27 +00:00
parent ee238b977f
commit 45cfbcccc2
3 changed files with 22 additions and 60 deletions

View file

@ -16,8 +16,7 @@ this type and there is exactly one in existence.
#include "Python.h"
static PyObject *
ellipsis_repr(op)
PyObject *op;
ellipsis_repr(PyObject *op)
{
return PyString_FromString("Ellipsis");
}
@ -52,10 +51,7 @@ PyObject _Py_EllipsisObject = {
*/
PyObject *
PySlice_New(start, stop, step)
PyObject *start;
PyObject *stop;
PyObject *step;
PySlice_New(PyObject *start, PyObject *stop, PyObject *step)
{
PySliceObject *obj = PyObject_NEW(PySliceObject, &PySlice_Type);
@ -74,12 +70,8 @@ PySlice_New(start, stop, step)
}
int
PySlice_GetIndices(r, length, start, stop, step)
PySliceObject *r;
int length;
int *start;
int *stop;
int *step;
PySlice_GetIndices(PySliceObject *r, int length,
int *start, int *stop, int *step)
{
if (r->step == Py_None) {
*step = 1;
@ -108,8 +100,7 @@ PySlice_GetIndices(r, length, start, stop, step)
}
static void
slice_dealloc(r)
PySliceObject *r;
slice_dealloc(PySliceObject *r)
{
Py_DECREF(r->step);
Py_DECREF(r->start);
@ -118,8 +109,7 @@ slice_dealloc(r)
}
static PyObject *
slice_repr(r)
PySliceObject *r;
slice_repr(PySliceObject *r)
{
PyObject *s, *comma;
@ -136,9 +126,7 @@ slice_repr(r)
}
static PyObject *slice_getattr(self, name)
PySliceObject *self;
char *name;
static PyObject *slice_getattr(PySliceObject *self, char *name)
{
PyObject *ret;