summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2001-01-11 15:40:39 (GMT)
committerThomas Wouters <thomas@python.org>2001-01-11 15:40:39 (GMT)
commit9fdcf4ad39ad736d061e3322d918b1be87931d8d (patch)
tree7e616365027caac41a8517f9c56093e7f668c7e5 /Modules
parent0d36206afd0c92764e93db2c39b5c22f5ed8960c (diff)
downloadcpython-9fdcf4ad39ad736d061e3322d918b1be87931d8d.zip
cpython-9fdcf4ad39ad736d061e3322d918b1be87931d8d.tar.gz
cpython-9fdcf4ad39ad736d061e3322d918b1be87931d8d.tar.bz2
Conform the new module to /the/ C style.
Noone but me cares, but Guido said to go ahead and fix it if it bothered me.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/xreadlinesmodule.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c
index dc74f5d..4f8b398 100644
--- a/Modules/xreadlinesmodule.c
+++ b/Modules/xreadlinesmodule.c
@@ -17,7 +17,8 @@ typedef struct {
staticforward PyTypeObject XReadlinesObject_Type;
static void
-xreadlines_dealloc(PyXReadlinesObject *op) {
+xreadlines_dealloc(PyXReadlinesObject *op)
+{
Py_XDECREF(op->file);
Py_XDECREF(op->lines);
PyObject_DEL(op);
@@ -27,7 +28,8 @@ xreadlines_dealloc(PyXReadlinesObject *op) {
#define CHUNKSIZE 8192
static PyXReadlinesObject *
-newreadlinesobject(PyObject *file) {
+newreadlinesobject(PyObject *file)
+{
PyXReadlinesObject *op;
op = PyObject_NEW(PyXReadlinesObject, &XReadlinesObject_Type);
if (op == NULL)
@@ -40,7 +42,8 @@ newreadlinesobject(PyObject *file) {
}
static PyObject *
-xreadlines(PyObject *self, PyObject *args) {
+xreadlines(PyObject *self, PyObject *args)
+{
PyObject *file;
PyXReadlinesObject *ret;
@@ -51,8 +54,9 @@ xreadlines(PyObject *self, PyObject *args) {
return (PyObject*)ret;
}
-static PyObject*
-xreadlines_item(PyXReadlinesObject *a, int i) {
+static PyObject *
+xreadlines_item(PyXReadlinesObject *a, int i)
+{
if (i != a->abslineno) {
PyErr_SetString(PyExc_RuntimeError,
"xreadlines object accessed out of order");