mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210)
Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func).
This commit is contained in:
parent
c278474df9
commit
b270b82f11
99 changed files with 978 additions and 975 deletions
8
Modules/_io/clinic/_iomodule.c.h
generated
8
Modules/_io/clinic/_iomodule.c.h
generated
|
@ -122,7 +122,7 @@ PyDoc_STRVAR(_io_open__doc__,
|
|||
"opened in a binary mode.");
|
||||
|
||||
#define _IO_OPEN_METHODDEF \
|
||||
{"open", (PyCFunction)(void(*)(void))_io_open, METH_FASTCALL|METH_KEYWORDS, _io_open__doc__},
|
||||
{"open", _PyCFunction_CAST(_io_open), METH_FASTCALL|METH_KEYWORDS, _io_open__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
|
||||
|
@ -284,7 +284,7 @@ PyDoc_STRVAR(_io_text_encoding__doc__,
|
|||
"However, please consider using encoding=\"utf-8\" for new APIs.");
|
||||
|
||||
#define _IO_TEXT_ENCODING_METHODDEF \
|
||||
{"text_encoding", (PyCFunction)(void(*)(void))_io_text_encoding, METH_FASTCALL, _io_text_encoding__doc__},
|
||||
{"text_encoding", _PyCFunction_CAST(_io_text_encoding), METH_FASTCALL, _io_text_encoding__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_text_encoding_impl(PyObject *module, PyObject *encoding, int stacklevel);
|
||||
|
@ -324,7 +324,7 @@ PyDoc_STRVAR(_io_open_code__doc__,
|
|||
"with calling open(path, \'rb\').");
|
||||
|
||||
#define _IO_OPEN_CODE_METHODDEF \
|
||||
{"open_code", (PyCFunction)(void(*)(void))_io_open_code, METH_FASTCALL|METH_KEYWORDS, _io_open_code__doc__},
|
||||
{"open_code", _PyCFunction_CAST(_io_open_code), METH_FASTCALL|METH_KEYWORDS, _io_open_code__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_open_code_impl(PyObject *module, PyObject *path);
|
||||
|
@ -355,4 +355,4 @@ _io_open_code(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=e562f29e3c2533a6 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=c4d7e4ef878985f8 input=a9049054013a1b77]*/
|
||||
|
|
14
Modules/_io/clinic/bufferedio.c.h
generated
14
Modules/_io/clinic/bufferedio.c.h
generated
|
@ -103,7 +103,7 @@ PyDoc_STRVAR(_io__Buffered_peek__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO__BUFFERED_PEEK_METHODDEF \
|
||||
{"peek", (PyCFunction)(void(*)(void))_io__Buffered_peek, METH_FASTCALL, _io__Buffered_peek__doc__},
|
||||
{"peek", _PyCFunction_CAST(_io__Buffered_peek), METH_FASTCALL, _io__Buffered_peek__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__Buffered_peek_impl(buffered *self, Py_ssize_t size);
|
||||
|
@ -145,7 +145,7 @@ PyDoc_STRVAR(_io__Buffered_read__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO__BUFFERED_READ_METHODDEF \
|
||||
{"read", (PyCFunction)(void(*)(void))_io__Buffered_read, METH_FASTCALL, _io__Buffered_read__doc__},
|
||||
{"read", _PyCFunction_CAST(_io__Buffered_read), METH_FASTCALL, _io__Buffered_read__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__Buffered_read_impl(buffered *self, Py_ssize_t n);
|
||||
|
@ -178,7 +178,7 @@ PyDoc_STRVAR(_io__Buffered_read1__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO__BUFFERED_READ1_METHODDEF \
|
||||
{"read1", (PyCFunction)(void(*)(void))_io__Buffered_read1, METH_FASTCALL, _io__Buffered_read1__doc__},
|
||||
{"read1", _PyCFunction_CAST(_io__Buffered_read1), METH_FASTCALL, _io__Buffered_read1__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__Buffered_read1_impl(buffered *self, Py_ssize_t n);
|
||||
|
@ -294,7 +294,7 @@ PyDoc_STRVAR(_io__Buffered_readline__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO__BUFFERED_READLINE_METHODDEF \
|
||||
{"readline", (PyCFunction)(void(*)(void))_io__Buffered_readline, METH_FASTCALL, _io__Buffered_readline__doc__},
|
||||
{"readline", _PyCFunction_CAST(_io__Buffered_readline), METH_FASTCALL, _io__Buffered_readline__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__Buffered_readline_impl(buffered *self, Py_ssize_t size);
|
||||
|
@ -327,7 +327,7 @@ PyDoc_STRVAR(_io__Buffered_seek__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO__BUFFERED_SEEK_METHODDEF \
|
||||
{"seek", (PyCFunction)(void(*)(void))_io__Buffered_seek, METH_FASTCALL, _io__Buffered_seek__doc__},
|
||||
{"seek", _PyCFunction_CAST(_io__Buffered_seek), METH_FASTCALL, _io__Buffered_seek__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence);
|
||||
|
@ -363,7 +363,7 @@ PyDoc_STRVAR(_io__Buffered_truncate__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO__BUFFERED_TRUNCATE_METHODDEF \
|
||||
{"truncate", (PyCFunction)(void(*)(void))_io__Buffered_truncate, METH_FASTCALL, _io__Buffered_truncate__doc__},
|
||||
{"truncate", _PyCFunction_CAST(_io__Buffered_truncate), METH_FASTCALL, _io__Buffered_truncate__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__Buffered_truncate_impl(buffered *self, PyObject *pos);
|
||||
|
@ -638,4 +638,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=79138a088729b5ee input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=820461c6b0e29e48 input=a9049054013a1b77]*/
|
||||
|
|
14
Modules/_io/clinic/bytesio.c.h
generated
14
Modules/_io/clinic/bytesio.c.h
generated
|
@ -158,7 +158,7 @@ PyDoc_STRVAR(_io_BytesIO_read__doc__,
|
|||
"Return an empty bytes object at EOF.");
|
||||
|
||||
#define _IO_BYTESIO_READ_METHODDEF \
|
||||
{"read", (PyCFunction)(void(*)(void))_io_BytesIO_read, METH_FASTCALL, _io_BytesIO_read__doc__},
|
||||
{"read", _PyCFunction_CAST(_io_BytesIO_read), METH_FASTCALL, _io_BytesIO_read__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_BytesIO_read_impl(bytesio *self, Py_ssize_t size);
|
||||
|
@ -195,7 +195,7 @@ PyDoc_STRVAR(_io_BytesIO_read1__doc__,
|
|||
"Return an empty bytes object at EOF.");
|
||||
|
||||
#define _IO_BYTESIO_READ1_METHODDEF \
|
||||
{"read1", (PyCFunction)(void(*)(void))_io_BytesIO_read1, METH_FASTCALL, _io_BytesIO_read1__doc__},
|
||||
{"read1", _PyCFunction_CAST(_io_BytesIO_read1), METH_FASTCALL, _io_BytesIO_read1__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_BytesIO_read1_impl(bytesio *self, Py_ssize_t size);
|
||||
|
@ -233,7 +233,7 @@ PyDoc_STRVAR(_io_BytesIO_readline__doc__,
|
|||
"Return an empty bytes object at EOF.");
|
||||
|
||||
#define _IO_BYTESIO_READLINE_METHODDEF \
|
||||
{"readline", (PyCFunction)(void(*)(void))_io_BytesIO_readline, METH_FASTCALL, _io_BytesIO_readline__doc__},
|
||||
{"readline", _PyCFunction_CAST(_io_BytesIO_readline), METH_FASTCALL, _io_BytesIO_readline__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_BytesIO_readline_impl(bytesio *self, Py_ssize_t size);
|
||||
|
@ -271,7 +271,7 @@ PyDoc_STRVAR(_io_BytesIO_readlines__doc__,
|
|||
"total number of bytes in the lines returned.");
|
||||
|
||||
#define _IO_BYTESIO_READLINES_METHODDEF \
|
||||
{"readlines", (PyCFunction)(void(*)(void))_io_BytesIO_readlines, METH_FASTCALL, _io_BytesIO_readlines__doc__},
|
||||
{"readlines", _PyCFunction_CAST(_io_BytesIO_readlines), METH_FASTCALL, _io_BytesIO_readlines__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_BytesIO_readlines_impl(bytesio *self, PyObject *arg);
|
||||
|
@ -347,7 +347,7 @@ PyDoc_STRVAR(_io_BytesIO_truncate__doc__,
|
|||
"The current file position is unchanged. Returns the new size.");
|
||||
|
||||
#define _IO_BYTESIO_TRUNCATE_METHODDEF \
|
||||
{"truncate", (PyCFunction)(void(*)(void))_io_BytesIO_truncate, METH_FASTCALL, _io_BytesIO_truncate__doc__},
|
||||
{"truncate", _PyCFunction_CAST(_io_BytesIO_truncate), METH_FASTCALL, _io_BytesIO_truncate__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_BytesIO_truncate_impl(bytesio *self, Py_ssize_t size);
|
||||
|
@ -387,7 +387,7 @@ PyDoc_STRVAR(_io_BytesIO_seek__doc__,
|
|||
"Returns the new absolute position.");
|
||||
|
||||
#define _IO_BYTESIO_SEEK_METHODDEF \
|
||||
{"seek", (PyCFunction)(void(*)(void))_io_BytesIO_seek, METH_FASTCALL, _io_BytesIO_seek__doc__},
|
||||
{"seek", _PyCFunction_CAST(_io_BytesIO_seek), METH_FASTCALL, _io_BytesIO_seek__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_BytesIO_seek_impl(bytesio *self, Py_ssize_t pos, int whence);
|
||||
|
@ -505,4 +505,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=49a32140eb8c5555 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=93d9700a6cf395b8 input=a9049054013a1b77]*/
|
||||
|
|
8
Modules/_io/clinic/fileio.c.h
generated
8
Modules/_io/clinic/fileio.c.h
generated
|
@ -245,7 +245,7 @@ PyDoc_STRVAR(_io_FileIO_read__doc__,
|
|||
"Return an empty bytes object at EOF.");
|
||||
|
||||
#define _IO_FILEIO_READ_METHODDEF \
|
||||
{"read", (PyCFunction)(void(*)(void))_io_FileIO_read, METH_FASTCALL, _io_FileIO_read__doc__},
|
||||
{"read", _PyCFunction_CAST(_io_FileIO_read), METH_FASTCALL, _io_FileIO_read__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_FileIO_read_impl(fileio *self, Py_ssize_t size);
|
||||
|
@ -327,7 +327,7 @@ PyDoc_STRVAR(_io_FileIO_seek__doc__,
|
|||
"Note that not all file objects are seekable.");
|
||||
|
||||
#define _IO_FILEIO_SEEK_METHODDEF \
|
||||
{"seek", (PyCFunction)(void(*)(void))_io_FileIO_seek, METH_FASTCALL, _io_FileIO_seek__doc__},
|
||||
{"seek", _PyCFunction_CAST(_io_FileIO_seek), METH_FASTCALL, _io_FileIO_seek__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_FileIO_seek_impl(fileio *self, PyObject *pos, int whence);
|
||||
|
@ -389,7 +389,7 @@ PyDoc_STRVAR(_io_FileIO_truncate__doc__,
|
|||
"The current file position is changed to the value of size.");
|
||||
|
||||
#define _IO_FILEIO_TRUNCATE_METHODDEF \
|
||||
{"truncate", (PyCFunction)(void(*)(void))_io_FileIO_truncate, METH_FASTCALL, _io_FileIO_truncate__doc__},
|
||||
{"truncate", _PyCFunction_CAST(_io_FileIO_truncate), METH_FASTCALL, _io_FileIO_truncate__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_FileIO_truncate_impl(fileio *self, PyObject *posobj);
|
||||
|
@ -437,4 +437,4 @@ _io_FileIO_isatty(fileio *self, PyObject *Py_UNUSED(ignored))
|
|||
#ifndef _IO_FILEIO_TRUNCATE_METHODDEF
|
||||
#define _IO_FILEIO_TRUNCATE_METHODDEF
|
||||
#endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */
|
||||
/*[clinic end generated code: output=3479912ec0f7e029 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=fdcf0f9277d44415 input=a9049054013a1b77]*/
|
||||
|
|
8
Modules/_io/clinic/iobase.c.h
generated
8
Modules/_io/clinic/iobase.c.h
generated
|
@ -174,7 +174,7 @@ PyDoc_STRVAR(_io__IOBase_readline__doc__,
|
|||
"terminator(s) recognized.");
|
||||
|
||||
#define _IO__IOBASE_READLINE_METHODDEF \
|
||||
{"readline", (PyCFunction)(void(*)(void))_io__IOBase_readline, METH_FASTCALL, _io__IOBase_readline__doc__},
|
||||
{"readline", _PyCFunction_CAST(_io__IOBase_readline), METH_FASTCALL, _io__IOBase_readline__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__IOBase_readline_impl(PyObject *self, Py_ssize_t limit);
|
||||
|
@ -212,7 +212,7 @@ PyDoc_STRVAR(_io__IOBase_readlines__doc__,
|
|||
"lines so far exceeds hint.");
|
||||
|
||||
#define _IO__IOBASE_READLINES_METHODDEF \
|
||||
{"readlines", (PyCFunction)(void(*)(void))_io__IOBase_readlines, METH_FASTCALL, _io__IOBase_readlines__doc__},
|
||||
{"readlines", _PyCFunction_CAST(_io__IOBase_readlines), METH_FASTCALL, _io__IOBase_readlines__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__IOBase_readlines_impl(PyObject *self, Py_ssize_t hint);
|
||||
|
@ -257,7 +257,7 @@ PyDoc_STRVAR(_io__RawIOBase_read__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO__RAWIOBASE_READ_METHODDEF \
|
||||
{"read", (PyCFunction)(void(*)(void))_io__RawIOBase_read, METH_FASTCALL, _io__RawIOBase_read__doc__},
|
||||
{"read", _PyCFunction_CAST(_io__RawIOBase_read), METH_FASTCALL, _io__RawIOBase_read__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__RawIOBase_read_impl(PyObject *self, Py_ssize_t n);
|
||||
|
@ -310,4 +310,4 @@ _io__RawIOBase_readall(PyObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _io__RawIOBase_readall_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=83c1361a7a51ca84 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0362e134da2d8641 input=a9049054013a1b77]*/
|
||||
|
|
10
Modules/_io/clinic/stringio.c.h
generated
10
Modules/_io/clinic/stringio.c.h
generated
|
@ -48,7 +48,7 @@ PyDoc_STRVAR(_io_StringIO_read__doc__,
|
|||
"is reached. Return an empty string at EOF.");
|
||||
|
||||
#define _IO_STRINGIO_READ_METHODDEF \
|
||||
{"read", (PyCFunction)(void(*)(void))_io_StringIO_read, METH_FASTCALL, _io_StringIO_read__doc__},
|
||||
{"read", _PyCFunction_CAST(_io_StringIO_read), METH_FASTCALL, _io_StringIO_read__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_StringIO_read_impl(stringio *self, Py_ssize_t size);
|
||||
|
@ -84,7 +84,7 @@ PyDoc_STRVAR(_io_StringIO_readline__doc__,
|
|||
"Returns an empty string if EOF is hit immediately.");
|
||||
|
||||
#define _IO_STRINGIO_READLINE_METHODDEF \
|
||||
{"readline", (PyCFunction)(void(*)(void))_io_StringIO_readline, METH_FASTCALL, _io_StringIO_readline__doc__},
|
||||
{"readline", _PyCFunction_CAST(_io_StringIO_readline), METH_FASTCALL, _io_StringIO_readline__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_StringIO_readline_impl(stringio *self, Py_ssize_t size);
|
||||
|
@ -122,7 +122,7 @@ PyDoc_STRVAR(_io_StringIO_truncate__doc__,
|
|||
"Returns the new absolute position.");
|
||||
|
||||
#define _IO_STRINGIO_TRUNCATE_METHODDEF \
|
||||
{"truncate", (PyCFunction)(void(*)(void))_io_StringIO_truncate, METH_FASTCALL, _io_StringIO_truncate__doc__},
|
||||
{"truncate", _PyCFunction_CAST(_io_StringIO_truncate), METH_FASTCALL, _io_StringIO_truncate__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_StringIO_truncate_impl(stringio *self, Py_ssize_t size);
|
||||
|
@ -162,7 +162,7 @@ PyDoc_STRVAR(_io_StringIO_seek__doc__,
|
|||
"Returns the new absolute position.");
|
||||
|
||||
#define _IO_STRINGIO_SEEK_METHODDEF \
|
||||
{"seek", (PyCFunction)(void(*)(void))_io_StringIO_seek, METH_FASTCALL, _io_StringIO_seek__doc__},
|
||||
{"seek", _PyCFunction_CAST(_io_StringIO_seek), METH_FASTCALL, _io_StringIO_seek__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence);
|
||||
|
@ -338,4 +338,4 @@ _io_StringIO_seekable(stringio *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _io_StringIO_seekable_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=eea93dcab10d0a97 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=3207dc548c305ad8 input=a9049054013a1b77]*/
|
||||
|
|
14
Modules/_io/clinic/textio.c.h
generated
14
Modules/_io/clinic/textio.c.h
generated
|
@ -60,7 +60,7 @@ PyDoc_STRVAR(_io_IncrementalNewlineDecoder_decode__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO_INCREMENTALNEWLINEDECODER_DECODE_METHODDEF \
|
||||
{"decode", (PyCFunction)(void(*)(void))_io_IncrementalNewlineDecoder_decode, METH_FASTCALL|METH_KEYWORDS, _io_IncrementalNewlineDecoder_decode__doc__},
|
||||
{"decode", _PyCFunction_CAST(_io_IncrementalNewlineDecoder_decode), METH_FASTCALL|METH_KEYWORDS, _io_IncrementalNewlineDecoder_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_IncrementalNewlineDecoder_decode_impl(nldecoder_object *self,
|
||||
|
@ -285,7 +285,7 @@ PyDoc_STRVAR(_io_TextIOWrapper_reconfigure__doc__,
|
|||
"This also does an implicit stream flush.");
|
||||
|
||||
#define _IO_TEXTIOWRAPPER_RECONFIGURE_METHODDEF \
|
||||
{"reconfigure", (PyCFunction)(void(*)(void))_io_TextIOWrapper_reconfigure, METH_FASTCALL|METH_KEYWORDS, _io_TextIOWrapper_reconfigure__doc__},
|
||||
{"reconfigure", _PyCFunction_CAST(_io_TextIOWrapper_reconfigure), METH_FASTCALL|METH_KEYWORDS, _io_TextIOWrapper_reconfigure__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_TextIOWrapper_reconfigure_impl(textio *self, PyObject *encoding,
|
||||
|
@ -400,7 +400,7 @@ PyDoc_STRVAR(_io_TextIOWrapper_read__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO_TEXTIOWRAPPER_READ_METHODDEF \
|
||||
{"read", (PyCFunction)(void(*)(void))_io_TextIOWrapper_read, METH_FASTCALL, _io_TextIOWrapper_read__doc__},
|
||||
{"read", _PyCFunction_CAST(_io_TextIOWrapper_read), METH_FASTCALL, _io_TextIOWrapper_read__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_TextIOWrapper_read_impl(textio *self, Py_ssize_t n);
|
||||
|
@ -433,7 +433,7 @@ PyDoc_STRVAR(_io_TextIOWrapper_readline__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO_TEXTIOWRAPPER_READLINE_METHODDEF \
|
||||
{"readline", (PyCFunction)(void(*)(void))_io_TextIOWrapper_readline, METH_FASTCALL, _io_TextIOWrapper_readline__doc__},
|
||||
{"readline", _PyCFunction_CAST(_io_TextIOWrapper_readline), METH_FASTCALL, _io_TextIOWrapper_readline__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_TextIOWrapper_readline_impl(textio *self, Py_ssize_t size);
|
||||
|
@ -475,7 +475,7 @@ PyDoc_STRVAR(_io_TextIOWrapper_seek__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO_TEXTIOWRAPPER_SEEK_METHODDEF \
|
||||
{"seek", (PyCFunction)(void(*)(void))_io_TextIOWrapper_seek, METH_FASTCALL, _io_TextIOWrapper_seek__doc__},
|
||||
{"seek", _PyCFunction_CAST(_io_TextIOWrapper_seek), METH_FASTCALL, _io_TextIOWrapper_seek__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence);
|
||||
|
@ -528,7 +528,7 @@ PyDoc_STRVAR(_io_TextIOWrapper_truncate__doc__,
|
|||
"\n");
|
||||
|
||||
#define _IO_TEXTIOWRAPPER_TRUNCATE_METHODDEF \
|
||||
{"truncate", (PyCFunction)(void(*)(void))_io_TextIOWrapper_truncate, METH_FASTCALL, _io_TextIOWrapper_truncate__doc__},
|
||||
{"truncate", _PyCFunction_CAST(_io_TextIOWrapper_truncate), METH_FASTCALL, _io_TextIOWrapper_truncate__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_TextIOWrapper_truncate_impl(textio *self, PyObject *pos);
|
||||
|
@ -671,4 +671,4 @@ _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _io_TextIOWrapper_close_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=e88abad34e31c0cb input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=bb78b568b24759d6 input=a9049054013a1b77]*/
|
||||
|
|
4
Modules/_io/clinic/winconsoleio.c.h
generated
4
Modules/_io/clinic/winconsoleio.c.h
generated
|
@ -249,7 +249,7 @@ PyDoc_STRVAR(_io__WindowsConsoleIO_read__doc__,
|
|||
"Return an empty bytes object at EOF.");
|
||||
|
||||
#define _IO__WINDOWSCONSOLEIO_READ_METHODDEF \
|
||||
{"read", (PyCFunction)(void(*)(void))_io__WindowsConsoleIO_read, METH_FASTCALL, _io__WindowsConsoleIO_read__doc__},
|
||||
{"read", _PyCFunction_CAST(_io__WindowsConsoleIO_read), METH_FASTCALL, _io__WindowsConsoleIO_read__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io__WindowsConsoleIO_read_impl(winconsoleio *self, Py_ssize_t size);
|
||||
|
@ -378,4 +378,4 @@ _io__WindowsConsoleIO_isatty(winconsoleio *self, PyObject *Py_UNUSED(ignored))
|
|||
#ifndef _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
|
||||
#define _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF
|
||||
#endif /* !defined(_IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF) */
|
||||
/*[clinic end generated code: output=48080572ffee22f5 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=2d8648fab31ec60e input=a9049054013a1b77]*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue