summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-19 03:15:20 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-19 03:15:20 (GMT)
commit1fea321502631184f8c3f1580159e3f2bcc5ee4b (patch)
treea42417656b9d68d6694981e6dc3ba3c96aa2030a /Modules/_io/textio.c
parentcee5663068a706b255de0ba45fe956ba6fb49ef2 (diff)
downloadcpython-1fea321502631184f8c3f1580159e3f2bcc5ee4b.zip
cpython-1fea321502631184f8c3f1580159e3f2bcc5ee4b.tar.gz
cpython-1fea321502631184f8c3f1580159e3f2bcc5ee4b.tar.bz2
use NULL for the ends of tables
Diffstat (limited to 'Modules/_io/textio.c')
-rw-r--r--Modules/_io/textio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index cc229a8..26fc68d 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -102,7 +102,7 @@ static PyMethodDef TextIOBase_methods[] = {
static PyGetSetDef TextIOBase_getset[] = {
{"encoding", (getter)TextIOBase_encoding_get, NULL, TextIOBase_encoding_doc},
{"newlines", (getter)TextIOBase_newlines_get, NULL, TextIOBase_newlines_doc},
- {0}
+ {NULL}
};
PyTypeObject PyTextIOBase_Type = {
@@ -534,12 +534,12 @@ static PyMethodDef IncrementalNewlineDecoder_methods[] = {
{"getstate", (PyCFunction)IncrementalNewlineDecoder_getstate, METH_NOARGS},
{"setstate", (PyCFunction)IncrementalNewlineDecoder_setstate, METH_O},
{"reset", (PyCFunction)IncrementalNewlineDecoder_reset, METH_NOARGS},
- {0}
+ {NULL}
};
static PyGetSetDef IncrementalNewlineDecoder_getset[] = {
{"newlines", (getter)IncrementalNewlineDecoder_newlines_get, NULL, NULL},
- {0}
+ {NULL}
};
PyTypeObject PyIncrementalNewlineDecoder_Type = {
@@ -2374,7 +2374,7 @@ static PyGetSetDef TextIOWrapper_getset[] = {
{"newlines", (getter)TextIOWrapper_newlines_get, NULL, NULL},
{"_CHUNK_SIZE", (getter)TextIOWrapper_chunk_size_get,
(setter)TextIOWrapper_chunk_size_set, NULL},
- {0}
+ {NULL}
};
PyTypeObject PyTextIOWrapper_Type = {