summaryrefslogtreecommitdiffstats
path: root/Objects/sliceobject.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-09 06:21:27 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-09 06:21:27 (GMT)
commit45cfbcccc287ae52656737466ca071ca18f603c7 (patch)
tree01965036705de6815adcf78e2938de5ffaf85c26 /Objects/sliceobject.c
parentee238b977fb7a58a4b88bdab087579d067df6451 (diff)
downloadcpython-45cfbcccc287ae52656737466ca071ca18f603c7.zip
cpython-45cfbcccc287ae52656737466ca071ca18f603c7.tar.gz
cpython-45cfbcccc287ae52656737466ca071ca18f603c7.tar.bz2
ANSI-fication of the sources.
Diffstat (limited to 'Objects/sliceobject.c')
-rw-r--r--Objects/sliceobject.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c
index eb4972b..50e042a 100644
--- a/Objects/sliceobject.c
+++ b/Objects/sliceobject.c
@@ -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;