Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1fea3215
Commit
1fea3215
authored
Apr 19, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use NULL for the ends of tables
parent
cee56630
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
Modules/_io/bufferedio.c
Modules/_io/bufferedio.c
+4
-4
Modules/_io/bytesio.c
Modules/_io/bytesio.c
+1
-1
Modules/_io/fileio.c
Modules/_io/fileio.c
+1
-1
Modules/_io/iobase.c
Modules/_io/iobase.c
+1
-1
Modules/_io/stringio.c
Modules/_io/stringio.c
+1
-1
Modules/_io/textio.c
Modules/_io/textio.c
+4
-4
No files found.
Modules/_io/bufferedio.c
View file @
1fea3215
...
@@ -1414,7 +1414,7 @@ static PyGetSetDef BufferedReader_getset[] = {
...
@@ -1414,7 +1414,7 @@ static PyGetSetDef BufferedReader_getset[] = {
{
"closed"
,
(
getter
)
BufferedIOMixin_closed_get
,
NULL
,
NULL
},
{
"closed"
,
(
getter
)
BufferedIOMixin_closed_get
,
NULL
,
NULL
},
{
"name"
,
(
getter
)
BufferedIOMixin_name_get
,
NULL
,
NULL
},
{
"name"
,
(
getter
)
BufferedIOMixin_name_get
,
NULL
,
NULL
},
{
"mode"
,
(
getter
)
BufferedIOMixin_mode_get
,
NULL
,
NULL
},
{
"mode"
,
(
getter
)
BufferedIOMixin_mode_get
,
NULL
,
NULL
},
{
0
}
{
NULL
}
};
};
...
@@ -1768,7 +1768,7 @@ static PyGetSetDef BufferedWriter_getset[] = {
...
@@ -1768,7 +1768,7 @@ static PyGetSetDef BufferedWriter_getset[] = {
{
"closed"
,
(
getter
)
BufferedIOMixin_closed_get
,
NULL
,
NULL
},
{
"closed"
,
(
getter
)
BufferedIOMixin_closed_get
,
NULL
,
NULL
},
{
"name"
,
(
getter
)
BufferedIOMixin_name_get
,
NULL
,
NULL
},
{
"name"
,
(
getter
)
BufferedIOMixin_name_get
,
NULL
,
NULL
},
{
"mode"
,
(
getter
)
BufferedIOMixin_mode_get
,
NULL
,
NULL
},
{
"mode"
,
(
getter
)
BufferedIOMixin_mode_get
,
NULL
,
NULL
},
{
0
}
{
NULL
}
};
};
...
@@ -2021,7 +2021,7 @@ static PyMethodDef BufferedRWPair_methods[] = {
...
@@ -2021,7 +2021,7 @@ static PyMethodDef BufferedRWPair_methods[] = {
static
PyGetSetDef
BufferedRWPair_getset
[]
=
{
static
PyGetSetDef
BufferedRWPair_getset
[]
=
{
{
"closed"
,
(
getter
)
BufferedRWPair_closed_get
,
NULL
,
NULL
},
{
"closed"
,
(
getter
)
BufferedRWPair_closed_get
,
NULL
,
NULL
},
{
0
}
{
NULL
}
};
};
PyTypeObject
PyBufferedRWPair_Type
=
{
PyTypeObject
PyBufferedRWPair_Type
=
{
...
@@ -2157,7 +2157,7 @@ static PyGetSetDef BufferedRandom_getset[] = {
...
@@ -2157,7 +2157,7 @@ static PyGetSetDef BufferedRandom_getset[] = {
{
"closed"
,
(
getter
)
BufferedIOMixin_closed_get
,
NULL
,
NULL
},
{
"closed"
,
(
getter
)
BufferedIOMixin_closed_get
,
NULL
,
NULL
},
{
"name"
,
(
getter
)
BufferedIOMixin_name_get
,
NULL
,
NULL
},
{
"name"
,
(
getter
)
BufferedIOMixin_name_get
,
NULL
,
NULL
},
{
"mode"
,
(
getter
)
BufferedIOMixin_mode_get
,
NULL
,
NULL
},
{
"mode"
,
(
getter
)
BufferedIOMixin_mode_get
,
NULL
,
NULL
},
{
0
}
{
NULL
}
};
};
...
...
Modules/_io/bytesio.c
View file @
1fea3215
...
@@ -684,7 +684,7 @@ bytesio_clear(BytesIOObject *self)
...
@@ -684,7 +684,7 @@ bytesio_clear(BytesIOObject *self)
static
PyGetSetDef
bytesio_getsetlist
[]
=
{
static
PyGetSetDef
bytesio_getsetlist
[]
=
{
{
"closed"
,
(
getter
)
bytesio_get_closed
,
NULL
,
{
"closed"
,
(
getter
)
bytesio_get_closed
,
NULL
,
"True if the file is closed."
},
"True if the file is closed."
},
{
0
},
/* sentinel */
{
NULL
},
/* sentinel */
};
};
static
struct
PyMethodDef
bytesio_methods
[]
=
{
static
struct
PyMethodDef
bytesio_methods
[]
=
{
...
...
Modules/_io/fileio.c
View file @
1fea3215
...
@@ -987,7 +987,7 @@ static PyGetSetDef fileio_getsetlist[] = {
...
@@ -987,7 +987,7 @@ static PyGetSetDef fileio_getsetlist[] = {
{
"closefd"
,
(
getter
)
get_closefd
,
NULL
,
{
"closefd"
,
(
getter
)
get_closefd
,
NULL
,
"True if the file descriptor will be closed"
},
"True if the file descriptor will be closed"
},
{
"mode"
,
(
getter
)
get_mode
,
NULL
,
"String giving the file mode"
},
{
"mode"
,
(
getter
)
get_mode
,
NULL
,
"String giving the file mode"
},
{
0
},
{
NULL
},
};
};
PyTypeObject
PyFileIO_Type
=
{
PyTypeObject
PyFileIO_Type
=
{
...
...
Modules/_io/iobase.c
View file @
1fea3215
...
@@ -700,7 +700,7 @@ static PyMethodDef IOBase_methods[] = {
...
@@ -700,7 +700,7 @@ static PyMethodDef IOBase_methods[] = {
static
PyGetSetDef
IOBase_getset
[]
=
{
static
PyGetSetDef
IOBase_getset
[]
=
{
{
"closed"
,
(
getter
)
IOBase_closed_get
,
NULL
,
NULL
},
{
"closed"
,
(
getter
)
IOBase_closed_get
,
NULL
,
NULL
},
{
0
}
{
NULL
}
};
};
...
...
Modules/_io/stringio.c
View file @
1fea3215
...
@@ -723,7 +723,7 @@ static PyGetSetDef stringio_getset[] = {
...
@@ -723,7 +723,7 @@ static PyGetSetDef stringio_getset[] = {
{
"encoding"
,
(
getter
)
stringio_encoding
,
NULL
,
NULL
},
{
"encoding"
,
(
getter
)
stringio_encoding
,
NULL
,
NULL
},
{
"errors"
,
(
getter
)
stringio_errors
,
NULL
,
NULL
},
{
"errors"
,
(
getter
)
stringio_errors
,
NULL
,
NULL
},
{
"line_buffering"
,
(
getter
)
stringio_line_buffering
,
NULL
,
NULL
},
{
"line_buffering"
,
(
getter
)
stringio_line_buffering
,
NULL
,
NULL
},
{
0
}
{
NULL
}
};
};
PyTypeObject
PyStringIO_Type
=
{
PyTypeObject
PyStringIO_Type
=
{
...
...
Modules/_io/textio.c
View file @
1fea3215
...
@@ -102,7 +102,7 @@ static PyMethodDef TextIOBase_methods[] = {
...
@@ -102,7 +102,7 @@ static PyMethodDef TextIOBase_methods[] = {
static
PyGetSetDef
TextIOBase_getset
[]
=
{
static
PyGetSetDef
TextIOBase_getset
[]
=
{
{
"encoding"
,
(
getter
)
TextIOBase_encoding_get
,
NULL
,
TextIOBase_encoding_doc
},
{
"encoding"
,
(
getter
)
TextIOBase_encoding_get
,
NULL
,
TextIOBase_encoding_doc
},
{
"newlines"
,
(
getter
)
TextIOBase_newlines_get
,
NULL
,
TextIOBase_newlines_doc
},
{
"newlines"
,
(
getter
)
TextIOBase_newlines_get
,
NULL
,
TextIOBase_newlines_doc
},
{
0
}
{
NULL
}
};
};
PyTypeObject
PyTextIOBase_Type
=
{
PyTypeObject
PyTextIOBase_Type
=
{
...
@@ -534,12 +534,12 @@ static PyMethodDef IncrementalNewlineDecoder_methods[] = {
...
@@ -534,12 +534,12 @@ static PyMethodDef IncrementalNewlineDecoder_methods[] = {
{
"getstate"
,
(
PyCFunction
)
IncrementalNewlineDecoder_getstate
,
METH_NOARGS
},
{
"getstate"
,
(
PyCFunction
)
IncrementalNewlineDecoder_getstate
,
METH_NOARGS
},
{
"setstate"
,
(
PyCFunction
)
IncrementalNewlineDecoder_setstate
,
METH_O
},
{
"setstate"
,
(
PyCFunction
)
IncrementalNewlineDecoder_setstate
,
METH_O
},
{
"reset"
,
(
PyCFunction
)
IncrementalNewlineDecoder_reset
,
METH_NOARGS
},
{
"reset"
,
(
PyCFunction
)
IncrementalNewlineDecoder_reset
,
METH_NOARGS
},
{
0
}
{
NULL
}
};
};
static
PyGetSetDef
IncrementalNewlineDecoder_getset
[]
=
{
static
PyGetSetDef
IncrementalNewlineDecoder_getset
[]
=
{
{
"newlines"
,
(
getter
)
IncrementalNewlineDecoder_newlines_get
,
NULL
,
NULL
},
{
"newlines"
,
(
getter
)
IncrementalNewlineDecoder_newlines_get
,
NULL
,
NULL
},
{
0
}
{
NULL
}
};
};
PyTypeObject
PyIncrementalNewlineDecoder_Type
=
{
PyTypeObject
PyIncrementalNewlineDecoder_Type
=
{
...
@@ -2374,7 +2374,7 @@ static PyGetSetDef TextIOWrapper_getset[] = {
...
@@ -2374,7 +2374,7 @@ static PyGetSetDef TextIOWrapper_getset[] = {
{
"newlines"
,
(
getter
)
TextIOWrapper_newlines_get
,
NULL
,
NULL
},
{
"newlines"
,
(
getter
)
TextIOWrapper_newlines_get
,
NULL
,
NULL
},
{
"_CHUNK_SIZE"
,
(
getter
)
TextIOWrapper_chunk_size_get
,
{
"_CHUNK_SIZE"
,
(
getter
)
TextIOWrapper_chunk_size_get
,
(
setter
)
TextIOWrapper_chunk_size_set
,
NULL
},
(
setter
)
TextIOWrapper_chunk_size_set
,
NULL
},
{
0
}
{
NULL
}
};
};
PyTypeObject
PyTextIOWrapper_Type
=
{
PyTypeObject
PyTextIOWrapper_Type
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment