- Issue #27332: Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
This commit is contained in:
commit
2954f83999
|
@ -146,6 +146,9 @@ Build
|
|||
Tools/Demos
|
||||
-----------
|
||||
|
||||
- Issue #27332: Fixed the type of the first argument of module-level functions
|
||||
generated by Argument Clinic. Patch by Petr Viktorin.
|
||||
|
||||
- Issue #27418: Fixed Tools/importbench/importbench.py.
|
||||
|
||||
|
||||
|
|
|
@ -60,8 +60,8 @@ all lower case letters, and either return None, or a tuple of functions
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_register(PyModuleDef *module, PyObject *search_function)
|
||||
/*[clinic end generated code: output=d17608b6ad380eb8 input=369578467955cae4]*/
|
||||
_codecs_register(PyObject *module, PyObject *search_function)
|
||||
/*[clinic end generated code: output=d1bf21e99db7d6d3 input=369578467955cae4]*/
|
||||
{
|
||||
if (PyCodec_Register(search_function))
|
||||
return NULL;
|
||||
|
@ -78,8 +78,8 @@ Looks up a codec tuple in the Python codec registry and returns a CodecInfo obje
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_lookup_impl(PyModuleDef *module, const char *encoding)
|
||||
/*[clinic end generated code: output=798e41aff0c04ef6 input=3c572c0db3febe9c]*/
|
||||
_codecs_lookup_impl(PyObject *module, const char *encoding)
|
||||
/*[clinic end generated code: output=9f0afa572080c36d input=3c572c0db3febe9c]*/
|
||||
{
|
||||
return _PyCodec_Lookup(encoding);
|
||||
}
|
||||
|
@ -100,9 +100,9 @@ codecs.register_error that can handle ValueErrors.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_encode_impl(PyModuleDef *module, PyObject *obj, const char *encoding,
|
||||
_codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=5c073f62249c8d7c input=cd5b685040ff61f0]*/
|
||||
/*[clinic end generated code: output=385148eb9a067c86 input=cd5b685040ff61f0]*/
|
||||
{
|
||||
if (encoding == NULL)
|
||||
encoding = PyUnicode_GetDefaultEncoding();
|
||||
|
@ -127,9 +127,9 @@ codecs.register_error that can handle ValueErrors.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_decode_impl(PyModuleDef *module, PyObject *obj, const char *encoding,
|
||||
_codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=c81cbf6189a7f878 input=7702c0cc2fa1add6]*/
|
||||
/*[clinic end generated code: output=679882417dc3a0bd input=7702c0cc2fa1add6]*/
|
||||
{
|
||||
if (encoding == NULL)
|
||||
encoding = PyUnicode_GetDefaultEncoding();
|
||||
|
@ -150,8 +150,8 @@ Purge the named codec from the internal codec lookup cache
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs__forget_codec_impl(PyModuleDef *module, const char *encoding)
|
||||
/*[clinic end generated code: output=b56a9b99d2d28080 input=18d5d92d0e386c38]*/
|
||||
_codecs__forget_codec_impl(PyObject *module, const char *encoding)
|
||||
/*[clinic end generated code: output=0bde9f0a5b084aa2 input=18d5d92d0e386c38]*/
|
||||
{
|
||||
if (_PyCodec_Forget(encoding) < 0) {
|
||||
return NULL;
|
||||
|
@ -177,9 +177,9 @@ _codecs.escape_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_escape_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=648fa3e78d03e658 input=0018edfd99db714d]*/
|
||||
/*[clinic end generated code: output=505200ba8056979a input=0018edfd99db714d]*/
|
||||
{
|
||||
PyObject *decoded = PyBytes_DecodeEscape(data->buf, data->len,
|
||||
errors, 0, NULL);
|
||||
|
@ -194,9 +194,9 @@ _codecs.escape_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_escape_encode_impl(PyModuleDef *module, PyObject *data,
|
||||
_codecs_escape_encode_impl(PyObject *module, PyObject *data,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=fcd6f34fe4111c50 input=da9ded00992f32f2]*/
|
||||
/*[clinic end generated code: output=4af1d477834bab34 input=da9ded00992f32f2]*/
|
||||
{
|
||||
Py_ssize_t size;
|
||||
Py_ssize_t newsize;
|
||||
|
@ -258,9 +258,9 @@ _codecs.unicode_internal_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_internal_decode_impl(PyModuleDef *module, PyObject *obj,
|
||||
_codecs_unicode_internal_decode_impl(PyObject *module, PyObject *obj,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=9fe47c2cd8807d92 input=8d57930aeda170c6]*/
|
||||
/*[clinic end generated code: output=edbfe175e09eff9a input=8d57930aeda170c6]*/
|
||||
{
|
||||
if (PyUnicode_Check(obj)) {
|
||||
if (PyUnicode_READY(obj) < 0)
|
||||
|
@ -291,9 +291,9 @@ _codecs.utf_7_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_7_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_7_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=ca945e907e72e827 input=bc4d6247ecdb01e6]*/
|
||||
/*[clinic end generated code: output=0cd3a944a32a4089 input=bc4d6247ecdb01e6]*/
|
||||
{
|
||||
Py_ssize_t consumed = data->len;
|
||||
PyObject *decoded = PyUnicode_DecodeUTF7Stateful(data->buf, data->len,
|
||||
|
@ -311,9 +311,9 @@ _codecs.utf_8_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_8_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_8_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=7309f9ff4ef5c9b6 input=39161d71e7422ee2]*/
|
||||
/*[clinic end generated code: output=10f74dec8d9bb8bf input=39161d71e7422ee2]*/
|
||||
{
|
||||
Py_ssize_t consumed = data->len;
|
||||
PyObject *decoded = PyUnicode_DecodeUTF8Stateful(data->buf, data->len,
|
||||
|
@ -331,9 +331,9 @@ _codecs.utf_16_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=8d2fa0507d9bef2c input=f3cf01d1461007ce]*/
|
||||
/*[clinic end generated code: output=783b442abcbcc2d0 input=f3cf01d1461007ce]*/
|
||||
{
|
||||
int byteorder = 0;
|
||||
/* This is overwritten unless final is true. */
|
||||
|
@ -353,9 +353,9 @@ _codecs.utf_16_le_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_le_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_le_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=4fd621515ef4ce18 input=a77e3bf97335d94e]*/
|
||||
/*[clinic end generated code: output=899b9e6364379dcd input=a77e3bf97335d94e]*/
|
||||
{
|
||||
int byteorder = -1;
|
||||
/* This is overwritten unless final is true. */
|
||||
|
@ -375,9 +375,9 @@ _codecs.utf_16_be_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_be_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_be_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=792f4eacb3e1fa05 input=606f69fae91b5563]*/
|
||||
/*[clinic end generated code: output=49f6465ea07669c8 input=606f69fae91b5563]*/
|
||||
{
|
||||
int byteorder = 1;
|
||||
/* This is overwritten unless final is true. */
|
||||
|
@ -405,9 +405,9 @@ _codecs.utf_16_ex_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_ex_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_ex_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int byteorder, int final)
|
||||
/*[clinic end generated code: output=f136a186dc2defa0 input=f6e7f697658c013e]*/
|
||||
/*[clinic end generated code: output=0f385f251ecc1988 input=f6e7f697658c013e]*/
|
||||
{
|
||||
/* This is overwritten unless final is true. */
|
||||
Py_ssize_t consumed = data->len;
|
||||
|
@ -429,9 +429,9 @@ _codecs.utf_32_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=b7635e55857e8efb input=86d4f41c6c2e763d]*/
|
||||
/*[clinic end generated code: output=2fc961807f7b145f input=86d4f41c6c2e763d]*/
|
||||
{
|
||||
int byteorder = 0;
|
||||
/* This is overwritten unless final is true. */
|
||||
|
@ -451,9 +451,9 @@ _codecs.utf_32_le_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_le_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_le_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=a79d1787d8ddf988 input=d18b650772d188ba]*/
|
||||
/*[clinic end generated code: output=ec8f46b67a94f3e6 input=d18b650772d188ba]*/
|
||||
{
|
||||
int byteorder = -1;
|
||||
/* This is overwritten unless final is true. */
|
||||
|
@ -473,9 +473,9 @@ _codecs.utf_32_be_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_be_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_be_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=a8356b0f36779981 input=19c271b5d34926d8]*/
|
||||
/*[clinic end generated code: output=ff82bae862c92c4e input=19c271b5d34926d8]*/
|
||||
{
|
||||
int byteorder = 1;
|
||||
/* This is overwritten unless final is true. */
|
||||
|
@ -503,9 +503,9 @@ _codecs.utf_32_ex_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_ex_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_ex_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int byteorder, int final)
|
||||
/*[clinic end generated code: output=ab8c70977c1992f5 input=4af3e6ccfe34a076]*/
|
||||
/*[clinic end generated code: output=6bfb177dceaf4848 input=4af3e6ccfe34a076]*/
|
||||
{
|
||||
Py_ssize_t consumed = data->len;
|
||||
PyObject *decoded = PyUnicode_DecodeUTF32Stateful(data->buf, data->len,
|
||||
|
@ -524,9 +524,9 @@ _codecs.unicode_escape_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_escape_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_unicode_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=d1aa63f2620c4999 input=49fd27d06813a7f5]*/
|
||||
/*[clinic end generated code: output=3ca3c917176b82ab input=49fd27d06813a7f5]*/
|
||||
{
|
||||
PyObject *decoded = PyUnicode_DecodeUnicodeEscape(data->buf, data->len,
|
||||
errors);
|
||||
|
@ -541,9 +541,9 @@ _codecs.raw_unicode_escape_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_raw_unicode_escape_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_raw_unicode_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=0bf96cc182d81379 input=770903a211434ebc]*/
|
||||
/*[clinic end generated code: output=c98eeb56028070a6 input=770903a211434ebc]*/
|
||||
{
|
||||
PyObject *decoded = PyUnicode_DecodeRawUnicodeEscape(data->buf, data->len,
|
||||
errors);
|
||||
|
@ -558,9 +558,9 @@ _codecs.latin_1_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_latin_1_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_latin_1_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=66b916f5055aaf13 input=5cad0f1759c618ec]*/
|
||||
/*[clinic end generated code: output=07f3dfa3f72c7d8f input=5cad0f1759c618ec]*/
|
||||
{
|
||||
PyObject *decoded = PyUnicode_DecodeLatin1(data->buf, data->len, errors);
|
||||
return codec_tuple(decoded, data->len);
|
||||
|
@ -574,9 +574,9 @@ _codecs.ascii_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_ascii_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_ascii_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=7f213a1b5cdafc65 input=ad1106f64037bd16]*/
|
||||
/*[clinic end generated code: output=2627d72058d42429 input=ad1106f64037bd16]*/
|
||||
{
|
||||
PyObject *decoded = PyUnicode_DecodeASCII(data->buf, data->len, errors);
|
||||
return codec_tuple(decoded, data->len);
|
||||
|
@ -591,9 +591,9 @@ _codecs.charmap_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_charmap_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, PyObject *mapping)
|
||||
/*[clinic end generated code: output=87d27f365098bbae input=19712ca35c5a80e2]*/
|
||||
/*[clinic end generated code: output=2c335b09778cf895 input=19712ca35c5a80e2]*/
|
||||
{
|
||||
PyObject *decoded;
|
||||
|
||||
|
@ -615,9 +615,9 @@ _codecs.mbcs_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_mbcs_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_mbcs_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final)
|
||||
/*[clinic end generated code: output=0ebaf3a5b20e53fa input=d492c1ca64f4fa8a]*/
|
||||
/*[clinic end generated code: output=39b65b8598938c4b input=d492c1ca64f4fa8a]*/
|
||||
{
|
||||
Py_ssize_t consumed = data->len;
|
||||
PyObject *decoded = PyUnicode_DecodeMBCSStateful(data->buf, data->len,
|
||||
|
@ -635,9 +635,9 @@ _codecs.code_page_decode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_code_page_decode_impl(PyModuleDef *module, int codepage,
|
||||
_codecs_code_page_decode_impl(PyObject *module, int codepage,
|
||||
Py_buffer *data, const char *errors, int final)
|
||||
/*[clinic end generated code: output=4318e3d9971e31ba input=4f3152a304e21d51]*/
|
||||
/*[clinic end generated code: output=53008ea967da3fff input=4f3152a304e21d51]*/
|
||||
{
|
||||
Py_ssize_t consumed = data->len;
|
||||
PyObject *decoded = PyUnicode_DecodeCodePageStateful(codepage,
|
||||
|
@ -659,9 +659,9 @@ _codecs.readbuffer_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_readbuffer_encode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_readbuffer_encode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=319cc24083299859 input=b7c322b89d4ab923]*/
|
||||
/*[clinic end generated code: output=c645ea7cdb3d6e86 input=b7c322b89d4ab923]*/
|
||||
{
|
||||
PyObject *result = PyBytes_FromStringAndSize(data->buf, data->len);
|
||||
return codec_tuple(result, data->len);
|
||||
|
@ -675,9 +675,9 @@ _codecs.unicode_internal_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_internal_encode_impl(PyModuleDef *module, PyObject *obj,
|
||||
_codecs_unicode_internal_encode_impl(PyObject *module, PyObject *obj,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=be08457068ad503b input=8628f0280cf5ba61]*/
|
||||
/*[clinic end generated code: output=a72507dde4ea558f input=8628f0280cf5ba61]*/
|
||||
{
|
||||
if (PyErr_WarnEx(PyExc_DeprecationWarning,
|
||||
"unicode_internal codec has been deprecated",
|
||||
|
@ -720,9 +720,9 @@ _codecs.utf_7_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_7_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_7_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=a7accc496a32b759 input=d1a47579e79cbe15]*/
|
||||
/*[clinic end generated code: output=0feda21ffc921bc8 input=d1a47579e79cbe15]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_EncodeUTF7(str, 0, 0, errors),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -736,9 +736,9 @@ _codecs.utf_8_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_8_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_8_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=ec831d80e7aedede input=42e3ba73c4392eef]*/
|
||||
/*[clinic end generated code: output=02bf47332b9c796c input=42e3ba73c4392eef]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_AsUTF8String(str, errors),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -760,9 +760,9 @@ _codecs.utf_16_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_16_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors, int byteorder)
|
||||
/*[clinic end generated code: output=93ac58e960a9ee4d input=ff46416b04edb944]*/
|
||||
/*[clinic end generated code: output=c654e13efa2e64e4 input=ff46416b04edb944]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_EncodeUTF16(str, errors, byteorder),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -776,9 +776,9 @@ _codecs.utf_16_le_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_le_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_16_le_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=422bedb8da34fb66 input=cb385455ea8f2fe0]*/
|
||||
/*[clinic end generated code: output=431b01e55f2d4995 input=cb385455ea8f2fe0]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_EncodeUTF16(str, errors, -1),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -792,9 +792,9 @@ _codecs.utf_16_be_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_be_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_16_be_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=3aa7ee9502acdd77 input=9119997066bdaefd]*/
|
||||
/*[clinic end generated code: output=96886a6fd54dcae3 input=9119997066bdaefd]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_EncodeUTF16(str, errors, +1),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -816,9 +816,9 @@ _codecs.utf_32_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_32_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors, int byteorder)
|
||||
/*[clinic end generated code: output=3e7d5a003b02baed input=c5e77da82fbe5c2a]*/
|
||||
/*[clinic end generated code: output=5c760da0c09a8b83 input=c5e77da82fbe5c2a]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_EncodeUTF32(str, errors, byteorder),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -832,9 +832,9 @@ _codecs.utf_32_le_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_le_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_32_le_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=5dda641cd33dbfc2 input=9993b25fe0877848]*/
|
||||
/*[clinic end generated code: output=b65cd176de8e36d6 input=9993b25fe0877848]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_EncodeUTF32(str, errors, -1),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -848,9 +848,9 @@ _codecs.utf_32_be_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_be_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_32_be_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=ccca8b44d91a7c7a input=d3e0ccaa02920431]*/
|
||||
/*[clinic end generated code: output=1d9e71a9358709e9 input=d3e0ccaa02920431]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_EncodeUTF32(str, errors, +1),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -864,9 +864,9 @@ _codecs.unicode_escape_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_escape_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_unicode_escape_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=389f23d2b8f8d80b input=65d9eefca65b455a]*/
|
||||
/*[clinic end generated code: output=66271b30bc4f7a3c input=65d9eefca65b455a]*/
|
||||
{
|
||||
return codec_tuple(PyUnicode_AsUnicodeEscapeString(str),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -880,9 +880,9 @@ _codecs.raw_unicode_escape_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_raw_unicode_escape_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_raw_unicode_escape_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=fec4e39d6ec37a62 input=5aa33e4a133391ab]*/
|
||||
/*[clinic end generated code: output=a66a806ed01c830a input=5aa33e4a133391ab]*/
|
||||
{
|
||||
return codec_tuple(PyUnicode_AsRawUnicodeEscapeString(str),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -896,9 +896,9 @@ _codecs.latin_1_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_latin_1_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_latin_1_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=ecf00eb8e48c889c input=30b11c9e49a65150]*/
|
||||
/*[clinic end generated code: output=2c28c83a27884e08 input=30b11c9e49a65150]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_AsLatin1String(str, errors),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -912,9 +912,9 @@ _codecs.ascii_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_ascii_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_ascii_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=a9d18fc6b6b91cfb input=843a1d268e6dfa8e]*/
|
||||
/*[clinic end generated code: output=b5e035182d33befc input=843a1d268e6dfa8e]*/
|
||||
{
|
||||
return codec_tuple(_PyUnicode_AsASCIIString(str, errors),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -929,9 +929,9 @@ _codecs.charmap_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_charmap_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors, PyObject *mapping)
|
||||
/*[clinic end generated code: output=14ca42b83853c643 input=0752cde07a6d6d00]*/
|
||||
/*[clinic end generated code: output=047476f48495a9e9 input=0752cde07a6d6d00]*/
|
||||
{
|
||||
if (mapping == Py_None)
|
||||
mapping = NULL;
|
||||
|
@ -947,8 +947,8 @@ _codecs.charmap_build
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_build_impl(PyModuleDef *module, PyObject *map)
|
||||
/*[clinic end generated code: output=9485b58fa44afa6a input=d91a91d1717dbc6d]*/
|
||||
_codecs_charmap_build_impl(PyObject *module, PyObject *map)
|
||||
/*[clinic end generated code: output=bb073c27031db9ac input=d91a91d1717dbc6d]*/
|
||||
{
|
||||
return PyUnicode_BuildEncodingMap(map);
|
||||
}
|
||||
|
@ -963,9 +963,8 @@ _codecs.mbcs_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_mbcs_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=d1a013bc68798bd7 input=de471e0815947553]*/
|
||||
_codecs_mbcs_encode_impl(PyObject *module, PyObject *str, const char *errors)
|
||||
/*[clinic end generated code: output=76e2e170c966c080 input=de471e0815947553]*/
|
||||
{
|
||||
return codec_tuple(PyUnicode_EncodeCodePage(CP_ACP, str, errors),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -980,9 +979,9 @@ _codecs.code_page_encode
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_code_page_encode_impl(PyModuleDef *module, int code_page,
|
||||
PyObject *str, const char *errors)
|
||||
/*[clinic end generated code: output=3b406618dbfbce25 input=786421ae617d680b]*/
|
||||
_codecs_code_page_encode_impl(PyObject *module, int code_page, PyObject *str,
|
||||
const char *errors)
|
||||
/*[clinic end generated code: output=45673f6085657a9e input=786421ae617d680b]*/
|
||||
{
|
||||
return codec_tuple(PyUnicode_EncodeCodePage(code_page, str, errors),
|
||||
PyUnicode_GET_LENGTH(str));
|
||||
|
@ -1006,9 +1005,9 @@ error and must return a (replacement, new position) tuple.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_register_error_impl(PyModuleDef *module, const char *errors,
|
||||
_codecs_register_error_impl(PyObject *module, const char *errors,
|
||||
PyObject *handler)
|
||||
/*[clinic end generated code: output=be00d3b1849ce68a input=5e6709203c2e33fe]*/
|
||||
/*[clinic end generated code: output=fa2f7d1879b3067d input=5e6709203c2e33fe]*/
|
||||
{
|
||||
if (PyCodec_RegisterError(errors, handler))
|
||||
return NULL;
|
||||
|
@ -1027,8 +1026,8 @@ LookupError, if no handler exists under this name.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_codecs_lookup_error_impl(PyModuleDef *module, const char *name)
|
||||
/*[clinic end generated code: output=731e6df8c83c6158 input=4775dd65e6235aba]*/
|
||||
_codecs_lookup_error_impl(PyObject *module, const char *name)
|
||||
/*[clinic end generated code: output=087f05dc0c9a98cc input=4775dd65e6235aba]*/
|
||||
{
|
||||
return PyCodec_LookupError(name);
|
||||
}
|
||||
|
|
|
@ -31,8 +31,8 @@ results for a given *word*.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
crypt_crypt_impl(PyModuleDef *module, const char *word, const char *salt)
|
||||
/*[clinic end generated code: output=995ad1e854d83069 input=0e8edec9c364352b]*/
|
||||
crypt_crypt_impl(PyObject *module, const char *word, const char *salt)
|
||||
/*[clinic end generated code: output=0512284a03d2803c input=0e8edec9c364352b]*/
|
||||
{
|
||||
/* On some platforms (AtheOS) crypt returns NULL for an invalid
|
||||
salt. Return None in that case. XXX Maybe raise an exception? */
|
||||
|
|
|
@ -430,9 +430,9 @@ Return a database object.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
dbmopen_impl(PyModuleDef *module, const char *filename, const char *flags,
|
||||
dbmopen_impl(PyObject *module, const char *filename, const char *flags,
|
||||
int mode)
|
||||
/*[clinic end generated code: output=e8d4b36f25c733fd input=226334bade5764e6]*/
|
||||
/*[clinic end generated code: output=5fade8cf16e0755f input=226334bade5764e6]*/
|
||||
{
|
||||
int iflags;
|
||||
|
||||
|
|
|
@ -562,9 +562,8 @@ when the database has to be created. It defaults to octal 0o666.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
dbmopen_impl(PyModuleDef *module, const char *name, const char *flags,
|
||||
int mode)
|
||||
/*[clinic end generated code: output=365b31415c03ccd4 input=55563cd60e51984a]*/
|
||||
dbmopen_impl(PyObject *module, const char *name, const char *flags, int mode)
|
||||
/*[clinic end generated code: output=31aa1bafdf5da688 input=55563cd60e51984a]*/
|
||||
{
|
||||
int iflags;
|
||||
|
||||
|
|
|
@ -227,10 +227,10 @@ opened in a binary mode.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_io_open_impl(PyModuleDef *module, PyObject *file, const char *mode,
|
||||
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
|
||||
int buffering, const char *encoding, const char *errors,
|
||||
const char *newline, int closefd, PyObject *opener)
|
||||
/*[clinic end generated code: output=7615d0d746eb14d2 input=f4e1ca75223987bc]*/
|
||||
/*[clinic end generated code: output=aefafc4ce2b46dc0 input=f4e1ca75223987bc]*/
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
|
|
@ -130,12 +130,12 @@ PyDoc_STRVAR(_io_open__doc__,
|
|||
{"open", (PyCFunction)_io_open, METH_VARARGS|METH_KEYWORDS, _io_open__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_open_impl(PyModuleDef *module, PyObject *file, const char *mode,
|
||||
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
|
||||
int buffering, const char *encoding, const char *errors,
|
||||
const char *newline, int closefd, PyObject *opener);
|
||||
|
||||
static PyObject *
|
||||
_io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_io_open(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"file", "mode", "buffering", "encoding", "errors", "newline", "closefd", "opener", NULL};
|
||||
|
@ -157,4 +157,4 @@ _io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=079f597e71e9f0c6 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=ae2facf262cf464e input=a9049054013a1b77]*/
|
||||
|
|
|
@ -1336,8 +1336,8 @@ Always returns True for CHECK_NONE and CHECK_CRC32.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_lzma_is_check_supported_impl(PyModuleDef *module, int check_id)
|
||||
/*[clinic end generated code: output=bb828e90e00ad96e input=5518297b97b2318f]*/
|
||||
_lzma_is_check_supported_impl(PyObject *module, int check_id)
|
||||
/*[clinic end generated code: output=e4f14ba3ce2ad0a5 input=5518297b97b2318f]*/
|
||||
{
|
||||
return PyBool_FromLong(lzma_check_is_supported(check_id));
|
||||
}
|
||||
|
@ -1354,8 +1354,8 @@ The result does not include the filter ID itself, only the options.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_lzma__encode_filter_properties_impl(PyModuleDef *module, lzma_filter filter)
|
||||
/*[clinic end generated code: output=b5fe690acd6b61d1 input=d4c64f1b557c77d4]*/
|
||||
_lzma__encode_filter_properties_impl(PyObject *module, lzma_filter filter)
|
||||
/*[clinic end generated code: output=5c93c8e14e7be5a8 input=d4c64f1b557c77d4]*/
|
||||
{
|
||||
lzma_ret lzret;
|
||||
uint32_t encoded_size;
|
||||
|
@ -1394,9 +1394,9 @@ The result does not include the filter ID itself, only the options.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_lzma__decode_filter_properties_impl(PyModuleDef *module, lzma_vli filter_id,
|
||||
_lzma__decode_filter_properties_impl(PyObject *module, lzma_vli filter_id,
|
||||
Py_buffer *encoded_props)
|
||||
/*[clinic end generated code: output=af248f570746668b input=246410800782160c]*/
|
||||
/*[clinic end generated code: output=714fd2ef565d5c60 input=246410800782160c]*/
|
||||
{
|
||||
lzma_filter filter;
|
||||
lzma_ret lzret;
|
||||
|
|
|
@ -20,8 +20,8 @@ Compute the stack effect of the opcode.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
_opcode_stack_effect_impl(PyModuleDef *module, int opcode, PyObject *oparg)
|
||||
/*[clinic end generated code: output=1fcafd5596c6b050 input=2d0a9ee53c0418f5]*/
|
||||
_opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg)
|
||||
/*[clinic end generated code: output=ad39467fa3ad22ce input=2d0a9ee53c0418f5]*/
|
||||
{
|
||||
int effect;
|
||||
int oparg_int = 0;
|
||||
|
|
|
@ -7051,9 +7051,9 @@ to map the new Python 3 names to the old module names used in Python
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_pickle_dump_impl(PyModuleDef *module, PyObject *obj, PyObject *file,
|
||||
_pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file,
|
||||
PyObject *protocol, int fix_imports)
|
||||
/*[clinic end generated code: output=0de7dff89c406816 input=830f8a64cef6f042]*/
|
||||
/*[clinic end generated code: output=a4774d5fde7d34de input=830f8a64cef6f042]*/
|
||||
{
|
||||
PicklerObject *pickler = _Pickler_New();
|
||||
|
||||
|
@ -7105,9 +7105,9 @@ Python 2, so that the pickle data stream is readable with Python 2.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_pickle_dumps_impl(PyModuleDef *module, PyObject *obj, PyObject *protocol,
|
||||
_pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol,
|
||||
int fix_imports)
|
||||
/*[clinic end generated code: output=daa380db56fe07b9 input=293dbeda181580b7]*/
|
||||
/*[clinic end generated code: output=d75d5cda456fd261 input=293dbeda181580b7]*/
|
||||
{
|
||||
PyObject *result;
|
||||
PicklerObject *pickler = _Pickler_New();
|
||||
|
@ -7166,9 +7166,9 @@ string instances as bytes objects.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_pickle_load_impl(PyModuleDef *module, PyObject *file, int fix_imports,
|
||||
_pickle_load_impl(PyObject *module, PyObject *file, int fix_imports,
|
||||
const char *encoding, const char *errors)
|
||||
/*[clinic end generated code: output=798f1c57cb2b4eb1 input=01b44dd3fc07afa7]*/
|
||||
/*[clinic end generated code: output=69e298160285199e input=01b44dd3fc07afa7]*/
|
||||
{
|
||||
PyObject *result;
|
||||
UnpicklerObject *unpickler = _Unpickler_New();
|
||||
|
@ -7220,9 +7220,9 @@ string instances as bytes objects.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_pickle_loads_impl(PyModuleDef *module, PyObject *data, int fix_imports,
|
||||
_pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports,
|
||||
const char *encoding, const char *errors)
|
||||
/*[clinic end generated code: output=61e9cdb01e36a736 input=70605948a719feb9]*/
|
||||
/*[clinic end generated code: output=1e7cb2343f2c440f input=70605948a719feb9]*/
|
||||
{
|
||||
PyObject *result;
|
||||
UnpicklerObject *unpickler = _Unpickler_New();
|
||||
|
|
|
@ -275,8 +275,8 @@ _sre.getcodesize -> int
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
_sre_getcodesize_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=794f1f98ef4883e5 input=bd6f6ecf4916bb2b]*/
|
||||
_sre_getcodesize_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=e0db7ce34a6dd7b1 input=bd6f6ecf4916bb2b]*/
|
||||
{
|
||||
return sizeof(SRE_CODE);
|
||||
}
|
||||
|
@ -291,8 +291,8 @@ _sre.getlower -> int
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
_sre_getlower_impl(PyModuleDef *module, int character, int flags)
|
||||
/*[clinic end generated code: output=5fc3616ae2a4c306 input=087d2f1c44bbca6f]*/
|
||||
_sre_getlower_impl(PyObject *module, int character, int flags)
|
||||
/*[clinic end generated code: output=47eebc4c1214feb5 input=087d2f1c44bbca6f]*/
|
||||
{
|
||||
if (flags & SRE_FLAG_LOCALE)
|
||||
return sre_lower_locale(character);
|
||||
|
@ -1451,10 +1451,10 @@ _sre.compile
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_sre_compile_impl(PyModuleDef *module, PyObject *pattern, int flags,
|
||||
_sre_compile_impl(PyObject *module, PyObject *pattern, int flags,
|
||||
PyObject *code, Py_ssize_t groups, PyObject *groupindex,
|
||||
PyObject *indexgroup)
|
||||
/*[clinic end generated code: output=3004b293730bf309 input=7d059ec8ae1edb85]*/
|
||||
/*[clinic end generated code: output=ef9c2b3693776404 input=7d059ec8ae1edb85]*/
|
||||
{
|
||||
/* "compile" pattern descriptor to pattern object */
|
||||
|
||||
|
|
|
@ -1321,8 +1321,8 @@ _ssl._test_decode_cert
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl__test_decode_cert_impl(PyModuleDef *module, PyObject *path)
|
||||
/*[clinic end generated code: output=679e01db282804e9 input=cdeaaf02d4346628]*/
|
||||
_ssl__test_decode_cert_impl(PyObject *module, PyObject *path)
|
||||
/*[clinic end generated code: output=96becb9abb23c091 input=cdeaaf02d4346628]*/
|
||||
{
|
||||
PyObject *retval = NULL;
|
||||
X509 *x=NULL;
|
||||
|
@ -3832,8 +3832,8 @@ string. See RFC 1750.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_add_impl(PyModuleDef *module, Py_buffer *view, double entropy)
|
||||
/*[clinic end generated code: output=0f8d5c8cce328958 input=580c85e6a3a4fe29]*/
|
||||
_ssl_RAND_add_impl(PyObject *module, Py_buffer *view, double entropy)
|
||||
/*[clinic end generated code: output=e6dd48df9c9024e9 input=580c85e6a3a4fe29]*/
|
||||
{
|
||||
const char *buf;
|
||||
Py_ssize_t len, written;
|
||||
|
@ -3898,8 +3898,8 @@ Generate n cryptographically strong pseudo-random bytes.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_bytes_impl(PyModuleDef *module, int n)
|
||||
/*[clinic end generated code: output=7d8741bdc1d435f3 input=678ddf2872dfebfc]*/
|
||||
_ssl_RAND_bytes_impl(PyObject *module, int n)
|
||||
/*[clinic end generated code: output=977da635e4838bc7 input=678ddf2872dfebfc]*/
|
||||
{
|
||||
return PySSL_RAND(n, 0);
|
||||
}
|
||||
|
@ -3916,8 +3916,8 @@ if the bytes generated are cryptographically strong.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_pseudo_bytes_impl(PyModuleDef *module, int n)
|
||||
/*[clinic end generated code: output=dd673813107f3875 input=58312bd53f9bbdd0]*/
|
||||
_ssl_RAND_pseudo_bytes_impl(PyObject *module, int n)
|
||||
/*[clinic end generated code: output=b1509e937000e52d input=58312bd53f9bbdd0]*/
|
||||
{
|
||||
return PySSL_RAND(n, 1);
|
||||
}
|
||||
|
@ -3932,8 +3932,8 @@ using the ssl() function.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_status_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=7f7ef57bc7dd1d1c input=8a774b02d1dc81f3]*/
|
||||
_ssl_RAND_status_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=7e0aaa2d39fdc1ad input=8a774b02d1dc81f3]*/
|
||||
{
|
||||
return PyLong_FromLong(RAND_status());
|
||||
}
|
||||
|
@ -3951,8 +3951,8 @@ fails or if it does not provide enough data to seed PRNG.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_egd_impl(PyModuleDef *module, PyObject *path)
|
||||
/*[clinic end generated code: output=8e728e501e28541b input=1aeb7eb948312195]*/
|
||||
_ssl_RAND_egd_impl(PyObject *module, PyObject *path)
|
||||
/*[clinic end generated code: output=02a67c7c367f52fa input=1aeb7eb948312195]*/
|
||||
{
|
||||
int bytes = RAND_egd(PyBytes_AsString(path));
|
||||
Py_DECREF(path);
|
||||
|
@ -3977,8 +3977,8 @@ The values are 'cert_file_env', 'cert_file', 'cert_dir_env', 'cert_dir'.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_get_default_verify_paths_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=5a2820ce7e3304d3 input=5210c953d98c3eb5]*/
|
||||
_ssl_get_default_verify_paths_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=e5b62a466271928b input=5210c953d98c3eb5]*/
|
||||
{
|
||||
PyObject *ofile_env = NULL;
|
||||
PyObject *ofile = NULL;
|
||||
|
@ -4049,8 +4049,8 @@ long name are also matched.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_txt2obj_impl(PyModuleDef *module, const char *txt, int name)
|
||||
/*[clinic end generated code: output=2ae2c30531b8809f input=1c1e7d0aa7c48602]*/
|
||||
_ssl_txt2obj_impl(PyObject *module, const char *txt, int name)
|
||||
/*[clinic end generated code: output=c38e3991347079c1 input=1c1e7d0aa7c48602]*/
|
||||
{
|
||||
PyObject *result = NULL;
|
||||
ASN1_OBJECT *obj;
|
||||
|
@ -4074,8 +4074,8 @@ Lookup NID, short name, long name and OID of an ASN1_OBJECT by NID.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_nid2obj_impl(PyModuleDef *module, int nid)
|
||||
/*[clinic end generated code: output=8db1df89e44badb8 input=51787a3bee7d8f98]*/
|
||||
_ssl_nid2obj_impl(PyObject *module, int nid)
|
||||
/*[clinic end generated code: output=4a98ab691cd4f84a input=51787a3bee7d8f98]*/
|
||||
{
|
||||
PyObject *result = NULL;
|
||||
ASN1_OBJECT *obj;
|
||||
|
@ -4193,8 +4193,8 @@ a set of OIDs or the boolean True.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_enum_certificates_impl(PyModuleDef *module, const char *store_name)
|
||||
/*[clinic end generated code: output=cc4ebc10b8adacfc input=915f60d70461ea4e]*/
|
||||
_ssl_enum_certificates_impl(PyObject *module, const char *store_name)
|
||||
/*[clinic end generated code: output=5134dc8bb3a3c893 input=915f60d70461ea4e]*/
|
||||
{
|
||||
HCERTSTORE hStore = NULL;
|
||||
PCCERT_CONTEXT pCertCtx = NULL;
|
||||
|
@ -4281,8 +4281,8 @@ X509_ASN_ENCODING or PKCS_7_ASN_ENCODING.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_ssl_enum_crls_impl(PyModuleDef *module, const char *store_name)
|
||||
/*[clinic end generated code: output=763490a2aa1c50d5 input=a1f1d7629f1c5d3d]*/
|
||||
_ssl_enum_crls_impl(PyObject *module, const char *store_name)
|
||||
/*[clinic end generated code: output=bce467f60ccd03b6 input=a1f1d7629f1c5d3d]*/
|
||||
{
|
||||
HCERTSTORE hStore = NULL;
|
||||
PCCRL_CONTEXT pCrlCtx = NULL;
|
||||
|
|
|
@ -3172,8 +3172,8 @@ _tkinter._flatten
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_tkinter__flatten(PyModuleDef *module, PyObject *item)
|
||||
/*[clinic end generated code: output=9505049ec74c3480 input=6b9c12260aa1157f]*/
|
||||
_tkinter__flatten(PyObject *module, PyObject *item)
|
||||
/*[clinic end generated code: output=cad02a3f97f29862 input=6b9c12260aa1157f]*/
|
||||
{
|
||||
FlattenContext context;
|
||||
|
||||
|
@ -3217,11 +3217,11 @@ _tkinter.create
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_tkinter_create_impl(PyModuleDef *module, const char *screenName,
|
||||
_tkinter_create_impl(PyObject *module, const char *screenName,
|
||||
const char *baseName, const char *className,
|
||||
int interactive, int wantobjects, int wantTk, int sync,
|
||||
const char *use)
|
||||
/*[clinic end generated code: output=b8847800fc3b27eb input=0d522aad1cb0ca0e]*/
|
||||
/*[clinic end generated code: output=e3315607648e6bb4 input=0d522aad1cb0ca0e]*/
|
||||
{
|
||||
/* XXX baseName is not used anymore;
|
||||
* try getting rid of it. */
|
||||
|
@ -3247,8 +3247,8 @@ It should be set to a divisor of the maximum time between frames in an animation
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_tkinter_setbusywaitinterval_impl(PyModuleDef *module, int new_val)
|
||||
/*[clinic end generated code: output=0b9d7ef7940461ea input=deca1d6f9e6dae47]*/
|
||||
_tkinter_setbusywaitinterval_impl(PyObject *module, int new_val)
|
||||
/*[clinic end generated code: output=42bf7757dc2d0ab6 input=deca1d6f9e6dae47]*/
|
||||
{
|
||||
if (new_val < 0) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
|
@ -3266,8 +3266,8 @@ Return the current busy-wait interval between successive calls to Tcl_DoOneEvent
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
_tkinter_getbusywaitinterval_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=9d09eee026e96971 input=a695878d2d576a84]*/
|
||||
_tkinter_getbusywaitinterval_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=23b72d552001f5c7 input=a695878d2d576a84]*/
|
||||
{
|
||||
return Tkinter_busywaitinterval;
|
||||
}
|
||||
|
|
|
@ -22,8 +22,8 @@ Return the number of weak references to 'object'.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_ssize_t
|
||||
_weakref_getweakrefcount_impl(PyModuleDef *module, PyObject *object)
|
||||
/*[clinic end generated code: output=6a6ad0b98285e468 input=cedb69711b6a2507]*/
|
||||
_weakref_getweakrefcount_impl(PyObject *module, PyObject *object)
|
||||
/*[clinic end generated code: output=301806d59558ff3e input=cedb69711b6a2507]*/
|
||||
{
|
||||
PyWeakReference **list;
|
||||
|
||||
|
|
|
@ -368,8 +368,8 @@ Close handle.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CloseHandle_impl(PyModuleDef *module, HANDLE handle)
|
||||
/*[clinic end generated code: output=0548595c71cb4bf7 input=7f0e4ac36e0352b8]*/
|
||||
_winapi_CloseHandle_impl(PyObject *module, HANDLE handle)
|
||||
/*[clinic end generated code: output=7ad37345f07bd782 input=7f0e4ac36e0352b8]*/
|
||||
{
|
||||
BOOL success;
|
||||
|
||||
|
@ -391,9 +391,9 @@ _winapi.ConnectNamedPipe
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_ConnectNamedPipe_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle,
|
||||
int use_overlapped)
|
||||
/*[clinic end generated code: output=fed3b165d1bca95a input=edc83da007ebf3be]*/
|
||||
/*[clinic end generated code: output=335a0e7086800671 input=edc83da007ebf3be]*/
|
||||
{
|
||||
BOOL success;
|
||||
OverlappedObject *overlapped = NULL;
|
||||
|
@ -443,12 +443,12 @@ _winapi.CreateFile -> HANDLE
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_CreateFile_impl(PyModuleDef *module, LPCTSTR file_name,
|
||||
_winapi_CreateFile_impl(PyObject *module, LPCTSTR file_name,
|
||||
DWORD desired_access, DWORD share_mode,
|
||||
LPSECURITY_ATTRIBUTES security_attributes,
|
||||
DWORD creation_disposition,
|
||||
DWORD flags_and_attributes, HANDLE template_file)
|
||||
/*[clinic end generated code: output=c6e1d78f8affd10c input=6423c3e40372dbd5]*/
|
||||
/*[clinic end generated code: output=417ddcebfc5a3d53 input=6423c3e40372dbd5]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
|
@ -474,9 +474,9 @@ _winapi.CreateJunction
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateJunction_impl(PyModuleDef *module, LPWSTR src_path,
|
||||
_winapi_CreateJunction_impl(PyObject *module, LPWSTR src_path,
|
||||
LPWSTR dst_path)
|
||||
/*[clinic end generated code: output=eccae9364e46f6da input=8cd1f9964b6e3d36]*/
|
||||
/*[clinic end generated code: output=66b7eb746e1dfa25 input=8cd1f9964b6e3d36]*/
|
||||
{
|
||||
/* Privilege adjustment */
|
||||
HANDLE token = NULL;
|
||||
|
@ -617,12 +617,12 @@ _winapi.CreateNamedPipe -> HANDLE
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_CreateNamedPipe_impl(PyModuleDef *module, LPCTSTR name,
|
||||
DWORD open_mode, DWORD pipe_mode,
|
||||
DWORD max_instances, DWORD out_buffer_size,
|
||||
DWORD in_buffer_size, DWORD default_timeout,
|
||||
_winapi_CreateNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD open_mode,
|
||||
DWORD pipe_mode, DWORD max_instances,
|
||||
DWORD out_buffer_size, DWORD in_buffer_size,
|
||||
DWORD default_timeout,
|
||||
LPSECURITY_ATTRIBUTES security_attributes)
|
||||
/*[clinic end generated code: output=44ca2a06a219b523 input=5a73530b84d8bc37]*/
|
||||
/*[clinic end generated code: output=80f8c07346a94fbc input=5a73530b84d8bc37]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
|
@ -653,9 +653,8 @@ Returns a 2-tuple of handles, to the read and write ends of the pipe.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreatePipe_impl(PyModuleDef *module, PyObject *pipe_attrs,
|
||||
DWORD size)
|
||||
/*[clinic end generated code: output=fef99f3b4222bc78 input=c4f2cfa56ef68d90]*/
|
||||
_winapi_CreatePipe_impl(PyObject *module, PyObject *pipe_attrs, DWORD size)
|
||||
/*[clinic end generated code: output=1c4411d8699f0925 input=c4f2cfa56ef68d90]*/
|
||||
{
|
||||
HANDLE read_pipe;
|
||||
HANDLE write_pipe;
|
||||
|
@ -814,13 +813,13 @@ process ID, and thread ID.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateProcess_impl(PyModuleDef *module, Py_UNICODE *application_name,
|
||||
_winapi_CreateProcess_impl(PyObject *module, Py_UNICODE *application_name,
|
||||
Py_UNICODE *command_line, PyObject *proc_attrs,
|
||||
PyObject *thread_attrs, BOOL inherit_handles,
|
||||
DWORD creation_flags, PyObject *env_mapping,
|
||||
Py_UNICODE *current_directory,
|
||||
PyObject *startup_info)
|
||||
/*[clinic end generated code: output=874bb350ff9ed4ef input=4a43b05038d639bb]*/
|
||||
/*[clinic end generated code: output=4652a33aff4b0ae1 input=4a43b05038d639bb]*/
|
||||
{
|
||||
BOOL result;
|
||||
PROCESS_INFORMATION pi;
|
||||
|
@ -900,13 +899,12 @@ through both handles.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_DuplicateHandle_impl(PyModuleDef *module,
|
||||
HANDLE source_process_handle,
|
||||
_winapi_DuplicateHandle_impl(PyObject *module, HANDLE source_process_handle,
|
||||
HANDLE source_handle,
|
||||
HANDLE target_process_handle,
|
||||
DWORD desired_access, BOOL inherit_handle,
|
||||
DWORD options)
|
||||
/*[clinic end generated code: output=0799515b68b5237b input=b933e3f2356a8c12]*/
|
||||
/*[clinic end generated code: output=ad9711397b5dcd4e input=b933e3f2356a8c12]*/
|
||||
{
|
||||
HANDLE target_handle;
|
||||
BOOL result;
|
||||
|
@ -940,8 +938,8 @@ _winapi.ExitProcess
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_ExitProcess_impl(PyModuleDef *module, UINT ExitCode)
|
||||
/*[clinic end generated code: output=25f3b499c24cedc8 input=4f05466a9406c558]*/
|
||||
_winapi_ExitProcess_impl(PyObject *module, UINT ExitCode)
|
||||
/*[clinic end generated code: output=a387deb651175301 input=4f05466a9406c558]*/
|
||||
{
|
||||
#if defined(Py_DEBUG)
|
||||
SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOALIGNMENTFAULTEXCEPT|
|
||||
|
@ -961,8 +959,8 @@ Return a handle object for the current process.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_GetCurrentProcess_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=be29ac3ad5f8291e input=b213403fd4b96b41]*/
|
||||
_winapi_GetCurrentProcess_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=ddeb4dd2ffadf344 input=b213403fd4b96b41]*/
|
||||
{
|
||||
return GetCurrentProcess();
|
||||
}
|
||||
|
@ -977,8 +975,8 @@ Return the termination status of the specified process.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static DWORD
|
||||
_winapi_GetExitCodeProcess_impl(PyModuleDef *module, HANDLE process)
|
||||
/*[clinic end generated code: output=0b10f0848a410f65 input=61b6bfc7dc2ee374]*/
|
||||
_winapi_GetExitCodeProcess_impl(PyObject *module, HANDLE process)
|
||||
/*[clinic end generated code: output=b4620bdf2bccf36b input=61b6bfc7dc2ee374]*/
|
||||
{
|
||||
DWORD exit_code;
|
||||
BOOL result;
|
||||
|
@ -998,8 +996,8 @@ _winapi.GetLastError -> DWORD
|
|||
[clinic start generated code]*/
|
||||
|
||||
static DWORD
|
||||
_winapi_GetLastError_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=0ea00d8e67bdd056 input=62d47fb9bce038ba]*/
|
||||
_winapi_GetLastError_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=8585b827cb1a92c5 input=62d47fb9bce038ba]*/
|
||||
{
|
||||
return GetLastError();
|
||||
}
|
||||
|
@ -1021,8 +1019,8 @@ of the current process.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetModuleFileName_impl(PyModuleDef *module, HMODULE module_handle)
|
||||
/*[clinic end generated code: output=90063dc63bdbfa18 input=6d66ff7deca5d11f]*/
|
||||
_winapi_GetModuleFileName_impl(PyObject *module, HMODULE module_handle)
|
||||
/*[clinic end generated code: output=85b4b728c5160306 input=6d66ff7deca5d11f]*/
|
||||
{
|
||||
BOOL result;
|
||||
WCHAR filename[MAX_PATH];
|
||||
|
@ -1049,8 +1047,8 @@ The integer associated with the handle object is returned.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_GetStdHandle_impl(PyModuleDef *module, DWORD std_handle)
|
||||
/*[clinic end generated code: output=5f5ca28b28c6fad2 input=07016b06a2fc8826]*/
|
||||
_winapi_GetStdHandle_impl(PyObject *module, DWORD std_handle)
|
||||
/*[clinic end generated code: output=0e613001e73ab614 input=07016b06a2fc8826]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
|
@ -1071,8 +1069,8 @@ Return the version number of the current operating system.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
_winapi_GetVersion_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=95a2f8ad3b948ca8 input=e21dff8d0baeded2]*/
|
||||
_winapi_GetVersion_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=e41f0db5a3b82682 input=e21dff8d0baeded2]*/
|
||||
/* Disable deprecation warnings about GetVersionEx as the result is
|
||||
being passed straight through to the caller, who is responsible for
|
||||
using it correctly. */
|
||||
|
@ -1095,9 +1093,9 @@ _winapi.OpenProcess -> HANDLE
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_OpenProcess_impl(PyModuleDef *module, DWORD desired_access,
|
||||
_winapi_OpenProcess_impl(PyObject *module, DWORD desired_access,
|
||||
BOOL inherit_handle, DWORD process_id)
|
||||
/*[clinic end generated code: output=6bc52eda82a3d226 input=ec98c4cf4ea2ec36]*/
|
||||
/*[clinic end generated code: output=b42b6b81ea5a0fc3 input=ec98c4cf4ea2ec36]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
|
@ -1119,8 +1117,8 @@ _winapi.PeekNamedPipe
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_PeekNamedPipe_impl(PyModuleDef *module, HANDLE handle, int size)
|
||||
/*[clinic end generated code: output=e6c908e2fb63c798 input=c7aa53bfbce69d70]*/
|
||||
_winapi_PeekNamedPipe_impl(PyObject *module, HANDLE handle, int size)
|
||||
/*[clinic end generated code: output=d0c3e29e49d323dd input=c7aa53bfbce69d70]*/
|
||||
{
|
||||
PyObject *buf = NULL;
|
||||
DWORD nread, navail, nleft;
|
||||
|
@ -1167,9 +1165,9 @@ _winapi.ReadFile
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_ReadFile_impl(PyModuleDef *module, HANDLE handle, int size,
|
||||
_winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size,
|
||||
int use_overlapped)
|
||||
/*[clinic end generated code: output=d7695db4db97b135 input=8dd810194e86ac7d]*/
|
||||
/*[clinic end generated code: output=492029ca98161d84 input=8dd810194e86ac7d]*/
|
||||
{
|
||||
DWORD nread;
|
||||
PyObject *buf;
|
||||
|
@ -1229,11 +1227,11 @@ _winapi.SetNamedPipeHandleState
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_SetNamedPipeHandleState_impl(PyModuleDef *module, HANDLE named_pipe,
|
||||
_winapi_SetNamedPipeHandleState_impl(PyObject *module, HANDLE named_pipe,
|
||||
PyObject *mode,
|
||||
PyObject *max_collection_count,
|
||||
PyObject *collect_data_timeout)
|
||||
/*[clinic end generated code: output=25aa3c28dee223ce input=9142d72163d0faa6]*/
|
||||
/*[clinic end generated code: output=f2129d222cbfa095 input=9142d72163d0faa6]*/
|
||||
{
|
||||
PyObject *oArgs[3] = {mode, max_collection_count, collect_data_timeout};
|
||||
DWORD dwArgs[3], *pArgs[3] = {NULL, NULL, NULL};
|
||||
|
@ -1268,9 +1266,9 @@ Terminate the specified process and all of its threads.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_TerminateProcess_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_TerminateProcess_impl(PyObject *module, HANDLE handle,
|
||||
UINT exit_code)
|
||||
/*[clinic end generated code: output=937c1bb6219aca8b input=d6bc0aa1ee3bb4df]*/
|
||||
/*[clinic end generated code: output=f4e99ac3f0b1f34a input=d6bc0aa1ee3bb4df]*/
|
||||
{
|
||||
BOOL result;
|
||||
|
||||
|
@ -1291,8 +1289,8 @@ _winapi.WaitNamedPipe
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitNamedPipe_impl(PyModuleDef *module, LPCTSTR name, DWORD timeout)
|
||||
/*[clinic end generated code: output=5bca5e02f448c9d7 input=36fc781291b1862c]*/
|
||||
_winapi_WaitNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD timeout)
|
||||
/*[clinic end generated code: output=c2866f4439b1fe38 input=36fc781291b1862c]*/
|
||||
{
|
||||
BOOL success;
|
||||
|
||||
|
@ -1316,10 +1314,9 @@ _winapi.WaitForMultipleObjects
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitForMultipleObjects_impl(PyModuleDef *module,
|
||||
PyObject *handle_seq, BOOL wait_flag,
|
||||
DWORD milliseconds)
|
||||
/*[clinic end generated code: output=acb440728d06d130 input=36f76ca057cd28a0]*/
|
||||
_winapi_WaitForMultipleObjects_impl(PyObject *module, PyObject *handle_seq,
|
||||
BOOL wait_flag, DWORD milliseconds)
|
||||
/*[clinic end generated code: output=295e3f00b8e45899 input=36f76ca057cd28a0]*/
|
||||
{
|
||||
DWORD result;
|
||||
HANDLE handles[MAXIMUM_WAIT_OBJECTS];
|
||||
|
@ -1393,9 +1390,9 @@ in milliseconds.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
_winapi_WaitForSingleObject_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_WaitForSingleObject_impl(PyObject *module, HANDLE handle,
|
||||
DWORD milliseconds)
|
||||
/*[clinic end generated code: output=34ae40c269749c48 input=443d1ab076edc7b1]*/
|
||||
/*[clinic end generated code: output=3c4715d8f1b39859 input=443d1ab076edc7b1]*/
|
||||
{
|
||||
DWORD result;
|
||||
|
||||
|
@ -1420,9 +1417,9 @@ _winapi.WriteFile
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_WriteFile_impl(PyModuleDef *module, HANDLE handle, PyObject *buffer,
|
||||
_winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer,
|
||||
int use_overlapped)
|
||||
/*[clinic end generated code: output=65e70ea41f4d2a1d input=51846a5af52053fd]*/
|
||||
/*[clinic end generated code: output=2ca80f6bf3fa92e3 input=51846a5af52053fd]*/
|
||||
{
|
||||
Py_buffer _buf, *buf;
|
||||
DWORD len, written;
|
||||
|
|
|
@ -1938,11 +1938,11 @@ Internal. Used for pickling support.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype,
|
||||
array__array_reconstructor_impl(PyObject *module, PyTypeObject *arraytype,
|
||||
int typecode,
|
||||
enum machine_format_code mformat_code,
|
||||
PyObject *items)
|
||||
/*[clinic end generated code: output=6ecbf0e8e4d92ab9 input=2464dc8f4c7736b5]*/
|
||||
/*[clinic end generated code: output=e05263141ba28365 input=2464dc8f4c7736b5]*/
|
||||
{
|
||||
PyObject *converted_items;
|
||||
PyObject *result;
|
||||
|
|
|
@ -409,9 +409,9 @@ Return the value of sample index from the fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_getsample_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_getsample_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
Py_ssize_t index)
|
||||
/*[clinic end generated code: output=3995e189fdc8ec16 input=88edbe2871393549]*/
|
||||
/*[clinic end generated code: output=8fe1b1775134f39a input=88edbe2871393549]*/
|
||||
{
|
||||
int val;
|
||||
|
||||
|
@ -436,8 +436,8 @@ Return the maximum of the absolute value of all samples in a fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_max_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=85047ee1001f2305 input=32bea5ea0ac8c223]*/
|
||||
audioop_max_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=e6c5952714f1c3f0 input=32bea5ea0ac8c223]*/
|
||||
{
|
||||
Py_ssize_t i;
|
||||
unsigned int absval, max = 0;
|
||||
|
@ -464,8 +464,8 @@ Return the minimum and maximum values of all samples in the sound fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_minmax_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=ae8f5513c64fd569 input=89848e9b927a0696]*/
|
||||
audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=473fda66b15c836e input=89848e9b927a0696]*/
|
||||
{
|
||||
Py_ssize_t i;
|
||||
/* -1 trick below is needed on Windows to support -0x80000000 without
|
||||
|
@ -493,8 +493,8 @@ Return the average over all samples in the fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_avg_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=7fccd645c95f4860 input=1114493c7611334d]*/
|
||||
audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=4410a4c12c3586e6 input=1114493c7611334d]*/
|
||||
{
|
||||
Py_ssize_t i;
|
||||
int avg;
|
||||
|
@ -522,8 +522,8 @@ Return the root-mean-square of the fragment, i.e. sqrt(sum(S_i^2)/n).
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_rms_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=7b398702c81b709d input=4cc57c6c94219d78]*/
|
||||
audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=1e7871c826445698 input=4cc57c6c94219d78]*/
|
||||
{
|
||||
Py_ssize_t i;
|
||||
unsigned int res;
|
||||
|
@ -596,9 +596,9 @@ Try to match reference as well as possible to a portion of fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_findfit_impl(PyModuleDef *module, Py_buffer *fragment,
|
||||
audioop_findfit_impl(PyObject *module, Py_buffer *fragment,
|
||||
Py_buffer *reference)
|
||||
/*[clinic end generated code: output=609eedf5d823d6dd input=62c305605e183c9a]*/
|
||||
/*[clinic end generated code: output=5752306d83cbbada input=62c305605e183c9a]*/
|
||||
{
|
||||
const short *cp1, *cp2;
|
||||
Py_ssize_t len1, len2;
|
||||
|
@ -665,9 +665,9 @@ Return a factor F such that rms(add(fragment, mul(reference, -F))) is minimal.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_findfactor_impl(PyModuleDef *module, Py_buffer *fragment,
|
||||
audioop_findfactor_impl(PyObject *module, Py_buffer *fragment,
|
||||
Py_buffer *reference)
|
||||
/*[clinic end generated code: output=5566a8c55de54f99 input=816680301d012b21]*/
|
||||
/*[clinic end generated code: output=14ea95652c1afcf8 input=816680301d012b21]*/
|
||||
{
|
||||
const short *cp1, *cp2;
|
||||
Py_ssize_t len;
|
||||
|
@ -707,9 +707,9 @@ Search fragment for a slice of specified number of samples with maximum energy.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_findmax_impl(PyModuleDef *module, Py_buffer *fragment,
|
||||
audioop_findmax_impl(PyObject *module, Py_buffer *fragment,
|
||||
Py_ssize_t length)
|
||||
/*[clinic end generated code: output=01fe796fad2573bb input=2f304801ed42383c]*/
|
||||
/*[clinic end generated code: output=f008128233523040 input=2f304801ed42383c]*/
|
||||
{
|
||||
const short *cp1;
|
||||
Py_ssize_t len1;
|
||||
|
@ -761,8 +761,8 @@ Return the average peak-peak value over all samples in the fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_avgpp_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=06c8380fd6e34207 input=0b3cceeae420a7d9]*/
|
||||
audioop_avgpp_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=269596b0d5ae0b2b input=0b3cceeae420a7d9]*/
|
||||
{
|
||||
Py_ssize_t i;
|
||||
int prevval, prevextremevalid = 0, prevextreme = 0;
|
||||
|
@ -818,8 +818,8 @@ Return the maximum peak-peak value in the sound fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_maxpp_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=c300c0bd7e8535c0 input=671a13e1518f80a1]*/
|
||||
audioop_maxpp_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=5b918ed5dbbdb978 input=671a13e1518f80a1]*/
|
||||
{
|
||||
Py_ssize_t i;
|
||||
int prevval, prevextremevalid = 0, prevextreme = 0;
|
||||
|
@ -871,8 +871,8 @@ Return the number of zero crossings in the fragment passed as an argument.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_cross_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=99e6572d7d7cdbf1 input=b1b3f15b83f6b41a]*/
|
||||
audioop_cross_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=5938dcdd74a1f431 input=b1b3f15b83f6b41a]*/
|
||||
{
|
||||
Py_ssize_t i;
|
||||
int prevval;
|
||||
|
@ -902,9 +902,9 @@ Return a fragment that has all samples in the original fragment multiplied by th
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_mul_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_mul_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
double factor)
|
||||
/*[clinic end generated code: output=1c7c31191ac86b10 input=c726667baa157d3c]*/
|
||||
/*[clinic end generated code: output=6cd48fe796da0ea4 input=c726667baa157d3c]*/
|
||||
{
|
||||
signed char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -944,9 +944,9 @@ Convert a stereo fragment to a mono fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_tomono_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_tomono_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
double lfactor, double rfactor)
|
||||
/*[clinic end generated code: output=553f547c5e29e3b6 input=c4ec949b3f4dddfa]*/
|
||||
/*[clinic end generated code: output=235c8277216d4e4e input=c4ec949b3f4dddfa]*/
|
||||
{
|
||||
signed char *cp, *ncp;
|
||||
Py_ssize_t len, i;
|
||||
|
@ -993,9 +993,9 @@ Generate a stereo fragment from a mono fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_tostereo_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_tostereo_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
double lfactor, double rfactor)
|
||||
/*[clinic end generated code: output=697bb6ba41e9dd2c input=27b6395ebfdff37a]*/
|
||||
/*[clinic end generated code: output=046f13defa5f1595 input=27b6395ebfdff37a]*/
|
||||
{
|
||||
signed char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1041,9 +1041,9 @@ Return a fragment which is the addition of the two samples passed as parameters.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_add_impl(PyModuleDef *module, Py_buffer *fragment1,
|
||||
audioop_add_impl(PyObject *module, Py_buffer *fragment1,
|
||||
Py_buffer *fragment2, int width)
|
||||
/*[clinic end generated code: output=fe6c12f143e0b027 input=4a8d4bae4c1605c7]*/
|
||||
/*[clinic end generated code: output=60140af4d1aab6f2 input=4a8d4bae4c1605c7]*/
|
||||
{
|
||||
signed char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1100,9 +1100,8 @@ Return a fragment that is the original fragment with a bias added to each sample
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_bias_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
int bias)
|
||||
/*[clinic end generated code: output=ac1f4dda20a01c26 input=2b5cce5c3bb4838c]*/
|
||||
audioop_bias_impl(PyObject *module, Py_buffer *fragment, int width, int bias)
|
||||
/*[clinic end generated code: output=6e0aa8f68f045093 input=2b5cce5c3bb4838c]*/
|
||||
{
|
||||
signed char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1160,8 +1159,8 @@ Reverse the samples in a fragment and returns the modified fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_reverse_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=6ec3c91337f5925e input=668f890cf9f9d225]*/
|
||||
audioop_reverse_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=b44135698418da14 input=668f890cf9f9d225]*/
|
||||
{
|
||||
unsigned char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1193,8 +1192,8 @@ Convert big-endian samples to little-endian and vice versa.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_byteswap_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=bfe4aa584b7a3f5b input=fae7611ceffa5c82]*/
|
||||
audioop_byteswap_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=50838a9e4b87cd4d input=fae7611ceffa5c82]*/
|
||||
{
|
||||
unsigned char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1228,9 +1227,9 @@ Convert samples between 1-, 2-, 3- and 4-byte formats.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_lin2lin_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
int newwidth)
|
||||
/*[clinic end generated code: output=cb6ca950d1df9898 input=5ce08c8aa2f24d96]*/
|
||||
/*[clinic end generated code: output=17b14109248f1d99 input=5ce08c8aa2f24d96]*/
|
||||
{
|
||||
unsigned char *ncp;
|
||||
Py_ssize_t i, j;
|
||||
|
@ -1286,10 +1285,10 @@ Convert the frame rate of the input fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_ratecv_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_ratecv_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
int nchannels, int inrate, int outrate, PyObject *state,
|
||||
int weightA, int weightB)
|
||||
/*[clinic end generated code: output=59e1787bfa49b9d9 input=aff3acdc94476191]*/
|
||||
/*[clinic end generated code: output=624038e843243139 input=aff3acdc94476191]*/
|
||||
{
|
||||
char *cp, *ncp;
|
||||
Py_ssize_t len;
|
||||
|
@ -1467,8 +1466,8 @@ Convert samples in the audio fragment to u-LAW encoding.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2ulaw_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=26263cc877c5e1bc input=2450d1b870b6bac2]*/
|
||||
audioop_lin2ulaw_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=14fb62b16fe8ea8e input=2450d1b870b6bac2]*/
|
||||
{
|
||||
unsigned char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1500,8 +1499,8 @@ Convert sound fragments in u-LAW encoding to linearly encoded sound fragments.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_ulaw2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=9864cb34e3a1d876 input=45d53ddce5be7d06]*/
|
||||
audioop_ulaw2lin_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=378356b047521ba2 input=45d53ddce5be7d06]*/
|
||||
{
|
||||
unsigned char *cp;
|
||||
signed char *ncp;
|
||||
|
@ -1540,8 +1539,8 @@ Convert samples in the audio fragment to a-LAW encoding.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2alaw_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=d5bf14bd0fe6fdcd input=ffb1ef8bb39da945]*/
|
||||
audioop_lin2alaw_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=d076f130121a82f0 input=ffb1ef8bb39da945]*/
|
||||
{
|
||||
unsigned char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1573,8 +1572,8 @@ Convert sound fragments in a-LAW encoding to linearly encoded sound fragments.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_alaw2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=d2b604ddd036e1cd input=4140626046cd1772]*/
|
||||
audioop_alaw2lin_impl(PyObject *module, Py_buffer *fragment, int width)
|
||||
/*[clinic end generated code: output=85c365ec559df647 input=4140626046cd1772]*/
|
||||
{
|
||||
unsigned char *cp;
|
||||
signed char *ncp;
|
||||
|
@ -1615,9 +1614,9 @@ Convert samples to 4 bit Intel/DVI ADPCM encoding.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2adpcm_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_lin2adpcm_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
PyObject *state)
|
||||
/*[clinic end generated code: output=93f0996f592b5ce5 input=12919d549b90c90a]*/
|
||||
/*[clinic end generated code: output=cc19f159f16c6793 input=12919d549b90c90a]*/
|
||||
{
|
||||
signed char *ncp;
|
||||
Py_ssize_t i;
|
||||
|
@ -1743,9 +1742,9 @@ Decode an Intel/DVI ADPCM coded fragment to a linear fragment.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
audioop_adpcm2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_adpcm2lin_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
PyObject *state)
|
||||
/*[clinic end generated code: output=236cf6dc2c829181 input=f5221144f5ca9ef0]*/
|
||||
/*[clinic end generated code: output=3440ea105acb3456 input=f5221144f5ca9ef0]*/
|
||||
{
|
||||
signed char *cp;
|
||||
signed char *ncp;
|
||||
|
|
|
@ -253,8 +253,8 @@ Decode a line of uuencoded data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_uu_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=5779f39b0b48459f input=7cafeaf73df63d1c]*/
|
||||
binascii_a2b_uu_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=e027f8e0b0598742 input=7cafeaf73df63d1c]*/
|
||||
{
|
||||
const unsigned char *ascii_data;
|
||||
unsigned char *bin_data;
|
||||
|
@ -340,8 +340,8 @@ Uuencode line of data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_uu_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=181021b69bb9a414 input=00fdf458ce8b465b]*/
|
||||
binascii_b2a_uu_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=0070670e52e4aa6b input=00fdf458ce8b465b]*/
|
||||
{
|
||||
unsigned char *ascii_data;
|
||||
const unsigned char *bin_data;
|
||||
|
@ -425,8 +425,8 @@ Decode a line of base64 data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_base64_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=3e351b702bed56d2 input=5872acf6e1cac243]*/
|
||||
binascii_a2b_base64_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=0628223f19fd3f9b input=5872acf6e1cac243]*/
|
||||
{
|
||||
const unsigned char *ascii_data;
|
||||
unsigned char *bin_data;
|
||||
|
@ -522,8 +522,8 @@ Base64-code line of data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_base64_impl(PyModuleDef *module, Py_buffer *data, int newline)
|
||||
/*[clinic end generated code: output=19e1dd719a890b50 input=7b2ea6fa38d8924c]*/
|
||||
binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline)
|
||||
/*[clinic end generated code: output=4ad62c8e8485d3b3 input=7b2ea6fa38d8924c]*/
|
||||
{
|
||||
unsigned char *ascii_data;
|
||||
const unsigned char *bin_data;
|
||||
|
@ -590,8 +590,8 @@ Decode .hqx coding.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_hqx_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=60bcdbbd28b105cd input=0d914c680e0eed55]*/
|
||||
binascii_a2b_hqx_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=4d6d8c54d54ea1c1 input=0d914c680e0eed55]*/
|
||||
{
|
||||
const unsigned char *ascii_data;
|
||||
unsigned char *bin_data;
|
||||
|
@ -669,8 +669,8 @@ Binhex RLE-code binary data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_rlecode_hqx_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=0905da344dbf0648 input=e1f1712447a82b09]*/
|
||||
binascii_rlecode_hqx_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=393d79338f5f5629 input=e1f1712447a82b09]*/
|
||||
{
|
||||
const unsigned char *in_data;
|
||||
unsigned char *out_data;
|
||||
|
@ -731,8 +731,8 @@ Encode .hqx data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_hqx_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=5a987810d5e3cdbb input=9596ebe019fe12ba]*/
|
||||
binascii_b2a_hqx_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=d0aa5a704bc9f7de input=9596ebe019fe12ba]*/
|
||||
{
|
||||
unsigned char *ascii_data;
|
||||
const unsigned char *bin_data;
|
||||
|
@ -786,8 +786,8 @@ Decode hexbin RLE-coded string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_rledecode_hqx_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=f7afd89b789946ab input=54cdd49fc014402c]*/
|
||||
binascii_rledecode_hqx_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=9826619565de1c6c input=54cdd49fc014402c]*/
|
||||
{
|
||||
const unsigned char *in_data;
|
||||
unsigned char *out_data;
|
||||
|
@ -904,8 +904,8 @@ Compute hqx CRC incrementally.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static unsigned int
|
||||
binascii_crc_hqx_impl(PyModuleDef *module, Py_buffer *data, unsigned int crc)
|
||||
/*[clinic end generated code: output=167c2dac62625717 input=add8c53712ccceda]*/
|
||||
binascii_crc_hqx_impl(PyObject *module, Py_buffer *data, unsigned int crc)
|
||||
/*[clinic end generated code: output=8ec2a78590d19170 input=add8c53712ccceda]*/
|
||||
{
|
||||
const unsigned char *bin_data;
|
||||
Py_ssize_t len;
|
||||
|
@ -1052,8 +1052,8 @@ Compute CRC-32 incrementally.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static unsigned int
|
||||
binascii_crc32_impl(PyModuleDef *module, Py_buffer *data, unsigned int crc)
|
||||
/*[clinic end generated code: output=620a961643393c4f input=bbe340bc99d25aa8]*/
|
||||
binascii_crc32_impl(PyObject *module, Py_buffer *data, unsigned int crc)
|
||||
/*[clinic end generated code: output=52cf59056a78593b input=bbe340bc99d25aa8]*/
|
||||
|
||||
#ifdef USE_ZLIB_CRC32
|
||||
/* This was taken from zlibmodule.c PyZlib_crc32 (but is PY_SSIZE_T_CLEAN) */
|
||||
|
@ -1100,8 +1100,8 @@ available as "hexlify()".
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_hex_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=179318922c2f8fda input=96423cfa299ff3b1]*/
|
||||
binascii_b2a_hex_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=92fec1a95c9897a0 input=96423cfa299ff3b1]*/
|
||||
{
|
||||
return _Py_strhex_bytes((const char *)data->buf, data->len);
|
||||
}
|
||||
|
@ -1115,8 +1115,8 @@ The return value is a bytes object.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_hexlify_impl(PyModuleDef *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=6098440091fb61dc input=2e3afae7f083f061]*/
|
||||
binascii_hexlify_impl(PyObject *module, Py_buffer *data)
|
||||
/*[clinic end generated code: output=749e95e53c14880c input=2e3afae7f083f061]*/
|
||||
{
|
||||
return _Py_strhex_bytes((const char *)data->buf, data->len);
|
||||
}
|
||||
|
@ -1149,8 +1149,8 @@ This function is also available as "unhexlify()".
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_hex_impl(PyModuleDef *module, Py_buffer *hexstr)
|
||||
/*[clinic end generated code: output=d61da452b5c6d290 input=9e1e7f2f94db24fd]*/
|
||||
binascii_a2b_hex_impl(PyObject *module, Py_buffer *hexstr)
|
||||
/*[clinic end generated code: output=0cc1a139af0eeecb input=9e1e7f2f94db24fd]*/
|
||||
{
|
||||
const char* argbuf;
|
||||
Py_ssize_t arglen;
|
||||
|
@ -1203,8 +1203,8 @@ hexstr must contain an even number of hex digits (upper or lower case).
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_unhexlify_impl(PyModuleDef *module, Py_buffer *hexstr)
|
||||
/*[clinic end generated code: output=17cec7544499803e input=dd8c012725f462da]*/
|
||||
binascii_unhexlify_impl(PyObject *module, Py_buffer *hexstr)
|
||||
/*[clinic end generated code: output=51a64c06c79629e3 input=dd8c012725f462da]*/
|
||||
{
|
||||
return binascii_a2b_hex_impl(module, hexstr);
|
||||
}
|
||||
|
@ -1235,8 +1235,8 @@ Decode a string of qp-encoded data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_qp_impl(PyModuleDef *module, Py_buffer *data, int header)
|
||||
/*[clinic end generated code: output=a44ef88270352114 input=5187a0d3d8e54f3b]*/
|
||||
binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header)
|
||||
/*[clinic end generated code: output=e99f7846cfb9bc53 input=5187a0d3d8e54f3b]*/
|
||||
{
|
||||
Py_ssize_t in, out;
|
||||
char ch;
|
||||
|
@ -1342,9 +1342,9 @@ are both encoded. When quotetabs is set, space and tabs are encoded.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_qp_impl(PyModuleDef *module, Py_buffer *data, int quotetabs,
|
||||
binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
|
||||
int istext, int header)
|
||||
/*[clinic end generated code: output=a87ca9ccb94e2a9f input=7f2a9aaa008e92b2]*/
|
||||
/*[clinic end generated code: output=e9884472ebb1a94c input=7f2a9aaa008e92b2]*/
|
||||
{
|
||||
Py_ssize_t in, out;
|
||||
const unsigned char *databuf;
|
||||
|
|
|
@ -1847,8 +1847,8 @@ _multibytecodec.__create_codec
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_multibytecodec___create_codec(PyModuleDef *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=fbe74f6510640163 input=6840b2a6b183fcfa]*/
|
||||
_multibytecodec___create_codec(PyObject *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=cfa3dce8260e809d input=6840b2a6b183fcfa]*/
|
||||
{
|
||||
MultibyteCodecObject *self;
|
||||
MultibyteCodec *codec;
|
||||
|
|
|
@ -25,10 +25,10 @@ PyDoc_STRVAR(_codecs_lookup__doc__,
|
|||
{"lookup", (PyCFunction)_codecs_lookup, METH_O, _codecs_lookup__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_lookup_impl(PyModuleDef *module, const char *encoding);
|
||||
_codecs_lookup_impl(PyObject *module, const char *encoding);
|
||||
|
||||
static PyObject *
|
||||
_codecs_lookup(PyModuleDef *module, PyObject *arg)
|
||||
_codecs_lookup(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *encoding;
|
||||
|
@ -58,11 +58,11 @@ PyDoc_STRVAR(_codecs_encode__doc__,
|
|||
{"encode", (PyCFunction)_codecs_encode, METH_VARARGS|METH_KEYWORDS, _codecs_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_encode_impl(PyModuleDef *module, PyObject *obj, const char *encoding,
|
||||
_codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_encode(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_codecs_encode(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"obj", "encoding", "errors", NULL};
|
||||
|
@ -96,11 +96,11 @@ PyDoc_STRVAR(_codecs_decode__doc__,
|
|||
{"decode", (PyCFunction)_codecs_decode, METH_VARARGS|METH_KEYWORDS, _codecs_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_decode_impl(PyModuleDef *module, PyObject *obj, const char *encoding,
|
||||
_codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_decode(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_codecs_decode(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"obj", "encoding", "errors", NULL};
|
||||
|
@ -128,10 +128,10 @@ PyDoc_STRVAR(_codecs__forget_codec__doc__,
|
|||
{"_forget_codec", (PyCFunction)_codecs__forget_codec, METH_O, _codecs__forget_codec__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs__forget_codec_impl(PyModuleDef *module, const char *encoding);
|
||||
_codecs__forget_codec_impl(PyObject *module, const char *encoding);
|
||||
|
||||
static PyObject *
|
||||
_codecs__forget_codec(PyModuleDef *module, PyObject *arg)
|
||||
_codecs__forget_codec(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *encoding;
|
||||
|
@ -154,11 +154,11 @@ PyDoc_STRVAR(_codecs_escape_decode__doc__,
|
|||
{"escape_decode", (PyCFunction)_codecs_escape_decode, METH_VARARGS, _codecs_escape_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_escape_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_escape_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_escape_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -188,11 +188,11 @@ PyDoc_STRVAR(_codecs_escape_encode__doc__,
|
|||
{"escape_encode", (PyCFunction)_codecs_escape_encode, METH_VARARGS, _codecs_escape_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_escape_encode_impl(PyModuleDef *module, PyObject *data,
|
||||
_codecs_escape_encode_impl(PyObject *module, PyObject *data,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_escape_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_escape_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *data;
|
||||
|
@ -217,11 +217,11 @@ PyDoc_STRVAR(_codecs_unicode_internal_decode__doc__,
|
|||
{"unicode_internal_decode", (PyCFunction)_codecs_unicode_internal_decode, METH_VARARGS, _codecs_unicode_internal_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_internal_decode_impl(PyModuleDef *module, PyObject *obj,
|
||||
_codecs_unicode_internal_decode_impl(PyObject *module, PyObject *obj,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_internal_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_unicode_internal_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *obj;
|
||||
|
@ -246,11 +246,11 @@ PyDoc_STRVAR(_codecs_utf_7_decode__doc__,
|
|||
{"utf_7_decode", (PyCFunction)_codecs_utf_7_decode, METH_VARARGS, _codecs_utf_7_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_7_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_7_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_7_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_7_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -281,11 +281,11 @@ PyDoc_STRVAR(_codecs_utf_8_decode__doc__,
|
|||
{"utf_8_decode", (PyCFunction)_codecs_utf_8_decode, METH_VARARGS, _codecs_utf_8_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_8_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_8_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_8_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_8_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -316,11 +316,11 @@ PyDoc_STRVAR(_codecs_utf_16_decode__doc__,
|
|||
{"utf_16_decode", (PyCFunction)_codecs_utf_16_decode, METH_VARARGS, _codecs_utf_16_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_16_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -351,11 +351,11 @@ PyDoc_STRVAR(_codecs_utf_16_le_decode__doc__,
|
|||
{"utf_16_le_decode", (PyCFunction)_codecs_utf_16_le_decode, METH_VARARGS, _codecs_utf_16_le_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_le_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_le_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_le_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_16_le_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -386,11 +386,11 @@ PyDoc_STRVAR(_codecs_utf_16_be_decode__doc__,
|
|||
{"utf_16_be_decode", (PyCFunction)_codecs_utf_16_be_decode, METH_VARARGS, _codecs_utf_16_be_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_be_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_be_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_be_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_16_be_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -422,11 +422,11 @@ PyDoc_STRVAR(_codecs_utf_16_ex_decode__doc__,
|
|||
{"utf_16_ex_decode", (PyCFunction)_codecs_utf_16_ex_decode, METH_VARARGS, _codecs_utf_16_ex_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_ex_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_16_ex_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int byteorder, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_ex_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_16_ex_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -458,11 +458,11 @@ PyDoc_STRVAR(_codecs_utf_32_decode__doc__,
|
|||
{"utf_32_decode", (PyCFunction)_codecs_utf_32_decode, METH_VARARGS, _codecs_utf_32_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_32_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -493,11 +493,11 @@ PyDoc_STRVAR(_codecs_utf_32_le_decode__doc__,
|
|||
{"utf_32_le_decode", (PyCFunction)_codecs_utf_32_le_decode, METH_VARARGS, _codecs_utf_32_le_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_le_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_le_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_le_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_32_le_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -528,11 +528,11 @@ PyDoc_STRVAR(_codecs_utf_32_be_decode__doc__,
|
|||
{"utf_32_be_decode", (PyCFunction)_codecs_utf_32_be_decode, METH_VARARGS, _codecs_utf_32_be_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_be_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_be_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_be_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_32_be_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -564,11 +564,11 @@ PyDoc_STRVAR(_codecs_utf_32_ex_decode__doc__,
|
|||
{"utf_32_ex_decode", (PyCFunction)_codecs_utf_32_ex_decode, METH_VARARGS, _codecs_utf_32_ex_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_ex_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_utf_32_ex_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int byteorder, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_ex_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_32_ex_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -600,11 +600,11 @@ PyDoc_STRVAR(_codecs_unicode_escape_decode__doc__,
|
|||
{"unicode_escape_decode", (PyCFunction)_codecs_unicode_escape_decode, METH_VARARGS, _codecs_unicode_escape_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_escape_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_unicode_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_escape_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_unicode_escape_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -634,11 +634,11 @@ PyDoc_STRVAR(_codecs_raw_unicode_escape_decode__doc__,
|
|||
{"raw_unicode_escape_decode", (PyCFunction)_codecs_raw_unicode_escape_decode, METH_VARARGS, _codecs_raw_unicode_escape_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_raw_unicode_escape_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_raw_unicode_escape_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_raw_unicode_escape_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_raw_unicode_escape_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -668,11 +668,11 @@ PyDoc_STRVAR(_codecs_latin_1_decode__doc__,
|
|||
{"latin_1_decode", (PyCFunction)_codecs_latin_1_decode, METH_VARARGS, _codecs_latin_1_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_latin_1_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_latin_1_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_latin_1_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_latin_1_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -702,11 +702,11 @@ PyDoc_STRVAR(_codecs_ascii_decode__doc__,
|
|||
{"ascii_decode", (PyCFunction)_codecs_ascii_decode, METH_VARARGS, _codecs_ascii_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_ascii_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_ascii_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_ascii_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_ascii_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -736,11 +736,11 @@ PyDoc_STRVAR(_codecs_charmap_decode__doc__,
|
|||
{"charmap_decode", (PyCFunction)_codecs_charmap_decode, METH_VARARGS, _codecs_charmap_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_charmap_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, PyObject *mapping);
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_charmap_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -773,11 +773,11 @@ PyDoc_STRVAR(_codecs_mbcs_decode__doc__,
|
|||
{"mbcs_decode", (PyCFunction)_codecs_mbcs_decode, METH_VARARGS, _codecs_mbcs_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_mbcs_decode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_mbcs_decode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_mbcs_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_mbcs_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -812,11 +812,11 @@ PyDoc_STRVAR(_codecs_code_page_decode__doc__,
|
|||
{"code_page_decode", (PyCFunction)_codecs_code_page_decode, METH_VARARGS, _codecs_code_page_decode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_code_page_decode_impl(PyModuleDef *module, int codepage,
|
||||
_codecs_code_page_decode_impl(PyObject *module, int codepage,
|
||||
Py_buffer *data, const char *errors, int final);
|
||||
|
||||
static PyObject *
|
||||
_codecs_code_page_decode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_code_page_decode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int codepage;
|
||||
|
@ -850,11 +850,11 @@ PyDoc_STRVAR(_codecs_readbuffer_encode__doc__,
|
|||
{"readbuffer_encode", (PyCFunction)_codecs_readbuffer_encode, METH_VARARGS, _codecs_readbuffer_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_readbuffer_encode_impl(PyModuleDef *module, Py_buffer *data,
|
||||
_codecs_readbuffer_encode_impl(PyObject *module, Py_buffer *data,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_readbuffer_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_readbuffer_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -884,11 +884,11 @@ PyDoc_STRVAR(_codecs_unicode_internal_encode__doc__,
|
|||
{"unicode_internal_encode", (PyCFunction)_codecs_unicode_internal_encode, METH_VARARGS, _codecs_unicode_internal_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_internal_encode_impl(PyModuleDef *module, PyObject *obj,
|
||||
_codecs_unicode_internal_encode_impl(PyObject *module, PyObject *obj,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_internal_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_unicode_internal_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *obj;
|
||||
|
@ -913,11 +913,11 @@ PyDoc_STRVAR(_codecs_utf_7_encode__doc__,
|
|||
{"utf_7_encode", (PyCFunction)_codecs_utf_7_encode, METH_VARARGS, _codecs_utf_7_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_7_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_7_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_7_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_7_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -942,11 +942,11 @@ PyDoc_STRVAR(_codecs_utf_8_encode__doc__,
|
|||
{"utf_8_encode", (PyCFunction)_codecs_utf_8_encode, METH_VARARGS, _codecs_utf_8_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_8_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_8_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_8_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_8_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -971,11 +971,11 @@ PyDoc_STRVAR(_codecs_utf_16_encode__doc__,
|
|||
{"utf_16_encode", (PyCFunction)_codecs_utf_16_encode, METH_VARARGS, _codecs_utf_16_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_16_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors, int byteorder);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_16_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1001,11 +1001,11 @@ PyDoc_STRVAR(_codecs_utf_16_le_encode__doc__,
|
|||
{"utf_16_le_encode", (PyCFunction)_codecs_utf_16_le_encode, METH_VARARGS, _codecs_utf_16_le_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_le_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_16_le_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_le_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_16_le_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1030,11 +1030,11 @@ PyDoc_STRVAR(_codecs_utf_16_be_encode__doc__,
|
|||
{"utf_16_be_encode", (PyCFunction)_codecs_utf_16_be_encode, METH_VARARGS, _codecs_utf_16_be_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_be_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_16_be_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_16_be_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_16_be_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1059,11 +1059,11 @@ PyDoc_STRVAR(_codecs_utf_32_encode__doc__,
|
|||
{"utf_32_encode", (PyCFunction)_codecs_utf_32_encode, METH_VARARGS, _codecs_utf_32_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_32_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors, int byteorder);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_32_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1089,11 +1089,11 @@ PyDoc_STRVAR(_codecs_utf_32_le_encode__doc__,
|
|||
{"utf_32_le_encode", (PyCFunction)_codecs_utf_32_le_encode, METH_VARARGS, _codecs_utf_32_le_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_le_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_32_le_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_le_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_32_le_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1118,11 +1118,11 @@ PyDoc_STRVAR(_codecs_utf_32_be_encode__doc__,
|
|||
{"utf_32_be_encode", (PyCFunction)_codecs_utf_32_be_encode, METH_VARARGS, _codecs_utf_32_be_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_be_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_utf_32_be_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_utf_32_be_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_utf_32_be_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1147,11 +1147,11 @@ PyDoc_STRVAR(_codecs_unicode_escape_encode__doc__,
|
|||
{"unicode_escape_encode", (PyCFunction)_codecs_unicode_escape_encode, METH_VARARGS, _codecs_unicode_escape_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_escape_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_unicode_escape_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_unicode_escape_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_unicode_escape_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1176,11 +1176,11 @@ PyDoc_STRVAR(_codecs_raw_unicode_escape_encode__doc__,
|
|||
{"raw_unicode_escape_encode", (PyCFunction)_codecs_raw_unicode_escape_encode, METH_VARARGS, _codecs_raw_unicode_escape_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_raw_unicode_escape_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_raw_unicode_escape_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_raw_unicode_escape_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_raw_unicode_escape_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1205,11 +1205,11 @@ PyDoc_STRVAR(_codecs_latin_1_encode__doc__,
|
|||
{"latin_1_encode", (PyCFunction)_codecs_latin_1_encode, METH_VARARGS, _codecs_latin_1_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_latin_1_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_latin_1_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_latin_1_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_latin_1_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1234,11 +1234,11 @@ PyDoc_STRVAR(_codecs_ascii_encode__doc__,
|
|||
{"ascii_encode", (PyCFunction)_codecs_ascii_encode, METH_VARARGS, _codecs_ascii_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_ascii_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_ascii_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_ascii_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_ascii_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1263,11 +1263,11 @@ PyDoc_STRVAR(_codecs_charmap_encode__doc__,
|
|||
{"charmap_encode", (PyCFunction)_codecs_charmap_encode, METH_VARARGS, _codecs_charmap_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
_codecs_charmap_encode_impl(PyObject *module, PyObject *str,
|
||||
const char *errors, PyObject *mapping);
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_charmap_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1293,10 +1293,10 @@ PyDoc_STRVAR(_codecs_charmap_build__doc__,
|
|||
{"charmap_build", (PyCFunction)_codecs_charmap_build, METH_O, _codecs_charmap_build__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_build_impl(PyModuleDef *module, PyObject *map);
|
||||
_codecs_charmap_build_impl(PyObject *module, PyObject *map);
|
||||
|
||||
static PyObject *
|
||||
_codecs_charmap_build(PyModuleDef *module, PyObject *arg)
|
||||
_codecs_charmap_build(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *map;
|
||||
|
@ -1321,11 +1321,10 @@ PyDoc_STRVAR(_codecs_mbcs_encode__doc__,
|
|||
{"mbcs_encode", (PyCFunction)_codecs_mbcs_encode, METH_VARARGS, _codecs_mbcs_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_mbcs_encode_impl(PyModuleDef *module, PyObject *str,
|
||||
const char *errors);
|
||||
_codecs_mbcs_encode_impl(PyObject *module, PyObject *str, const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_mbcs_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_mbcs_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *str;
|
||||
|
@ -1354,11 +1353,11 @@ PyDoc_STRVAR(_codecs_code_page_encode__doc__,
|
|||
{"code_page_encode", (PyCFunction)_codecs_code_page_encode, METH_VARARGS, _codecs_code_page_encode__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_code_page_encode_impl(PyModuleDef *module, int code_page,
|
||||
PyObject *str, const char *errors);
|
||||
_codecs_code_page_encode_impl(PyObject *module, int code_page, PyObject *str,
|
||||
const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_codecs_code_page_encode(PyModuleDef *module, PyObject *args)
|
||||
_codecs_code_page_encode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int code_page;
|
||||
|
@ -1391,11 +1390,11 @@ PyDoc_STRVAR(_codecs_register_error__doc__,
|
|||
{"register_error", (PyCFunction)_codecs_register_error, METH_VARARGS, _codecs_register_error__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_register_error_impl(PyModuleDef *module, const char *errors,
|
||||
_codecs_register_error_impl(PyObject *module, const char *errors,
|
||||
PyObject *handler);
|
||||
|
||||
static PyObject *
|
||||
_codecs_register_error(PyModuleDef *module, PyObject *args)
|
||||
_codecs_register_error(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *errors;
|
||||
|
@ -1424,10 +1423,10 @@ PyDoc_STRVAR(_codecs_lookup_error__doc__,
|
|||
{"lookup_error", (PyCFunction)_codecs_lookup_error, METH_O, _codecs_lookup_error__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs_lookup_error_impl(PyModuleDef *module, const char *name);
|
||||
_codecs_lookup_error_impl(PyObject *module, const char *name);
|
||||
|
||||
static PyObject *
|
||||
_codecs_lookup_error(PyModuleDef *module, PyObject *arg)
|
||||
_codecs_lookup_error(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *name;
|
||||
|
@ -1456,4 +1455,4 @@ exit:
|
|||
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
||||
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
||||
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
|
||||
/*[clinic end generated code: output=120320fe2ac32085 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6e89ff4423c12a9b input=a9049054013a1b77]*/
|
||||
|
|
|
@ -17,10 +17,10 @@ PyDoc_STRVAR(crypt_crypt__doc__,
|
|||
{"crypt", (PyCFunction)crypt_crypt, METH_VARARGS, crypt_crypt__doc__},
|
||||
|
||||
static PyObject *
|
||||
crypt_crypt_impl(PyModuleDef *module, const char *word, const char *salt);
|
||||
crypt_crypt_impl(PyObject *module, const char *word, const char *salt);
|
||||
|
||||
static PyObject *
|
||||
crypt_crypt(PyModuleDef *module, PyObject *args)
|
||||
crypt_crypt(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *word;
|
||||
|
@ -35,4 +35,4 @@ crypt_crypt(PyModuleDef *module, PyObject *args)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=6977cf9917d9a684 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=8dfc88264e662df4 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -121,11 +121,11 @@ PyDoc_STRVAR(dbmopen__doc__,
|
|||
{"open", (PyCFunction)dbmopen, METH_VARARGS, dbmopen__doc__},
|
||||
|
||||
static PyObject *
|
||||
dbmopen_impl(PyModuleDef *module, const char *filename, const char *flags,
|
||||
dbmopen_impl(PyObject *module, const char *filename, const char *flags,
|
||||
int mode);
|
||||
|
||||
static PyObject *
|
||||
dbmopen(PyModuleDef *module, PyObject *args)
|
||||
dbmopen(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *filename;
|
||||
|
@ -141,4 +141,4 @@ dbmopen(PyModuleDef *module, PyObject *args)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=97f8b6f542973b71 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=99adf966ef0475ff input=a9049054013a1b77]*/
|
||||
|
|
|
@ -234,11 +234,10 @@ PyDoc_STRVAR(dbmopen__doc__,
|
|||
{"open", (PyCFunction)dbmopen, METH_VARARGS, dbmopen__doc__},
|
||||
|
||||
static PyObject *
|
||||
dbmopen_impl(PyModuleDef *module, const char *name, const char *flags,
|
||||
int mode);
|
||||
dbmopen_impl(PyObject *module, const char *name, const char *flags, int mode);
|
||||
|
||||
static PyObject *
|
||||
dbmopen(PyModuleDef *module, PyObject *args)
|
||||
dbmopen(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *name;
|
||||
|
@ -254,4 +253,4 @@ dbmopen(PyModuleDef *module, PyObject *args)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=418849fb5dbe69a5 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=ed0f5d4e3d79b80c input=a9049054013a1b77]*/
|
||||
|
|
|
@ -168,10 +168,10 @@ PyDoc_STRVAR(_lzma_is_check_supported__doc__,
|
|||
{"is_check_supported", (PyCFunction)_lzma_is_check_supported, METH_O, _lzma_is_check_supported__doc__},
|
||||
|
||||
static PyObject *
|
||||
_lzma_is_check_supported_impl(PyModuleDef *module, int check_id);
|
||||
_lzma_is_check_supported_impl(PyObject *module, int check_id);
|
||||
|
||||
static PyObject *
|
||||
_lzma_is_check_supported(PyModuleDef *module, PyObject *arg)
|
||||
_lzma_is_check_supported(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int check_id;
|
||||
|
@ -197,10 +197,10 @@ PyDoc_STRVAR(_lzma__encode_filter_properties__doc__,
|
|||
{"_encode_filter_properties", (PyCFunction)_lzma__encode_filter_properties, METH_O, _lzma__encode_filter_properties__doc__},
|
||||
|
||||
static PyObject *
|
||||
_lzma__encode_filter_properties_impl(PyModuleDef *module, lzma_filter filter);
|
||||
_lzma__encode_filter_properties_impl(PyObject *module, lzma_filter filter);
|
||||
|
||||
static PyObject *
|
||||
_lzma__encode_filter_properties(PyModuleDef *module, PyObject *arg)
|
||||
_lzma__encode_filter_properties(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
lzma_filter filter = {LZMA_VLI_UNKNOWN, NULL};
|
||||
|
@ -230,11 +230,11 @@ PyDoc_STRVAR(_lzma__decode_filter_properties__doc__,
|
|||
{"_decode_filter_properties", (PyCFunction)_lzma__decode_filter_properties, METH_VARARGS, _lzma__decode_filter_properties__doc__},
|
||||
|
||||
static PyObject *
|
||||
_lzma__decode_filter_properties_impl(PyModuleDef *module, lzma_vli filter_id,
|
||||
_lzma__decode_filter_properties_impl(PyObject *module, lzma_vli filter_id,
|
||||
Py_buffer *encoded_props);
|
||||
|
||||
static PyObject *
|
||||
_lzma__decode_filter_properties(PyModuleDef *module, PyObject *args)
|
||||
_lzma__decode_filter_properties(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
lzma_vli filter_id;
|
||||
|
@ -254,4 +254,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=804aed7d196ba52e input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=25bf57a0845d147a input=a9049054013a1b77]*/
|
||||
|
|
|
@ -12,10 +12,10 @@ PyDoc_STRVAR(_opcode_stack_effect__doc__,
|
|||
{"stack_effect", (PyCFunction)_opcode_stack_effect, METH_VARARGS, _opcode_stack_effect__doc__},
|
||||
|
||||
static int
|
||||
_opcode_stack_effect_impl(PyModuleDef *module, int opcode, PyObject *oparg);
|
||||
_opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg);
|
||||
|
||||
static PyObject *
|
||||
_opcode_stack_effect(PyModuleDef *module, PyObject *args)
|
||||
_opcode_stack_effect(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int opcode;
|
||||
|
@ -35,4 +35,4 @@ _opcode_stack_effect(PyModuleDef *module, PyObject *args)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=5bd7c1c113e6526a input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=4d91c6a765097853 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -385,11 +385,11 @@ PyDoc_STRVAR(_pickle_dump__doc__,
|
|||
{"dump", (PyCFunction)_pickle_dump, METH_VARARGS|METH_KEYWORDS, _pickle_dump__doc__},
|
||||
|
||||
static PyObject *
|
||||
_pickle_dump_impl(PyModuleDef *module, PyObject *obj, PyObject *file,
|
||||
_pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file,
|
||||
PyObject *protocol, int fix_imports);
|
||||
|
||||
static PyObject *
|
||||
_pickle_dump(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_pickle_dump(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"obj", "file", "protocol", "fix_imports", NULL};
|
||||
|
@ -430,11 +430,11 @@ PyDoc_STRVAR(_pickle_dumps__doc__,
|
|||
{"dumps", (PyCFunction)_pickle_dumps, METH_VARARGS|METH_KEYWORDS, _pickle_dumps__doc__},
|
||||
|
||||
static PyObject *
|
||||
_pickle_dumps_impl(PyModuleDef *module, PyObject *obj, PyObject *protocol,
|
||||
_pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol,
|
||||
int fix_imports);
|
||||
|
||||
static PyObject *
|
||||
_pickle_dumps(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_pickle_dumps(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"obj", "protocol", "fix_imports", NULL};
|
||||
|
@ -485,11 +485,11 @@ PyDoc_STRVAR(_pickle_load__doc__,
|
|||
{"load", (PyCFunction)_pickle_load, METH_VARARGS|METH_KEYWORDS, _pickle_load__doc__},
|
||||
|
||||
static PyObject *
|
||||
_pickle_load_impl(PyModuleDef *module, PyObject *file, int fix_imports,
|
||||
_pickle_load_impl(PyObject *module, PyObject *file, int fix_imports,
|
||||
const char *encoding, const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_pickle_load(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_pickle_load(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"file", "fix_imports", "encoding", "errors", NULL};
|
||||
|
@ -532,11 +532,11 @@ PyDoc_STRVAR(_pickle_loads__doc__,
|
|||
{"loads", (PyCFunction)_pickle_loads, METH_VARARGS|METH_KEYWORDS, _pickle_loads__doc__},
|
||||
|
||||
static PyObject *
|
||||
_pickle_loads_impl(PyModuleDef *module, PyObject *data, int fix_imports,
|
||||
_pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports,
|
||||
const char *encoding, const char *errors);
|
||||
|
||||
static PyObject *
|
||||
_pickle_loads(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_pickle_loads(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"data", "fix_imports", "encoding", "errors", NULL};
|
||||
|
@ -554,4 +554,4 @@ _pickle_loads(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=5e972f339d197760 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=5c5f9149df292ce4 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -11,10 +11,10 @@ PyDoc_STRVAR(_sre_getcodesize__doc__,
|
|||
{"getcodesize", (PyCFunction)_sre_getcodesize, METH_NOARGS, _sre_getcodesize__doc__},
|
||||
|
||||
static int
|
||||
_sre_getcodesize_impl(PyModuleDef *module);
|
||||
_sre_getcodesize_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_sre_getcodesize(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_sre_getcodesize(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int _return_value;
|
||||
|
@ -38,10 +38,10 @@ PyDoc_STRVAR(_sre_getlower__doc__,
|
|||
{"getlower", (PyCFunction)_sre_getlower, METH_VARARGS, _sre_getlower__doc__},
|
||||
|
||||
static int
|
||||
_sre_getlower_impl(PyModuleDef *module, int character, int flags);
|
||||
_sre_getlower_impl(PyObject *module, int character, int flags);
|
||||
|
||||
static PyObject *
|
||||
_sre_getlower(PyModuleDef *module, PyObject *args)
|
||||
_sre_getlower(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int character;
|
||||
|
@ -419,12 +419,12 @@ PyDoc_STRVAR(_sre_compile__doc__,
|
|||
{"compile", (PyCFunction)_sre_compile, METH_VARARGS|METH_KEYWORDS, _sre_compile__doc__},
|
||||
|
||||
static PyObject *
|
||||
_sre_compile_impl(PyModuleDef *module, PyObject *pattern, int flags,
|
||||
_sre_compile_impl(PyObject *module, PyObject *pattern, int flags,
|
||||
PyObject *code, Py_ssize_t groups, PyObject *groupindex,
|
||||
PyObject *indexgroup);
|
||||
|
||||
static PyObject *
|
||||
_sre_compile(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_sre_compile(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"pattern", "flags", "code", "groups", "groupindex", "indexgroup", NULL};
|
||||
|
@ -713,4 +713,4 @@ _sre_SRE_Scanner_search(ScannerObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _sre_SRE_Scanner_search_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=00f7bf869b3283bc input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=af9455cb54b2a907 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -28,10 +28,10 @@ PyDoc_STRVAR(_ssl__test_decode_cert__doc__,
|
|||
{"_test_decode_cert", (PyCFunction)_ssl__test_decode_cert, METH_O, _ssl__test_decode_cert__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl__test_decode_cert_impl(PyModuleDef *module, PyObject *path);
|
||||
_ssl__test_decode_cert_impl(PyObject *module, PyObject *path);
|
||||
|
||||
static PyObject *
|
||||
_ssl__test_decode_cert(PyModuleDef *module, PyObject *arg)
|
||||
_ssl__test_decode_cert(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *path;
|
||||
|
@ -819,10 +819,10 @@ PyDoc_STRVAR(_ssl_RAND_add__doc__,
|
|||
{"RAND_add", (PyCFunction)_ssl_RAND_add, METH_VARARGS, _ssl_RAND_add__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_add_impl(PyModuleDef *module, Py_buffer *view, double entropy);
|
||||
_ssl_RAND_add_impl(PyObject *module, Py_buffer *view, double entropy);
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_add(PyModuleDef *module, PyObject *args)
|
||||
_ssl_RAND_add(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer view = {NULL, NULL};
|
||||
|
@ -853,10 +853,10 @@ PyDoc_STRVAR(_ssl_RAND_bytes__doc__,
|
|||
{"RAND_bytes", (PyCFunction)_ssl_RAND_bytes, METH_O, _ssl_RAND_bytes__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_bytes_impl(PyModuleDef *module, int n);
|
||||
_ssl_RAND_bytes_impl(PyObject *module, int n);
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_bytes(PyModuleDef *module, PyObject *arg)
|
||||
_ssl_RAND_bytes(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int n;
|
||||
|
@ -883,10 +883,10 @@ PyDoc_STRVAR(_ssl_RAND_pseudo_bytes__doc__,
|
|||
{"RAND_pseudo_bytes", (PyCFunction)_ssl_RAND_pseudo_bytes, METH_O, _ssl_RAND_pseudo_bytes__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_pseudo_bytes_impl(PyModuleDef *module, int n);
|
||||
_ssl_RAND_pseudo_bytes_impl(PyObject *module, int n);
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_pseudo_bytes(PyModuleDef *module, PyObject *arg)
|
||||
_ssl_RAND_pseudo_bytes(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int n;
|
||||
|
@ -913,10 +913,10 @@ PyDoc_STRVAR(_ssl_RAND_status__doc__,
|
|||
{"RAND_status", (PyCFunction)_ssl_RAND_status, METH_NOARGS, _ssl_RAND_status__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_status_impl(PyModuleDef *module);
|
||||
_ssl_RAND_status_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_status(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_ssl_RAND_status(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return _ssl_RAND_status_impl(module);
|
||||
}
|
||||
|
@ -936,10 +936,10 @@ PyDoc_STRVAR(_ssl_RAND_egd__doc__,
|
|||
{"RAND_egd", (PyCFunction)_ssl_RAND_egd, METH_O, _ssl_RAND_egd__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_egd_impl(PyModuleDef *module, PyObject *path);
|
||||
_ssl_RAND_egd_impl(PyObject *module, PyObject *path);
|
||||
|
||||
static PyObject *
|
||||
_ssl_RAND_egd(PyModuleDef *module, PyObject *arg)
|
||||
_ssl_RAND_egd(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *path;
|
||||
|
@ -967,10 +967,10 @@ PyDoc_STRVAR(_ssl_get_default_verify_paths__doc__,
|
|||
{"get_default_verify_paths", (PyCFunction)_ssl_get_default_verify_paths, METH_NOARGS, _ssl_get_default_verify_paths__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_get_default_verify_paths_impl(PyModuleDef *module);
|
||||
_ssl_get_default_verify_paths_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_ssl_get_default_verify_paths(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_ssl_get_default_verify_paths(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return _ssl_get_default_verify_paths_impl(module);
|
||||
}
|
||||
|
@ -988,10 +988,10 @@ PyDoc_STRVAR(_ssl_txt2obj__doc__,
|
|||
{"txt2obj", (PyCFunction)_ssl_txt2obj, METH_VARARGS|METH_KEYWORDS, _ssl_txt2obj__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_txt2obj_impl(PyModuleDef *module, const char *txt, int name);
|
||||
_ssl_txt2obj_impl(PyObject *module, const char *txt, int name);
|
||||
|
||||
static PyObject *
|
||||
_ssl_txt2obj(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_ssl_txt2obj(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"txt", "name", NULL};
|
||||
|
@ -1018,10 +1018,10 @@ PyDoc_STRVAR(_ssl_nid2obj__doc__,
|
|||
{"nid2obj", (PyCFunction)_ssl_nid2obj, METH_O, _ssl_nid2obj__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_nid2obj_impl(PyModuleDef *module, int nid);
|
||||
_ssl_nid2obj_impl(PyObject *module, int nid);
|
||||
|
||||
static PyObject *
|
||||
_ssl_nid2obj(PyModuleDef *module, PyObject *arg)
|
||||
_ssl_nid2obj(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int nid;
|
||||
|
@ -1053,10 +1053,10 @@ PyDoc_STRVAR(_ssl_enum_certificates__doc__,
|
|||
{"enum_certificates", (PyCFunction)_ssl_enum_certificates, METH_VARARGS|METH_KEYWORDS, _ssl_enum_certificates__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_enum_certificates_impl(PyModuleDef *module, const char *store_name);
|
||||
_ssl_enum_certificates_impl(PyObject *module, const char *store_name);
|
||||
|
||||
static PyObject *
|
||||
_ssl_enum_certificates(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_ssl_enum_certificates(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"store_name", NULL};
|
||||
|
@ -1091,10 +1091,10 @@ PyDoc_STRVAR(_ssl_enum_crls__doc__,
|
|||
{"enum_crls", (PyCFunction)_ssl_enum_crls, METH_VARARGS|METH_KEYWORDS, _ssl_enum_crls__doc__},
|
||||
|
||||
static PyObject *
|
||||
_ssl_enum_crls_impl(PyModuleDef *module, const char *store_name);
|
||||
_ssl_enum_crls_impl(PyObject *module, const char *store_name);
|
||||
|
||||
static PyObject *
|
||||
_ssl_enum_crls(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_ssl_enum_crls(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"store_name", NULL};
|
||||
|
@ -1135,4 +1135,4 @@ exit:
|
|||
#ifndef _SSL_ENUM_CRLS_METHODDEF
|
||||
#define _SSL_ENUM_CRLS_METHODDEF
|
||||
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
|
||||
/*[clinic end generated code: output=df99659ec790e573 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=02444732c19722b3 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -546,13 +546,13 @@ PyDoc_STRVAR(_tkinter_create__doc__,
|
|||
{"create", (PyCFunction)_tkinter_create, METH_VARARGS, _tkinter_create__doc__},
|
||||
|
||||
static PyObject *
|
||||
_tkinter_create_impl(PyModuleDef *module, const char *screenName,
|
||||
_tkinter_create_impl(PyObject *module, const char *screenName,
|
||||
const char *baseName, const char *className,
|
||||
int interactive, int wantobjects, int wantTk, int sync,
|
||||
const char *use);
|
||||
|
||||
static PyObject *
|
||||
_tkinter_create(PyModuleDef *module, PyObject *args)
|
||||
_tkinter_create(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *screenName = NULL;
|
||||
|
@ -586,10 +586,10 @@ PyDoc_STRVAR(_tkinter_setbusywaitinterval__doc__,
|
|||
{"setbusywaitinterval", (PyCFunction)_tkinter_setbusywaitinterval, METH_O, _tkinter_setbusywaitinterval__doc__},
|
||||
|
||||
static PyObject *
|
||||
_tkinter_setbusywaitinterval_impl(PyModuleDef *module, int new_val);
|
||||
_tkinter_setbusywaitinterval_impl(PyObject *module, int new_val);
|
||||
|
||||
static PyObject *
|
||||
_tkinter_setbusywaitinterval(PyModuleDef *module, PyObject *arg)
|
||||
_tkinter_setbusywaitinterval(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int new_val;
|
||||
|
@ -613,10 +613,10 @@ PyDoc_STRVAR(_tkinter_getbusywaitinterval__doc__,
|
|||
{"getbusywaitinterval", (PyCFunction)_tkinter_getbusywaitinterval, METH_NOARGS, _tkinter_getbusywaitinterval__doc__},
|
||||
|
||||
static int
|
||||
_tkinter_getbusywaitinterval_impl(PyModuleDef *module);
|
||||
_tkinter_getbusywaitinterval_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_tkinter_getbusywaitinterval(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_tkinter_getbusywaitinterval(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int _return_value;
|
||||
|
@ -638,4 +638,4 @@ exit:
|
|||
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
||||
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
||||
#endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
|
||||
/*[clinic end generated code: output=13be3f8313bba3c7 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=836c578b71d69097 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -12,10 +12,10 @@ PyDoc_STRVAR(_weakref_getweakrefcount__doc__,
|
|||
{"getweakrefcount", (PyCFunction)_weakref_getweakrefcount, METH_O, _weakref_getweakrefcount__doc__},
|
||||
|
||||
static Py_ssize_t
|
||||
_weakref_getweakrefcount_impl(PyModuleDef *module, PyObject *object);
|
||||
_weakref_getweakrefcount_impl(PyObject *module, PyObject *object);
|
||||
|
||||
static PyObject *
|
||||
_weakref_getweakrefcount(PyModuleDef *module, PyObject *object)
|
||||
_weakref_getweakrefcount(PyObject *module, PyObject *object)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_ssize_t _return_value;
|
||||
|
@ -29,4 +29,4 @@ _weakref_getweakrefcount(PyModuleDef *module, PyObject *object)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=00e317cda5359ea3 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=e1ad587147323e19 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -72,10 +72,10 @@ PyDoc_STRVAR(_winapi_CloseHandle__doc__,
|
|||
{"CloseHandle", (PyCFunction)_winapi_CloseHandle, METH_O, _winapi_CloseHandle__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_CloseHandle_impl(PyModuleDef *module, HANDLE handle);
|
||||
_winapi_CloseHandle_impl(PyObject *module, HANDLE handle);
|
||||
|
||||
static PyObject *
|
||||
_winapi_CloseHandle(PyModuleDef *module, PyObject *arg)
|
||||
_winapi_CloseHandle(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE handle;
|
||||
|
@ -98,11 +98,11 @@ PyDoc_STRVAR(_winapi_ConnectNamedPipe__doc__,
|
|||
{"ConnectNamedPipe", (PyCFunction)_winapi_ConnectNamedPipe, METH_VARARGS|METH_KEYWORDS, _winapi_ConnectNamedPipe__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_ConnectNamedPipe_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle,
|
||||
int use_overlapped);
|
||||
|
||||
static PyObject *
|
||||
_winapi_ConnectNamedPipe(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_winapi_ConnectNamedPipe(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"handle", "overlapped", NULL};
|
||||
|
@ -130,14 +130,14 @@ PyDoc_STRVAR(_winapi_CreateFile__doc__,
|
|||
{"CreateFile", (PyCFunction)_winapi_CreateFile, METH_VARARGS, _winapi_CreateFile__doc__},
|
||||
|
||||
static HANDLE
|
||||
_winapi_CreateFile_impl(PyModuleDef *module, LPCTSTR file_name,
|
||||
_winapi_CreateFile_impl(PyObject *module, LPCTSTR file_name,
|
||||
DWORD desired_access, DWORD share_mode,
|
||||
LPSECURITY_ATTRIBUTES security_attributes,
|
||||
DWORD creation_disposition,
|
||||
DWORD flags_and_attributes, HANDLE template_file);
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateFile(PyModuleDef *module, PyObject *args)
|
||||
_winapi_CreateFile(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
LPCTSTR file_name;
|
||||
|
@ -175,11 +175,11 @@ PyDoc_STRVAR(_winapi_CreateJunction__doc__,
|
|||
{"CreateJunction", (PyCFunction)_winapi_CreateJunction, METH_VARARGS, _winapi_CreateJunction__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateJunction_impl(PyModuleDef *module, LPWSTR src_path,
|
||||
_winapi_CreateJunction_impl(PyObject *module, LPWSTR src_path,
|
||||
LPWSTR dst_path);
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateJunction(PyModuleDef *module, PyObject *args)
|
||||
_winapi_CreateJunction(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
LPWSTR src_path;
|
||||
|
@ -206,14 +206,14 @@ PyDoc_STRVAR(_winapi_CreateNamedPipe__doc__,
|
|||
{"CreateNamedPipe", (PyCFunction)_winapi_CreateNamedPipe, METH_VARARGS, _winapi_CreateNamedPipe__doc__},
|
||||
|
||||
static HANDLE
|
||||
_winapi_CreateNamedPipe_impl(PyModuleDef *module, LPCTSTR name,
|
||||
DWORD open_mode, DWORD pipe_mode,
|
||||
DWORD max_instances, DWORD out_buffer_size,
|
||||
DWORD in_buffer_size, DWORD default_timeout,
|
||||
_winapi_CreateNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD open_mode,
|
||||
DWORD pipe_mode, DWORD max_instances,
|
||||
DWORD out_buffer_size, DWORD in_buffer_size,
|
||||
DWORD default_timeout,
|
||||
LPSECURITY_ATTRIBUTES security_attributes);
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateNamedPipe(PyModuleDef *module, PyObject *args)
|
||||
_winapi_CreateNamedPipe(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
LPCTSTR name;
|
||||
|
@ -258,11 +258,10 @@ PyDoc_STRVAR(_winapi_CreatePipe__doc__,
|
|||
{"CreatePipe", (PyCFunction)_winapi_CreatePipe, METH_VARARGS, _winapi_CreatePipe__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreatePipe_impl(PyModuleDef *module, PyObject *pipe_attrs,
|
||||
DWORD size);
|
||||
_winapi_CreatePipe_impl(PyObject *module, PyObject *pipe_attrs, DWORD size);
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreatePipe(PyModuleDef *module, PyObject *args)
|
||||
_winapi_CreatePipe(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *pipe_attrs;
|
||||
|
@ -298,7 +297,7 @@ PyDoc_STRVAR(_winapi_CreateProcess__doc__,
|
|||
{"CreateProcess", (PyCFunction)_winapi_CreateProcess, METH_VARARGS, _winapi_CreateProcess__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateProcess_impl(PyModuleDef *module, Py_UNICODE *application_name,
|
||||
_winapi_CreateProcess_impl(PyObject *module, Py_UNICODE *application_name,
|
||||
Py_UNICODE *command_line, PyObject *proc_attrs,
|
||||
PyObject *thread_attrs, BOOL inherit_handles,
|
||||
DWORD creation_flags, PyObject *env_mapping,
|
||||
|
@ -306,7 +305,7 @@ _winapi_CreateProcess_impl(PyModuleDef *module, Py_UNICODE *application_name,
|
|||
PyObject *startup_info);
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateProcess(PyModuleDef *module, PyObject *args)
|
||||
_winapi_CreateProcess(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_UNICODE *application_name;
|
||||
|
@ -345,15 +344,14 @@ PyDoc_STRVAR(_winapi_DuplicateHandle__doc__,
|
|||
{"DuplicateHandle", (PyCFunction)_winapi_DuplicateHandle, METH_VARARGS, _winapi_DuplicateHandle__doc__},
|
||||
|
||||
static HANDLE
|
||||
_winapi_DuplicateHandle_impl(PyModuleDef *module,
|
||||
HANDLE source_process_handle,
|
||||
_winapi_DuplicateHandle_impl(PyObject *module, HANDLE source_process_handle,
|
||||
HANDLE source_handle,
|
||||
HANDLE target_process_handle,
|
||||
DWORD desired_access, BOOL inherit_handle,
|
||||
DWORD options);
|
||||
|
||||
static PyObject *
|
||||
_winapi_DuplicateHandle(PyModuleDef *module, PyObject *args)
|
||||
_winapi_DuplicateHandle(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE source_process_handle;
|
||||
|
@ -390,10 +388,10 @@ PyDoc_STRVAR(_winapi_ExitProcess__doc__,
|
|||
{"ExitProcess", (PyCFunction)_winapi_ExitProcess, METH_O, _winapi_ExitProcess__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_ExitProcess_impl(PyModuleDef *module, UINT ExitCode);
|
||||
_winapi_ExitProcess_impl(PyObject *module, UINT ExitCode);
|
||||
|
||||
static PyObject *
|
||||
_winapi_ExitProcess(PyModuleDef *module, PyObject *arg)
|
||||
_winapi_ExitProcess(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
UINT ExitCode;
|
||||
|
@ -417,10 +415,10 @@ PyDoc_STRVAR(_winapi_GetCurrentProcess__doc__,
|
|||
{"GetCurrentProcess", (PyCFunction)_winapi_GetCurrentProcess, METH_NOARGS, _winapi_GetCurrentProcess__doc__},
|
||||
|
||||
static HANDLE
|
||||
_winapi_GetCurrentProcess_impl(PyModuleDef *module);
|
||||
_winapi_GetCurrentProcess_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetCurrentProcess(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_winapi_GetCurrentProcess(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE _return_value;
|
||||
|
@ -448,10 +446,10 @@ PyDoc_STRVAR(_winapi_GetExitCodeProcess__doc__,
|
|||
{"GetExitCodeProcess", (PyCFunction)_winapi_GetExitCodeProcess, METH_O, _winapi_GetExitCodeProcess__doc__},
|
||||
|
||||
static DWORD
|
||||
_winapi_GetExitCodeProcess_impl(PyModuleDef *module, HANDLE process);
|
||||
_winapi_GetExitCodeProcess_impl(PyObject *module, HANDLE process);
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetExitCodeProcess(PyModuleDef *module, PyObject *arg)
|
||||
_winapi_GetExitCodeProcess(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE process;
|
||||
|
@ -479,10 +477,10 @@ PyDoc_STRVAR(_winapi_GetLastError__doc__,
|
|||
{"GetLastError", (PyCFunction)_winapi_GetLastError, METH_NOARGS, _winapi_GetLastError__doc__},
|
||||
|
||||
static DWORD
|
||||
_winapi_GetLastError_impl(PyModuleDef *module);
|
||||
_winapi_GetLastError_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetLastError(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_winapi_GetLastError(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
DWORD _return_value;
|
||||
|
@ -514,10 +512,10 @@ PyDoc_STRVAR(_winapi_GetModuleFileName__doc__,
|
|||
{"GetModuleFileName", (PyCFunction)_winapi_GetModuleFileName, METH_O, _winapi_GetModuleFileName__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetModuleFileName_impl(PyModuleDef *module, HMODULE module_handle);
|
||||
_winapi_GetModuleFileName_impl(PyObject *module, HMODULE module_handle);
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetModuleFileName(PyModuleDef *module, PyObject *arg)
|
||||
_winapi_GetModuleFileName(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HMODULE module_handle;
|
||||
|
@ -546,10 +544,10 @@ PyDoc_STRVAR(_winapi_GetStdHandle__doc__,
|
|||
{"GetStdHandle", (PyCFunction)_winapi_GetStdHandle, METH_O, _winapi_GetStdHandle__doc__},
|
||||
|
||||
static HANDLE
|
||||
_winapi_GetStdHandle_impl(PyModuleDef *module, DWORD std_handle);
|
||||
_winapi_GetStdHandle_impl(PyObject *module, DWORD std_handle);
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetStdHandle(PyModuleDef *module, PyObject *arg)
|
||||
_winapi_GetStdHandle(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
DWORD std_handle;
|
||||
|
@ -581,10 +579,10 @@ PyDoc_STRVAR(_winapi_GetVersion__doc__,
|
|||
{"GetVersion", (PyCFunction)_winapi_GetVersion, METH_NOARGS, _winapi_GetVersion__doc__},
|
||||
|
||||
static long
|
||||
_winapi_GetVersion_impl(PyModuleDef *module);
|
||||
_winapi_GetVersion_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetVersion(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_winapi_GetVersion(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
long _return_value;
|
||||
|
@ -608,11 +606,11 @@ PyDoc_STRVAR(_winapi_OpenProcess__doc__,
|
|||
{"OpenProcess", (PyCFunction)_winapi_OpenProcess, METH_VARARGS, _winapi_OpenProcess__doc__},
|
||||
|
||||
static HANDLE
|
||||
_winapi_OpenProcess_impl(PyModuleDef *module, DWORD desired_access,
|
||||
_winapi_OpenProcess_impl(PyObject *module, DWORD desired_access,
|
||||
BOOL inherit_handle, DWORD process_id);
|
||||
|
||||
static PyObject *
|
||||
_winapi_OpenProcess(PyModuleDef *module, PyObject *args)
|
||||
_winapi_OpenProcess(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
DWORD desired_access;
|
||||
|
@ -646,10 +644,10 @@ PyDoc_STRVAR(_winapi_PeekNamedPipe__doc__,
|
|||
{"PeekNamedPipe", (PyCFunction)_winapi_PeekNamedPipe, METH_VARARGS, _winapi_PeekNamedPipe__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_PeekNamedPipe_impl(PyModuleDef *module, HANDLE handle, int size);
|
||||
_winapi_PeekNamedPipe_impl(PyObject *module, HANDLE handle, int size);
|
||||
|
||||
static PyObject *
|
||||
_winapi_PeekNamedPipe(PyModuleDef *module, PyObject *args)
|
||||
_winapi_PeekNamedPipe(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE handle;
|
||||
|
@ -674,11 +672,11 @@ PyDoc_STRVAR(_winapi_ReadFile__doc__,
|
|||
{"ReadFile", (PyCFunction)_winapi_ReadFile, METH_VARARGS|METH_KEYWORDS, _winapi_ReadFile__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_ReadFile_impl(PyModuleDef *module, HANDLE handle, int size,
|
||||
_winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size,
|
||||
int use_overlapped);
|
||||
|
||||
static PyObject *
|
||||
_winapi_ReadFile(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_winapi_ReadFile(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"handle", "size", "overlapped", NULL};
|
||||
|
@ -706,13 +704,13 @@ PyDoc_STRVAR(_winapi_SetNamedPipeHandleState__doc__,
|
|||
{"SetNamedPipeHandleState", (PyCFunction)_winapi_SetNamedPipeHandleState, METH_VARARGS, _winapi_SetNamedPipeHandleState__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_SetNamedPipeHandleState_impl(PyModuleDef *module, HANDLE named_pipe,
|
||||
_winapi_SetNamedPipeHandleState_impl(PyObject *module, HANDLE named_pipe,
|
||||
PyObject *mode,
|
||||
PyObject *max_collection_count,
|
||||
PyObject *collect_data_timeout);
|
||||
|
||||
static PyObject *
|
||||
_winapi_SetNamedPipeHandleState(PyModuleDef *module, PyObject *args)
|
||||
_winapi_SetNamedPipeHandleState(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE named_pipe;
|
||||
|
@ -740,11 +738,11 @@ PyDoc_STRVAR(_winapi_TerminateProcess__doc__,
|
|||
{"TerminateProcess", (PyCFunction)_winapi_TerminateProcess, METH_VARARGS, _winapi_TerminateProcess__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_TerminateProcess_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_TerminateProcess_impl(PyObject *module, HANDLE handle,
|
||||
UINT exit_code);
|
||||
|
||||
static PyObject *
|
||||
_winapi_TerminateProcess(PyModuleDef *module, PyObject *args)
|
||||
_winapi_TerminateProcess(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE handle;
|
||||
|
@ -769,10 +767,10 @@ PyDoc_STRVAR(_winapi_WaitNamedPipe__doc__,
|
|||
{"WaitNamedPipe", (PyCFunction)_winapi_WaitNamedPipe, METH_VARARGS, _winapi_WaitNamedPipe__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitNamedPipe_impl(PyModuleDef *module, LPCTSTR name, DWORD timeout);
|
||||
_winapi_WaitNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD timeout);
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitNamedPipe(PyModuleDef *module, PyObject *args)
|
||||
_winapi_WaitNamedPipe(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
LPCTSTR name;
|
||||
|
@ -798,12 +796,11 @@ PyDoc_STRVAR(_winapi_WaitForMultipleObjects__doc__,
|
|||
{"WaitForMultipleObjects", (PyCFunction)_winapi_WaitForMultipleObjects, METH_VARARGS, _winapi_WaitForMultipleObjects__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitForMultipleObjects_impl(PyModuleDef *module,
|
||||
PyObject *handle_seq, BOOL wait_flag,
|
||||
DWORD milliseconds);
|
||||
_winapi_WaitForMultipleObjects_impl(PyObject *module, PyObject *handle_seq,
|
||||
BOOL wait_flag, DWORD milliseconds);
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitForMultipleObjects(PyModuleDef *module, PyObject *args)
|
||||
_winapi_WaitForMultipleObjects(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *handle_seq;
|
||||
|
@ -834,11 +831,11 @@ PyDoc_STRVAR(_winapi_WaitForSingleObject__doc__,
|
|||
{"WaitForSingleObject", (PyCFunction)_winapi_WaitForSingleObject, METH_VARARGS, _winapi_WaitForSingleObject__doc__},
|
||||
|
||||
static long
|
||||
_winapi_WaitForSingleObject_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_WaitForSingleObject_impl(PyObject *module, HANDLE handle,
|
||||
DWORD milliseconds);
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitForSingleObject(PyModuleDef *module, PyObject *args)
|
||||
_winapi_WaitForSingleObject(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HANDLE handle;
|
||||
|
@ -868,11 +865,11 @@ PyDoc_STRVAR(_winapi_WriteFile__doc__,
|
|||
{"WriteFile", (PyCFunction)_winapi_WriteFile, METH_VARARGS|METH_KEYWORDS, _winapi_WriteFile__doc__},
|
||||
|
||||
static PyObject *
|
||||
_winapi_WriteFile_impl(PyModuleDef *module, HANDLE handle, PyObject *buffer,
|
||||
_winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer,
|
||||
int use_overlapped);
|
||||
|
||||
static PyObject *
|
||||
_winapi_WriteFile(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_winapi_WriteFile(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"handle", "buffer", "overlapped", NULL};
|
||||
|
@ -889,4 +886,4 @@ _winapi_WriteFile(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=d099ee4fbcdd5bc0 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=8032f3371c14749e input=a9049054013a1b77]*/
|
||||
|
|
|
@ -446,13 +446,13 @@ PyDoc_STRVAR(array__array_reconstructor__doc__,
|
|||
{"_array_reconstructor", (PyCFunction)array__array_reconstructor, METH_VARARGS, array__array_reconstructor__doc__},
|
||||
|
||||
static PyObject *
|
||||
array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype,
|
||||
array__array_reconstructor_impl(PyObject *module, PyTypeObject *arraytype,
|
||||
int typecode,
|
||||
enum machine_format_code mformat_code,
|
||||
PyObject *items);
|
||||
|
||||
static PyObject *
|
||||
array__array_reconstructor(PyModuleDef *module, PyObject *args)
|
||||
array__array_reconstructor(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyTypeObject *arraytype;
|
||||
|
@ -505,4 +505,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__,
|
|||
|
||||
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
|
||||
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
|
||||
/*[clinic end generated code: output=0b99c89275eda265 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=b2054fb764c8cc64 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -12,11 +12,11 @@ PyDoc_STRVAR(audioop_getsample__doc__,
|
|||
{"getsample", (PyCFunction)audioop_getsample, METH_VARARGS, audioop_getsample__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_getsample_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_getsample_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
Py_ssize_t index);
|
||||
|
||||
static PyObject *
|
||||
audioop_getsample(PyModuleDef *module, PyObject *args)
|
||||
audioop_getsample(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -48,10 +48,10 @@ PyDoc_STRVAR(audioop_max__doc__,
|
|||
{"max", (PyCFunction)audioop_max, METH_VARARGS, audioop_max__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_max_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_max_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_max(PyModuleDef *module, PyObject *args)
|
||||
audioop_max(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -82,10 +82,10 @@ PyDoc_STRVAR(audioop_minmax__doc__,
|
|||
{"minmax", (PyCFunction)audioop_minmax, METH_VARARGS, audioop_minmax__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_minmax_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_minmax(PyModuleDef *module, PyObject *args)
|
||||
audioop_minmax(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -116,10 +116,10 @@ PyDoc_STRVAR(audioop_avg__doc__,
|
|||
{"avg", (PyCFunction)audioop_avg, METH_VARARGS, audioop_avg__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_avg_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_avg(PyModuleDef *module, PyObject *args)
|
||||
audioop_avg(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -150,10 +150,10 @@ PyDoc_STRVAR(audioop_rms__doc__,
|
|||
{"rms", (PyCFunction)audioop_rms, METH_VARARGS, audioop_rms__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_rms_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_rms(PyModuleDef *module, PyObject *args)
|
||||
audioop_rms(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -184,11 +184,11 @@ PyDoc_STRVAR(audioop_findfit__doc__,
|
|||
{"findfit", (PyCFunction)audioop_findfit, METH_VARARGS, audioop_findfit__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_findfit_impl(PyModuleDef *module, Py_buffer *fragment,
|
||||
audioop_findfit_impl(PyObject *module, Py_buffer *fragment,
|
||||
Py_buffer *reference);
|
||||
|
||||
static PyObject *
|
||||
audioop_findfit(PyModuleDef *module, PyObject *args)
|
||||
audioop_findfit(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -223,11 +223,11 @@ PyDoc_STRVAR(audioop_findfactor__doc__,
|
|||
{"findfactor", (PyCFunction)audioop_findfactor, METH_VARARGS, audioop_findfactor__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_findfactor_impl(PyModuleDef *module, Py_buffer *fragment,
|
||||
audioop_findfactor_impl(PyObject *module, Py_buffer *fragment,
|
||||
Py_buffer *reference);
|
||||
|
||||
static PyObject *
|
||||
audioop_findfactor(PyModuleDef *module, PyObject *args)
|
||||
audioop_findfactor(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -262,11 +262,11 @@ PyDoc_STRVAR(audioop_findmax__doc__,
|
|||
{"findmax", (PyCFunction)audioop_findmax, METH_VARARGS, audioop_findmax__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_findmax_impl(PyModuleDef *module, Py_buffer *fragment,
|
||||
audioop_findmax_impl(PyObject *module, Py_buffer *fragment,
|
||||
Py_ssize_t length);
|
||||
|
||||
static PyObject *
|
||||
audioop_findmax(PyModuleDef *module, PyObject *args)
|
||||
audioop_findmax(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -297,10 +297,10 @@ PyDoc_STRVAR(audioop_avgpp__doc__,
|
|||
{"avgpp", (PyCFunction)audioop_avgpp, METH_VARARGS, audioop_avgpp__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_avgpp_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_avgpp_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_avgpp(PyModuleDef *module, PyObject *args)
|
||||
audioop_avgpp(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -331,10 +331,10 @@ PyDoc_STRVAR(audioop_maxpp__doc__,
|
|||
{"maxpp", (PyCFunction)audioop_maxpp, METH_VARARGS, audioop_maxpp__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_maxpp_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_maxpp_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_maxpp(PyModuleDef *module, PyObject *args)
|
||||
audioop_maxpp(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -365,10 +365,10 @@ PyDoc_STRVAR(audioop_cross__doc__,
|
|||
{"cross", (PyCFunction)audioop_cross, METH_VARARGS, audioop_cross__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_cross_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_cross_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_cross(PyModuleDef *module, PyObject *args)
|
||||
audioop_cross(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -399,11 +399,11 @@ PyDoc_STRVAR(audioop_mul__doc__,
|
|||
{"mul", (PyCFunction)audioop_mul, METH_VARARGS, audioop_mul__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_mul_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_mul_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
double factor);
|
||||
|
||||
static PyObject *
|
||||
audioop_mul(PyModuleDef *module, PyObject *args)
|
||||
audioop_mul(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -435,11 +435,11 @@ PyDoc_STRVAR(audioop_tomono__doc__,
|
|||
{"tomono", (PyCFunction)audioop_tomono, METH_VARARGS, audioop_tomono__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_tomono_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_tomono_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
double lfactor, double rfactor);
|
||||
|
||||
static PyObject *
|
||||
audioop_tomono(PyModuleDef *module, PyObject *args)
|
||||
audioop_tomono(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -472,11 +472,11 @@ PyDoc_STRVAR(audioop_tostereo__doc__,
|
|||
{"tostereo", (PyCFunction)audioop_tostereo, METH_VARARGS, audioop_tostereo__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_tostereo_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_tostereo_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
double lfactor, double rfactor);
|
||||
|
||||
static PyObject *
|
||||
audioop_tostereo(PyModuleDef *module, PyObject *args)
|
||||
audioop_tostereo(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -509,11 +509,11 @@ PyDoc_STRVAR(audioop_add__doc__,
|
|||
{"add", (PyCFunction)audioop_add, METH_VARARGS, audioop_add__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_add_impl(PyModuleDef *module, Py_buffer *fragment1,
|
||||
audioop_add_impl(PyObject *module, Py_buffer *fragment1,
|
||||
Py_buffer *fragment2, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_add(PyModuleDef *module, PyObject *args)
|
||||
audioop_add(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment1 = {NULL, NULL};
|
||||
|
@ -549,11 +549,10 @@ PyDoc_STRVAR(audioop_bias__doc__,
|
|||
{"bias", (PyCFunction)audioop_bias, METH_VARARGS, audioop_bias__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_bias_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
int bias);
|
||||
audioop_bias_impl(PyObject *module, Py_buffer *fragment, int width, int bias);
|
||||
|
||||
static PyObject *
|
||||
audioop_bias(PyModuleDef *module, PyObject *args)
|
||||
audioop_bias(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -585,10 +584,10 @@ PyDoc_STRVAR(audioop_reverse__doc__,
|
|||
{"reverse", (PyCFunction)audioop_reverse, METH_VARARGS, audioop_reverse__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_reverse_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_reverse_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_reverse(PyModuleDef *module, PyObject *args)
|
||||
audioop_reverse(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -619,10 +618,10 @@ PyDoc_STRVAR(audioop_byteswap__doc__,
|
|||
{"byteswap", (PyCFunction)audioop_byteswap, METH_VARARGS, audioop_byteswap__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_byteswap_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_byteswap_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_byteswap(PyModuleDef *module, PyObject *args)
|
||||
audioop_byteswap(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -653,11 +652,11 @@ PyDoc_STRVAR(audioop_lin2lin__doc__,
|
|||
{"lin2lin", (PyCFunction)audioop_lin2lin, METH_VARARGS, audioop_lin2lin__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_lin2lin_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
int newwidth);
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2lin(PyModuleDef *module, PyObject *args)
|
||||
audioop_lin2lin(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -690,12 +689,12 @@ PyDoc_STRVAR(audioop_ratecv__doc__,
|
|||
{"ratecv", (PyCFunction)audioop_ratecv, METH_VARARGS, audioop_ratecv__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_ratecv_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_ratecv_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
int nchannels, int inrate, int outrate, PyObject *state,
|
||||
int weightA, int weightB);
|
||||
|
||||
static PyObject *
|
||||
audioop_ratecv(PyModuleDef *module, PyObject *args)
|
||||
audioop_ratecv(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -732,10 +731,10 @@ PyDoc_STRVAR(audioop_lin2ulaw__doc__,
|
|||
{"lin2ulaw", (PyCFunction)audioop_lin2ulaw, METH_VARARGS, audioop_lin2ulaw__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2ulaw_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_lin2ulaw_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2ulaw(PyModuleDef *module, PyObject *args)
|
||||
audioop_lin2ulaw(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -766,10 +765,10 @@ PyDoc_STRVAR(audioop_ulaw2lin__doc__,
|
|||
{"ulaw2lin", (PyCFunction)audioop_ulaw2lin, METH_VARARGS, audioop_ulaw2lin__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_ulaw2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_ulaw2lin_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_ulaw2lin(PyModuleDef *module, PyObject *args)
|
||||
audioop_ulaw2lin(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -800,10 +799,10 @@ PyDoc_STRVAR(audioop_lin2alaw__doc__,
|
|||
{"lin2alaw", (PyCFunction)audioop_lin2alaw, METH_VARARGS, audioop_lin2alaw__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2alaw_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_lin2alaw_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2alaw(PyModuleDef *module, PyObject *args)
|
||||
audioop_lin2alaw(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -834,10 +833,10 @@ PyDoc_STRVAR(audioop_alaw2lin__doc__,
|
|||
{"alaw2lin", (PyCFunction)audioop_alaw2lin, METH_VARARGS, audioop_alaw2lin__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_alaw2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width);
|
||||
audioop_alaw2lin_impl(PyObject *module, Py_buffer *fragment, int width);
|
||||
|
||||
static PyObject *
|
||||
audioop_alaw2lin(PyModuleDef *module, PyObject *args)
|
||||
audioop_alaw2lin(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -868,11 +867,11 @@ PyDoc_STRVAR(audioop_lin2adpcm__doc__,
|
|||
{"lin2adpcm", (PyCFunction)audioop_lin2adpcm, METH_VARARGS, audioop_lin2adpcm__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2adpcm_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_lin2adpcm_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
PyObject *state);
|
||||
|
||||
static PyObject *
|
||||
audioop_lin2adpcm(PyModuleDef *module, PyObject *args)
|
||||
audioop_lin2adpcm(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -904,11 +903,11 @@ PyDoc_STRVAR(audioop_adpcm2lin__doc__,
|
|||
{"adpcm2lin", (PyCFunction)audioop_adpcm2lin, METH_VARARGS, audioop_adpcm2lin__doc__},
|
||||
|
||||
static PyObject *
|
||||
audioop_adpcm2lin_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
||||
audioop_adpcm2lin_impl(PyObject *module, Py_buffer *fragment, int width,
|
||||
PyObject *state);
|
||||
|
||||
static PyObject *
|
||||
audioop_adpcm2lin(PyModuleDef *module, PyObject *args)
|
||||
audioop_adpcm2lin(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer fragment = {NULL, NULL};
|
||||
|
@ -929,4 +928,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=af5b025f0241fee2 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=e0ab74c3fa57c39c input=a9049054013a1b77]*/
|
||||
|
|
|
@ -12,10 +12,10 @@ PyDoc_STRVAR(binascii_a2b_uu__doc__,
|
|||
{"a2b_uu", (PyCFunction)binascii_a2b_uu, METH_O, binascii_a2b_uu__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_uu_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_a2b_uu_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_uu(PyModuleDef *module, PyObject *arg)
|
||||
binascii_a2b_uu(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -43,10 +43,10 @@ PyDoc_STRVAR(binascii_b2a_uu__doc__,
|
|||
{"b2a_uu", (PyCFunction)binascii_b2a_uu, METH_O, binascii_b2a_uu__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_uu_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_b2a_uu_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_uu(PyModuleDef *module, PyObject *arg)
|
||||
binascii_b2a_uu(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -75,10 +75,10 @@ PyDoc_STRVAR(binascii_a2b_base64__doc__,
|
|||
{"a2b_base64", (PyCFunction)binascii_a2b_base64, METH_O, binascii_a2b_base64__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_base64_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_a2b_base64_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_base64(PyModuleDef *module, PyObject *arg)
|
||||
binascii_a2b_base64(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -106,10 +106,10 @@ PyDoc_STRVAR(binascii_b2a_base64__doc__,
|
|||
{"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_VARARGS|METH_KEYWORDS, binascii_b2a_base64__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_base64_impl(PyModuleDef *module, Py_buffer *data, int newline);
|
||||
binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline);
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_base64(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
binascii_b2a_base64(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"data", "newline", NULL};
|
||||
|
@ -141,10 +141,10 @@ PyDoc_STRVAR(binascii_a2b_hqx__doc__,
|
|||
{"a2b_hqx", (PyCFunction)binascii_a2b_hqx, METH_O, binascii_a2b_hqx__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_hqx_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_a2b_hqx_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_hqx(PyModuleDef *module, PyObject *arg)
|
||||
binascii_a2b_hqx(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -172,10 +172,10 @@ PyDoc_STRVAR(binascii_rlecode_hqx__doc__,
|
|||
{"rlecode_hqx", (PyCFunction)binascii_rlecode_hqx, METH_O, binascii_rlecode_hqx__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_rlecode_hqx_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_rlecode_hqx_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_rlecode_hqx(PyModuleDef *module, PyObject *arg)
|
||||
binascii_rlecode_hqx(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -204,10 +204,10 @@ PyDoc_STRVAR(binascii_b2a_hqx__doc__,
|
|||
{"b2a_hqx", (PyCFunction)binascii_b2a_hqx, METH_O, binascii_b2a_hqx__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_hqx_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_b2a_hqx_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_hqx(PyModuleDef *module, PyObject *arg)
|
||||
binascii_b2a_hqx(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -236,10 +236,10 @@ PyDoc_STRVAR(binascii_rledecode_hqx__doc__,
|
|||
{"rledecode_hqx", (PyCFunction)binascii_rledecode_hqx, METH_O, binascii_rledecode_hqx__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_rledecode_hqx_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_rledecode_hqx_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_rledecode_hqx(PyModuleDef *module, PyObject *arg)
|
||||
binascii_rledecode_hqx(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -268,10 +268,10 @@ PyDoc_STRVAR(binascii_crc_hqx__doc__,
|
|||
{"crc_hqx", (PyCFunction)binascii_crc_hqx, METH_VARARGS, binascii_crc_hqx__doc__},
|
||||
|
||||
static unsigned int
|
||||
binascii_crc_hqx_impl(PyModuleDef *module, Py_buffer *data, unsigned int crc);
|
||||
binascii_crc_hqx_impl(PyObject *module, Py_buffer *data, unsigned int crc);
|
||||
|
||||
static PyObject *
|
||||
binascii_crc_hqx(PyModuleDef *module, PyObject *args)
|
||||
binascii_crc_hqx(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -307,10 +307,10 @@ PyDoc_STRVAR(binascii_crc32__doc__,
|
|||
{"crc32", (PyCFunction)binascii_crc32, METH_VARARGS, binascii_crc32__doc__},
|
||||
|
||||
static unsigned int
|
||||
binascii_crc32_impl(PyModuleDef *module, Py_buffer *data, unsigned int crc);
|
||||
binascii_crc32_impl(PyObject *module, Py_buffer *data, unsigned int crc);
|
||||
|
||||
static PyObject *
|
||||
binascii_crc32(PyModuleDef *module, PyObject *args)
|
||||
binascii_crc32(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -349,10 +349,10 @@ PyDoc_STRVAR(binascii_b2a_hex__doc__,
|
|||
{"b2a_hex", (PyCFunction)binascii_b2a_hex, METH_O, binascii_b2a_hex__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_hex_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_b2a_hex_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_hex(PyModuleDef *module, PyObject *arg)
|
||||
binascii_b2a_hex(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -383,10 +383,10 @@ PyDoc_STRVAR(binascii_hexlify__doc__,
|
|||
{"hexlify", (PyCFunction)binascii_hexlify, METH_O, binascii_hexlify__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_hexlify_impl(PyModuleDef *module, Py_buffer *data);
|
||||
binascii_hexlify_impl(PyObject *module, Py_buffer *data);
|
||||
|
||||
static PyObject *
|
||||
binascii_hexlify(PyModuleDef *module, PyObject *arg)
|
||||
binascii_hexlify(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -418,10 +418,10 @@ PyDoc_STRVAR(binascii_a2b_hex__doc__,
|
|||
{"a2b_hex", (PyCFunction)binascii_a2b_hex, METH_O, binascii_a2b_hex__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_hex_impl(PyModuleDef *module, Py_buffer *hexstr);
|
||||
binascii_a2b_hex_impl(PyObject *module, Py_buffer *hexstr);
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_hex(PyModuleDef *module, PyObject *arg)
|
||||
binascii_a2b_hex(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer hexstr = {NULL, NULL};
|
||||
|
@ -451,10 +451,10 @@ PyDoc_STRVAR(binascii_unhexlify__doc__,
|
|||
{"unhexlify", (PyCFunction)binascii_unhexlify, METH_O, binascii_unhexlify__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_unhexlify_impl(PyModuleDef *module, Py_buffer *hexstr);
|
||||
binascii_unhexlify_impl(PyObject *module, Py_buffer *hexstr);
|
||||
|
||||
static PyObject *
|
||||
binascii_unhexlify(PyModuleDef *module, PyObject *arg)
|
||||
binascii_unhexlify(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer hexstr = {NULL, NULL};
|
||||
|
@ -482,10 +482,10 @@ PyDoc_STRVAR(binascii_a2b_qp__doc__,
|
|||
{"a2b_qp", (PyCFunction)binascii_a2b_qp, METH_VARARGS|METH_KEYWORDS, binascii_a2b_qp__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_qp_impl(PyModuleDef *module, Py_buffer *data, int header);
|
||||
binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header);
|
||||
|
||||
static PyObject *
|
||||
binascii_a2b_qp(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
binascii_a2b_qp(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"data", "header", NULL};
|
||||
|
@ -520,11 +520,11 @@ PyDoc_STRVAR(binascii_b2a_qp__doc__,
|
|||
{"b2a_qp", (PyCFunction)binascii_b2a_qp, METH_VARARGS|METH_KEYWORDS, binascii_b2a_qp__doc__},
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_qp_impl(PyModuleDef *module, Py_buffer *data, int quotetabs,
|
||||
binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
|
||||
int istext, int header);
|
||||
|
||||
static PyObject *
|
||||
binascii_b2a_qp(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
binascii_b2a_qp(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"data", "quotetabs", "istext", "header", NULL};
|
||||
|
@ -547,4 +547,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=7fb420392d78ac4d input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=d91d1058dc0590e1 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -12,10 +12,10 @@ PyDoc_STRVAR(cmath_acos__doc__,
|
|||
{"acos", (PyCFunction)cmath_acos, METH_O, cmath_acos__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_acos_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_acos_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_acos(PyModuleDef *module, PyObject *arg)
|
||||
cmath_acos(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -54,10 +54,10 @@ PyDoc_STRVAR(cmath_acosh__doc__,
|
|||
{"acosh", (PyCFunction)cmath_acosh, METH_O, cmath_acosh__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_acosh_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_acosh_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_acosh(PyModuleDef *module, PyObject *arg)
|
||||
cmath_acosh(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -96,10 +96,10 @@ PyDoc_STRVAR(cmath_asin__doc__,
|
|||
{"asin", (PyCFunction)cmath_asin, METH_O, cmath_asin__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_asin_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_asin_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_asin(PyModuleDef *module, PyObject *arg)
|
||||
cmath_asin(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -138,10 +138,10 @@ PyDoc_STRVAR(cmath_asinh__doc__,
|
|||
{"asinh", (PyCFunction)cmath_asinh, METH_O, cmath_asinh__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_asinh_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_asinh_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_asinh(PyModuleDef *module, PyObject *arg)
|
||||
cmath_asinh(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -180,10 +180,10 @@ PyDoc_STRVAR(cmath_atan__doc__,
|
|||
{"atan", (PyCFunction)cmath_atan, METH_O, cmath_atan__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_atan_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_atan_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_atan(PyModuleDef *module, PyObject *arg)
|
||||
cmath_atan(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -222,10 +222,10 @@ PyDoc_STRVAR(cmath_atanh__doc__,
|
|||
{"atanh", (PyCFunction)cmath_atanh, METH_O, cmath_atanh__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_atanh_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_atanh_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_atanh(PyModuleDef *module, PyObject *arg)
|
||||
cmath_atanh(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -264,10 +264,10 @@ PyDoc_STRVAR(cmath_cos__doc__,
|
|||
{"cos", (PyCFunction)cmath_cos, METH_O, cmath_cos__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_cos_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_cos_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_cos(PyModuleDef *module, PyObject *arg)
|
||||
cmath_cos(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -306,10 +306,10 @@ PyDoc_STRVAR(cmath_cosh__doc__,
|
|||
{"cosh", (PyCFunction)cmath_cosh, METH_O, cmath_cosh__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_cosh_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_cosh_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_cosh(PyModuleDef *module, PyObject *arg)
|
||||
cmath_cosh(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -348,10 +348,10 @@ PyDoc_STRVAR(cmath_exp__doc__,
|
|||
{"exp", (PyCFunction)cmath_exp, METH_O, cmath_exp__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_exp_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_exp_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_exp(PyModuleDef *module, PyObject *arg)
|
||||
cmath_exp(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -390,10 +390,10 @@ PyDoc_STRVAR(cmath_log10__doc__,
|
|||
{"log10", (PyCFunction)cmath_log10, METH_O, cmath_log10__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_log10_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_log10_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_log10(PyModuleDef *module, PyObject *arg)
|
||||
cmath_log10(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -432,10 +432,10 @@ PyDoc_STRVAR(cmath_sin__doc__,
|
|||
{"sin", (PyCFunction)cmath_sin, METH_O, cmath_sin__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_sin_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_sin_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_sin(PyModuleDef *module, PyObject *arg)
|
||||
cmath_sin(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -474,10 +474,10 @@ PyDoc_STRVAR(cmath_sinh__doc__,
|
|||
{"sinh", (PyCFunction)cmath_sinh, METH_O, cmath_sinh__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_sinh_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_sinh_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_sinh(PyModuleDef *module, PyObject *arg)
|
||||
cmath_sinh(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -516,10 +516,10 @@ PyDoc_STRVAR(cmath_sqrt__doc__,
|
|||
{"sqrt", (PyCFunction)cmath_sqrt, METH_O, cmath_sqrt__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_sqrt_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_sqrt_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_sqrt(PyModuleDef *module, PyObject *arg)
|
||||
cmath_sqrt(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -558,10 +558,10 @@ PyDoc_STRVAR(cmath_tan__doc__,
|
|||
{"tan", (PyCFunction)cmath_tan, METH_O, cmath_tan__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_tan_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_tan_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_tan(PyModuleDef *module, PyObject *arg)
|
||||
cmath_tan(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -600,10 +600,10 @@ PyDoc_STRVAR(cmath_tanh__doc__,
|
|||
{"tanh", (PyCFunction)cmath_tanh, METH_O, cmath_tanh__doc__},
|
||||
|
||||
static Py_complex
|
||||
cmath_tanh_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_tanh_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_tanh(PyModuleDef *module, PyObject *arg)
|
||||
cmath_tanh(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -644,10 +644,10 @@ PyDoc_STRVAR(cmath_log__doc__,
|
|||
{"log", (PyCFunction)cmath_log, METH_VARARGS, cmath_log__doc__},
|
||||
|
||||
static PyObject *
|
||||
cmath_log_impl(PyModuleDef *module, Py_complex x, PyObject *y_obj);
|
||||
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj);
|
||||
|
||||
static PyObject *
|
||||
cmath_log(PyModuleDef *module, PyObject *args)
|
||||
cmath_log(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex x;
|
||||
|
@ -673,10 +673,10 @@ PyDoc_STRVAR(cmath_phase__doc__,
|
|||
{"phase", (PyCFunction)cmath_phase, METH_O, cmath_phase__doc__},
|
||||
|
||||
static PyObject *
|
||||
cmath_phase_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_phase_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_phase(PyModuleDef *module, PyObject *arg)
|
||||
cmath_phase(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -702,10 +702,10 @@ PyDoc_STRVAR(cmath_polar__doc__,
|
|||
{"polar", (PyCFunction)cmath_polar, METH_O, cmath_polar__doc__},
|
||||
|
||||
static PyObject *
|
||||
cmath_polar_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_polar_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_polar(PyModuleDef *module, PyObject *arg)
|
||||
cmath_polar(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -729,10 +729,10 @@ PyDoc_STRVAR(cmath_rect__doc__,
|
|||
{"rect", (PyCFunction)cmath_rect, METH_VARARGS, cmath_rect__doc__},
|
||||
|
||||
static PyObject *
|
||||
cmath_rect_impl(PyModuleDef *module, double r, double phi);
|
||||
cmath_rect_impl(PyObject *module, double r, double phi);
|
||||
|
||||
static PyObject *
|
||||
cmath_rect(PyModuleDef *module, PyObject *args)
|
||||
cmath_rect(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
double r;
|
||||
|
@ -758,10 +758,10 @@ PyDoc_STRVAR(cmath_isfinite__doc__,
|
|||
{"isfinite", (PyCFunction)cmath_isfinite, METH_O, cmath_isfinite__doc__},
|
||||
|
||||
static PyObject *
|
||||
cmath_isfinite_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_isfinite_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_isfinite(PyModuleDef *module, PyObject *arg)
|
||||
cmath_isfinite(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -785,10 +785,10 @@ PyDoc_STRVAR(cmath_isnan__doc__,
|
|||
{"isnan", (PyCFunction)cmath_isnan, METH_O, cmath_isnan__doc__},
|
||||
|
||||
static PyObject *
|
||||
cmath_isnan_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_isnan_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_isnan(PyModuleDef *module, PyObject *arg)
|
||||
cmath_isnan(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -812,10 +812,10 @@ PyDoc_STRVAR(cmath_isinf__doc__,
|
|||
{"isinf", (PyCFunction)cmath_isinf, METH_O, cmath_isinf__doc__},
|
||||
|
||||
static PyObject *
|
||||
cmath_isinf_impl(PyModuleDef *module, Py_complex z);
|
||||
cmath_isinf_impl(PyObject *module, Py_complex z);
|
||||
|
||||
static PyObject *
|
||||
cmath_isinf(PyModuleDef *module, PyObject *arg)
|
||||
cmath_isinf(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_complex z;
|
||||
|
@ -854,11 +854,11 @@ PyDoc_STRVAR(cmath_isclose__doc__,
|
|||
{"isclose", (PyCFunction)cmath_isclose, METH_VARARGS|METH_KEYWORDS, cmath_isclose__doc__},
|
||||
|
||||
static int
|
||||
cmath_isclose_impl(PyModuleDef *module, Py_complex a, Py_complex b,
|
||||
cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b,
|
||||
double rel_tol, double abs_tol);
|
||||
|
||||
static PyObject *
|
||||
cmath_isclose(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
cmath_isclose(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"a", "b", "rel_tol", "abs_tol", NULL};
|
||||
|
@ -881,4 +881,4 @@ cmath_isclose(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=f166205b4beb1826 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0f49dd11b50175bc input=a9049054013a1b77]*/
|
||||
|
|
|
@ -22,10 +22,10 @@ PyDoc_STRVAR(fcntl_fcntl__doc__,
|
|||
{"fcntl", (PyCFunction)fcntl_fcntl, METH_VARARGS, fcntl_fcntl__doc__},
|
||||
|
||||
static PyObject *
|
||||
fcntl_fcntl_impl(PyModuleDef *module, int fd, int code, PyObject *arg);
|
||||
fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg);
|
||||
|
||||
static PyObject *
|
||||
fcntl_fcntl(PyModuleDef *module, PyObject *args)
|
||||
fcntl_fcntl(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
@ -79,11 +79,11 @@ PyDoc_STRVAR(fcntl_ioctl__doc__,
|
|||
{"ioctl", (PyCFunction)fcntl_ioctl, METH_VARARGS, fcntl_ioctl__doc__},
|
||||
|
||||
static PyObject *
|
||||
fcntl_ioctl_impl(PyModuleDef *module, int fd, unsigned int code,
|
||||
fcntl_ioctl_impl(PyObject *module, int fd, unsigned int code,
|
||||
PyObject *ob_arg, int mutate_arg);
|
||||
|
||||
static PyObject *
|
||||
fcntl_ioctl(PyModuleDef *module, PyObject *args)
|
||||
fcntl_ioctl(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
@ -114,10 +114,10 @@ PyDoc_STRVAR(fcntl_flock__doc__,
|
|||
{"flock", (PyCFunction)fcntl_flock, METH_VARARGS, fcntl_flock__doc__},
|
||||
|
||||
static PyObject *
|
||||
fcntl_flock_impl(PyModuleDef *module, int fd, int code);
|
||||
fcntl_flock_impl(PyObject *module, int fd, int code);
|
||||
|
||||
static PyObject *
|
||||
fcntl_flock(PyModuleDef *module, PyObject *args)
|
||||
fcntl_flock(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
@ -164,11 +164,11 @@ PyDoc_STRVAR(fcntl_lockf__doc__,
|
|||
{"lockf", (PyCFunction)fcntl_lockf, METH_VARARGS, fcntl_lockf__doc__},
|
||||
|
||||
static PyObject *
|
||||
fcntl_lockf_impl(PyModuleDef *module, int fd, int code, PyObject *lenobj,
|
||||
fcntl_lockf_impl(PyObject *module, int fd, int code, PyObject *lenobj,
|
||||
PyObject *startobj, int whence);
|
||||
|
||||
static PyObject *
|
||||
fcntl_lockf(PyModuleDef *module, PyObject *args)
|
||||
fcntl_lockf(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
@ -186,4 +186,4 @@ fcntl_lockf(PyModuleDef *module, PyObject *args)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=b08537e9adc04ca2 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=36cff76a8fb2c9a6 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -14,10 +14,10 @@ PyDoc_STRVAR(grp_getgrgid__doc__,
|
|||
{"getgrgid", (PyCFunction)grp_getgrgid, METH_VARARGS|METH_KEYWORDS, grp_getgrgid__doc__},
|
||||
|
||||
static PyObject *
|
||||
grp_getgrgid_impl(PyModuleDef *module, PyObject *id);
|
||||
grp_getgrgid_impl(PyObject *module, PyObject *id);
|
||||
|
||||
static PyObject *
|
||||
grp_getgrgid(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
grp_getgrgid(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"id", NULL};
|
||||
|
@ -45,10 +45,10 @@ PyDoc_STRVAR(grp_getgrnam__doc__,
|
|||
{"getgrnam", (PyCFunction)grp_getgrnam, METH_VARARGS|METH_KEYWORDS, grp_getgrnam__doc__},
|
||||
|
||||
static PyObject *
|
||||
grp_getgrnam_impl(PyModuleDef *module, PyObject *name);
|
||||
grp_getgrnam_impl(PyObject *module, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
grp_getgrnam(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
grp_getgrnam(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"name", NULL};
|
||||
|
@ -77,11 +77,11 @@ PyDoc_STRVAR(grp_getgrall__doc__,
|
|||
{"getgrall", (PyCFunction)grp_getgrall, METH_NOARGS, grp_getgrall__doc__},
|
||||
|
||||
static PyObject *
|
||||
grp_getgrall_impl(PyModuleDef *module);
|
||||
grp_getgrall_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
grp_getgrall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
grp_getgrall(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return grp_getgrall_impl(module);
|
||||
}
|
||||
/*[clinic end generated code: output=a8a097520206ccd6 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=8b7502970a29e7f1 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -75,10 +75,10 @@ PyDoc_STRVAR(_md5_md5__doc__,
|
|||
{"md5", (PyCFunction)_md5_md5, METH_VARARGS|METH_KEYWORDS, _md5_md5__doc__},
|
||||
|
||||
static PyObject *
|
||||
_md5_md5_impl(PyModuleDef *module, PyObject *string);
|
||||
_md5_md5_impl(PyObject *module, PyObject *string);
|
||||
|
||||
static PyObject *
|
||||
_md5_md5(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_md5_md5(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"string", NULL};
|
||||
|
@ -93,4 +93,4 @@ _md5_md5(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=d701d041d387b081 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=8f640a98761daffe input=a9049054013a1b77]*/
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,10 +25,10 @@ PyDoc_STRVAR(pwd_getpwnam__doc__,
|
|||
{"getpwnam", (PyCFunction)pwd_getpwnam, METH_O, pwd_getpwnam__doc__},
|
||||
|
||||
static PyObject *
|
||||
pwd_getpwnam_impl(PyModuleDef *module, PyObject *arg);
|
||||
pwd_getpwnam_impl(PyObject *module, PyObject *arg);
|
||||
|
||||
static PyObject *
|
||||
pwd_getpwnam(PyModuleDef *module, PyObject *arg_)
|
||||
pwd_getpwnam(PyObject *module, PyObject *arg_)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *arg;
|
||||
|
@ -56,10 +56,10 @@ PyDoc_STRVAR(pwd_getpwall__doc__,
|
|||
{"getpwall", (PyCFunction)pwd_getpwall, METH_NOARGS, pwd_getpwall__doc__},
|
||||
|
||||
static PyObject *
|
||||
pwd_getpwall_impl(PyModuleDef *module);
|
||||
pwd_getpwall_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
pwd_getpwall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
pwd_getpwall(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return pwd_getpwall_impl(module);
|
||||
}
|
||||
|
@ -69,4 +69,4 @@ pwd_getpwall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
|||
#ifndef PWD_GETPWALL_METHODDEF
|
||||
#define PWD_GETPWALL_METHODDEF
|
||||
#endif /* !defined(PWD_GETPWALL_METHODDEF) */
|
||||
/*[clinic end generated code: output=f807c89b44be0fde input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=fc41d8d88ec206d8 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -236,11 +236,11 @@ PyDoc_STRVAR(pyexpat_ParserCreate__doc__,
|
|||
{"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_VARARGS|METH_KEYWORDS, pyexpat_ParserCreate__doc__},
|
||||
|
||||
static PyObject *
|
||||
pyexpat_ParserCreate_impl(PyModuleDef *module, const char *encoding,
|
||||
pyexpat_ParserCreate_impl(PyObject *module, const char *encoding,
|
||||
const char *namespace_separator, PyObject *intern);
|
||||
|
||||
static PyObject *
|
||||
pyexpat_ParserCreate(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
pyexpat_ParserCreate(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"encoding", "namespace_separator", "intern", NULL};
|
||||
|
@ -268,10 +268,10 @@ PyDoc_STRVAR(pyexpat_ErrorString__doc__,
|
|||
{"ErrorString", (PyCFunction)pyexpat_ErrorString, METH_O, pyexpat_ErrorString__doc__},
|
||||
|
||||
static PyObject *
|
||||
pyexpat_ErrorString_impl(PyModuleDef *module, long code);
|
||||
pyexpat_ErrorString_impl(PyObject *module, long code);
|
||||
|
||||
static PyObject *
|
||||
pyexpat_ErrorString(PyModuleDef *module, PyObject *arg)
|
||||
pyexpat_ErrorString(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
long code;
|
||||
|
@ -288,4 +288,4 @@ exit:
|
|||
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
||||
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
||||
#endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
|
||||
/*[clinic end generated code: output=71a60d709647fbe3 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=9de21f46734b1311 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -75,10 +75,10 @@ PyDoc_STRVAR(_sha1_sha1__doc__,
|
|||
{"sha1", (PyCFunction)_sha1_sha1, METH_VARARGS|METH_KEYWORDS, _sha1_sha1__doc__},
|
||||
|
||||
static PyObject *
|
||||
_sha1_sha1_impl(PyModuleDef *module, PyObject *string);
|
||||
_sha1_sha1_impl(PyObject *module, PyObject *string);
|
||||
|
||||
static PyObject *
|
||||
_sha1_sha1(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_sha1_sha1(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"string", NULL};
|
||||
|
@ -93,4 +93,4 @@ _sha1_sha1(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=40df3f8955919e72 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=475c4cc749ab31b1 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -75,10 +75,10 @@ PyDoc_STRVAR(_sha256_sha256__doc__,
|
|||
{"sha256", (PyCFunction)_sha256_sha256, METH_VARARGS|METH_KEYWORDS, _sha256_sha256__doc__},
|
||||
|
||||
static PyObject *
|
||||
_sha256_sha256_impl(PyModuleDef *module, PyObject *string);
|
||||
_sha256_sha256_impl(PyObject *module, PyObject *string);
|
||||
|
||||
static PyObject *
|
||||
_sha256_sha256(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_sha256_sha256(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"string", NULL};
|
||||
|
@ -104,10 +104,10 @@ PyDoc_STRVAR(_sha256_sha224__doc__,
|
|||
{"sha224", (PyCFunction)_sha256_sha224, METH_VARARGS|METH_KEYWORDS, _sha256_sha224__doc__},
|
||||
|
||||
static PyObject *
|
||||
_sha256_sha224_impl(PyModuleDef *module, PyObject *string);
|
||||
_sha256_sha224_impl(PyObject *module, PyObject *string);
|
||||
|
||||
static PyObject *
|
||||
_sha256_sha224(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_sha256_sha224(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"string", NULL};
|
||||
|
@ -122,4 +122,4 @@ _sha256_sha224(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=e85cc4a223371d84 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=a41a21c08fcddd70 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -93,10 +93,10 @@ PyDoc_STRVAR(_sha512_sha512__doc__,
|
|||
{"sha512", (PyCFunction)_sha512_sha512, METH_VARARGS|METH_KEYWORDS, _sha512_sha512__doc__},
|
||||
|
||||
static PyObject *
|
||||
_sha512_sha512_impl(PyModuleDef *module, PyObject *string);
|
||||
_sha512_sha512_impl(PyObject *module, PyObject *string);
|
||||
|
||||
static PyObject *
|
||||
_sha512_sha512(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_sha512_sha512(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"string", NULL};
|
||||
|
@ -126,10 +126,10 @@ PyDoc_STRVAR(_sha512_sha384__doc__,
|
|||
{"sha384", (PyCFunction)_sha512_sha384, METH_VARARGS|METH_KEYWORDS, _sha512_sha384__doc__},
|
||||
|
||||
static PyObject *
|
||||
_sha512_sha384_impl(PyModuleDef *module, PyObject *string);
|
||||
_sha512_sha384_impl(PyObject *module, PyObject *string);
|
||||
|
||||
static PyObject *
|
||||
_sha512_sha384(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_sha512_sha384(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"string", NULL};
|
||||
|
@ -170,4 +170,4 @@ exit:
|
|||
#ifndef _SHA512_SHA384_METHODDEF
|
||||
#define _SHA512_SHA384_METHODDEF
|
||||
#endif /* !defined(_SHA512_SHA384_METHODDEF) */
|
||||
/*[clinic end generated code: output=845af47cea22e2a1 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=e314c0f773abd5d7 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -14,10 +14,10 @@ PyDoc_STRVAR(signal_alarm__doc__,
|
|||
{"alarm", (PyCFunction)signal_alarm, METH_O, signal_alarm__doc__},
|
||||
|
||||
static long
|
||||
signal_alarm_impl(PyModuleDef *module, int seconds);
|
||||
signal_alarm_impl(PyObject *module, int seconds);
|
||||
|
||||
static PyObject *
|
||||
signal_alarm(PyModuleDef *module, PyObject *arg)
|
||||
signal_alarm(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int seconds;
|
||||
|
@ -50,10 +50,10 @@ PyDoc_STRVAR(signal_pause__doc__,
|
|||
{"pause", (PyCFunction)signal_pause, METH_NOARGS, signal_pause__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_pause_impl(PyModuleDef *module);
|
||||
signal_pause_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
signal_pause(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
signal_pause(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return signal_pause_impl(module);
|
||||
}
|
||||
|
@ -77,10 +77,10 @@ PyDoc_STRVAR(signal_signal__doc__,
|
|||
{"signal", (PyCFunction)signal_signal, METH_VARARGS, signal_signal__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_signal_impl(PyModuleDef *module, int signalnum, PyObject *handler);
|
||||
signal_signal_impl(PyObject *module, int signalnum, PyObject *handler);
|
||||
|
||||
static PyObject *
|
||||
signal_signal(PyModuleDef *module, PyObject *args)
|
||||
signal_signal(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int signalnum;
|
||||
|
@ -112,10 +112,10 @@ PyDoc_STRVAR(signal_getsignal__doc__,
|
|||
{"getsignal", (PyCFunction)signal_getsignal, METH_O, signal_getsignal__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_getsignal_impl(PyModuleDef *module, int signalnum);
|
||||
signal_getsignal_impl(PyObject *module, int signalnum);
|
||||
|
||||
static PyObject *
|
||||
signal_getsignal(PyModuleDef *module, PyObject *arg)
|
||||
signal_getsignal(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int signalnum;
|
||||
|
@ -144,10 +144,10 @@ PyDoc_STRVAR(signal_siginterrupt__doc__,
|
|||
{"siginterrupt", (PyCFunction)signal_siginterrupt, METH_VARARGS, signal_siginterrupt__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_siginterrupt_impl(PyModuleDef *module, int signalnum, int flag);
|
||||
signal_siginterrupt_impl(PyObject *module, int signalnum, int flag);
|
||||
|
||||
static PyObject *
|
||||
signal_siginterrupt(PyModuleDef *module, PyObject *args)
|
||||
signal_siginterrupt(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int signalnum;
|
||||
|
@ -182,11 +182,11 @@ PyDoc_STRVAR(signal_setitimer__doc__,
|
|||
{"setitimer", (PyCFunction)signal_setitimer, METH_VARARGS, signal_setitimer__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_setitimer_impl(PyModuleDef *module, int which, double seconds,
|
||||
signal_setitimer_impl(PyObject *module, int which, double seconds,
|
||||
double interval);
|
||||
|
||||
static PyObject *
|
||||
signal_setitimer(PyModuleDef *module, PyObject *args)
|
||||
signal_setitimer(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int which;
|
||||
|
@ -217,10 +217,10 @@ PyDoc_STRVAR(signal_getitimer__doc__,
|
|||
{"getitimer", (PyCFunction)signal_getitimer, METH_O, signal_getitimer__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_getitimer_impl(PyModuleDef *module, int which);
|
||||
signal_getitimer_impl(PyObject *module, int which);
|
||||
|
||||
static PyObject *
|
||||
signal_getitimer(PyModuleDef *module, PyObject *arg)
|
||||
signal_getitimer(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int which;
|
||||
|
@ -248,10 +248,10 @@ PyDoc_STRVAR(signal_pthread_sigmask__doc__,
|
|||
{"pthread_sigmask", (PyCFunction)signal_pthread_sigmask, METH_VARARGS, signal_pthread_sigmask__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_pthread_sigmask_impl(PyModuleDef *module, int how, PyObject *mask);
|
||||
signal_pthread_sigmask_impl(PyObject *module, int how, PyObject *mask);
|
||||
|
||||
static PyObject *
|
||||
signal_pthread_sigmask(PyModuleDef *module, PyObject *args)
|
||||
signal_pthread_sigmask(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int how;
|
||||
|
@ -284,10 +284,10 @@ PyDoc_STRVAR(signal_sigpending__doc__,
|
|||
{"sigpending", (PyCFunction)signal_sigpending, METH_NOARGS, signal_sigpending__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_sigpending_impl(PyModuleDef *module);
|
||||
signal_sigpending_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
signal_sigpending(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
signal_sigpending(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return signal_sigpending_impl(module);
|
||||
}
|
||||
|
@ -340,11 +340,11 @@ PyDoc_STRVAR(signal_sigtimedwait__doc__,
|
|||
{"sigtimedwait", (PyCFunction)signal_sigtimedwait, METH_VARARGS, signal_sigtimedwait__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_sigtimedwait_impl(PyModuleDef *module, PyObject *sigset,
|
||||
signal_sigtimedwait_impl(PyObject *module, PyObject *sigset,
|
||||
PyObject *timeout_obj);
|
||||
|
||||
static PyObject *
|
||||
signal_sigtimedwait(PyModuleDef *module, PyObject *args)
|
||||
signal_sigtimedwait(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *sigset;
|
||||
|
@ -375,10 +375,10 @@ PyDoc_STRVAR(signal_pthread_kill__doc__,
|
|||
{"pthread_kill", (PyCFunction)signal_pthread_kill, METH_VARARGS, signal_pthread_kill__doc__},
|
||||
|
||||
static PyObject *
|
||||
signal_pthread_kill_impl(PyModuleDef *module, long thread_id, int signalnum);
|
||||
signal_pthread_kill_impl(PyObject *module, long thread_id, int signalnum);
|
||||
|
||||
static PyObject *
|
||||
signal_pthread_kill(PyModuleDef *module, PyObject *args)
|
||||
signal_pthread_kill(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
long thread_id;
|
||||
|
@ -439,4 +439,4 @@ exit:
|
|||
#ifndef SIGNAL_PTHREAD_KILL_METHODDEF
|
||||
#define SIGNAL_PTHREAD_KILL_METHODDEF
|
||||
#endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */
|
||||
/*[clinic end generated code: output=4b9519180a091536 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=c6990ef0d0ba72b6 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -16,10 +16,10 @@ PyDoc_STRVAR(spwd_getspnam__doc__,
|
|||
{"getspnam", (PyCFunction)spwd_getspnam, METH_O, spwd_getspnam__doc__},
|
||||
|
||||
static PyObject *
|
||||
spwd_getspnam_impl(PyModuleDef *module, PyObject *arg);
|
||||
spwd_getspnam_impl(PyObject *module, PyObject *arg);
|
||||
|
||||
static PyObject *
|
||||
spwd_getspnam(PyModuleDef *module, PyObject *arg_)
|
||||
spwd_getspnam(PyObject *module, PyObject *arg_)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *arg;
|
||||
|
@ -49,10 +49,10 @@ PyDoc_STRVAR(spwd_getspall__doc__,
|
|||
{"getspall", (PyCFunction)spwd_getspall, METH_NOARGS, spwd_getspall__doc__},
|
||||
|
||||
static PyObject *
|
||||
spwd_getspall_impl(PyModuleDef *module);
|
||||
spwd_getspall_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
spwd_getspall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
spwd_getspall(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return spwd_getspall_impl(module);
|
||||
}
|
||||
|
@ -66,4 +66,4 @@ spwd_getspall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
|||
#ifndef SPWD_GETSPALL_METHODDEF
|
||||
#define SPWD_GETSPALL_METHODDEF
|
||||
#endif /* !defined(SPWD_GETSPALL_METHODDEF) */
|
||||
/*[clinic end generated code: output=2b7a384447e5f1e3 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=07cd8af0afd77fe7 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -17,10 +17,10 @@ PyDoc_STRVAR(zlib_compress__doc__,
|
|||
{"compress", (PyCFunction)zlib_compress, METH_VARARGS|METH_KEYWORDS, zlib_compress__doc__},
|
||||
|
||||
static PyObject *
|
||||
zlib_compress_impl(PyModuleDef *module, Py_buffer *data, int level);
|
||||
zlib_compress_impl(PyObject *module, Py_buffer *data, int level);
|
||||
|
||||
static PyObject *
|
||||
zlib_compress(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
zlib_compress(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"", "level", NULL};
|
||||
|
@ -59,11 +59,11 @@ PyDoc_STRVAR(zlib_decompress__doc__,
|
|||
{"decompress", (PyCFunction)zlib_decompress, METH_VARARGS, zlib_decompress__doc__},
|
||||
|
||||
static PyObject *
|
||||
zlib_decompress_impl(PyModuleDef *module, Py_buffer *data, int wbits,
|
||||
zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits,
|
||||
unsigned int bufsize);
|
||||
|
||||
static PyObject *
|
||||
zlib_decompress(PyModuleDef *module, PyObject *args)
|
||||
zlib_decompress(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -119,11 +119,11 @@ PyDoc_STRVAR(zlib_compressobj__doc__,
|
|||
{"compressobj", (PyCFunction)zlib_compressobj, METH_VARARGS|METH_KEYWORDS, zlib_compressobj__doc__},
|
||||
|
||||
static PyObject *
|
||||
zlib_compressobj_impl(PyModuleDef *module, int level, int method, int wbits,
|
||||
zlib_compressobj_impl(PyObject *module, int level, int method, int wbits,
|
||||
int memLevel, int strategy, Py_buffer *zdict);
|
||||
|
||||
static PyObject *
|
||||
zlib_compressobj(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
zlib_compressobj(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"level", "method", "wbits", "memLevel", "strategy", "zdict", NULL};
|
||||
|
@ -165,10 +165,10 @@ PyDoc_STRVAR(zlib_decompressobj__doc__,
|
|||
{"decompressobj", (PyCFunction)zlib_decompressobj, METH_VARARGS|METH_KEYWORDS, zlib_decompressobj__doc__},
|
||||
|
||||
static PyObject *
|
||||
zlib_decompressobj_impl(PyModuleDef *module, int wbits, PyObject *zdict);
|
||||
zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict);
|
||||
|
||||
static PyObject *
|
||||
zlib_decompressobj(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
zlib_decompressobj(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"wbits", "zdict", NULL};
|
||||
|
@ -394,10 +394,10 @@ PyDoc_STRVAR(zlib_adler32__doc__,
|
|||
{"adler32", (PyCFunction)zlib_adler32, METH_VARARGS, zlib_adler32__doc__},
|
||||
|
||||
static PyObject *
|
||||
zlib_adler32_impl(PyModuleDef *module, Py_buffer *data, unsigned int value);
|
||||
zlib_adler32_impl(PyObject *module, Py_buffer *data, unsigned int value);
|
||||
|
||||
static PyObject *
|
||||
zlib_adler32(PyModuleDef *module, PyObject *args)
|
||||
zlib_adler32(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -433,10 +433,10 @@ PyDoc_STRVAR(zlib_crc32__doc__,
|
|||
{"crc32", (PyCFunction)zlib_crc32, METH_VARARGS, zlib_crc32__doc__},
|
||||
|
||||
static PyObject *
|
||||
zlib_crc32_impl(PyModuleDef *module, Py_buffer *data, unsigned int value);
|
||||
zlib_crc32_impl(PyObject *module, Py_buffer *data, unsigned int value);
|
||||
|
||||
static PyObject *
|
||||
zlib_crc32(PyModuleDef *module, PyObject *args)
|
||||
zlib_crc32(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_buffer data = {NULL, NULL};
|
||||
|
@ -460,4 +460,4 @@ exit:
|
|||
#ifndef ZLIB_COMPRESS_COPY_METHODDEF
|
||||
#define ZLIB_COMPRESS_COPY_METHODDEF
|
||||
#endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
|
||||
/*[clinic end generated code: output=ba904dec30cc1a1a input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=519446af912f4e72 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -82,12 +82,12 @@ else {
|
|||
#define CM_SCALE_DOWN (-(CM_SCALE_UP+1)/2)
|
||||
|
||||
/* forward declarations */
|
||||
static Py_complex cmath_asinh_impl(PyModuleDef *, Py_complex);
|
||||
static Py_complex cmath_atanh_impl(PyModuleDef *, Py_complex);
|
||||
static Py_complex cmath_cosh_impl(PyModuleDef *, Py_complex);
|
||||
static Py_complex cmath_sinh_impl(PyModuleDef *, Py_complex);
|
||||
static Py_complex cmath_sqrt_impl(PyModuleDef *, Py_complex);
|
||||
static Py_complex cmath_tanh_impl(PyModuleDef *, Py_complex);
|
||||
static Py_complex cmath_asinh_impl(PyObject *, Py_complex);
|
||||
static Py_complex cmath_atanh_impl(PyObject *, Py_complex);
|
||||
static Py_complex cmath_cosh_impl(PyObject *, Py_complex);
|
||||
static Py_complex cmath_sinh_impl(PyObject *, Py_complex);
|
||||
static Py_complex cmath_sqrt_impl(PyObject *, Py_complex);
|
||||
static Py_complex cmath_tanh_impl(PyObject *, Py_complex);
|
||||
static PyObject * math_error(void);
|
||||
|
||||
/* Code to deal with special values (infinities, NaNs, etc.). */
|
||||
|
@ -167,8 +167,8 @@ Return the arc cosine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_acos_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=7c1dd21ff818db6b input=bd6cbd78ae851927]*/
|
||||
cmath_acos_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=40bd42853fd460ae input=bd6cbd78ae851927]*/
|
||||
{
|
||||
Py_complex s1, s2, r;
|
||||
|
||||
|
@ -210,8 +210,8 @@ Return the inverse hyperbolic cosine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_acosh_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=c23c776429def981 input=3f61bee7d703e53c]*/
|
||||
cmath_acosh_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=3e2454d4fcf404ca input=3f61bee7d703e53c]*/
|
||||
{
|
||||
Py_complex s1, s2, r;
|
||||
|
||||
|
@ -242,8 +242,8 @@ Return the arc sine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_asin_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=42d2346d46690826 input=be0bf0cfdd5239c5]*/
|
||||
cmath_asin_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=3b264cd1b16bf4e1 input=be0bf0cfdd5239c5]*/
|
||||
{
|
||||
/* asin(z) = -i asinh(iz) */
|
||||
Py_complex s, r;
|
||||
|
@ -265,8 +265,8 @@ Return the inverse hyperbolic sine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_asinh_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=0c6664823c7b1b35 input=5c09448fcfc89a79]*/
|
||||
cmath_asinh_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=733d8107841a7599 input=5c09448fcfc89a79]*/
|
||||
{
|
||||
Py_complex s1, s2, r;
|
||||
|
||||
|
@ -303,8 +303,8 @@ Return the arc tangent of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_atan_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=b7d44f02c6a5c3b5 input=3b21ff7d5eac632a]*/
|
||||
cmath_atan_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=b6bfc497058acba4 input=3b21ff7d5eac632a]*/
|
||||
{
|
||||
/* atan(z) = -i atanh(iz) */
|
||||
Py_complex s, r;
|
||||
|
@ -356,8 +356,8 @@ Return the inverse hyperbolic tangent of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_atanh_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=279e0b9fefc8da7c input=2b3fdb82fb34487b]*/
|
||||
cmath_atanh_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=e83355f93a989c9e input=2b3fdb82fb34487b]*/
|
||||
{
|
||||
Py_complex r;
|
||||
double ay, h;
|
||||
|
@ -411,8 +411,8 @@ Return the cosine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_cos_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=9d1cdc1b5e761667 input=6022e39b77127ac7]*/
|
||||
cmath_cos_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=fd64918d5b3186db input=6022e39b77127ac7]*/
|
||||
{
|
||||
/* cos(z) = cosh(iz) */
|
||||
Py_complex r;
|
||||
|
@ -433,8 +433,8 @@ Return the hyperbolic cosine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_cosh_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=f3b5d3282b3024d3 input=d6b66339e9cc332b]*/
|
||||
cmath_cosh_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=2e969047da601bdb input=d6b66339e9cc332b]*/
|
||||
{
|
||||
Py_complex r;
|
||||
double x_minus_one;
|
||||
|
@ -495,8 +495,8 @@ Return the exponential value e**z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_exp_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=6f8825eb2bcad9ba input=8b9e6cf8a92174c3]*/
|
||||
cmath_exp_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=edcec61fb9dfda6c input=8b9e6cf8a92174c3]*/
|
||||
{
|
||||
Py_complex r;
|
||||
double l;
|
||||
|
@ -624,8 +624,8 @@ Return the base-10 logarithm of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_log10_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=c7c426ca0e782341 input=cff5644f73c1519c]*/
|
||||
cmath_log10_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=2922779a7c38cbe1 input=cff5644f73c1519c]*/
|
||||
{
|
||||
Py_complex r;
|
||||
int errno_save;
|
||||
|
@ -646,8 +646,8 @@ Return the sine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_sin_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=e7f5e2b253825ac7 input=2d3519842a8b4b85]*/
|
||||
cmath_sin_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=980370d2ff0bb5aa input=2d3519842a8b4b85]*/
|
||||
{
|
||||
/* sin(z) = -i sin(iz) */
|
||||
Py_complex s, r;
|
||||
|
@ -670,8 +670,8 @@ Return the hyperbolic sine of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_sinh_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=d71fff8298043a95 input=d2d3fc8c1ddfd2dd]*/
|
||||
cmath_sinh_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=38b0a6cce26f3536 input=d2d3fc8c1ddfd2dd]*/
|
||||
{
|
||||
Py_complex r;
|
||||
double x_minus_one;
|
||||
|
@ -729,8 +729,8 @@ Return the square root of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_sqrt_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=b6bda283d0c5a7b4 input=7088b166fc9a58c7]*/
|
||||
cmath_sqrt_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=b6507b3029c339fc input=7088b166fc9a58c7]*/
|
||||
{
|
||||
/*
|
||||
Method: use symmetries to reduce to the case when x = z.real and y
|
||||
|
@ -804,8 +804,8 @@ Return the tangent of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_tan_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=df374bacf36d99b4 input=fc167e528767888e]*/
|
||||
cmath_tan_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=7c5f13158a72eb13 input=fc167e528767888e]*/
|
||||
{
|
||||
/* tan(z) = -i tanh(iz) */
|
||||
Py_complex s, r;
|
||||
|
@ -828,8 +828,8 @@ Return the hyperbolic tangent of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_complex
|
||||
cmath_tanh_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=f578773d27a18e96 input=22f67f9dc6d29685]*/
|
||||
cmath_tanh_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=36d547ef7aca116c input=22f67f9dc6d29685]*/
|
||||
{
|
||||
/* Formula:
|
||||
|
||||
|
@ -906,8 +906,8 @@ If the base not specified, returns the natural logarithm (base e) of z.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_log_impl(PyModuleDef *module, Py_complex x, PyObject *y_obj)
|
||||
/*[clinic end generated code: output=35e2a1e5229b5a46 input=ee0e823a7c6e68ea]*/
|
||||
cmath_log_impl(PyObject *module, Py_complex x, PyObject *y_obj)
|
||||
/*[clinic end generated code: output=4effdb7d258e0d94 input=ee0e823a7c6e68ea]*/
|
||||
{
|
||||
Py_complex y;
|
||||
|
||||
|
@ -954,8 +954,8 @@ Return argument, also known as the phase angle, of a complex.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_phase_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=e09eaf373cb624c3 input=5cf75228ba94b69d]*/
|
||||
cmath_phase_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=50725086a7bfd253 input=5cf75228ba94b69d]*/
|
||||
{
|
||||
double phi;
|
||||
|
||||
|
@ -981,8 +981,8 @@ r is the distance from 0 and phi the phase angle.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_polar_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=07d41b16c877875a input=26c353574fd1a861]*/
|
||||
cmath_polar_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=d0a8147c41dbb654 input=26c353574fd1a861]*/
|
||||
{
|
||||
double r, phi;
|
||||
|
||||
|
@ -1021,8 +1021,8 @@ Convert from polar coordinates to rectangular coordinates.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_rect_impl(PyModuleDef *module, double r, double phi)
|
||||
/*[clinic end generated code: output=d97a8749bd63e9d5 input=24c5646d147efd69]*/
|
||||
cmath_rect_impl(PyObject *module, double r, double phi)
|
||||
/*[clinic end generated code: output=385a0690925df2d5 input=24c5646d147efd69]*/
|
||||
{
|
||||
Py_complex z;
|
||||
errno = 0;
|
||||
|
@ -1082,8 +1082,8 @@ Return True if both the real and imaginary parts of z are finite, else False.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_isfinite_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=8f6682fa93de45d6 input=848e7ee701895815]*/
|
||||
cmath_isfinite_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=ac76611e2c774a36 input=848e7ee701895815]*/
|
||||
{
|
||||
return PyBool_FromLong(Py_IS_FINITE(z.real) && Py_IS_FINITE(z.imag));
|
||||
}
|
||||
|
@ -1095,8 +1095,8 @@ Checks if the real or imaginary part of z not a number (NaN).
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_isnan_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=b85fe8c2047718ee input=71799f5d284c9baf]*/
|
||||
cmath_isnan_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=e7abf6e0b28beab7 input=71799f5d284c9baf]*/
|
||||
{
|
||||
return PyBool_FromLong(Py_IS_NAN(z.real) || Py_IS_NAN(z.imag));
|
||||
}
|
||||
|
@ -1108,8 +1108,8 @@ Checks if the real or imaginary part of z is infinite.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
cmath_isinf_impl(PyModuleDef *module, Py_complex z)
|
||||
/*[clinic end generated code: output=8ca9c6109e468bf4 input=363df155c7181329]*/
|
||||
cmath_isinf_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=502a75a79c773469 input=363df155c7181329]*/
|
||||
{
|
||||
return PyBool_FromLong(Py_IS_INFINITY(z.real) ||
|
||||
Py_IS_INFINITY(z.imag));
|
||||
|
@ -1140,9 +1140,9 @@ not close to anything, even itself. inf and -inf are only close to themselves.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
cmath_isclose_impl(PyModuleDef *module, Py_complex a, Py_complex b,
|
||||
cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b,
|
||||
double rel_tol, double abs_tol)
|
||||
/*[clinic end generated code: output=da0c535fb54e2310 input=df9636d7de1d4ac3]*/
|
||||
/*[clinic end generated code: output=8a2486cc6e0014d1 input=df9636d7de1d4ac3]*/
|
||||
{
|
||||
double diff;
|
||||
|
||||
|
|
|
@ -56,8 +56,8 @@ corresponding to the return value of the fcntl call in the C code.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
fcntl_fcntl_impl(PyModuleDef *module, int fd, int code, PyObject *arg)
|
||||
/*[clinic end generated code: output=afc5bfa74a03ef0d input=8cefbe59b29efbe2]*/
|
||||
fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg)
|
||||
/*[clinic end generated code: output=888fc93b51c295bd input=8cefbe59b29efbe2]*/
|
||||
{
|
||||
unsigned int int_arg = 0;
|
||||
int ret;
|
||||
|
@ -146,9 +146,9 @@ code.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
fcntl_ioctl_impl(PyModuleDef *module, int fd, unsigned int code,
|
||||
fcntl_ioctl_impl(PyObject *module, int fd, unsigned int code,
|
||||
PyObject *ob_arg, int mutate_arg)
|
||||
/*[clinic end generated code: output=102faa0f7ebe2210 input=ede70c433cccbbb2]*/
|
||||
/*[clinic end generated code: output=7f7f5840c65991be input=ede70c433cccbbb2]*/
|
||||
{
|
||||
#define IOCTL_BUFSZ 1024
|
||||
/* We use the unsigned non-checked 'I' format for the 'code' parameter
|
||||
|
@ -279,8 +279,8 @@ function is emulated using fcntl()).
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
fcntl_flock_impl(PyModuleDef *module, int fd, int code)
|
||||
/*[clinic end generated code: output=c9035133a7dbfc96 input=b70a0a41ca22a8a0]*/
|
||||
fcntl_flock_impl(PyObject *module, int fd, int code)
|
||||
/*[clinic end generated code: output=84059e2b37d2fc64 input=b70a0a41ca22a8a0]*/
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -358,9 +358,9 @@ starts. `whence` is as with fileobj.seek(), specifically:
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
fcntl_lockf_impl(PyModuleDef *module, int fd, int code, PyObject *lenobj,
|
||||
fcntl_lockf_impl(PyObject *module, int fd, int code, PyObject *lenobj,
|
||||
PyObject *startobj, int whence)
|
||||
/*[clinic end generated code: output=31af35eba08b9af7 input=3a5dc01b04371f1a]*/
|
||||
/*[clinic end generated code: output=4985e7a172e7461a input=3a5dc01b04371f1a]*/
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
@ -93,8 +93,8 @@ If id is not valid, raise KeyError.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
grp_getgrgid_impl(PyModuleDef *module, PyObject *id)
|
||||
/*[clinic end generated code: output=8a11f5fdeb8c78a0 input=15fa0e2ccf5cda25]*/
|
||||
grp_getgrgid_impl(PyObject *module, PyObject *id)
|
||||
/*[clinic end generated code: output=30797c289504a1ba input=15fa0e2ccf5cda25]*/
|
||||
{
|
||||
PyObject *py_int_id;
|
||||
gid_t gid;
|
||||
|
@ -142,8 +142,8 @@ If name is not valid, raise KeyError.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
grp_getgrnam_impl(PyModuleDef *module, PyObject *name)
|
||||
/*[clinic end generated code: output=cd47511f4854da8e input=08ded29affa3c863]*/
|
||||
grp_getgrnam_impl(PyObject *module, PyObject *name)
|
||||
/*[clinic end generated code: output=67905086f403c21c input=08ded29affa3c863]*/
|
||||
{
|
||||
char *name_chars;
|
||||
struct group *p;
|
||||
|
@ -174,8 +174,8 @@ to use YP/NIS and may not be accessible via getgrnam or getgrgid.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
grp_getgrall_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=add9037a20c202de input=d7df76c825c367df]*/
|
||||
grp_getgrall_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=585dad35e2e763d7 input=d7df76c825c367df]*/
|
||||
{
|
||||
PyObject *d;
|
||||
struct group *p;
|
||||
|
|
|
@ -509,8 +509,8 @@ Return a new MD5 hash object; optionally initialized with a string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_md5_md5_impl(PyModuleDef *module, PyObject *string)
|
||||
/*[clinic end generated code: output=3527436a2090b956 input=d12ef8f72d684f7b]*/
|
||||
_md5_md5_impl(PyObject *module, PyObject *string)
|
||||
/*[clinic end generated code: output=2cfd0f8c091b97e6 input=d12ef8f72d684f7b]*/
|
||||
{
|
||||
MD5object *new;
|
||||
Py_buffer buf;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -113,8 +113,8 @@ See `help(pwd)` for more on password database entries.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
pwd_getpwuid(PyModuleDef *module, PyObject *uidobj)
|
||||
/*[clinic end generated code: output=cba29ae4c2bcb8e1 input=ae64d507a1c6d3e8]*/
|
||||
pwd_getpwuid(PyObject *module, PyObject *uidobj)
|
||||
/*[clinic end generated code: output=c4ee1d4d429b86c4 input=ae64d507a1c6d3e8]*/
|
||||
{
|
||||
uid_t uid;
|
||||
struct passwd *p;
|
||||
|
@ -149,8 +149,8 @@ See `help(pwd)` for more on password database entries.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
pwd_getpwnam_impl(PyModuleDef *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=66848d42d386fca3 input=d5f7e700919b02d3]*/
|
||||
pwd_getpwnam_impl(PyObject *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=6abeee92430e43d2 input=d5f7e700919b02d3]*/
|
||||
{
|
||||
char *name;
|
||||
struct passwd *p;
|
||||
|
@ -181,8 +181,8 @@ See help(pwd) for more on password database entries.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
pwd_getpwall_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=ab30e37bf26d431d input=d7ecebfd90219b85]*/
|
||||
pwd_getpwall_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=4853d2f5a0afac8a input=d7ecebfd90219b85]*/
|
||||
{
|
||||
PyObject *d;
|
||||
struct passwd *p;
|
||||
|
|
|
@ -1555,9 +1555,9 @@ Return a new XML parser object.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
pyexpat_ParserCreate_impl(PyModuleDef *module, const char *encoding,
|
||||
pyexpat_ParserCreate_impl(PyObject *module, const char *encoding,
|
||||
const char *namespace_separator, PyObject *intern)
|
||||
/*[clinic end generated code: output=81fccd233e1743a8 input=23d29704acad385d]*/
|
||||
/*[clinic end generated code: output=295c0cf01ab1146c input=23d29704acad385d]*/
|
||||
{
|
||||
PyObject *result;
|
||||
int intern_decref = 0;
|
||||
|
@ -1601,8 +1601,8 @@ Returns string error for given number.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
pyexpat_ErrorString_impl(PyModuleDef *module, long code)
|
||||
/*[clinic end generated code: output=d87668108b6868e5 input=cc67de010d9e62b3]*/
|
||||
pyexpat_ErrorString_impl(PyObject *module, long code)
|
||||
/*[clinic end generated code: output=2feae50d166f2174 input=cc67de010d9e62b3]*/
|
||||
{
|
||||
return Py_BuildValue("z", XML_ErrorString((int)code));
|
||||
}
|
||||
|
|
|
@ -486,8 +486,8 @@ Return a new SHA1 hash object; optionally initialized with a string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_sha1_sha1_impl(PyModuleDef *module, PyObject *string)
|
||||
/*[clinic end generated code: output=3e4e841386b9e8db input=27ea54281d995ec2]*/
|
||||
_sha1_sha1_impl(PyObject *module, PyObject *string)
|
||||
/*[clinic end generated code: output=e5982830d1dece51 input=27ea54281d995ec2]*/
|
||||
{
|
||||
SHA1object *new;
|
||||
Py_buffer buf;
|
||||
|
|
|
@ -607,8 +607,8 @@ Return a new SHA-256 hash object; optionally initialized with a string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_sha256_sha256_impl(PyModuleDef *module, PyObject *string)
|
||||
/*[clinic end generated code: output=d70e6e2d97112844 input=09cce3fb855056b2]*/
|
||||
_sha256_sha256_impl(PyObject *module, PyObject *string)
|
||||
/*[clinic end generated code: output=fa644436dcea5c31 input=09cce3fb855056b2]*/
|
||||
{
|
||||
SHAobject *new;
|
||||
Py_buffer buf;
|
||||
|
@ -647,8 +647,8 @@ Return a new SHA-224 hash object; optionally initialized with a string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_sha256_sha224_impl(PyModuleDef *module, PyObject *string)
|
||||
/*[clinic end generated code: output=f2822bf28416b42a input=27a04ba24c353a73]*/
|
||||
_sha256_sha224_impl(PyObject *module, PyObject *string)
|
||||
/*[clinic end generated code: output=21e3ba22c3404f93 input=27a04ba24c353a73]*/
|
||||
{
|
||||
SHAobject *new;
|
||||
Py_buffer buf;
|
||||
|
|
|
@ -678,8 +678,8 @@ Return a new SHA-512 hash object; optionally initialized with a string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_sha512_sha512_impl(PyModuleDef *module, PyObject *string)
|
||||
/*[clinic end generated code: output=da13bc0a94da6de3 input=e69bad9ae9b6a308]*/
|
||||
_sha512_sha512_impl(PyObject *module, PyObject *string)
|
||||
/*[clinic end generated code: output=8b865a2df73bd387 input=e69bad9ae9b6a308]*/
|
||||
{
|
||||
SHAobject *new;
|
||||
Py_buffer buf;
|
||||
|
@ -718,8 +718,8 @@ Return a new SHA-384 hash object; optionally initialized with a string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_sha512_sha384_impl(PyModuleDef *module, PyObject *string)
|
||||
/*[clinic end generated code: output=ac731aea5509174d input=c9327788d4ea4545]*/
|
||||
_sha512_sha384_impl(PyObject *module, PyObject *string)
|
||||
/*[clinic end generated code: output=ae4b2e26decf81e8 input=c9327788d4ea4545]*/
|
||||
{
|
||||
SHAobject *new;
|
||||
Py_buffer buf;
|
||||
|
|
|
@ -340,8 +340,8 @@ Arrange for SIGALRM to arrive after the given number of seconds.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
signal_alarm_impl(PyModuleDef *module, int seconds)
|
||||
/*[clinic end generated code: output=f5f9badaab25d3e7 input=0d5e97e0e6f39e86]*/
|
||||
signal_alarm_impl(PyObject *module, int seconds)
|
||||
/*[clinic end generated code: output=144232290814c298 input=0d5e97e0e6f39e86]*/
|
||||
{
|
||||
/* alarm() returns the number of seconds remaining */
|
||||
return (long)alarm(seconds);
|
||||
|
@ -358,8 +358,8 @@ Wait until a signal arrives.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_pause_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=9245704caa63bbe9 input=f03de0f875752062]*/
|
||||
signal_pause_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=391656788b3c3929 input=f03de0f875752062]*/
|
||||
{
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
(void)pause();
|
||||
|
@ -394,8 +394,8 @@ the first is the signal number, the second is the interrupted stack frame.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_signal_impl(PyModuleDef *module, int signalnum, PyObject *handler)
|
||||
/*[clinic end generated code: output=622d7d0beebea546 input=deee84af5fa0432c]*/
|
||||
signal_signal_impl(PyObject *module, int signalnum, PyObject *handler)
|
||||
/*[clinic end generated code: output=b44cfda43780f3a1 input=deee84af5fa0432c]*/
|
||||
{
|
||||
PyObject *old_handler;
|
||||
void (*func)(int);
|
||||
|
@ -472,8 +472,8 @@ The return value can be:
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_getsignal_impl(PyModuleDef *module, int signalnum)
|
||||
/*[clinic end generated code: output=d50ec355757e360c input=ac23a00f19dfa509]*/
|
||||
signal_getsignal_impl(PyObject *module, int signalnum)
|
||||
/*[clinic end generated code: output=35b3e0e796fd555e input=ac23a00f19dfa509]*/
|
||||
{
|
||||
PyObject *old_handler;
|
||||
if (signalnum < 1 || signalnum >= NSIG) {
|
||||
|
@ -507,8 +507,8 @@ signal sig, else system calls will be interrupted.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_siginterrupt_impl(PyModuleDef *module, int signalnum, int flag)
|
||||
/*[clinic end generated code: output=5dcf8b031b0e8044 input=4160acacca3e2099]*/
|
||||
signal_siginterrupt_impl(PyObject *module, int signalnum, int flag)
|
||||
/*[clinic end generated code: output=063816243d85dd19 input=4160acacca3e2099]*/
|
||||
{
|
||||
if (signalnum < 1 || signalnum >= NSIG) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
|
@ -682,9 +682,9 @@ Returns old values as a tuple: (delay, interval).
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_setitimer_impl(PyModuleDef *module, int which, double seconds,
|
||||
signal_setitimer_impl(PyObject *module, int which, double seconds,
|
||||
double interval)
|
||||
/*[clinic end generated code: output=9a9227a27bd05988 input=0d27d417cfcbd51a]*/
|
||||
/*[clinic end generated code: output=6f51da0fe0787f2c input=0d27d417cfcbd51a]*/
|
||||
{
|
||||
struct itimerval new, old;
|
||||
|
||||
|
@ -714,8 +714,8 @@ Returns current value of given itimer.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_getitimer_impl(PyModuleDef *module, int which)
|
||||
/*[clinic end generated code: output=d1349ab18aadc569 input=f7d21d38f3490627]*/
|
||||
signal_getitimer_impl(PyObject *module, int which)
|
||||
/*[clinic end generated code: output=9e053175d517db40 input=f7d21d38f3490627]*/
|
||||
{
|
||||
struct itimerval old;
|
||||
|
||||
|
@ -829,8 +829,8 @@ Fetch and/or change the signal mask of the calling thread.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_pthread_sigmask_impl(PyModuleDef *module, int how, PyObject *mask)
|
||||
/*[clinic end generated code: output=b043a9f0eeb1e075 input=f3b7d7a61b7b8283]*/
|
||||
signal_pthread_sigmask_impl(PyObject *module, int how, PyObject *mask)
|
||||
/*[clinic end generated code: output=ff640fe092bc9181 input=f3b7d7a61b7b8283]*/
|
||||
{
|
||||
sigset_t newmask, previous;
|
||||
int err;
|
||||
|
@ -867,8 +867,8 @@ the calling thread.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_sigpending_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=bf4ced803e7e51dd input=e0036c016f874e29]*/
|
||||
signal_sigpending_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=53375ffe89325022 input=e0036c016f874e29]*/
|
||||
{
|
||||
int err;
|
||||
sigset_t mask;
|
||||
|
@ -897,8 +897,8 @@ and returns the signal number.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_sigwait(PyModuleDef *module, PyObject *sigset)
|
||||
/*[clinic end generated code: output=dae53048b0336a5c input=11af2d82d83c2e94]*/
|
||||
signal_sigwait(PyObject *module, PyObject *sigset)
|
||||
/*[clinic end generated code: output=557173647424f6e4 input=11af2d82d83c2e94]*/
|
||||
{
|
||||
sigset_t set;
|
||||
int err, signum;
|
||||
|
@ -986,8 +986,8 @@ Returns a struct_siginfo containing information about the signal.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_sigwaitinfo(PyModuleDef *module, PyObject *sigset)
|
||||
/*[clinic end generated code: output=0bb53b07e5e926b5 input=f3779a74a991e171]*/
|
||||
signal_sigwaitinfo(PyObject *module, PyObject *sigset)
|
||||
/*[clinic end generated code: output=c40f27b269cd2309 input=f3779a74a991e171]*/
|
||||
{
|
||||
sigset_t set;
|
||||
siginfo_t si;
|
||||
|
@ -1026,9 +1026,9 @@ The timeout is specified in seconds, with floating point numbers allowed.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_sigtimedwait_impl(PyModuleDef *module, PyObject *sigset,
|
||||
signal_sigtimedwait_impl(PyObject *module, PyObject *sigset,
|
||||
PyObject *timeout_obj)
|
||||
/*[clinic end generated code: output=c1960b5cea139929 input=53fd4ea3e3724eb8]*/
|
||||
/*[clinic end generated code: output=f7eff31e679f4312 input=53fd4ea3e3724eb8]*/
|
||||
{
|
||||
struct timespec ts;
|
||||
sigset_t set;
|
||||
|
@ -1097,8 +1097,8 @@ Send a signal to a thread.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
signal_pthread_kill_impl(PyModuleDef *module, long thread_id, int signalnum)
|
||||
/*[clinic end generated code: output=35aed2713c756d7a input=77ed6a3b6f2a8122]*/
|
||||
signal_pthread_kill_impl(PyObject *module, long thread_id, int signalnum)
|
||||
/*[clinic end generated code: output=2a09ce41f1c4228a input=77ed6a3b6f2a8122]*/
|
||||
{
|
||||
int err;
|
||||
|
||||
|
|
|
@ -125,8 +125,8 @@ See `help(spwd)` for more on shadow password database entries.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
spwd_getspnam_impl(PyModuleDef *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=9f6bbe51a4eb3b21 input=dd89429e6167a00f]*/
|
||||
spwd_getspnam_impl(PyObject *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=701250cf57dc6ebe input=dd89429e6167a00f]*/
|
||||
{
|
||||
char *name;
|
||||
struct spwd *p;
|
||||
|
@ -162,8 +162,8 @@ See `help(spwd)` for more on shadow password database entries.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
spwd_getspall_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=b12d8ec7bdb29612 input=b2c84b7857d622bd]*/
|
||||
spwd_getspall_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=4fda298d6bf6d057 input=b2c84b7857d622bd]*/
|
||||
{
|
||||
PyObject *d;
|
||||
struct spwd *p;
|
||||
|
|
|
@ -151,8 +151,8 @@ Returns a bytes object containing compressed data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
zlib_compress_impl(PyModuleDef *module, Py_buffer *data, int level)
|
||||
/*[clinic end generated code: output=1b97589132b203b4 input=638d54b6315dbed3]*/
|
||||
zlib_compress_impl(PyObject *module, Py_buffer *data, int level)
|
||||
/*[clinic end generated code: output=d80906d73f6294c8 input=638d54b6315dbed3]*/
|
||||
{
|
||||
PyObject *ReturnVal = NULL;
|
||||
Byte *input, *output = NULL;
|
||||
|
@ -284,9 +284,9 @@ Returns a bytes object containing the uncompressed data.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
zlib_decompress_impl(PyModuleDef *module, Py_buffer *data, int wbits,
|
||||
zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits,
|
||||
unsigned int bufsize)
|
||||
/*[clinic end generated code: output=444d0987f3429574 input=75123b0d4ff0541d]*/
|
||||
/*[clinic end generated code: output=475b36ead58b243d input=75123b0d4ff0541d]*/
|
||||
{
|
||||
PyObject *result_str = NULL;
|
||||
Byte *input;
|
||||
|
@ -419,9 +419,9 @@ Return a compressor object.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
zlib_compressobj_impl(PyModuleDef *module, int level, int method, int wbits,
|
||||
zlib_compressobj_impl(PyObject *module, int level, int method, int wbits,
|
||||
int memLevel, int strategy, Py_buffer *zdict)
|
||||
/*[clinic end generated code: output=2949bbb9a5723ccd input=2fa3d026f90ab8d5]*/
|
||||
/*[clinic end generated code: output=8b5bed9c8fc3814d input=2fa3d026f90ab8d5]*/
|
||||
{
|
||||
compobject *self = NULL;
|
||||
int err;
|
||||
|
@ -516,8 +516,8 @@ Return a decompressor object.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
zlib_decompressobj_impl(PyModuleDef *module, int wbits, PyObject *zdict)
|
||||
/*[clinic end generated code: output=8ccd583fbd631798 input=d3832b8511fc977b]*/
|
||||
zlib_decompressobj_impl(PyObject *module, int wbits, PyObject *zdict)
|
||||
/*[clinic end generated code: output=3069b99994f36906 input=d3832b8511fc977b]*/
|
||||
{
|
||||
int err;
|
||||
compobject *self;
|
||||
|
@ -1206,8 +1206,8 @@ The returned checksum is an integer.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
zlib_adler32_impl(PyModuleDef *module, Py_buffer *data, unsigned int value)
|
||||
/*[clinic end generated code: output=51d6d75ee655c78a input=6ff4557872160e88]*/
|
||||
zlib_adler32_impl(PyObject *module, Py_buffer *data, unsigned int value)
|
||||
/*[clinic end generated code: output=422106f5ca8c92c0 input=6ff4557872160e88]*/
|
||||
{
|
||||
/* Releasing the GIL for very small buffers is inefficient
|
||||
and may lower performance */
|
||||
|
@ -1245,8 +1245,8 @@ The returned checksum is an integer.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
zlib_crc32_impl(PyModuleDef *module, Py_buffer *data, unsigned int value)
|
||||
/*[clinic end generated code: output=c1e986e74fe7b623 input=26c3ed430fa00b4c]*/
|
||||
zlib_crc32_impl(PyObject *module, Py_buffer *data, unsigned int value)
|
||||
/*[clinic end generated code: output=63499fa20af7ea25 input=26c3ed430fa00b4c]*/
|
||||
{
|
||||
int signed_val;
|
||||
|
||||
|
|
|
@ -15,10 +15,10 @@ PyDoc_STRVAR(msvcrt_heapmin__doc__,
|
|||
{"heapmin", (PyCFunction)msvcrt_heapmin, METH_NOARGS, msvcrt_heapmin__doc__},
|
||||
|
||||
static PyObject *
|
||||
msvcrt_heapmin_impl(PyModuleDef *module);
|
||||
msvcrt_heapmin_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_heapmin(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
msvcrt_heapmin(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return msvcrt_heapmin_impl(module);
|
||||
}
|
||||
|
@ -40,10 +40,10 @@ PyDoc_STRVAR(msvcrt_locking__doc__,
|
|||
{"locking", (PyCFunction)msvcrt_locking, METH_VARARGS, msvcrt_locking__doc__},
|
||||
|
||||
static PyObject *
|
||||
msvcrt_locking_impl(PyModuleDef *module, int fd, int mode, long nbytes);
|
||||
msvcrt_locking_impl(PyObject *module, int fd, int mode, long nbytes);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_locking(PyModuleDef *module, PyObject *args)
|
||||
msvcrt_locking(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
@ -75,10 +75,10 @@ PyDoc_STRVAR(msvcrt_setmode__doc__,
|
|||
{"setmode", (PyCFunction)msvcrt_setmode, METH_VARARGS, msvcrt_setmode__doc__},
|
||||
|
||||
static long
|
||||
msvcrt_setmode_impl(PyModuleDef *module, int fd, int flags);
|
||||
msvcrt_setmode_impl(PyObject *module, int fd, int flags);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_setmode(PyModuleDef *module, PyObject *args)
|
||||
msvcrt_setmode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
@ -113,11 +113,10 @@ PyDoc_STRVAR(msvcrt_open_osfhandle__doc__,
|
|||
{"open_osfhandle", (PyCFunction)msvcrt_open_osfhandle, METH_VARARGS, msvcrt_open_osfhandle__doc__},
|
||||
|
||||
static long
|
||||
msvcrt_open_osfhandle_impl(PyModuleDef *module, Py_intptr_t handle,
|
||||
int flags);
|
||||
msvcrt_open_osfhandle_impl(PyObject *module, Py_intptr_t handle, int flags);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_open_osfhandle(PyModuleDef *module, PyObject *args)
|
||||
msvcrt_open_osfhandle(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_intptr_t handle;
|
||||
|
@ -150,10 +149,10 @@ PyDoc_STRVAR(msvcrt_get_osfhandle__doc__,
|
|||
{"get_osfhandle", (PyCFunction)msvcrt_get_osfhandle, METH_O, msvcrt_get_osfhandle__doc__},
|
||||
|
||||
static Py_intptr_t
|
||||
msvcrt_get_osfhandle_impl(PyModuleDef *module, int fd);
|
||||
msvcrt_get_osfhandle_impl(PyObject *module, int fd);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_get_osfhandle(PyModuleDef *module, PyObject *arg)
|
||||
msvcrt_get_osfhandle(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
@ -182,10 +181,10 @@ PyDoc_STRVAR(msvcrt_kbhit__doc__,
|
|||
{"kbhit", (PyCFunction)msvcrt_kbhit, METH_NOARGS, msvcrt_kbhit__doc__},
|
||||
|
||||
static long
|
||||
msvcrt_kbhit_impl(PyModuleDef *module);
|
||||
msvcrt_kbhit_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_kbhit(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
msvcrt_kbhit(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
long _return_value;
|
||||
|
@ -216,10 +215,10 @@ PyDoc_STRVAR(msvcrt_getch__doc__,
|
|||
{"getch", (PyCFunction)msvcrt_getch, METH_NOARGS, msvcrt_getch__doc__},
|
||||
|
||||
static int
|
||||
msvcrt_getch_impl(PyModuleDef *module);
|
||||
msvcrt_getch_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_getch(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
msvcrt_getch(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
char s[1];
|
||||
|
@ -240,10 +239,10 @@ PyDoc_STRVAR(msvcrt_getwch__doc__,
|
|||
{"getwch", (PyCFunction)msvcrt_getwch, METH_NOARGS, msvcrt_getwch__doc__},
|
||||
|
||||
static wchar_t
|
||||
msvcrt_getwch_impl(PyModuleDef *module);
|
||||
msvcrt_getwch_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_getwch(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
msvcrt_getwch(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
wchar_t _return_value;
|
||||
|
@ -264,10 +263,10 @@ PyDoc_STRVAR(msvcrt_getche__doc__,
|
|||
{"getche", (PyCFunction)msvcrt_getche, METH_NOARGS, msvcrt_getche__doc__},
|
||||
|
||||
static int
|
||||
msvcrt_getche_impl(PyModuleDef *module);
|
||||
msvcrt_getche_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_getche(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
msvcrt_getche(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
char s[1];
|
||||
|
@ -288,10 +287,10 @@ PyDoc_STRVAR(msvcrt_getwche__doc__,
|
|||
{"getwche", (PyCFunction)msvcrt_getwche, METH_NOARGS, msvcrt_getwche__doc__},
|
||||
|
||||
static wchar_t
|
||||
msvcrt_getwche_impl(PyModuleDef *module);
|
||||
msvcrt_getwche_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_getwche(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
msvcrt_getwche(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
wchar_t _return_value;
|
||||
|
@ -312,10 +311,10 @@ PyDoc_STRVAR(msvcrt_putch__doc__,
|
|||
{"putch", (PyCFunction)msvcrt_putch, METH_O, msvcrt_putch__doc__},
|
||||
|
||||
static PyObject *
|
||||
msvcrt_putch_impl(PyModuleDef *module, char char_value);
|
||||
msvcrt_putch_impl(PyObject *module, char char_value);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_putch(PyModuleDef *module, PyObject *arg)
|
||||
msvcrt_putch(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
char char_value;
|
||||
|
@ -339,10 +338,10 @@ PyDoc_STRVAR(msvcrt_putwch__doc__,
|
|||
{"putwch", (PyCFunction)msvcrt_putwch, METH_O, msvcrt_putwch__doc__},
|
||||
|
||||
static PyObject *
|
||||
msvcrt_putwch_impl(PyModuleDef *module, int unicode_char);
|
||||
msvcrt_putwch_impl(PyObject *module, int unicode_char);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_putwch(PyModuleDef *module, PyObject *arg)
|
||||
msvcrt_putwch(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int unicode_char;
|
||||
|
@ -370,10 +369,10 @@ PyDoc_STRVAR(msvcrt_ungetch__doc__,
|
|||
{"ungetch", (PyCFunction)msvcrt_ungetch, METH_O, msvcrt_ungetch__doc__},
|
||||
|
||||
static PyObject *
|
||||
msvcrt_ungetch_impl(PyModuleDef *module, char char_value);
|
||||
msvcrt_ungetch_impl(PyObject *module, char char_value);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_ungetch(PyModuleDef *module, PyObject *arg)
|
||||
msvcrt_ungetch(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
char char_value;
|
||||
|
@ -397,10 +396,10 @@ PyDoc_STRVAR(msvcrt_ungetwch__doc__,
|
|||
{"ungetwch", (PyCFunction)msvcrt_ungetwch, METH_O, msvcrt_ungetwch__doc__},
|
||||
|
||||
static PyObject *
|
||||
msvcrt_ungetwch_impl(PyModuleDef *module, int unicode_char);
|
||||
msvcrt_ungetwch_impl(PyObject *module, int unicode_char);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_ungetwch(PyModuleDef *module, PyObject *arg)
|
||||
msvcrt_ungetwch(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int unicode_char;
|
||||
|
@ -428,10 +427,10 @@ PyDoc_STRVAR(msvcrt_CrtSetReportFile__doc__,
|
|||
{"CrtSetReportFile", (PyCFunction)msvcrt_CrtSetReportFile, METH_VARARGS, msvcrt_CrtSetReportFile__doc__},
|
||||
|
||||
static long
|
||||
msvcrt_CrtSetReportFile_impl(PyModuleDef *module, int type, int file);
|
||||
msvcrt_CrtSetReportFile_impl(PyObject *module, int type, int file);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_CrtSetReportFile(PyModuleDef *module, PyObject *args)
|
||||
msvcrt_CrtSetReportFile(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int type;
|
||||
|
@ -468,10 +467,10 @@ PyDoc_STRVAR(msvcrt_CrtSetReportMode__doc__,
|
|||
{"CrtSetReportMode", (PyCFunction)msvcrt_CrtSetReportMode, METH_VARARGS, msvcrt_CrtSetReportMode__doc__},
|
||||
|
||||
static long
|
||||
msvcrt_CrtSetReportMode_impl(PyModuleDef *module, int type, int mode);
|
||||
msvcrt_CrtSetReportMode_impl(PyObject *module, int type, int mode);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_CrtSetReportMode(PyModuleDef *module, PyObject *args)
|
||||
msvcrt_CrtSetReportMode(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int type;
|
||||
|
@ -508,10 +507,10 @@ PyDoc_STRVAR(msvcrt_set_error_mode__doc__,
|
|||
{"set_error_mode", (PyCFunction)msvcrt_set_error_mode, METH_O, msvcrt_set_error_mode__doc__},
|
||||
|
||||
static long
|
||||
msvcrt_set_error_mode_impl(PyModuleDef *module, int mode);
|
||||
msvcrt_set_error_mode_impl(PyObject *module, int mode);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_set_error_mode(PyModuleDef *module, PyObject *arg)
|
||||
msvcrt_set_error_mode(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int mode;
|
||||
|
@ -542,10 +541,10 @@ PyDoc_STRVAR(msvcrt_SetErrorMode__doc__,
|
|||
{"SetErrorMode", (PyCFunction)msvcrt_SetErrorMode, METH_O, msvcrt_SetErrorMode__doc__},
|
||||
|
||||
static PyObject *
|
||||
msvcrt_SetErrorMode_impl(PyModuleDef *module, unsigned int mode);
|
||||
msvcrt_SetErrorMode_impl(PyObject *module, unsigned int mode);
|
||||
|
||||
static PyObject *
|
||||
msvcrt_SetErrorMode(PyModuleDef *module, PyObject *arg)
|
||||
msvcrt_SetErrorMode(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
unsigned int mode;
|
||||
|
@ -570,4 +569,4 @@ exit:
|
|||
#ifndef MSVCRT_SET_ERROR_MODE_METHODDEF
|
||||
#define MSVCRT_SET_ERROR_MODE_METHODDEF
|
||||
#endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */
|
||||
/*[clinic end generated code: output=636de3460aecbca7 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=ece8106c0592ff1f input=a9049054013a1b77]*/
|
||||
|
|
|
@ -136,11 +136,11 @@ PyDoc_STRVAR(winreg_ConnectRegistry__doc__,
|
|||
{"ConnectRegistry", (PyCFunction)winreg_ConnectRegistry, METH_VARARGS, winreg_ConnectRegistry__doc__},
|
||||
|
||||
static HKEY
|
||||
winreg_ConnectRegistry_impl(PyModuleDef *module, Py_UNICODE *computer_name,
|
||||
winreg_ConnectRegistry_impl(PyObject *module, Py_UNICODE *computer_name,
|
||||
HKEY key);
|
||||
|
||||
static PyObject *
|
||||
winreg_ConnectRegistry(PyModuleDef *module, PyObject *args)
|
||||
winreg_ConnectRegistry(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_UNICODE *computer_name;
|
||||
|
@ -184,10 +184,10 @@ PyDoc_STRVAR(winreg_CreateKey__doc__,
|
|||
{"CreateKey", (PyCFunction)winreg_CreateKey, METH_VARARGS, winreg_CreateKey__doc__},
|
||||
|
||||
static HKEY
|
||||
winreg_CreateKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key);
|
||||
winreg_CreateKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
||||
|
||||
static PyObject *
|
||||
winreg_CreateKey(PyModuleDef *module, PyObject *args)
|
||||
winreg_CreateKey(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -237,11 +237,11 @@ PyDoc_STRVAR(winreg_CreateKeyEx__doc__,
|
|||
{"CreateKeyEx", (PyCFunction)winreg_CreateKeyEx, METH_VARARGS|METH_KEYWORDS, winreg_CreateKeyEx__doc__},
|
||||
|
||||
static HKEY
|
||||
winreg_CreateKeyEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_CreateKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
int reserved, REGSAM access);
|
||||
|
||||
static PyObject *
|
||||
winreg_CreateKeyEx(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
winreg_CreateKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"key", "sub_key", "reserved", "access", NULL};
|
||||
|
@ -287,10 +287,10 @@ PyDoc_STRVAR(winreg_DeleteKey__doc__,
|
|||
{"DeleteKey", (PyCFunction)winreg_DeleteKey, METH_VARARGS, winreg_DeleteKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key);
|
||||
winreg_DeleteKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteKey(PyModuleDef *module, PyObject *args)
|
||||
winreg_DeleteKey(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -335,11 +335,11 @@ PyDoc_STRVAR(winreg_DeleteKeyEx__doc__,
|
|||
{"DeleteKeyEx", (PyCFunction)winreg_DeleteKeyEx, METH_VARARGS|METH_KEYWORDS, winreg_DeleteKeyEx__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteKeyEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_DeleteKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
REGSAM access, int reserved);
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteKeyEx(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
winreg_DeleteKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"key", "sub_key", "access", "reserved", NULL};
|
||||
|
@ -373,10 +373,10 @@ PyDoc_STRVAR(winreg_DeleteValue__doc__,
|
|||
{"DeleteValue", (PyCFunction)winreg_DeleteValue, METH_VARARGS, winreg_DeleteValue__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteValue_impl(PyModuleDef *module, HKEY key, Py_UNICODE *value);
|
||||
winreg_DeleteValue_impl(PyObject *module, HKEY key, Py_UNICODE *value);
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteValue(PyModuleDef *module, PyObject *args)
|
||||
winreg_DeleteValue(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -411,10 +411,10 @@ PyDoc_STRVAR(winreg_EnumKey__doc__,
|
|||
{"EnumKey", (PyCFunction)winreg_EnumKey, METH_VARARGS, winreg_EnumKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_EnumKey_impl(PyModuleDef *module, HKEY key, int index);
|
||||
winreg_EnumKey_impl(PyObject *module, HKEY key, int index);
|
||||
|
||||
static PyObject *
|
||||
winreg_EnumKey(PyModuleDef *module, PyObject *args)
|
||||
winreg_EnumKey(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -458,10 +458,10 @@ PyDoc_STRVAR(winreg_EnumValue__doc__,
|
|||
{"EnumValue", (PyCFunction)winreg_EnumValue, METH_VARARGS, winreg_EnumValue__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_EnumValue_impl(PyModuleDef *module, HKEY key, int index);
|
||||
winreg_EnumValue_impl(PyObject *module, HKEY key, int index);
|
||||
|
||||
static PyObject *
|
||||
winreg_EnumValue(PyModuleDef *module, PyObject *args)
|
||||
winreg_EnumValue(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -487,10 +487,10 @@ PyDoc_STRVAR(winreg_ExpandEnvironmentStrings__doc__,
|
|||
{"ExpandEnvironmentStrings", (PyCFunction)winreg_ExpandEnvironmentStrings, METH_O, winreg_ExpandEnvironmentStrings__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_ExpandEnvironmentStrings_impl(PyModuleDef *module, Py_UNICODE *string);
|
||||
winreg_ExpandEnvironmentStrings_impl(PyObject *module, Py_UNICODE *string);
|
||||
|
||||
static PyObject *
|
||||
winreg_ExpandEnvironmentStrings(PyModuleDef *module, PyObject *arg)
|
||||
winreg_ExpandEnvironmentStrings(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_UNICODE *string;
|
||||
|
@ -527,10 +527,10 @@ PyDoc_STRVAR(winreg_FlushKey__doc__,
|
|||
{"FlushKey", (PyCFunction)winreg_FlushKey, METH_O, winreg_FlushKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_FlushKey_impl(PyModuleDef *module, HKEY key);
|
||||
winreg_FlushKey_impl(PyObject *module, HKEY key);
|
||||
|
||||
static PyObject *
|
||||
winreg_FlushKey(PyModuleDef *module, PyObject *arg)
|
||||
winreg_FlushKey(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -576,11 +576,11 @@ PyDoc_STRVAR(winreg_LoadKey__doc__,
|
|||
{"LoadKey", (PyCFunction)winreg_LoadKey, METH_VARARGS, winreg_LoadKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_LoadKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_LoadKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
Py_UNICODE *file_name);
|
||||
|
||||
static PyObject *
|
||||
winreg_LoadKey(PyModuleDef *module, PyObject *args)
|
||||
winreg_LoadKey(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -620,11 +620,11 @@ PyDoc_STRVAR(winreg_OpenKey__doc__,
|
|||
{"OpenKey", (PyCFunction)winreg_OpenKey, METH_VARARGS|METH_KEYWORDS, winreg_OpenKey__doc__},
|
||||
|
||||
static HKEY
|
||||
winreg_OpenKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_OpenKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
int reserved, REGSAM access);
|
||||
|
||||
static PyObject *
|
||||
winreg_OpenKey(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
winreg_OpenKey(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"key", "sub_key", "reserved", "access", NULL};
|
||||
|
@ -671,11 +671,11 @@ PyDoc_STRVAR(winreg_OpenKeyEx__doc__,
|
|||
{"OpenKeyEx", (PyCFunction)winreg_OpenKeyEx, METH_VARARGS|METH_KEYWORDS, winreg_OpenKeyEx__doc__},
|
||||
|
||||
static HKEY
|
||||
winreg_OpenKeyEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_OpenKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
int reserved, REGSAM access);
|
||||
|
||||
static PyObject *
|
||||
winreg_OpenKeyEx(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
winreg_OpenKeyEx(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"key", "sub_key", "reserved", "access", NULL};
|
||||
|
@ -718,10 +718,10 @@ PyDoc_STRVAR(winreg_QueryInfoKey__doc__,
|
|||
{"QueryInfoKey", (PyCFunction)winreg_QueryInfoKey, METH_O, winreg_QueryInfoKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryInfoKey_impl(PyModuleDef *module, HKEY key);
|
||||
winreg_QueryInfoKey_impl(PyObject *module, HKEY key);
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryInfoKey(PyModuleDef *module, PyObject *arg)
|
||||
winreg_QueryInfoKey(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -759,10 +759,10 @@ PyDoc_STRVAR(winreg_QueryValue__doc__,
|
|||
{"QueryValue", (PyCFunction)winreg_QueryValue, METH_VARARGS, winreg_QueryValue__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryValue_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key);
|
||||
winreg_QueryValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key);
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryValue(PyModuleDef *module, PyObject *args)
|
||||
winreg_QueryValue(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -798,10 +798,10 @@ PyDoc_STRVAR(winreg_QueryValueEx__doc__,
|
|||
{"QueryValueEx", (PyCFunction)winreg_QueryValueEx, METH_VARARGS, winreg_QueryValueEx__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryValueEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *name);
|
||||
winreg_QueryValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *name);
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryValueEx(PyModuleDef *module, PyObject *args)
|
||||
winreg_QueryValueEx(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -842,10 +842,10 @@ PyDoc_STRVAR(winreg_SaveKey__doc__,
|
|||
{"SaveKey", (PyCFunction)winreg_SaveKey, METH_VARARGS, winreg_SaveKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_SaveKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *file_name);
|
||||
winreg_SaveKey_impl(PyObject *module, HKEY key, Py_UNICODE *file_name);
|
||||
|
||||
static PyObject *
|
||||
winreg_SaveKey(PyModuleDef *module, PyObject *args)
|
||||
winreg_SaveKey(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -891,12 +891,12 @@ PyDoc_STRVAR(winreg_SetValue__doc__,
|
|||
{"SetValue", (PyCFunction)winreg_SetValue, METH_VARARGS, winreg_SetValue__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_SetValue_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_SetValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
DWORD type, Py_UNICODE *value,
|
||||
Py_ssize_clean_t value_length);
|
||||
|
||||
static PyObject *
|
||||
winreg_SetValue(PyModuleDef *module, PyObject *args)
|
||||
winreg_SetValue(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -962,11 +962,11 @@ PyDoc_STRVAR(winreg_SetValueEx__doc__,
|
|||
{"SetValueEx", (PyCFunction)winreg_SetValueEx, METH_VARARGS, winreg_SetValueEx__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_SetValueEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *value_name,
|
||||
winreg_SetValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *value_name,
|
||||
PyObject *reserved, DWORD type, PyObject *value);
|
||||
|
||||
static PyObject *
|
||||
winreg_SetValueEx(PyModuleDef *module, PyObject *args)
|
||||
winreg_SetValueEx(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -1004,10 +1004,10 @@ PyDoc_STRVAR(winreg_DisableReflectionKey__doc__,
|
|||
{"DisableReflectionKey", (PyCFunction)winreg_DisableReflectionKey, METH_O, winreg_DisableReflectionKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_DisableReflectionKey_impl(PyModuleDef *module, HKEY key);
|
||||
winreg_DisableReflectionKey_impl(PyObject *module, HKEY key);
|
||||
|
||||
static PyObject *
|
||||
winreg_DisableReflectionKey(PyModuleDef *module, PyObject *arg)
|
||||
winreg_DisableReflectionKey(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -1038,10 +1038,10 @@ PyDoc_STRVAR(winreg_EnableReflectionKey__doc__,
|
|||
{"EnableReflectionKey", (PyCFunction)winreg_EnableReflectionKey, METH_O, winreg_EnableReflectionKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_EnableReflectionKey_impl(PyModuleDef *module, HKEY key);
|
||||
winreg_EnableReflectionKey_impl(PyObject *module, HKEY key);
|
||||
|
||||
static PyObject *
|
||||
winreg_EnableReflectionKey(PyModuleDef *module, PyObject *arg)
|
||||
winreg_EnableReflectionKey(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -1070,10 +1070,10 @@ PyDoc_STRVAR(winreg_QueryReflectionKey__doc__,
|
|||
{"QueryReflectionKey", (PyCFunction)winreg_QueryReflectionKey, METH_O, winreg_QueryReflectionKey__doc__},
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryReflectionKey_impl(PyModuleDef *module, HKEY key);
|
||||
winreg_QueryReflectionKey_impl(PyObject *module, HKEY key);
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryReflectionKey(PyModuleDef *module, PyObject *arg)
|
||||
winreg_QueryReflectionKey(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
HKEY key;
|
||||
|
@ -1086,4 +1086,4 @@ winreg_QueryReflectionKey(PyModuleDef *module, PyObject *arg)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=ca128bfa212d8d1f input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=c35ce71f825424d1 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -17,10 +17,10 @@ PyDoc_STRVAR(winsound_PlaySound__doc__,
|
|||
{"PlaySound", (PyCFunction)winsound_PlaySound, METH_VARARGS, winsound_PlaySound__doc__},
|
||||
|
||||
static PyObject *
|
||||
winsound_PlaySound_impl(PyModuleDef *module, Py_UNICODE *sound, int flags);
|
||||
winsound_PlaySound_impl(PyObject *module, Py_UNICODE *sound, int flags);
|
||||
|
||||
static PyObject *
|
||||
winsound_PlaySound(PyModuleDef *module, PyObject *args)
|
||||
winsound_PlaySound(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
Py_UNICODE *sound;
|
||||
|
@ -52,10 +52,10 @@ PyDoc_STRVAR(winsound_Beep__doc__,
|
|||
{"Beep", (PyCFunction)winsound_Beep, METH_VARARGS, winsound_Beep__doc__},
|
||||
|
||||
static PyObject *
|
||||
winsound_Beep_impl(PyModuleDef *module, int frequency, int duration);
|
||||
winsound_Beep_impl(PyObject *module, int frequency, int duration);
|
||||
|
||||
static PyObject *
|
||||
winsound_Beep(PyModuleDef *module, PyObject *args)
|
||||
winsound_Beep(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int frequency;
|
||||
|
@ -83,10 +83,10 @@ PyDoc_STRVAR(winsound_MessageBeep__doc__,
|
|||
{"MessageBeep", (PyCFunction)winsound_MessageBeep, METH_VARARGS, winsound_MessageBeep__doc__},
|
||||
|
||||
static PyObject *
|
||||
winsound_MessageBeep_impl(PyModuleDef *module, int x);
|
||||
winsound_MessageBeep_impl(PyObject *module, int x);
|
||||
|
||||
static PyObject *
|
||||
winsound_MessageBeep(PyModuleDef *module, PyObject *args)
|
||||
winsound_MessageBeep(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int x = MB_OK;
|
||||
|
@ -100,4 +100,4 @@ winsound_MessageBeep(PyModuleDef *module, PyObject *args)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=a5f53e42d4396bb4 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=1044b2adf3c67014 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -78,8 +78,8 @@ to the operating system. On failure, this raises OSError.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
msvcrt_heapmin_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=464f866feb57c436 input=82e1771d21bde2d8]*/
|
||||
msvcrt_heapmin_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=1ba00f344782dc19 input=82e1771d21bde2d8]*/
|
||||
{
|
||||
if (_heapmin() != 0)
|
||||
return PyErr_SetFromErrno(PyExc_IOError);
|
||||
|
@ -105,8 +105,8 @@ individually.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
msvcrt_locking_impl(PyModuleDef *module, int fd, int mode, long nbytes)
|
||||
/*[clinic end generated code: output=dff41e5e76d544de input=d9f13f0f6a713ba7]*/
|
||||
msvcrt_locking_impl(PyObject *module, int fd, int mode, long nbytes)
|
||||
/*[clinic end generated code: output=a4a90deca9785a03 input=d9f13f0f6a713ba7]*/
|
||||
{
|
||||
int err;
|
||||
|
||||
|
@ -135,8 +135,8 @@ Return value is the previous mode.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
msvcrt_setmode_impl(PyModuleDef *module, int fd, int flags)
|
||||
/*[clinic end generated code: output=8c84e5b37c586d0d input=76e7c01f6b137f75]*/
|
||||
msvcrt_setmode_impl(PyObject *module, int fd, int flags)
|
||||
/*[clinic end generated code: output=24a9be5ea07ccb9b input=76e7c01f6b137f75]*/
|
||||
{
|
||||
flags = _setmode(fd, flags);
|
||||
if (flags == -1)
|
||||
|
@ -160,9 +160,8 @@ to os.fdopen() to create a file object.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
msvcrt_open_osfhandle_impl(PyModuleDef *module, Py_intptr_t handle,
|
||||
int flags)
|
||||
/*[clinic end generated code: output=86bce32582c49c06 input=4d8516ed32db8f65]*/
|
||||
msvcrt_open_osfhandle_impl(PyObject *module, Py_intptr_t handle, int flags)
|
||||
/*[clinic end generated code: output=bf65e422243a39f9 input=4d8516ed32db8f65]*/
|
||||
{
|
||||
int fd;
|
||||
|
||||
|
@ -185,8 +184,8 @@ Raises IOError if fd is not recognized.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static Py_intptr_t
|
||||
msvcrt_get_osfhandle_impl(PyModuleDef *module, int fd)
|
||||
/*[clinic end generated code: output=376bff52586b55a6 input=c7d18d02c8017ec1]*/
|
||||
msvcrt_get_osfhandle_impl(PyObject *module, int fd)
|
||||
/*[clinic end generated code: output=eac47643338c0baa input=c7d18d02c8017ec1]*/
|
||||
{
|
||||
Py_intptr_t handle = -1;
|
||||
|
||||
|
@ -212,8 +211,8 @@ Return true if a keypress is waiting to be read.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
msvcrt_kbhit_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=2b7293fcbe5cb24e input=e70d678a5c2f6acc]*/
|
||||
msvcrt_kbhit_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=940dfce6587c1890 input=e70d678a5c2f6acc]*/
|
||||
{
|
||||
return _kbhit();
|
||||
}
|
||||
|
@ -231,8 +230,8 @@ cannot be read with this function.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
msvcrt_getch_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=199e3d89f49c166a input=37a40cf0ed0d1153]*/
|
||||
msvcrt_getch_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=a4e51f0565064a7d input=37a40cf0ed0d1153]*/
|
||||
{
|
||||
int ch;
|
||||
|
||||
|
@ -249,8 +248,8 @@ Wide char variant of getch(), returning a Unicode value.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static wchar_t
|
||||
msvcrt_getwch_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=9d3762861328b1fe input=27b3dec8ad823d7c]*/
|
||||
msvcrt_getwch_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=be9937494e22f007 input=27b3dec8ad823d7c]*/
|
||||
{
|
||||
wchar_t ch;
|
||||
|
||||
|
@ -267,8 +266,8 @@ Similar to getch(), but the keypress will be echoed if possible.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
msvcrt_getche_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=8aa369be6550068e input=43311ade9ed4a9c0]*/
|
||||
msvcrt_getche_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=d8f7db4fd2990401 input=43311ade9ed4a9c0]*/
|
||||
{
|
||||
int ch;
|
||||
|
||||
|
@ -285,8 +284,8 @@ Wide char variant of getche(), returning a Unicode value.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static wchar_t
|
||||
msvcrt_getwche_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=3693cf78e3ea0cf6 input=49337d59d1a591f8]*/
|
||||
msvcrt_getwche_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=d0dae5ba3829d596 input=49337d59d1a591f8]*/
|
||||
{
|
||||
wchar_t ch;
|
||||
|
||||
|
@ -306,8 +305,8 @@ Print the byte string char to the console without buffering.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
msvcrt_putch_impl(PyModuleDef *module, char char_value)
|
||||
/*[clinic end generated code: output=c05548b11554f36f input=ec078dd10cb054d6]*/
|
||||
msvcrt_putch_impl(PyObject *module, char char_value)
|
||||
/*[clinic end generated code: output=92ec9b81012d8f60 input=ec078dd10cb054d6]*/
|
||||
{
|
||||
_putch(char_value);
|
||||
Py_RETURN_NONE;
|
||||
|
@ -323,8 +322,8 @@ Wide char variant of putch(), accepting a Unicode value.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
msvcrt_putwch_impl(PyModuleDef *module, int unicode_char)
|
||||
/*[clinic end generated code: output=c216a73694ca73dd input=996ccd0bbcbac4c3]*/
|
||||
msvcrt_putwch_impl(PyObject *module, int unicode_char)
|
||||
/*[clinic end generated code: output=a3bd1a8951d28eee input=996ccd0bbcbac4c3]*/
|
||||
{
|
||||
_putwch(unicode_char);
|
||||
Py_RETURN_NONE;
|
||||
|
@ -345,8 +344,8 @@ getch() or getche().
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
msvcrt_ungetch_impl(PyModuleDef *module, char char_value)
|
||||
/*[clinic end generated code: output=19a4cd3249709ec9 input=22f07ee9001bbf0f]*/
|
||||
msvcrt_ungetch_impl(PyObject *module, char char_value)
|
||||
/*[clinic end generated code: output=c6942a0efa119000 input=22f07ee9001bbf0f]*/
|
||||
{
|
||||
if (_ungetch(char_value) == EOF)
|
||||
return PyErr_SetFromErrno(PyExc_IOError);
|
||||
|
@ -363,8 +362,8 @@ Wide char variant of ungetch(), accepting a Unicode value.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
msvcrt_ungetwch_impl(PyModuleDef *module, int unicode_char)
|
||||
/*[clinic end generated code: output=1ee7674710322bd1 input=83ec0492be04d564]*/
|
||||
msvcrt_ungetwch_impl(PyObject *module, int unicode_char)
|
||||
/*[clinic end generated code: output=e63af05438b8ba3d input=83ec0492be04d564]*/
|
||||
{
|
||||
if (_ungetwch(unicode_char) == WEOF)
|
||||
return PyErr_SetFromErrno(PyExc_IOError);
|
||||
|
@ -385,8 +384,8 @@ Only available on Debug builds.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
msvcrt_CrtSetReportFile_impl(PyModuleDef *module, int type, int file)
|
||||
/*[clinic end generated code: output=8c3644fb2edfa808 input=bb8f721a604fcc45]*/
|
||||
msvcrt_CrtSetReportFile_impl(PyObject *module, int type, int file)
|
||||
/*[clinic end generated code: output=df291c7fe032eb68 input=bb8f721a604fcc45]*/
|
||||
{
|
||||
return (long)_CrtSetReportFile(type, (_HFILE)file);
|
||||
}
|
||||
|
@ -404,8 +403,8 @@ Only available on Debug builds.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
msvcrt_CrtSetReportMode_impl(PyModuleDef *module, int type, int mode)
|
||||
/*[clinic end generated code: output=b407fbf8716a52b9 input=9319d29b4319426b]*/
|
||||
msvcrt_CrtSetReportMode_impl(PyObject *module, int type, int mode)
|
||||
/*[clinic end generated code: output=b2863761523de317 input=9319d29b4319426b]*/
|
||||
{
|
||||
int res;
|
||||
|
||||
|
@ -427,8 +426,8 @@ Only available on Debug builds.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
msvcrt_set_error_mode_impl(PyModuleDef *module, int mode)
|
||||
/*[clinic end generated code: output=62148adffa90867d input=046fca59c0f20872]*/
|
||||
msvcrt_set_error_mode_impl(PyObject *module, int mode)
|
||||
/*[clinic end generated code: output=ac4a09040d8ac4e3 input=046fca59c0f20872]*/
|
||||
{
|
||||
return _set_error_mode(mode);
|
||||
}
|
||||
|
@ -444,8 +443,8 @@ Wrapper around SetErrorMode.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
msvcrt_SetErrorMode_impl(PyModuleDef *module, unsigned int mode)
|
||||
/*[clinic end generated code: output=544c60b085be79c6 input=d8b167258d32d907]*/
|
||||
msvcrt_SetErrorMode_impl(PyObject *module, unsigned int mode)
|
||||
/*[clinic end generated code: output=01d529293f00da8f input=d8b167258d32d907]*/
|
||||
{
|
||||
unsigned int res;
|
||||
|
||||
|
|
92
PC/winreg.c
92
PC/winreg.c
|
@ -798,8 +798,8 @@ closed when the hkey object is destroyed by Python.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_CloseKey(PyModuleDef *module, PyObject *hkey)
|
||||
/*[clinic end generated code: output=d96f73439403a064 input=5b1aac65ba5127ad]*/
|
||||
winreg_CloseKey(PyObject *module, PyObject *hkey)
|
||||
/*[clinic end generated code: output=a4fa537019a80d15 input=5b1aac65ba5127ad]*/
|
||||
{
|
||||
if (!PyHKEY_Close(hkey))
|
||||
return NULL;
|
||||
|
@ -823,9 +823,9 @@ If the function fails, an OSError exception is raised.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HKEY
|
||||
winreg_ConnectRegistry_impl(PyModuleDef *module, Py_UNICODE *computer_name,
|
||||
winreg_ConnectRegistry_impl(PyObject *module, Py_UNICODE *computer_name,
|
||||
HKEY key)
|
||||
/*[clinic end generated code: output=5c52f6f7ba6e7b46 input=5f98a891a347e68e]*/
|
||||
/*[clinic end generated code: output=5ab79d02aa3167b4 input=5f98a891a347e68e]*/
|
||||
{
|
||||
HKEY retKey;
|
||||
long rc;
|
||||
|
@ -860,8 +860,8 @@ If the function fails, an OSError exception is raised.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HKEY
|
||||
winreg_CreateKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key)
|
||||
/*[clinic end generated code: output=cd6843f30a73fc0e input=3cdd1622488acea2]*/
|
||||
winreg_CreateKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key)
|
||||
/*[clinic end generated code: output=9c81d4095527c927 input=3cdd1622488acea2]*/
|
||||
{
|
||||
HKEY retKey;
|
||||
long rc;
|
||||
|
@ -899,9 +899,9 @@ If the function fails, an OSError exception is raised.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HKEY
|
||||
winreg_CreateKeyEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_CreateKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
int reserved, REGSAM access)
|
||||
/*[clinic end generated code: output=db835d5be84e72b2 input=42c2b03f98406b66]*/
|
||||
/*[clinic end generated code: output=b9fce6dc5c4e39b1 input=42c2b03f98406b66]*/
|
||||
{
|
||||
HKEY retKey;
|
||||
long rc;
|
||||
|
@ -934,8 +934,8 @@ is removed. If the function fails, an OSError exception is raised.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key)
|
||||
/*[clinic end generated code: output=875c8917dacbc99d input=b31d225b935e4211]*/
|
||||
winreg_DeleteKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key)
|
||||
/*[clinic end generated code: output=7734b1e431991ae4 input=b31d225b935e4211]*/
|
||||
{
|
||||
long rc;
|
||||
rc = RegDeleteKeyW(key, sub_key );
|
||||
|
@ -969,9 +969,9 @@ On unsupported Windows versions, NotImplementedError is raised.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteKeyEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_DeleteKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
REGSAM access, int reserved)
|
||||
/*[clinic end generated code: output=0362a0ac6502379f input=711d9d89e7ecbed7]*/
|
||||
/*[clinic end generated code: output=01378d86ad3eb936 input=711d9d89e7ecbed7]*/
|
||||
{
|
||||
HMODULE hMod;
|
||||
typedef LONG (WINAPI *RDKEFunc)(HKEY, const wchar_t*, REGSAM, int);
|
||||
|
@ -1011,8 +1011,8 @@ Removes a named value from a registry key.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_DeleteValue_impl(PyModuleDef *module, HKEY key, Py_UNICODE *value)
|
||||
/*[clinic end generated code: output=308550b8cdcfd8e1 input=a78d3407a4197b21]*/
|
||||
winreg_DeleteValue_impl(PyObject *module, HKEY key, Py_UNICODE *value)
|
||||
/*[clinic end generated code: output=67e7e9a514f84951 input=a78d3407a4197b21]*/
|
||||
{
|
||||
long rc;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
|
@ -1041,8 +1041,8 @@ raised, indicating no more values are available.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_EnumKey_impl(PyModuleDef *module, HKEY key, int index)
|
||||
/*[clinic end generated code: output=58074ffabbc67896 input=fad9a7c00ab0e04b]*/
|
||||
winreg_EnumKey_impl(PyObject *module, HKEY key, int index)
|
||||
/*[clinic end generated code: output=25a6ec52cd147bc4 input=fad9a7c00ab0e04b]*/
|
||||
{
|
||||
long rc;
|
||||
PyObject *retStr;
|
||||
|
@ -1092,8 +1092,8 @@ The result is a tuple of 3 items:
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_EnumValue_impl(PyModuleDef *module, HKEY key, int index)
|
||||
/*[clinic end generated code: output=4570367ebaf0e979 input=4414f47a6fb238b5]*/
|
||||
winreg_EnumValue_impl(PyObject *module, HKEY key, int index)
|
||||
/*[clinic end generated code: output=d363b5a06f8789ac input=4414f47a6fb238b5]*/
|
||||
{
|
||||
long rc;
|
||||
wchar_t *retValueBuf;
|
||||
|
@ -1179,8 +1179,8 @@ Expand environment vars.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_ExpandEnvironmentStrings_impl(PyModuleDef *module, Py_UNICODE *string)
|
||||
/*[clinic end generated code: output=4cb6914065a8663c input=b2a9714d2b751aa6]*/
|
||||
winreg_ExpandEnvironmentStrings_impl(PyObject *module, Py_UNICODE *string)
|
||||
/*[clinic end generated code: output=cba46ac293a8af1a input=b2a9714d2b751aa6]*/
|
||||
{
|
||||
wchar_t *retValue = NULL;
|
||||
DWORD retValueSize;
|
||||
|
@ -1229,8 +1229,8 @@ a FlushKey() call is required, it probably isn't.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_FlushKey_impl(PyModuleDef *module, HKEY key)
|
||||
/*[clinic end generated code: output=b9a7a6e405466420 input=f57457c12297d82f]*/
|
||||
winreg_FlushKey_impl(PyObject *module, HKEY key)
|
||||
/*[clinic end generated code: output=e6fc230d4c5dc049 input=f57457c12297d82f]*/
|
||||
{
|
||||
long rc;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
|
@ -1272,9 +1272,9 @@ tree.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_LoadKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_LoadKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
Py_UNICODE *file_name)
|
||||
/*[clinic end generated code: output=b8b700e39c695b90 input=e3b5b45ade311582]*/
|
||||
/*[clinic end generated code: output=87344005c5905cde input=e3b5b45ade311582]*/
|
||||
{
|
||||
long rc;
|
||||
|
||||
|
@ -1306,9 +1306,9 @@ If the function fails, an OSError exception is raised.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HKEY
|
||||
winreg_OpenKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_OpenKey_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
int reserved, REGSAM access)
|
||||
/*[clinic end generated code: output=79818ea356490a55 input=098505ac36a9ae28]*/
|
||||
/*[clinic end generated code: output=a905f1b947f3ce85 input=098505ac36a9ae28]*/
|
||||
{
|
||||
HKEY retKey;
|
||||
long rc;
|
||||
|
@ -1333,9 +1333,9 @@ If the function fails, an OSError exception is raised.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static HKEY
|
||||
winreg_OpenKeyEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_OpenKeyEx_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
int reserved, REGSAM access)
|
||||
/*[clinic end generated code: output=2dd9f29e84ea2dbc input=c6c4972af8622959]*/
|
||||
/*[clinic end generated code: output=226042593b37e940 input=c6c4972af8622959]*/
|
||||
{
|
||||
return winreg_OpenKey_impl(module, key, sub_key, reserved, access);
|
||||
}
|
||||
|
@ -1357,8 +1357,8 @@ as 100's of nanoseconds since Jan 1, 1600.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryInfoKey_impl(PyModuleDef *module, HKEY key)
|
||||
/*[clinic end generated code: output=ae885222fe966a34 input=c3593802390cde1f]*/
|
||||
winreg_QueryInfoKey_impl(PyObject *module, HKEY key)
|
||||
/*[clinic end generated code: output=dc657b8356a4f438 input=c3593802390cde1f]*/
|
||||
{
|
||||
long rc;
|
||||
DWORD nSubKeys, nValues;
|
||||
|
@ -1403,8 +1403,8 @@ completeness.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryValue_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key)
|
||||
/*[clinic end generated code: output=f91cb6f623c3b65a input=41cafbbf423b21d6]*/
|
||||
winreg_QueryValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key)
|
||||
/*[clinic end generated code: output=2bb8d1e02c10d0b6 input=41cafbbf423b21d6]*/
|
||||
{
|
||||
long rc;
|
||||
PyObject *retStr;
|
||||
|
@ -1470,8 +1470,8 @@ The return value is a tuple of the value and the type_id.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryValueEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *name)
|
||||
/*[clinic end generated code: output=a4b07f7807194f23 input=cf366cada4836891]*/
|
||||
winreg_QueryValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *name)
|
||||
/*[clinic end generated code: output=5b4fa3e33d6d3e8f input=cf366cada4836891]*/
|
||||
{
|
||||
long rc;
|
||||
BYTE *retBuf, *tmp;
|
||||
|
@ -1543,8 +1543,8 @@ to the API.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_SaveKey_impl(PyModuleDef *module, HKEY key, Py_UNICODE *file_name)
|
||||
/*[clinic end generated code: output=33109b96bfabef8f input=da735241f91ac7a2]*/
|
||||
winreg_SaveKey_impl(PyObject *module, HKEY key, Py_UNICODE *file_name)
|
||||
/*[clinic end generated code: output=1dda1502bd4c30d8 input=da735241f91ac7a2]*/
|
||||
{
|
||||
LPSECURITY_ATTRIBUTES pSA = NULL;
|
||||
|
||||
|
@ -1589,10 +1589,10 @@ KEY_SET_VALUE access.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_SetValue_impl(PyModuleDef *module, HKEY key, Py_UNICODE *sub_key,
|
||||
winreg_SetValue_impl(PyObject *module, HKEY key, Py_UNICODE *sub_key,
|
||||
DWORD type, Py_UNICODE *value,
|
||||
Py_ssize_clean_t value_length)
|
||||
/*[clinic end generated code: output=3c9c7c2769e8f953 input=2cd2adab79339c53]*/
|
||||
/*[clinic end generated code: output=1e31931174820631 input=2cd2adab79339c53]*/
|
||||
{
|
||||
long rc;
|
||||
|
||||
|
@ -1655,9 +1655,9 @@ the configuration registry to help the registry perform efficiently.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_SetValueEx_impl(PyModuleDef *module, HKEY key, Py_UNICODE *value_name,
|
||||
winreg_SetValueEx_impl(PyObject *module, HKEY key, Py_UNICODE *value_name,
|
||||
PyObject *reserved, DWORD type, PyObject *value)
|
||||
/*[clinic end generated code: output=ea092a935c361582 input=900a9e3990bfb196]*/
|
||||
/*[clinic end generated code: output=c88c8426b6c00ec7 input=900a9e3990bfb196]*/
|
||||
{
|
||||
BYTE *data;
|
||||
DWORD len;
|
||||
|
@ -1698,8 +1698,8 @@ of any subkeys.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_DisableReflectionKey_impl(PyModuleDef *module, HKEY key)
|
||||
/*[clinic end generated code: output=50fe6e2604324cdd input=a6c9e5ca5410193c]*/
|
||||
winreg_DisableReflectionKey_impl(PyObject *module, HKEY key)
|
||||
/*[clinic end generated code: output=830cce504cc764b4 input=a6c9e5ca5410193c]*/
|
||||
{
|
||||
HMODULE hMod;
|
||||
typedef LONG (WINAPI *RDRKFunc)(HKEY);
|
||||
|
@ -1741,8 +1741,8 @@ subkeys.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_EnableReflectionKey_impl(PyModuleDef *module, HKEY key)
|
||||
/*[clinic end generated code: output=e3f23edb414f24a4 input=7748abbacd1e166a]*/
|
||||
winreg_EnableReflectionKey_impl(PyObject *module, HKEY key)
|
||||
/*[clinic end generated code: output=86fa1385fdd9ce57 input=7748abbacd1e166a]*/
|
||||
{
|
||||
HMODULE hMod;
|
||||
typedef LONG (WINAPI *RERKFunc)(HKEY);
|
||||
|
@ -1782,8 +1782,8 @@ Will generally raise NotImplemented if executed on a 32bit OS.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winreg_QueryReflectionKey_impl(PyModuleDef *module, HKEY key)
|
||||
/*[clinic end generated code: output=2a49c564ca162e50 input=9f325eacb5a65d88]*/
|
||||
winreg_QueryReflectionKey_impl(PyObject *module, HKEY key)
|
||||
/*[clinic end generated code: output=4e774af288c3ebb9 input=9f325eacb5a65d88]*/
|
||||
{
|
||||
HMODULE hMod;
|
||||
typedef LONG (WINAPI *RQRKFunc)(HKEY, BOOL *);
|
||||
|
|
|
@ -74,8 +74,8 @@ A wrapper around the Windows PlaySound API.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winsound_PlaySound_impl(PyModuleDef *module, Py_UNICODE *sound, int flags)
|
||||
/*[clinic end generated code: output=614273784bf59e5c input=3411b1b7c1f36d93]*/
|
||||
winsound_PlaySound_impl(PyObject *module, Py_UNICODE *sound, int flags)
|
||||
/*[clinic end generated code: output=ec24b3a2b4368378 input=3411b1b7c1f36d93]*/
|
||||
{
|
||||
int ok;
|
||||
|
||||
|
@ -111,8 +111,8 @@ A wrapper around the Windows Beep API.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winsound_Beep_impl(PyModuleDef *module, int frequency, int duration)
|
||||
/*[clinic end generated code: output=c75f282035a872bd input=628a99d2ddf73798]*/
|
||||
winsound_Beep_impl(PyObject *module, int frequency, int duration)
|
||||
/*[clinic end generated code: output=f32382e52ee9b2fb input=628a99d2ddf73798]*/
|
||||
{
|
||||
BOOL ok;
|
||||
|
||||
|
@ -145,8 +145,8 @@ x defaults to MB_OK.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
winsound_MessageBeep_impl(PyModuleDef *module, int x)
|
||||
/*[clinic end generated code: output=92aa6a822bdc66ad input=a776c8a85c9853f6]*/
|
||||
winsound_MessageBeep_impl(PyObject *module, int x)
|
||||
/*[clinic end generated code: output=1ad89e4d8d30a957 input=a776c8a85c9853f6]*/
|
||||
{
|
||||
MessageBeep(x);
|
||||
Py_RETURN_NONE;
|
||||
|
|
|
@ -242,8 +242,8 @@ Return the absolute value of the argument.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_abs(PyModuleDef *module, PyObject *x)
|
||||
/*[clinic end generated code: output=6833047c493ecea2 input=bed4ca14e29c20d1]*/
|
||||
builtin_abs(PyObject *module, PyObject *x)
|
||||
/*[clinic end generated code: output=b1b433b9e51356f5 input=bed4ca14e29c20d1]*/
|
||||
{
|
||||
return PyNumber_Absolute(x);
|
||||
}
|
||||
|
@ -260,8 +260,8 @@ If the iterable is empty, return True.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_all(PyModuleDef *module, PyObject *iterable)
|
||||
/*[clinic end generated code: output=089e6d1b7bde27b1 input=1a7c5d1bc3438a21]*/
|
||||
builtin_all(PyObject *module, PyObject *iterable)
|
||||
/*[clinic end generated code: output=ca2a7127276f79b3 input=1a7c5d1bc3438a21]*/
|
||||
{
|
||||
PyObject *it, *item;
|
||||
PyObject *(*iternext)(PyObject *);
|
||||
|
@ -309,8 +309,8 @@ If the iterable is empty, return False.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_any(PyModuleDef *module, PyObject *iterable)
|
||||
/*[clinic end generated code: output=1be994b2c2307492 input=41d7451c23384f24]*/
|
||||
builtin_any(PyObject *module, PyObject *iterable)
|
||||
/*[clinic end generated code: output=fa65684748caa60e input=41d7451c23384f24]*/
|
||||
{
|
||||
PyObject *it, *item;
|
||||
PyObject *(*iternext)(PyObject *);
|
||||
|
@ -361,8 +361,8 @@ to that returned by repr() in Python 2.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_ascii(PyModuleDef *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=d4e862c48af2a933 input=4c62732e1b3a3cc9]*/
|
||||
builtin_ascii(PyObject *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=6d37b3f0984c7eb9 input=4c62732e1b3a3cc9]*/
|
||||
{
|
||||
return PyObject_ASCII(obj);
|
||||
}
|
||||
|
@ -381,8 +381,8 @@ Return the binary representation of an integer.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_bin(PyModuleDef *module, PyObject *number)
|
||||
/*[clinic end generated code: output=25ee26c6cf3bbb54 input=53f8a0264bacaf90]*/
|
||||
builtin_bin(PyObject *module, PyObject *number)
|
||||
/*[clinic end generated code: output=b6fc4ad5e649f4f7 input=53f8a0264bacaf90]*/
|
||||
{
|
||||
return PyNumber_ToBase(number, 2);
|
||||
}
|
||||
|
@ -401,8 +401,8 @@ __call__() method.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_callable(PyModuleDef *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=f4df2ce92364b656 input=1423bab99cc41f58]*/
|
||||
builtin_callable(PyObject *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=2b095d59d934cb7e input=1423bab99cc41f58]*/
|
||||
{
|
||||
return PyBool_FromLong((long)PyCallable_Check(obj));
|
||||
}
|
||||
|
@ -574,9 +574,8 @@ format_spec defaults to the empty string
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_format_impl(PyModuleDef *module, PyObject *value,
|
||||
PyObject *format_spec)
|
||||
/*[clinic end generated code: output=4341fd78a5f01764 input=6325e751a1b29b86]*/
|
||||
builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec)
|
||||
/*[clinic end generated code: output=2f40bdfa4954b077 input=6325e751a1b29b86]*/
|
||||
{
|
||||
return PyObject_Format(value, format_spec);
|
||||
}
|
||||
|
@ -591,8 +590,8 @@ Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_chr_impl(PyModuleDef *module, int i)
|
||||
/*[clinic end generated code: output=67fe4d87e690f373 input=3f604ef45a70750d]*/
|
||||
builtin_chr_impl(PyObject *module, int i)
|
||||
/*[clinic end generated code: output=c733afcd200afcb7 input=3f604ef45a70750d]*/
|
||||
{
|
||||
return PyUnicode_FromOrdinal(i);
|
||||
}
|
||||
|
@ -672,10 +671,10 @@ in addition to any features explicitly specified.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_compile_impl(PyModuleDef *module, PyObject *source,
|
||||
PyObject *filename, const char *mode, int flags,
|
||||
int dont_inherit, int optimize)
|
||||
/*[clinic end generated code: output=31881762c1bb90c4 input=9d53e8cfb3c86414]*/
|
||||
builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
|
||||
const char *mode, int flags, int dont_inherit,
|
||||
int optimize)
|
||||
/*[clinic end generated code: output=1fa176e33452bb63 input=9d53e8cfb3c86414]*/
|
||||
{
|
||||
PyObject *source_copy;
|
||||
const char *str;
|
||||
|
@ -800,8 +799,8 @@ Return the tuple (x//y, x%y). Invariant: div*y + mod == x.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_divmod_impl(PyModuleDef *module, PyObject *x, PyObject *y)
|
||||
/*[clinic end generated code: output=9ad0076120ebf9ac input=175ad9c84ff41a85]*/
|
||||
builtin_divmod_impl(PyObject *module, PyObject *x, PyObject *y)
|
||||
/*[clinic end generated code: output=b06d8a5f6e0c745e input=175ad9c84ff41a85]*/
|
||||
{
|
||||
return PyNumber_Divmod(x, y);
|
||||
}
|
||||
|
@ -825,9 +824,9 @@ If only globals is given, locals defaults to it.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_eval_impl(PyModuleDef *module, PyObject *source, PyObject *globals,
|
||||
builtin_eval_impl(PyObject *module, PyObject *source, PyObject *globals,
|
||||
PyObject *locals)
|
||||
/*[clinic end generated code: output=7284501fb7b4d666 input=11ee718a8640e527]*/
|
||||
/*[clinic end generated code: output=0a0824aa70093116 input=11ee718a8640e527]*/
|
||||
{
|
||||
PyObject *result, *source_copy;
|
||||
const char *str;
|
||||
|
@ -908,9 +907,9 @@ If only globals is given, locals defaults to it.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_exec_impl(PyModuleDef *module, PyObject *source, PyObject *globals,
|
||||
builtin_exec_impl(PyObject *module, PyObject *source, PyObject *globals,
|
||||
PyObject *locals)
|
||||
/*[clinic end generated code: output=83d574ef9d5d0b46 input=01ca3e1c01692829]*/
|
||||
/*[clinic end generated code: output=3c90efc6ab68ef5d input=01ca3e1c01692829]*/
|
||||
{
|
||||
PyObject *v;
|
||||
|
||||
|
@ -1024,8 +1023,8 @@ global scope and vice-versa.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_globals_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=4958645e96dd8138 input=9327576f92bb48ba]*/
|
||||
builtin_globals_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=e5dd1527067b94d2 input=9327576f92bb48ba]*/
|
||||
{
|
||||
PyObject *d;
|
||||
|
||||
|
@ -1048,8 +1047,8 @@ This is done by calling getattr(obj, name) and catching AttributeError.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_hasattr_impl(PyModuleDef *module, PyObject *obj, PyObject *name)
|
||||
/*[clinic end generated code: output=81154fdd63634696 input=0faec9787d979542]*/
|
||||
builtin_hasattr_impl(PyObject *module, PyObject *obj, PyObject *name)
|
||||
/*[clinic end generated code: output=a7aff2090a4151e5 input=0faec9787d979542]*/
|
||||
{
|
||||
PyObject *v;
|
||||
|
||||
|
@ -1325,9 +1324,9 @@ setattr(x, 'y', v) is equivalent to ``x.y = v''
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_setattr_impl(PyModuleDef *module, PyObject *obj, PyObject *name,
|
||||
builtin_setattr_impl(PyObject *module, PyObject *obj, PyObject *name,
|
||||
PyObject *value)
|
||||
/*[clinic end generated code: output=d881c655c0f7e34f input=bd2b7ca6875a1899]*/
|
||||
/*[clinic end generated code: output=dc2ce1d1add9acb4 input=bd2b7ca6875a1899]*/
|
||||
{
|
||||
if (PyObject_SetAttr(obj, name, value) != 0)
|
||||
return NULL;
|
||||
|
@ -1349,8 +1348,8 @@ delattr(x, 'y') is equivalent to ``del x.y''
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_delattr_impl(PyModuleDef *module, PyObject *obj, PyObject *name)
|
||||
/*[clinic end generated code: output=ef653e698a0b4187 input=db16685d6b4b9410]*/
|
||||
builtin_delattr_impl(PyObject *module, PyObject *obj, PyObject *name)
|
||||
/*[clinic end generated code: output=85134bc58dff79fa input=db16685d6b4b9410]*/
|
||||
{
|
||||
if (PyObject_SetAttr(obj, name, (PyObject *)NULL) != 0)
|
||||
return NULL;
|
||||
|
@ -1372,8 +1371,8 @@ reverse is not necessarily true.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_hash(PyModuleDef *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=1f32ff154c1f751a input=58c48be822bf9c54]*/
|
||||
builtin_hash(PyObject *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=237668e9d7688db7 input=58c48be822bf9c54]*/
|
||||
{
|
||||
Py_hash_t x;
|
||||
|
||||
|
@ -1397,8 +1396,8 @@ Return the hexadecimal representation of an integer.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_hex(PyModuleDef *module, PyObject *number)
|
||||
/*[clinic end generated code: output=618489ce3cbc5858 input=e645aff5fc7d540e]*/
|
||||
builtin_hex(PyObject *module, PyObject *number)
|
||||
/*[clinic end generated code: output=e46b612169099408 input=e645aff5fc7d540e]*/
|
||||
{
|
||||
return PyNumber_ToBase(number, 16);
|
||||
}
|
||||
|
@ -1441,8 +1440,8 @@ Return the number of items in a container.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_len(PyModuleDef *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=8e5837b6f81d915b input=bc55598da9e9c9b5]*/
|
||||
builtin_len(PyObject *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=fa7a270d314dfb6c input=bc55598da9e9c9b5]*/
|
||||
{
|
||||
Py_ssize_t res;
|
||||
|
||||
|
@ -1464,8 +1463,8 @@ covered by any backwards compatibility guarantees.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_locals_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=8b5a41f12e19d13a input=7874018d478d5c4b]*/
|
||||
builtin_locals_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=b46c94015ce11448 input=7874018d478d5c4b]*/
|
||||
{
|
||||
PyObject *d;
|
||||
|
||||
|
@ -1623,8 +1622,8 @@ Return the octal representation of an integer.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_oct(PyModuleDef *module, PyObject *number)
|
||||
/*[clinic end generated code: output=18f701bc6d8f804a input=ad6b274af4016c72]*/
|
||||
builtin_oct(PyObject *module, PyObject *number)
|
||||
/*[clinic end generated code: output=40a34656b6875352 input=ad6b274af4016c72]*/
|
||||
{
|
||||
return PyNumber_ToBase(number, 8);
|
||||
}
|
||||
|
@ -1640,8 +1639,8 @@ Return the Unicode code point for a one-character string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_ord(PyModuleDef *module, PyObject *c)
|
||||
/*[clinic end generated code: output=04fd27272d9462f6 input=3064e5d6203ad012]*/
|
||||
builtin_ord(PyObject *module, PyObject *c)
|
||||
/*[clinic end generated code: output=4fa5e87a323bae71 input=3064e5d6203ad012]*/
|
||||
{
|
||||
long ord;
|
||||
Py_ssize_t size;
|
||||
|
@ -1700,8 +1699,8 @@ invoked using the three argument form.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_pow_impl(PyModuleDef *module, PyObject *x, PyObject *y, PyObject *z)
|
||||
/*[clinic end generated code: output=1fba268adba9b45f input=653d57d38d41fc07]*/
|
||||
builtin_pow_impl(PyObject *module, PyObject *x, PyObject *y, PyObject *z)
|
||||
/*[clinic end generated code: output=50a14d5d130d404b input=653d57d38d41fc07]*/
|
||||
{
|
||||
return PyNumber_Power(x, y, z);
|
||||
}
|
||||
|
@ -1819,8 +1818,8 @@ On *nix systems, readline is used if available.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_input_impl(PyModuleDef *module, PyObject *prompt)
|
||||
/*[clinic end generated code: output=b77731f59e1515c4 input=5e8bb70c2908fe3c]*/
|
||||
builtin_input_impl(PyObject *module, PyObject *prompt)
|
||||
/*[clinic end generated code: output=83db5a191e7a0d60 input=5e8bb70c2908fe3c]*/
|
||||
{
|
||||
PyObject *fin = _PySys_GetObjectId(&PyId_stdin);
|
||||
PyObject *fout = _PySys_GetObjectId(&PyId_stdout);
|
||||
|
@ -2005,8 +2004,8 @@ For many object types, including most builtins, eval(repr(obj)) == obj.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_repr(PyModuleDef *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=dc41784fa4341834 input=1c9e6d66d3e3be04]*/
|
||||
builtin_repr(PyObject *module, PyObject *obj)
|
||||
/*[clinic end generated code: output=7ed3778c44fd0194 input=1c9e6d66d3e3be04]*/
|
||||
{
|
||||
return PyObject_Repr(obj);
|
||||
}
|
||||
|
@ -2175,8 +2174,8 @@ reject non-numeric types.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_sum_impl(PyModuleDef *module, PyObject *iterable, PyObject *start)
|
||||
/*[clinic end generated code: output=33655b248b21d581 input=3b5b7a9d7611c73a]*/
|
||||
builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
|
||||
/*[clinic end generated code: output=df758cec7d1d302f input=3b5b7a9d7611c73a]*/
|
||||
{
|
||||
PyObject *result = start;
|
||||
PyObject *temp, *item, *iter;
|
||||
|
@ -2352,9 +2351,9 @@ or ...`` etc.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_isinstance_impl(PyModuleDef *module, PyObject *obj,
|
||||
builtin_isinstance_impl(PyObject *module, PyObject *obj,
|
||||
PyObject *class_or_tuple)
|
||||
/*[clinic end generated code: output=f960b7c12dbbeda0 input=ffa743db1daf7549]*/
|
||||
/*[clinic end generated code: output=6faf01472c13b003 input=ffa743db1daf7549]*/
|
||||
{
|
||||
int retval;
|
||||
|
||||
|
@ -2380,9 +2379,9 @@ or ...`` etc.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_issubclass_impl(PyModuleDef *module, PyObject *cls,
|
||||
builtin_issubclass_impl(PyObject *module, PyObject *cls,
|
||||
PyObject *class_or_tuple)
|
||||
/*[clinic end generated code: output=8b012a151940bbf2 input=af5f35e9ceaddaf6]*/
|
||||
/*[clinic end generated code: output=358412410cd7a250 input=af5f35e9ceaddaf6]*/
|
||||
{
|
||||
int retval;
|
||||
|
||||
|
|
|
@ -83,11 +83,10 @@ PyDoc_STRVAR(builtin_format__doc__,
|
|||
{"format", (PyCFunction)builtin_format, METH_VARARGS, builtin_format__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_format_impl(PyModuleDef *module, PyObject *value,
|
||||
PyObject *format_spec);
|
||||
builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec);
|
||||
|
||||
static PyObject *
|
||||
builtin_format(PyModuleDef *module, PyObject *args)
|
||||
builtin_format(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *value;
|
||||
|
@ -113,10 +112,10 @@ PyDoc_STRVAR(builtin_chr__doc__,
|
|||
{"chr", (PyCFunction)builtin_chr, METH_O, builtin_chr__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_chr_impl(PyModuleDef *module, int i);
|
||||
builtin_chr_impl(PyObject *module, int i);
|
||||
|
||||
static PyObject *
|
||||
builtin_chr(PyModuleDef *module, PyObject *arg)
|
||||
builtin_chr(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int i;
|
||||
|
@ -152,12 +151,12 @@ PyDoc_STRVAR(builtin_compile__doc__,
|
|||
{"compile", (PyCFunction)builtin_compile, METH_VARARGS|METH_KEYWORDS, builtin_compile__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_compile_impl(PyModuleDef *module, PyObject *source,
|
||||
PyObject *filename, const char *mode, int flags,
|
||||
int dont_inherit, int optimize);
|
||||
builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
|
||||
const char *mode, int flags, int dont_inherit,
|
||||
int optimize);
|
||||
|
||||
static PyObject *
|
||||
builtin_compile(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
builtin_compile(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"source", "filename", "mode", "flags", "dont_inherit", "optimize", NULL};
|
||||
|
@ -188,10 +187,10 @@ PyDoc_STRVAR(builtin_divmod__doc__,
|
|||
{"divmod", (PyCFunction)builtin_divmod, METH_VARARGS, builtin_divmod__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_divmod_impl(PyModuleDef *module, PyObject *x, PyObject *y);
|
||||
builtin_divmod_impl(PyObject *module, PyObject *x, PyObject *y);
|
||||
|
||||
static PyObject *
|
||||
builtin_divmod(PyModuleDef *module, PyObject *args)
|
||||
builtin_divmod(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *x;
|
||||
|
@ -224,11 +223,11 @@ PyDoc_STRVAR(builtin_eval__doc__,
|
|||
{"eval", (PyCFunction)builtin_eval, METH_VARARGS, builtin_eval__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_eval_impl(PyModuleDef *module, PyObject *source, PyObject *globals,
|
||||
builtin_eval_impl(PyObject *module, PyObject *source, PyObject *globals,
|
||||
PyObject *locals);
|
||||
|
||||
static PyObject *
|
||||
builtin_eval(PyModuleDef *module, PyObject *args)
|
||||
builtin_eval(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *source;
|
||||
|
@ -262,11 +261,11 @@ PyDoc_STRVAR(builtin_exec__doc__,
|
|||
{"exec", (PyCFunction)builtin_exec, METH_VARARGS, builtin_exec__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_exec_impl(PyModuleDef *module, PyObject *source, PyObject *globals,
|
||||
builtin_exec_impl(PyObject *module, PyObject *source, PyObject *globals,
|
||||
PyObject *locals);
|
||||
|
||||
static PyObject *
|
||||
builtin_exec(PyModuleDef *module, PyObject *args)
|
||||
builtin_exec(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *source;
|
||||
|
@ -297,10 +296,10 @@ PyDoc_STRVAR(builtin_globals__doc__,
|
|||
{"globals", (PyCFunction)builtin_globals, METH_NOARGS, builtin_globals__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_globals_impl(PyModuleDef *module);
|
||||
builtin_globals_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
builtin_globals(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
builtin_globals(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return builtin_globals_impl(module);
|
||||
}
|
||||
|
@ -317,10 +316,10 @@ PyDoc_STRVAR(builtin_hasattr__doc__,
|
|||
{"hasattr", (PyCFunction)builtin_hasattr, METH_VARARGS, builtin_hasattr__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_hasattr_impl(PyModuleDef *module, PyObject *obj, PyObject *name);
|
||||
builtin_hasattr_impl(PyObject *module, PyObject *obj, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
builtin_hasattr(PyModuleDef *module, PyObject *args)
|
||||
builtin_hasattr(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *obj;
|
||||
|
@ -361,11 +360,11 @@ PyDoc_STRVAR(builtin_setattr__doc__,
|
|||
{"setattr", (PyCFunction)builtin_setattr, METH_VARARGS, builtin_setattr__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_setattr_impl(PyModuleDef *module, PyObject *obj, PyObject *name,
|
||||
builtin_setattr_impl(PyObject *module, PyObject *obj, PyObject *name,
|
||||
PyObject *value);
|
||||
|
||||
static PyObject *
|
||||
builtin_setattr(PyModuleDef *module, PyObject *args)
|
||||
builtin_setattr(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *obj;
|
||||
|
@ -395,10 +394,10 @@ PyDoc_STRVAR(builtin_delattr__doc__,
|
|||
{"delattr", (PyCFunction)builtin_delattr, METH_VARARGS, builtin_delattr__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_delattr_impl(PyModuleDef *module, PyObject *obj, PyObject *name);
|
||||
builtin_delattr_impl(PyObject *module, PyObject *obj, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
builtin_delattr(PyModuleDef *module, PyObject *args)
|
||||
builtin_delattr(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *obj;
|
||||
|
@ -462,10 +461,10 @@ PyDoc_STRVAR(builtin_locals__doc__,
|
|||
{"locals", (PyCFunction)builtin_locals, METH_NOARGS, builtin_locals__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_locals_impl(PyModuleDef *module);
|
||||
builtin_locals_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
builtin_locals(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
builtin_locals(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return builtin_locals_impl(module);
|
||||
}
|
||||
|
@ -504,10 +503,10 @@ PyDoc_STRVAR(builtin_pow__doc__,
|
|||
{"pow", (PyCFunction)builtin_pow, METH_VARARGS, builtin_pow__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_pow_impl(PyModuleDef *module, PyObject *x, PyObject *y, PyObject *z);
|
||||
builtin_pow_impl(PyObject *module, PyObject *x, PyObject *y, PyObject *z);
|
||||
|
||||
static PyObject *
|
||||
builtin_pow(PyModuleDef *module, PyObject *args)
|
||||
builtin_pow(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *x;
|
||||
|
@ -541,10 +540,10 @@ PyDoc_STRVAR(builtin_input__doc__,
|
|||
{"input", (PyCFunction)builtin_input, METH_VARARGS, builtin_input__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_input_impl(PyModuleDef *module, PyObject *prompt);
|
||||
builtin_input_impl(PyObject *module, PyObject *prompt);
|
||||
|
||||
static PyObject *
|
||||
builtin_input(PyModuleDef *module, PyObject *args)
|
||||
builtin_input(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *prompt = NULL;
|
||||
|
@ -585,10 +584,10 @@ PyDoc_STRVAR(builtin_sum__doc__,
|
|||
{"sum", (PyCFunction)builtin_sum, METH_VARARGS, builtin_sum__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_sum_impl(PyModuleDef *module, PyObject *iterable, PyObject *start);
|
||||
builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start);
|
||||
|
||||
static PyObject *
|
||||
builtin_sum(PyModuleDef *module, PyObject *args)
|
||||
builtin_sum(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *iterable;
|
||||
|
@ -619,11 +618,11 @@ PyDoc_STRVAR(builtin_isinstance__doc__,
|
|||
{"isinstance", (PyCFunction)builtin_isinstance, METH_VARARGS, builtin_isinstance__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_isinstance_impl(PyModuleDef *module, PyObject *obj,
|
||||
builtin_isinstance_impl(PyObject *module, PyObject *obj,
|
||||
PyObject *class_or_tuple);
|
||||
|
||||
static PyObject *
|
||||
builtin_isinstance(PyModuleDef *module, PyObject *args)
|
||||
builtin_isinstance(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *obj;
|
||||
|
@ -654,11 +653,11 @@ PyDoc_STRVAR(builtin_issubclass__doc__,
|
|||
{"issubclass", (PyCFunction)builtin_issubclass, METH_VARARGS, builtin_issubclass__doc__},
|
||||
|
||||
static PyObject *
|
||||
builtin_issubclass_impl(PyModuleDef *module, PyObject *cls,
|
||||
builtin_issubclass_impl(PyObject *module, PyObject *cls,
|
||||
PyObject *class_or_tuple);
|
||||
|
||||
static PyObject *
|
||||
builtin_issubclass(PyModuleDef *module, PyObject *args)
|
||||
builtin_issubclass(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *cls;
|
||||
|
@ -674,4 +673,4 @@ builtin_issubclass(PyModuleDef *module, PyObject *args)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=940f25126caf8166 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6ab37e6c6d2e7b19 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -14,10 +14,10 @@ PyDoc_STRVAR(_imp_lock_held__doc__,
|
|||
{"lock_held", (PyCFunction)_imp_lock_held, METH_NOARGS, _imp_lock_held__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_lock_held_impl(PyModuleDef *module);
|
||||
_imp_lock_held_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_imp_lock_held(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_imp_lock_held(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return _imp_lock_held_impl(module);
|
||||
}
|
||||
|
@ -35,10 +35,10 @@ PyDoc_STRVAR(_imp_acquire_lock__doc__,
|
|||
{"acquire_lock", (PyCFunction)_imp_acquire_lock, METH_NOARGS, _imp_acquire_lock__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_acquire_lock_impl(PyModuleDef *module);
|
||||
_imp_acquire_lock_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_imp_acquire_lock(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_imp_acquire_lock(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return _imp_acquire_lock_impl(module);
|
||||
}
|
||||
|
@ -55,10 +55,10 @@ PyDoc_STRVAR(_imp_release_lock__doc__,
|
|||
{"release_lock", (PyCFunction)_imp_release_lock, METH_NOARGS, _imp_release_lock__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_release_lock_impl(PyModuleDef *module);
|
||||
_imp_release_lock_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_imp_release_lock(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_imp_release_lock(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return _imp_release_lock_impl(module);
|
||||
}
|
||||
|
@ -78,11 +78,11 @@ PyDoc_STRVAR(_imp__fix_co_filename__doc__,
|
|||
{"_fix_co_filename", (PyCFunction)_imp__fix_co_filename, METH_VARARGS, _imp__fix_co_filename__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp__fix_co_filename_impl(PyModuleDef *module, PyCodeObject *code,
|
||||
_imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code,
|
||||
PyObject *path);
|
||||
|
||||
static PyObject *
|
||||
_imp__fix_co_filename(PyModuleDef *module, PyObject *args)
|
||||
_imp__fix_co_filename(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyCodeObject *code;
|
||||
|
@ -117,10 +117,10 @@ PyDoc_STRVAR(_imp_extension_suffixes__doc__,
|
|||
{"extension_suffixes", (PyCFunction)_imp_extension_suffixes, METH_NOARGS, _imp_extension_suffixes__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_extension_suffixes_impl(PyModuleDef *module);
|
||||
_imp_extension_suffixes_impl(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
_imp_extension_suffixes(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
|
||||
_imp_extension_suffixes(PyObject *module, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return _imp_extension_suffixes_impl(module);
|
||||
}
|
||||
|
@ -135,10 +135,10 @@ PyDoc_STRVAR(_imp_init_frozen__doc__,
|
|||
{"init_frozen", (PyCFunction)_imp_init_frozen, METH_O, _imp_init_frozen__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_init_frozen_impl(PyModuleDef *module, PyObject *name);
|
||||
_imp_init_frozen_impl(PyObject *module, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
_imp_init_frozen(PyModuleDef *module, PyObject *arg)
|
||||
_imp_init_frozen(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *name;
|
||||
|
@ -162,10 +162,10 @@ PyDoc_STRVAR(_imp_get_frozen_object__doc__,
|
|||
{"get_frozen_object", (PyCFunction)_imp_get_frozen_object, METH_O, _imp_get_frozen_object__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_get_frozen_object_impl(PyModuleDef *module, PyObject *name);
|
||||
_imp_get_frozen_object_impl(PyObject *module, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
_imp_get_frozen_object(PyModuleDef *module, PyObject *arg)
|
||||
_imp_get_frozen_object(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *name;
|
||||
|
@ -189,10 +189,10 @@ PyDoc_STRVAR(_imp_is_frozen_package__doc__,
|
|||
{"is_frozen_package", (PyCFunction)_imp_is_frozen_package, METH_O, _imp_is_frozen_package__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_is_frozen_package_impl(PyModuleDef *module, PyObject *name);
|
||||
_imp_is_frozen_package_impl(PyObject *module, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
_imp_is_frozen_package(PyModuleDef *module, PyObject *arg)
|
||||
_imp_is_frozen_package(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *name;
|
||||
|
@ -216,10 +216,10 @@ PyDoc_STRVAR(_imp_is_builtin__doc__,
|
|||
{"is_builtin", (PyCFunction)_imp_is_builtin, METH_O, _imp_is_builtin__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_is_builtin_impl(PyModuleDef *module, PyObject *name);
|
||||
_imp_is_builtin_impl(PyObject *module, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
_imp_is_builtin(PyModuleDef *module, PyObject *arg)
|
||||
_imp_is_builtin(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *name;
|
||||
|
@ -243,10 +243,10 @@ PyDoc_STRVAR(_imp_is_frozen__doc__,
|
|||
{"is_frozen", (PyCFunction)_imp_is_frozen, METH_O, _imp_is_frozen__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_is_frozen_impl(PyModuleDef *module, PyObject *name);
|
||||
_imp_is_frozen_impl(PyObject *module, PyObject *name);
|
||||
|
||||
static PyObject *
|
||||
_imp_is_frozen(PyModuleDef *module, PyObject *arg)
|
||||
_imp_is_frozen(PyObject *module, PyObject *arg)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *name;
|
||||
|
@ -272,10 +272,10 @@ PyDoc_STRVAR(_imp_create_dynamic__doc__,
|
|||
{"create_dynamic", (PyCFunction)_imp_create_dynamic, METH_VARARGS, _imp_create_dynamic__doc__},
|
||||
|
||||
static PyObject *
|
||||
_imp_create_dynamic_impl(PyModuleDef *module, PyObject *spec, PyObject *file);
|
||||
_imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file);
|
||||
|
||||
static PyObject *
|
||||
_imp_create_dynamic(PyModuleDef *module, PyObject *args)
|
||||
_imp_create_dynamic(PyObject *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
PyObject *spec;
|
||||
|
@ -306,10 +306,10 @@ PyDoc_STRVAR(_imp_exec_dynamic__doc__,
|
|||
{"exec_dynamic", (PyCFunction)_imp_exec_dynamic, METH_O, _imp_exec_dynamic__doc__},
|
||||
|
||||
static int
|
||||
_imp_exec_dynamic_impl(PyModuleDef *module, PyObject *mod);
|
||||
_imp_exec_dynamic_impl(PyObject *module, PyObject *mod);
|
||||
|
||||
static PyObject *
|
||||
_imp_exec_dynamic(PyModuleDef *module, PyObject *mod)
|
||||
_imp_exec_dynamic(PyObject *module, PyObject *mod)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int _return_value;
|
||||
|
@ -336,10 +336,10 @@ PyDoc_STRVAR(_imp_exec_builtin__doc__,
|
|||
{"exec_builtin", (PyCFunction)_imp_exec_builtin, METH_O, _imp_exec_builtin__doc__},
|
||||
|
||||
static int
|
||||
_imp_exec_builtin_impl(PyModuleDef *module, PyObject *mod);
|
||||
_imp_exec_builtin_impl(PyObject *module, PyObject *mod);
|
||||
|
||||
static PyObject *
|
||||
_imp_exec_builtin(PyModuleDef *module, PyObject *mod)
|
||||
_imp_exec_builtin(PyObject *module, PyObject *mod)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
int _return_value;
|
||||
|
@ -361,4 +361,4 @@ exit:
|
|||
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
|
||||
#define _IMP_EXEC_DYNAMIC_METHODDEF
|
||||
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
|
||||
/*[clinic end generated code: output=22a7225925755674 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=d24d7f73702a907f input=a9049054013a1b77]*/
|
||||
|
|
|
@ -234,8 +234,8 @@ On platforms without threads, return False.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_lock_held_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=d7a8cc3a5169081a input=9b088f9b217d9bdf]*/
|
||||
_imp_lock_held_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=8b89384b5e1963fc input=9b088f9b217d9bdf]*/
|
||||
{
|
||||
#ifdef WITH_THREAD
|
||||
return PyBool_FromLong(import_lock_thread != -1);
|
||||
|
@ -254,8 +254,8 @@ modules. On platforms without threads, this function does nothing.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_acquire_lock_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=cc143b1d16422cae input=4a2d4381866d5fdc]*/
|
||||
_imp_acquire_lock_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=1aff58cb0ee1b026 input=4a2d4381866d5fdc]*/
|
||||
{
|
||||
#ifdef WITH_THREAD
|
||||
_PyImport_AcquireLock();
|
||||
|
@ -273,8 +273,8 @@ On platforms without threads, this function does nothing.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_release_lock_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=74d28e38ebe2b224 input=934fb11516dd778b]*/
|
||||
_imp_release_lock_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=7faab6d0be178b0a input=934fb11516dd778b]*/
|
||||
{
|
||||
#ifdef WITH_THREAD
|
||||
if (_PyImport_ReleaseLock() < 0) {
|
||||
|
@ -916,9 +916,9 @@ Changes code.co_filename to specify the passed-in file path.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp__fix_co_filename_impl(PyModuleDef *module, PyCodeObject *code,
|
||||
_imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code,
|
||||
PyObject *path)
|
||||
/*[clinic end generated code: output=f4db56aac0a1327f input=895ba50e78b82f05]*/
|
||||
/*[clinic end generated code: output=1d002f100235587d input=895ba50e78b82f05]*/
|
||||
|
||||
{
|
||||
update_compiled_module(code, path);
|
||||
|
@ -1030,8 +1030,8 @@ Create an extension module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_create_builtin(PyModuleDef *module, PyObject *spec)
|
||||
/*[clinic end generated code: output=5038f467617226bd input=37f966f890384e47]*/
|
||||
_imp_create_builtin(PyObject *module, PyObject *spec)
|
||||
/*[clinic end generated code: output=ace7ff22271e6f39 input=37f966f890384e47]*/
|
||||
{
|
||||
struct _inittab *p;
|
||||
PyObject *name;
|
||||
|
@ -1846,8 +1846,8 @@ Returns the list of file suffixes used to identify extension modules.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_extension_suffixes_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=d44c1566ef362229 input=ecdeeecfcb6f839e]*/
|
||||
_imp_extension_suffixes_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=0bf346e25a8f0cd3 input=ecdeeecfcb6f839e]*/
|
||||
{
|
||||
PyObject *list;
|
||||
const char *suffix;
|
||||
|
@ -1885,8 +1885,8 @@ Initializes a frozen module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_init_frozen_impl(PyModuleDef *module, PyObject *name)
|
||||
/*[clinic end generated code: output=a9de493bdd711878 input=13019adfc04f3fb3]*/
|
||||
_imp_init_frozen_impl(PyObject *module, PyObject *name)
|
||||
/*[clinic end generated code: output=fc0511ed869fd69c input=13019adfc04f3fb3]*/
|
||||
{
|
||||
int ret;
|
||||
PyObject *m;
|
||||
|
@ -1913,8 +1913,8 @@ Create a code object for a frozen module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_get_frozen_object_impl(PyModuleDef *module, PyObject *name)
|
||||
/*[clinic end generated code: output=3114c970a47f2e3c input=ed689bc05358fdbd]*/
|
||||
_imp_get_frozen_object_impl(PyObject *module, PyObject *name)
|
||||
/*[clinic end generated code: output=2568cc5b7aa0da63 input=ed689bc05358fdbd]*/
|
||||
{
|
||||
return get_frozen_object(name);
|
||||
}
|
||||
|
@ -1929,8 +1929,8 @@ Returns True if the module name is of a frozen package.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_is_frozen_package_impl(PyModuleDef *module, PyObject *name)
|
||||
/*[clinic end generated code: output=3e4cab802b56d649 input=81b6cdecd080fbb8]*/
|
||||
_imp_is_frozen_package_impl(PyObject *module, PyObject *name)
|
||||
/*[clinic end generated code: output=e70cbdb45784a1c9 input=81b6cdecd080fbb8]*/
|
||||
{
|
||||
return is_frozen_package(name);
|
||||
}
|
||||
|
@ -1945,8 +1945,8 @@ Returns True if the module name corresponds to a built-in module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_is_builtin_impl(PyModuleDef *module, PyObject *name)
|
||||
/*[clinic end generated code: output=2deec9cac6fb9a7e input=86befdac021dd1c7]*/
|
||||
_imp_is_builtin_impl(PyObject *module, PyObject *name)
|
||||
/*[clinic end generated code: output=3bfd1162e2d3be82 input=86befdac021dd1c7]*/
|
||||
{
|
||||
return PyLong_FromLong(is_builtin(name));
|
||||
}
|
||||
|
@ -1961,8 +1961,8 @@ Returns True if the module name corresponds to a frozen module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_is_frozen_impl(PyModuleDef *module, PyObject *name)
|
||||
/*[clinic end generated code: output=7de8e260c8e36aed input=7301dbca1897d66b]*/
|
||||
_imp_is_frozen_impl(PyObject *module, PyObject *name)
|
||||
/*[clinic end generated code: output=01f408f5ec0f2577 input=7301dbca1897d66b]*/
|
||||
{
|
||||
const struct _frozen *p;
|
||||
|
||||
|
@ -2011,8 +2011,8 @@ Create an extension module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_create_dynamic_impl(PyModuleDef *module, PyObject *spec, PyObject *file)
|
||||
/*[clinic end generated code: output=935cde5b3872d56d input=c31b954f4cf4e09d]*/
|
||||
_imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file)
|
||||
/*[clinic end generated code: output=83249b827a4fde77 input=c31b954f4cf4e09d]*/
|
||||
{
|
||||
PyObject *mod, *name, *path;
|
||||
FILE *fp;
|
||||
|
@ -2066,8 +2066,8 @@ Initialize an extension module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
_imp_exec_dynamic_impl(PyModuleDef *module, PyObject *mod)
|
||||
/*[clinic end generated code: output=4b84f1301b22d4bd input=9fdbfcb250280d3a]*/
|
||||
_imp_exec_dynamic_impl(PyObject *module, PyObject *mod)
|
||||
/*[clinic end generated code: output=f5720ac7b465877d input=9fdbfcb250280d3a]*/
|
||||
{
|
||||
return exec_builtin_or_dynamic(mod);
|
||||
}
|
||||
|
@ -2085,8 +2085,8 @@ Initialize a built-in module.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static int
|
||||
_imp_exec_builtin_impl(PyModuleDef *module, PyObject *mod)
|
||||
/*[clinic end generated code: output=215e99876a27e284 input=7beed5a2f12a60ca]*/
|
||||
_imp_exec_builtin_impl(PyObject *module, PyObject *mod)
|
||||
/*[clinic end generated code: output=0262447b240c038e input=7beed5a2f12a60ca]*/
|
||||
{
|
||||
return exec_builtin_or_dynamic(mod);
|
||||
}
|
||||
|
|
|
@ -2804,7 +2804,7 @@ def correct_name_for_self(f):
|
|||
if f.kind in (CALLABLE, METHOD_INIT):
|
||||
if f.cls:
|
||||
return "PyObject *", "self"
|
||||
return "PyModuleDef *", "module"
|
||||
return "PyObject *", "module"
|
||||
if f.kind == STATIC_METHOD:
|
||||
return "void *", "null"
|
||||
if f.kind in (CLASS_METHOD, METHOD_NEW):
|
||||
|
|
Loading…
Reference in New Issue