[Python-checkins] r71742 - in python/branches/py3k/Modules/_io: bufferedio.c bytesio.c fileio.c iobase.c stringio.c textio.c

benjamin.peterson python-checkins at python.org
Sun Apr 19 05:15:21 CEST 2009


Author: benjamin.peterson
Date: Sun Apr 19 05:15:20 2009
New Revision: 71742

Log:
use NULL for the ends of tables

Modified:
   python/branches/py3k/Modules/_io/bufferedio.c
   python/branches/py3k/Modules/_io/bytesio.c
   python/branches/py3k/Modules/_io/fileio.c
   python/branches/py3k/Modules/_io/iobase.c
   python/branches/py3k/Modules/_io/stringio.c
   python/branches/py3k/Modules/_io/textio.c

Modified: python/branches/py3k/Modules/_io/bufferedio.c
==============================================================================
--- python/branches/py3k/Modules/_io/bufferedio.c	(original)
+++ python/branches/py3k/Modules/_io/bufferedio.c	Sun Apr 19 05:15:20 2009
@@ -1414,7 +1414,7 @@
     {"closed", (getter)BufferedIOMixin_closed_get, NULL, NULL},
     {"name", (getter)BufferedIOMixin_name_get, NULL, NULL},
     {"mode", (getter)BufferedIOMixin_mode_get, NULL, NULL},
-    {0}
+    {NULL}
 };
 
 
@@ -1768,7 +1768,7 @@
     {"closed", (getter)BufferedIOMixin_closed_get, NULL, NULL},
     {"name", (getter)BufferedIOMixin_name_get, NULL, NULL},
     {"mode", (getter)BufferedIOMixin_mode_get, NULL, NULL},
-    {0}
+    {NULL}
 };
 
 
@@ -2021,7 +2021,7 @@
 
 static PyGetSetDef BufferedRWPair_getset[] = {
     {"closed", (getter)BufferedRWPair_closed_get, NULL, NULL},
-    {0}
+    {NULL}
 };
 
 PyTypeObject PyBufferedRWPair_Type = {
@@ -2157,7 +2157,7 @@
     {"closed", (getter)BufferedIOMixin_closed_get, NULL, NULL},
     {"name", (getter)BufferedIOMixin_name_get, NULL, NULL},
     {"mode", (getter)BufferedIOMixin_mode_get, NULL, NULL},
-    {0}
+    {NULL}
 };
 
 

Modified: python/branches/py3k/Modules/_io/bytesio.c
==============================================================================
--- python/branches/py3k/Modules/_io/bytesio.c	(original)
+++ python/branches/py3k/Modules/_io/bytesio.c	Sun Apr 19 05:15:20 2009
@@ -684,7 +684,7 @@
 static PyGetSetDef bytesio_getsetlist[] = {
     {"closed",  (getter)bytesio_get_closed, NULL,
      "True if the file is closed."},
-    {0},            /* sentinel */
+    {NULL},            /* sentinel */
 };
 
 static struct PyMethodDef bytesio_methods[] = {

Modified: python/branches/py3k/Modules/_io/fileio.c
==============================================================================
--- python/branches/py3k/Modules/_io/fileio.c	(original)
+++ python/branches/py3k/Modules/_io/fileio.c	Sun Apr 19 05:15:20 2009
@@ -987,7 +987,7 @@
 	{"closefd", (getter)get_closefd, NULL, 
 		"True if the file descriptor will be closed"},
 	{"mode", (getter)get_mode, NULL, "String giving the file mode"},
-	{0},
+	{NULL},
 };
 
 PyTypeObject PyFileIO_Type = {

Modified: python/branches/py3k/Modules/_io/iobase.c
==============================================================================
--- python/branches/py3k/Modules/_io/iobase.c	(original)
+++ python/branches/py3k/Modules/_io/iobase.c	Sun Apr 19 05:15:20 2009
@@ -700,7 +700,7 @@
 
 static PyGetSetDef IOBase_getset[] = {
     {"closed", (getter)IOBase_closed_get, NULL, NULL},
-    {0}
+    {NULL}
 };
 
 

Modified: python/branches/py3k/Modules/_io/stringio.c
==============================================================================
--- python/branches/py3k/Modules/_io/stringio.c	(original)
+++ python/branches/py3k/Modules/_io/stringio.c	Sun Apr 19 05:15:20 2009
@@ -723,7 +723,7 @@
     {"encoding",       (getter)stringio_encoding,       NULL, NULL},
     {"errors",         (getter)stringio_errors,         NULL, NULL},
     {"line_buffering", (getter)stringio_line_buffering, NULL, NULL},
-    {0}
+    {NULL}
 };
 
 PyTypeObject PyStringIO_Type = {

Modified: python/branches/py3k/Modules/_io/textio.c
==============================================================================
--- python/branches/py3k/Modules/_io/textio.c	(original)
+++ python/branches/py3k/Modules/_io/textio.c	Sun Apr 19 05:15:20 2009
@@ -102,7 +102,7 @@
 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 @@
     {"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 @@
     {"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 = {


More information about the Python-checkins mailing list