diff --git a/Misc/NEWS b/Misc/NEWS index a04212cd687..8c92c38d96d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -80,6 +80,9 @@ C API 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. diff --git a/Modules/_codecsmodule.c b/Modules/_codecsmodule.c index 7575773f455..9b1194eae8c 100644 --- a/Modules/_codecsmodule.c +++ b/Modules/_codecsmodule.c @@ -64,8 +64,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; @@ -82,8 +82,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); } @@ -104,9 +104,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(); @@ -131,9 +131,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(); @@ -154,8 +154,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; @@ -181,9 +181,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); @@ -198,9 +198,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; @@ -262,9 +262,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) @@ -295,9 +295,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, @@ -315,9 +315,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, @@ -335,9 +335,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. */ @@ -357,9 +357,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. */ @@ -379,9 +379,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. */ @@ -409,9 +409,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; @@ -433,9 +433,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. */ @@ -455,9 +455,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. */ @@ -477,9 +477,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. */ @@ -507,9 +507,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, @@ -528,9 +528,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); @@ -545,9 +545,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); @@ -562,9 +562,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); @@ -578,9 +578,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); @@ -595,9 +595,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; @@ -619,9 +619,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, @@ -639,9 +639,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, @@ -663,9 +663,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); @@ -679,9 +679,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", @@ -724,9 +724,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=fd91a78f103b0421]*/ +/*[clinic end generated code: output=0feda21ffc921bc8 input=fd91a78f103b0421]*/ { PyObject *v; @@ -749,9 +749,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=2c22d40532f071f3]*/ +/*[clinic end generated code: output=02bf47332b9c796c input=2c22d40532f071f3]*/ { PyObject *v; @@ -782,9 +782,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=3935a489b2d5385e]*/ +/*[clinic end generated code: output=c654e13efa2e64e4 input=3935a489b2d5385e]*/ { PyObject *v; @@ -807,9 +807,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=bc27df05d1d20dfe]*/ +/*[clinic end generated code: output=431b01e55f2d4995 input=bc27df05d1d20dfe]*/ { PyObject *v; @@ -832,9 +832,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=5a69d4112763462b]*/ +/*[clinic end generated code: output=96886a6fd54dcae3 input=5a69d4112763462b]*/ { PyObject *v; @@ -865,9 +865,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=434a1efa492b8d58]*/ +/*[clinic end generated code: output=5c760da0c09a8b83 input=434a1efa492b8d58]*/ { PyObject *v; @@ -890,9 +890,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=dfa2d7dc78b99422]*/ +/*[clinic end generated code: output=b65cd176de8e36d6 input=dfa2d7dc78b99422]*/ { PyObject *v; @@ -915,9 +915,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=4595617b18169002]*/ +/*[clinic end generated code: output=1d9e71a9358709e9 input=4595617b18169002]*/ { PyObject *v; @@ -940,9 +940,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=8273506f14076912]*/ +/*[clinic end generated code: output=66271b30bc4f7a3c input=8273506f14076912]*/ { PyObject *v; @@ -965,9 +965,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=181755d5dfacef3c]*/ +/*[clinic end generated code: output=a66a806ed01c830a input=181755d5dfacef3c]*/ { PyObject *v; @@ -990,9 +990,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=f03f6dcf1d84bee4]*/ +/*[clinic end generated code: output=2c28c83a27884e08 input=f03f6dcf1d84bee4]*/ { PyObject *v; @@ -1015,9 +1015,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=d87e25a10a593fee]*/ +/*[clinic end generated code: output=b5e035182d33befc input=d87e25a10a593fee]*/ { PyObject *v; @@ -1041,9 +1041,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=85f4172661e8dad9]*/ +/*[clinic end generated code: output=047476f48495a9e9 input=85f4172661e8dad9]*/ { PyObject *v; @@ -1068,8 +1068,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); } @@ -1084,9 +1084,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=65c09ee1e4203263]*/ +_codecs_mbcs_encode_impl(PyObject *module, PyObject *str, const char *errors) +/*[clinic end generated code: output=76e2e170c966c080 input=65c09ee1e4203263]*/ { PyObject *v; @@ -1110,9 +1109,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=c8562ec460c2e309]*/ +_codecs_code_page_encode_impl(PyObject *module, int code_page, PyObject *str, + const char *errors) +/*[clinic end generated code: output=45673f6085657a9e input=c8562ec460c2e309]*/ { PyObject *v; @@ -1147,9 +1146,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; @@ -1168,8 +1167,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); } diff --git a/Modules/_cryptmodule.c b/Modules/_cryptmodule.c index d422cfdff7d..8e4737c7b44 100644 --- a/Modules/_cryptmodule.c +++ b/Modules/_cryptmodule.c @@ -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? */ diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c index 02899e4303e..ea8790b0e7a 100644 --- a/Modules/_dbmmodule.c +++ b/Modules/_dbmmodule.c @@ -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; diff --git a/Modules/_gdbmmodule.c b/Modules/_gdbmmodule.c index f070a140079..b840bf5005a 100644 --- a/Modules/_gdbmmodule.c +++ b/Modules/_gdbmmodule.c @@ -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; diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index ec681702581..65c955ac698 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -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; diff --git a/Modules/_io/clinic/_iomodule.c.h b/Modules/_io/clinic/_iomodule.c.h index a3abb93cc79..6c88e32e5ac 100644 --- a/Modules/_io/clinic/_iomodule.c.h +++ b/Modules/_io/clinic/_iomodule.c.h @@ -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}; @@ -156,4 +156,4 @@ _io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=97cdc09bf68a8064 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bc2c003cb7daeafe input=a9049054013a1b77]*/ diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c index 846dc0e8ece..bc01ffe7acc 100644 --- a/Modules/_lzmamodule.c +++ b/Modules/_lzmamodule.c @@ -1342,8 +1342,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)); } @@ -1360,8 +1360,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; @@ -1400,9 +1400,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; diff --git a/Modules/_opcode.c b/Modules/_opcode.c index 663bb21a5fb..f9c1c0108d6 100644 --- a/Modules/_opcode.c +++ b/Modules/_opcode.c @@ -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; diff --git a/Modules/_pickle.c b/Modules/_pickle.c index e52da37dd3b..c5c963ef6b7 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -6961,9 +6961,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(); @@ -7015,9 +7015,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(); @@ -7076,9 +7076,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(); @@ -7130,9 +7130,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(); diff --git a/Modules/_sre.c b/Modules/_sre.c index 150229dfbb6..84c87694558 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -278,8 +278,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); } @@ -294,8 +294,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); @@ -1454,10 +1454,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 */ diff --git a/Modules/_ssl.c b/Modules/_ssl.c index ddf8e45f50d..3cc472ee656 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -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; diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index cf56fa836ac..316f9325b64 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -3175,8 +3175,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; @@ -3220,11 +3220,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. */ @@ -3250,8 +3250,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, @@ -3269,8 +3269,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; } diff --git a/Modules/_weakref.c b/Modules/_weakref.c index 7c99d7e7865..805d6d09857 100644 --- a/Modules/_weakref.c +++ b/Modules/_weakref.c @@ -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; diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 3e7f18741fe..edc6cf4adbb 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -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; diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 28031770a58..b9f87aeea3d 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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; diff --git a/Modules/audioop.c b/Modules/audioop.c index 306937e404c..1e131d24769 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -407,9 +407,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; @@ -434,8 +434,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; @@ -462,8 +462,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 @@ -491,8 +491,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; @@ -520,8 +520,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; @@ -594,9 +594,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; @@ -663,9 +663,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; @@ -705,9 +705,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; @@ -759,8 +759,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; @@ -816,8 +816,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; @@ -869,8 +869,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; @@ -900,9 +900,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; @@ -942,9 +942,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; @@ -991,9 +991,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; @@ -1039,9 +1039,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; @@ -1098,9 +1098,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; @@ -1158,8 +1157,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; @@ -1191,8 +1190,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; @@ -1226,9 +1225,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; @@ -1284,10 +1283,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; @@ -1465,8 +1464,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; @@ -1498,8 +1497,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; @@ -1538,8 +1537,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; @@ -1571,8 +1570,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; @@ -1613,9 +1612,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; @@ -1741,9 +1740,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; diff --git a/Modules/binascii.c b/Modules/binascii.c index d920d238710..13780b28995 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -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]*/ { unsigned char *ascii_data, *bin_data; int leftbits = 0; @@ -339,8 +339,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, *bin_data; int leftbits = 0; @@ -426,8 +426,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]*/ { unsigned char *ascii_data, *bin_data; int leftbits = 0; @@ -534,8 +534,8 @@ Base64-code line of data. [clinic start generated code]*/ static PyObject * -binascii_b2a_base64_impl(PyModuleDef *module, Py_buffer *data) -/*[clinic end generated code: output=3cd61fbee2913285 input=14ec4e47371174a9]*/ +binascii_b2a_base64_impl(PyObject *module, Py_buffer *data) +/*[clinic end generated code: output=4d96663170778dc3 input=14ec4e47371174a9]*/ { unsigned char *ascii_data, *bin_data; int leftbits = 0; @@ -601,8 +601,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]*/ { unsigned char *ascii_data, *bin_data; int leftbits = 0; @@ -684,8 +684,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]*/ { unsigned char *in_data, *out_data; PyObject *rv; @@ -748,8 +748,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, *bin_data; int leftbits = 0; @@ -805,8 +805,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]*/ { unsigned char *in_data, *out_data; unsigned char in_byte, in_repeat; @@ -919,8 +919,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]*/ { unsigned char *bin_data; Py_ssize_t len; @@ -1067,8 +1067,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) */ @@ -1115,8 +1115,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); } @@ -1130,8 +1130,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); } @@ -1164,8 +1164,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]*/ { char* argbuf; Py_ssize_t arglen; @@ -1218,8 +1218,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); } @@ -1250,8 +1250,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; @@ -1356,9 +1356,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; unsigned char *databuf, *odata; diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index e1cdb2c4959..f5c842154b9 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -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; diff --git a/Modules/clinic/_codecsmodule.c.h b/Modules/clinic/_codecsmodule.c.h index e94be1176e9..af06c6d9e0f 100644 --- a/Modules/clinic/_codecsmodule.c.h +++ b/Modules/clinic/_codecsmodule.c.h @@ -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; @@ -57,11 +57,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}; @@ -94,11 +94,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}; @@ -125,10 +125,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; @@ -150,11 +150,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}; @@ -182,11 +182,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; @@ -210,11 +210,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; @@ -238,11 +238,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}; @@ -271,11 +271,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}; @@ -304,11 +304,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}; @@ -337,11 +337,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}; @@ -370,11 +370,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}; @@ -404,11 +404,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}; @@ -438,11 +438,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}; @@ -471,11 +471,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}; @@ -504,11 +504,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}; @@ -538,11 +538,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}; @@ -572,11 +572,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}; @@ -604,11 +604,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}; @@ -636,11 +636,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}; @@ -668,11 +668,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}; @@ -700,11 +700,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}; @@ -735,11 +735,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}; @@ -772,11 +772,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; @@ -808,11 +808,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}; @@ -840,11 +840,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; @@ -868,11 +868,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; @@ -896,11 +896,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; @@ -924,11 +924,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; @@ -953,11 +953,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; @@ -981,11 +981,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; @@ -1009,11 +1009,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; @@ -1038,11 +1038,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; @@ -1066,11 +1066,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; @@ -1094,11 +1094,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; @@ -1122,11 +1122,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; @@ -1150,11 +1150,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; @@ -1178,11 +1178,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; @@ -1206,11 +1206,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; @@ -1235,10 +1235,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; @@ -1262,11 +1262,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; @@ -1294,11 +1293,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; @@ -1330,11 +1329,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; @@ -1362,10 +1361,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; @@ -1393,4 +1392,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=9c9967048027c1c7 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=42fed94e2ab765ba input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_cryptmodule.c.h b/Modules/clinic/_cryptmodule.c.h index b8ec31e0032..a3c371cbaa8 100644 --- a/Modules/clinic/_cryptmodule.c.h +++ b/Modules/clinic/_cryptmodule.c.h @@ -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; @@ -34,4 +34,4 @@ crypt_crypt(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=22c295c9bce018c4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e0493a9691537690 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_dbmmodule.c.h b/Modules/clinic/_dbmmodule.c.h index 8474e028289..49cbceb1eff 100644 --- a/Modules/clinic/_dbmmodule.c.h +++ b/Modules/clinic/_dbmmodule.c.h @@ -119,11 +119,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; @@ -138,4 +138,4 @@ dbmopen(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=1d92e81b28c558d0 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=fff12f168cdf8b43 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_gdbmmodule.c.h b/Modules/clinic/_gdbmmodule.c.h index 110ad9a539c..2d87cfc7608 100644 --- a/Modules/clinic/_gdbmmodule.c.h +++ b/Modules/clinic/_gdbmmodule.c.h @@ -231,11 +231,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; @@ -250,4 +249,4 @@ dbmopen(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=d3d8d871bcccb68a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9ac7a89858a9765f input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_lzmamodule.c.h b/Modules/clinic/_lzmamodule.c.h index 59d9d51026e..f8d38ea1fc9 100644 --- a/Modules/clinic/_lzmamodule.c.h +++ b/Modules/clinic/_lzmamodule.c.h @@ -163,10 +163,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; @@ -191,10 +191,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}; @@ -223,11 +223,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; @@ -245,4 +245,4 @@ exit: return return_value; } -/*[clinic end generated code: output=2d3e0842be3d3fe1 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=fada06020fd318cc input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_opcode.c.h b/Modules/clinic/_opcode.c.h index 196a2eefd37..a5f644265a9 100644 --- a/Modules/clinic/_opcode.c.h +++ b/Modules/clinic/_opcode.c.h @@ -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; @@ -33,4 +33,4 @@ _opcode_stack_effect(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=8ee7cb735705e8b3 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=984d6de140303d10 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_pickle.c.h b/Modules/clinic/_pickle.c.h index ab4d2056209..bd12d2a0c4b 100644 --- a/Modules/clinic/_pickle.c.h +++ b/Modules/clinic/_pickle.c.h @@ -380,11 +380,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}; @@ -424,11 +424,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}; @@ -478,11 +478,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}; @@ -524,11 +524,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}; @@ -545,4 +545,4 @@ _pickle_loads(PyModuleDef *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=a7169d4fbbeef827 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=93657e55d6a748af input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_sre.c.h b/Modules/clinic/_sre.c.h index 6de470847ec..32817172181 100644 --- a/Modules/clinic/_sre.c.h +++ b/Modules/clinic/_sre.c.h @@ -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; @@ -37,10 +37,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; @@ -406,12 +406,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}; @@ -690,4 +690,4 @@ _sre_SRE_Scanner_search(ScannerObject *self, PyObject *Py_UNUSED(ignored)) { return _sre_SRE_Scanner_search_impl(self); } -/*[clinic end generated code: output=d1d73ab2c5008bd4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a4ce9e5b748ce532 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_ssl.c.h b/Modules/clinic/_ssl.c.h index 9cbcc289553..852e3658b60 100644 --- a/Modules/clinic/_ssl.c.h +++ b/Modules/clinic/_ssl.c.h @@ -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; @@ -795,10 +795,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}; @@ -827,10 +827,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; @@ -856,10 +856,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; @@ -885,10 +885,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); } @@ -908,10 +908,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; @@ -938,10 +938,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); } @@ -959,10 +959,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}; @@ -988,10 +988,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; @@ -1022,10 +1022,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}; @@ -1059,10 +1059,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}; @@ -1102,4 +1102,4 @@ exit: #ifndef _SSL_ENUM_CRLS_METHODDEF #define _SSL_ENUM_CRLS_METHODDEF #endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */ -/*[clinic end generated code: output=abe795f14cb63b6a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6fb10594d8351dc5 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_tkinter.c.h b/Modules/clinic/_tkinter.c.h index 7917dec9c41..77af083c061 100644 --- a/Modules/clinic/_tkinter.c.h +++ b/Modules/clinic/_tkinter.c.h @@ -532,13 +532,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; @@ -571,10 +571,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; @@ -597,10 +597,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; @@ -621,4 +621,4 @@ exit: #ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */ -/*[clinic end generated code: output=6dd667b91cf8addd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f9057c8bf288633d input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_weakref.c.h b/Modules/clinic/_weakref.c.h index 87c701c52f6..b83b33e4a18 100644 --- a/Modules/clinic/_weakref.c.h +++ b/Modules/clinic/_weakref.c.h @@ -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; @@ -28,4 +28,4 @@ _weakref_getweakrefcount(PyModuleDef *module, PyObject *object) exit: return return_value; } -/*[clinic end generated code: output=4da9aade63eed77f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d9086c8576d46933 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_winapi.c.h b/Modules/clinic/_winapi.c.h index 34518e836bc..ac38d374a22 100644 --- a/Modules/clinic/_winapi.c.h +++ b/Modules/clinic/_winapi.c.h @@ -71,10 +71,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; @@ -96,11 +96,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}; @@ -127,14 +127,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; @@ -169,11 +169,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; @@ -199,14 +199,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; @@ -248,11 +248,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; @@ -287,7 +286,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, @@ -295,7 +294,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; @@ -333,15 +332,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; @@ -375,10 +373,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; @@ -401,10 +399,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; @@ -430,10 +428,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; @@ -459,10 +457,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; @@ -493,10 +491,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; @@ -524,10 +522,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; @@ -556,10 +554,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; @@ -582,11 +580,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; @@ -617,10 +615,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; @@ -644,11 +642,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}; @@ -675,13 +673,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; @@ -708,11 +706,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; @@ -736,10 +734,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; @@ -764,12 +762,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; @@ -799,11 +796,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; @@ -831,11 +828,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}; @@ -851,4 +848,4 @@ _winapi_WriteFile(PyModuleDef *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=98771c6584056d19 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a4c4b2a9fcb0bea1 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/arraymodule.c.h b/Modules/clinic/arraymodule.c.h index fdf247e2ca6..0c7061a1d2c 100644 --- a/Modules/clinic/arraymodule.c.h +++ b/Modules/clinic/arraymodule.c.h @@ -438,13 +438,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; @@ -496,4 +496,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=d2e82c65ea841cfc input=a9049054013a1b77]*/ +/*[clinic end generated code: output=305df3f5796039e4 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/audioop.c.h b/Modules/clinic/audioop.c.h index 3ee29666cc3..62e313b5bfb 100644 --- a/Modules/clinic/audioop.c.h +++ b/Modules/clinic/audioop.c.h @@ -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}; @@ -46,10 +46,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}; @@ -78,10 +78,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}; @@ -110,10 +110,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}; @@ -142,10 +142,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}; @@ -174,11 +174,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}; @@ -210,11 +210,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}; @@ -246,11 +246,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}; @@ -279,10 +279,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}; @@ -311,10 +311,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}; @@ -343,10 +343,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}; @@ -375,11 +375,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}; @@ -409,11 +409,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}; @@ -444,11 +444,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}; @@ -479,11 +479,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}; @@ -516,11 +516,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}; @@ -550,10 +549,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}; @@ -582,10 +581,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}; @@ -614,11 +613,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}; @@ -649,12 +648,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}; @@ -689,10 +688,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}; @@ -721,10 +720,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}; @@ -753,10 +752,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}; @@ -785,10 +784,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}; @@ -817,11 +816,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}; @@ -851,11 +850,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}; @@ -874,4 +873,4 @@ exit: return return_value; } -/*[clinic end generated code: output=a076e1b213a8727b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=385fb09fa21a62c0 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/binascii.c.h b/Modules/clinic/binascii.c.h index e348beebaad..e20cac24ba6 100644 --- a/Modules/clinic/binascii.c.h +++ b/Modules/clinic/binascii.c.h @@ -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}; @@ -42,10 +42,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}; @@ -72,10 +72,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}; @@ -102,10 +102,10 @@ PyDoc_STRVAR(binascii_b2a_base64__doc__, {"b2a_base64", (PyCFunction)binascii_b2a_base64, METH_O, binascii_b2a_base64__doc__}, static PyObject * -binascii_b2a_base64_impl(PyModuleDef *module, Py_buffer *data); +binascii_b2a_base64_impl(PyObject *module, Py_buffer *data); static PyObject * -binascii_b2a_base64(PyModuleDef *module, PyObject *arg) +binascii_b2a_base64(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; Py_buffer data = {NULL, NULL}; @@ -132,10 +132,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}; @@ -162,10 +162,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}; @@ -192,10 +192,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}; @@ -222,10 +222,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}; @@ -252,10 +252,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}; @@ -288,10 +288,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}; @@ -327,10 +327,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}; @@ -359,10 +359,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}; @@ -392,10 +392,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}; @@ -424,10 +424,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}; @@ -454,10 +454,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}; @@ -491,11 +491,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}; @@ -516,4 +516,4 @@ exit: return return_value; } -/*[clinic end generated code: output=b1a3cbf7660ebaa5 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=51173fc9718a5edc input=a9049054013a1b77]*/ diff --git a/Modules/clinic/cmathmodule.c.h b/Modules/clinic/cmathmodule.c.h index 7d61649783f..a255353d4ae 100644 --- a/Modules/clinic/cmathmodule.c.h +++ b/Modules/clinic/cmathmodule.c.h @@ -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; @@ -53,10 +53,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; @@ -94,10 +94,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; @@ -135,10 +135,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; @@ -176,10 +176,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; @@ -217,10 +217,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; @@ -258,10 +258,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; @@ -299,10 +299,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; @@ -340,10 +340,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; @@ -381,10 +381,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; @@ -422,10 +422,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; @@ -463,10 +463,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; @@ -504,10 +504,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; @@ -545,10 +545,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; @@ -586,10 +586,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; @@ -629,10 +629,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; @@ -657,10 +657,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; @@ -685,10 +685,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; @@ -711,10 +711,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; @@ -739,10 +739,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; @@ -765,10 +765,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; @@ -791,10 +791,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; @@ -832,11 +832,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}; @@ -857,4 +857,4 @@ cmath_isclose(PyModuleDef *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=229e9c48c9d27362 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=732194029b7fb1e7 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/fcntlmodule.c.h b/Modules/clinic/fcntlmodule.c.h index d9a151797e5..67660ebdcbf 100644 --- a/Modules/clinic/fcntlmodule.c.h +++ b/Modules/clinic/fcntlmodule.c.h @@ -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; @@ -78,11 +78,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; @@ -112,10 +112,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; @@ -161,11 +161,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; @@ -182,4 +182,4 @@ fcntl_lockf(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=b7d6e8fc2ad09c48 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=97b1306b864c01c8 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/grpmodule.c.h b/Modules/clinic/grpmodule.c.h index eb5b59d29bb..2c47a4236b3 100644 --- a/Modules/clinic/grpmodule.c.h +++ b/Modules/clinic/grpmodule.c.h @@ -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}; @@ -44,10 +44,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}; @@ -75,11 +75,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=5191c25600afb1bd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bee09feefc54a2cb input=a9049054013a1b77]*/ diff --git a/Modules/clinic/md5module.c.h b/Modules/clinic/md5module.c.h index f5a3117f104..0bd958ac6ea 100644 --- a/Modules/clinic/md5module.c.h +++ b/Modules/clinic/md5module.c.h @@ -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}; @@ -92,4 +92,4 @@ _md5_md5(PyModuleDef *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=0f803ded701aca54 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4cd3cc96e35563d2 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index 9ef702a297f..be2e5a6d1a1 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -30,11 +30,10 @@ PyDoc_STRVAR(os_stat__doc__, {"stat", (PyCFunction)os_stat, METH_VARARGS|METH_KEYWORDS, os_stat__doc__}, static PyObject * -os_stat_impl(PyModuleDef *module, path_t *path, int dir_fd, - int follow_symlinks); +os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks); static PyObject * -os_stat(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_stat(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", "follow_symlinks", NULL}; @@ -67,10 +66,10 @@ PyDoc_STRVAR(os_lstat__doc__, {"lstat", (PyCFunction)os_lstat, METH_VARARGS|METH_KEYWORDS, os_lstat__doc__}, static PyObject * -os_lstat_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_lstat_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_lstat(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lstat(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -125,11 +124,11 @@ PyDoc_STRVAR(os_access__doc__, {"access", (PyCFunction)os_access, METH_VARARGS|METH_KEYWORDS, os_access__doc__}, static int -os_access_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd, +os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd, int effective_ids, int follow_symlinks); static PyObject * -os_access(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_access(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", "effective_ids", "follow_symlinks", NULL}; @@ -170,10 +169,10 @@ PyDoc_STRVAR(os_ttyname__doc__, {"ttyname", (PyCFunction)os_ttyname, METH_O, os_ttyname__doc__}, static char * -os_ttyname_impl(PyModuleDef *module, int fd); +os_ttyname_impl(PyObject *module, int fd); static PyObject * -os_ttyname(PyModuleDef *module, PyObject *arg) +os_ttyname(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -204,10 +203,10 @@ PyDoc_STRVAR(os_ctermid__doc__, {"ctermid", (PyCFunction)os_ctermid, METH_NOARGS, os_ctermid__doc__}, static PyObject * -os_ctermid_impl(PyModuleDef *module); +os_ctermid_impl(PyObject *module); static PyObject * -os_ctermid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_ctermid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_ctermid_impl(module); } @@ -228,10 +227,10 @@ PyDoc_STRVAR(os_chdir__doc__, {"chdir", (PyCFunction)os_chdir, METH_VARARGS|METH_KEYWORDS, os_chdir__doc__}, static PyObject * -os_chdir_impl(PyModuleDef *module, path_t *path); +os_chdir_impl(PyObject *module, path_t *path); static PyObject * -os_chdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -264,10 +263,10 @@ PyDoc_STRVAR(os_fchdir__doc__, {"fchdir", (PyCFunction)os_fchdir, METH_VARARGS|METH_KEYWORDS, os_fchdir__doc__}, static PyObject * -os_fchdir_impl(PyModuleDef *module, int fd); +os_fchdir_impl(PyObject *module, int fd); static PyObject * -os_fchdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fchdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -314,11 +313,11 @@ PyDoc_STRVAR(os_chmod__doc__, {"chmod", (PyCFunction)os_chmod, METH_VARARGS|METH_KEYWORDS, os_chmod__doc__}, static PyObject * -os_chmod_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd, +os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd, int follow_symlinks); static PyObject * -os_chmod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chmod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", "follow_symlinks", NULL}; @@ -353,10 +352,10 @@ PyDoc_STRVAR(os_fchmod__doc__, {"fchmod", (PyCFunction)os_fchmod, METH_VARARGS|METH_KEYWORDS, os_fchmod__doc__}, static PyObject * -os_fchmod_impl(PyModuleDef *module, int fd, int mode); +os_fchmod_impl(PyObject *module, int fd, int mode); static PyObject * -os_fchmod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fchmod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", "mode", NULL}; @@ -389,10 +388,10 @@ PyDoc_STRVAR(os_lchmod__doc__, {"lchmod", (PyCFunction)os_lchmod, METH_VARARGS|METH_KEYWORDS, os_lchmod__doc__}, static PyObject * -os_lchmod_impl(PyModuleDef *module, path_t *path, int mode); +os_lchmod_impl(PyObject *module, path_t *path, int mode); static PyObject * -os_lchmod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lchmod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", NULL}; @@ -431,11 +430,11 @@ PyDoc_STRVAR(os_chflags__doc__, {"chflags", (PyCFunction)os_chflags, METH_VARARGS|METH_KEYWORDS, os_chflags__doc__}, static PyObject * -os_chflags_impl(PyModuleDef *module, path_t *path, unsigned long flags, +os_chflags_impl(PyObject *module, path_t *path, unsigned long flags, int follow_symlinks); static PyObject * -os_chflags(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chflags(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "flags", "follow_symlinks", NULL}; @@ -472,10 +471,10 @@ PyDoc_STRVAR(os_lchflags__doc__, {"lchflags", (PyCFunction)os_lchflags, METH_VARARGS|METH_KEYWORDS, os_lchflags__doc__}, static PyObject * -os_lchflags_impl(PyModuleDef *module, path_t *path, unsigned long flags); +os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags); static PyObject * -os_lchflags(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lchflags(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "flags", NULL}; @@ -508,10 +507,10 @@ PyDoc_STRVAR(os_chroot__doc__, {"chroot", (PyCFunction)os_chroot, METH_VARARGS|METH_KEYWORDS, os_chroot__doc__}, static PyObject * -os_chroot_impl(PyModuleDef *module, path_t *path); +os_chroot_impl(PyObject *module, path_t *path); static PyObject * -os_chroot(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chroot(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -543,10 +542,10 @@ PyDoc_STRVAR(os_fsync__doc__, {"fsync", (PyCFunction)os_fsync, METH_VARARGS|METH_KEYWORDS, os_fsync__doc__}, static PyObject * -os_fsync_impl(PyModuleDef *module, int fd); +os_fsync_impl(PyObject *module, int fd); static PyObject * -os_fsync(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fsync(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -575,10 +574,10 @@ PyDoc_STRVAR(os_sync__doc__, {"sync", (PyCFunction)os_sync, METH_NOARGS, os_sync__doc__}, static PyObject * -os_sync_impl(PyModuleDef *module); +os_sync_impl(PyObject *module); static PyObject * -os_sync(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_sync(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_sync_impl(module); } @@ -597,10 +596,10 @@ PyDoc_STRVAR(os_fdatasync__doc__, {"fdatasync", (PyCFunction)os_fdatasync, METH_VARARGS|METH_KEYWORDS, os_fdatasync__doc__}, static PyObject * -os_fdatasync_impl(PyModuleDef *module, int fd); +os_fdatasync_impl(PyObject *module, int fd); static PyObject * -os_fdatasync(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fdatasync(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -653,11 +652,11 @@ PyDoc_STRVAR(os_chown__doc__, {"chown", (PyCFunction)os_chown, METH_VARARGS|METH_KEYWORDS, os_chown__doc__}, static PyObject * -os_chown_impl(PyModuleDef *module, path_t *path, uid_t uid, gid_t gid, +os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid, int dir_fd, int follow_symlinks); static PyObject * -os_chown(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chown(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "uid", "gid", "dir_fd", "follow_symlinks", NULL}; @@ -695,10 +694,10 @@ PyDoc_STRVAR(os_fchown__doc__, {"fchown", (PyCFunction)os_fchown, METH_VARARGS|METH_KEYWORDS, os_fchown__doc__}, static PyObject * -os_fchown_impl(PyModuleDef *module, int fd, uid_t uid, gid_t gid); +os_fchown_impl(PyObject *module, int fd, uid_t uid, gid_t gid); static PyObject * -os_fchown(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fchown(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", "uid", "gid", NULL}; @@ -732,10 +731,10 @@ PyDoc_STRVAR(os_lchown__doc__, {"lchown", (PyCFunction)os_lchown, METH_VARARGS|METH_KEYWORDS, os_lchown__doc__}, static PyObject * -os_lchown_impl(PyModuleDef *module, path_t *path, uid_t uid, gid_t gid); +os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid); static PyObject * -os_lchown(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lchown(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "uid", "gid", NULL}; @@ -767,10 +766,10 @@ PyDoc_STRVAR(os_getcwd__doc__, {"getcwd", (PyCFunction)os_getcwd, METH_NOARGS, os_getcwd__doc__}, static PyObject * -os_getcwd_impl(PyModuleDef *module); +os_getcwd_impl(PyObject *module); static PyObject * -os_getcwd(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getcwd(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getcwd_impl(module); } @@ -785,10 +784,10 @@ PyDoc_STRVAR(os_getcwdb__doc__, {"getcwdb", (PyCFunction)os_getcwdb, METH_NOARGS, os_getcwdb__doc__}, static PyObject * -os_getcwdb_impl(PyModuleDef *module); +os_getcwdb_impl(PyObject *module); static PyObject * -os_getcwdb(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getcwdb(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getcwdb_impl(module); } @@ -816,11 +815,11 @@ PyDoc_STRVAR(os_link__doc__, {"link", (PyCFunction)os_link, METH_VARARGS|METH_KEYWORDS, os_link__doc__}, static PyObject * -os_link_impl(PyModuleDef *module, path_t *src, path_t *dst, int src_dir_fd, +os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd, int follow_symlinks); static PyObject * -os_link(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_link(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", "follow_symlinks", NULL}; @@ -867,10 +866,10 @@ PyDoc_STRVAR(os_listdir__doc__, {"listdir", (PyCFunction)os_listdir, METH_VARARGS|METH_KEYWORDS, os_listdir__doc__}, static PyObject * -os_listdir_impl(PyModuleDef *module, path_t *path); +os_listdir_impl(PyObject *module, path_t *path); static PyObject * -os_listdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_listdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -899,10 +898,10 @@ PyDoc_STRVAR(os__getfullpathname__doc__, {"_getfullpathname", (PyCFunction)os__getfullpathname, METH_O, os__getfullpathname__doc__}, static PyObject * -os__getfullpathname_impl(PyModuleDef *module, path_t *path); +os__getfullpathname_impl(PyObject *module, path_t *path); static PyObject * -os__getfullpathname(PyModuleDef *module, PyObject *arg) +os__getfullpathname(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; path_t path = PATH_T_INITIALIZE("_getfullpathname", "path", 0, 0); @@ -932,10 +931,10 @@ PyDoc_STRVAR(os__getfinalpathname__doc__, {"_getfinalpathname", (PyCFunction)os__getfinalpathname, METH_O, os__getfinalpathname__doc__}, static PyObject * -os__getfinalpathname_impl(PyModuleDef *module, PyObject *path); +os__getfinalpathname_impl(PyObject *module, PyObject *path); static PyObject * -os__getfinalpathname(PyModuleDef *module, PyObject *arg) +os__getfinalpathname(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; PyObject *path; @@ -961,10 +960,10 @@ PyDoc_STRVAR(os__isdir__doc__, {"_isdir", (PyCFunction)os__isdir, METH_O, os__isdir__doc__}, static PyObject * -os__isdir_impl(PyModuleDef *module, path_t *path); +os__isdir_impl(PyObject *module, path_t *path); static PyObject * -os__isdir(PyModuleDef *module, PyObject *arg) +os__isdir(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; path_t path = PATH_T_INITIALIZE("_isdir", "path", 0, 0); @@ -994,10 +993,10 @@ PyDoc_STRVAR(os__getvolumepathname__doc__, {"_getvolumepathname", (PyCFunction)os__getvolumepathname, METH_VARARGS|METH_KEYWORDS, os__getvolumepathname__doc__}, static PyObject * -os__getvolumepathname_impl(PyModuleDef *module, PyObject *path); +os__getvolumepathname_impl(PyObject *module, PyObject *path); static PyObject * -os__getvolumepathname(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os__getvolumepathname(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -1031,10 +1030,10 @@ PyDoc_STRVAR(os_mkdir__doc__, {"mkdir", (PyCFunction)os_mkdir, METH_VARARGS|METH_KEYWORDS, os_mkdir__doc__}, static PyObject * -os_mkdir_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd); +os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd); static PyObject * -os_mkdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_mkdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", NULL}; @@ -1066,10 +1065,10 @@ PyDoc_STRVAR(os_nice__doc__, {"nice", (PyCFunction)os_nice, METH_O, os_nice__doc__}, static PyObject * -os_nice_impl(PyModuleDef *module, int increment); +os_nice_impl(PyObject *module, int increment); static PyObject * -os_nice(PyModuleDef *module, PyObject *arg) +os_nice(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int increment; @@ -1096,10 +1095,10 @@ PyDoc_STRVAR(os_getpriority__doc__, {"getpriority", (PyCFunction)os_getpriority, METH_VARARGS|METH_KEYWORDS, os_getpriority__doc__}, static PyObject * -os_getpriority_impl(PyModuleDef *module, int which, int who); +os_getpriority_impl(PyObject *module, int which, int who); static PyObject * -os_getpriority(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_getpriority(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"which", "who", NULL}; @@ -1129,10 +1128,10 @@ PyDoc_STRVAR(os_setpriority__doc__, {"setpriority", (PyCFunction)os_setpriority, METH_VARARGS|METH_KEYWORDS, os_setpriority__doc__}, static PyObject * -os_setpriority_impl(PyModuleDef *module, int which, int who, int priority); +os_setpriority_impl(PyObject *module, int which, int who, int priority); static PyObject * -os_setpriority(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_setpriority(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"which", "who", "priority", NULL}; @@ -1167,11 +1166,11 @@ PyDoc_STRVAR(os_rename__doc__, {"rename", (PyCFunction)os_rename, METH_VARARGS|METH_KEYWORDS, os_rename__doc__}, static PyObject * -os_rename_impl(PyModuleDef *module, path_t *src, path_t *dst, int src_dir_fd, +os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd); static PyObject * -os_rename(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_rename(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", NULL}; @@ -1210,11 +1209,11 @@ PyDoc_STRVAR(os_replace__doc__, {"replace", (PyCFunction)os_replace, METH_VARARGS|METH_KEYWORDS, os_replace__doc__}, static PyObject * -os_replace_impl(PyModuleDef *module, path_t *src, path_t *dst, - int src_dir_fd, int dst_dir_fd); +os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, + int dst_dir_fd); static PyObject * -os_replace(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_replace(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", NULL}; @@ -1252,10 +1251,10 @@ PyDoc_STRVAR(os_rmdir__doc__, {"rmdir", (PyCFunction)os_rmdir, METH_VARARGS|METH_KEYWORDS, os_rmdir__doc__}, static PyObject * -os_rmdir_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_rmdir_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_rmdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_rmdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -1286,10 +1285,10 @@ PyDoc_STRVAR(os_system__doc__, {"system", (PyCFunction)os_system, METH_VARARGS|METH_KEYWORDS, os_system__doc__}, static long -os_system_impl(PyModuleDef *module, Py_UNICODE *command); +os_system_impl(PyObject *module, Py_UNICODE *command); static PyObject * -os_system(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_system(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"command", NULL}; @@ -1322,10 +1321,10 @@ PyDoc_STRVAR(os_system__doc__, {"system", (PyCFunction)os_system, METH_VARARGS|METH_KEYWORDS, os_system__doc__}, static long -os_system_impl(PyModuleDef *module, PyObject *command); +os_system_impl(PyObject *module, PyObject *command); static PyObject * -os_system(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_system(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"command", NULL}; @@ -1359,10 +1358,10 @@ PyDoc_STRVAR(os_umask__doc__, {"umask", (PyCFunction)os_umask, METH_O, os_umask__doc__}, static PyObject * -os_umask_impl(PyModuleDef *module, int mask); +os_umask_impl(PyObject *module, int mask); static PyObject * -os_umask(PyModuleDef *module, PyObject *arg) +os_umask(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int mask; @@ -1390,10 +1389,10 @@ PyDoc_STRVAR(os_unlink__doc__, {"unlink", (PyCFunction)os_unlink, METH_VARARGS|METH_KEYWORDS, os_unlink__doc__}, static PyObject * -os_unlink_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_unlink_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_unlink(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_unlink(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -1427,10 +1426,10 @@ PyDoc_STRVAR(os_remove__doc__, {"remove", (PyCFunction)os_remove, METH_VARARGS|METH_KEYWORDS, os_remove__doc__}, static PyObject * -os_remove_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_remove_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_remove(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_remove(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -1464,10 +1463,10 @@ PyDoc_STRVAR(os_uname__doc__, {"uname", (PyCFunction)os_uname, METH_NOARGS, os_uname__doc__}, static PyObject * -os_uname_impl(PyModuleDef *module); +os_uname_impl(PyObject *module); static PyObject * -os_uname(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_uname(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_uname_impl(module); } @@ -1507,11 +1506,11 @@ PyDoc_STRVAR(os_utime__doc__, {"utime", (PyCFunction)os_utime, METH_VARARGS|METH_KEYWORDS, os_utime__doc__}, static PyObject * -os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times, - PyObject *ns, int dir_fd, int follow_symlinks); +os_utime_impl(PyObject *module, path_t *path, PyObject *times, PyObject *ns, + int dir_fd, int follow_symlinks); static PyObject * -os_utime(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_utime(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "times", "ns", "dir_fd", "follow_symlinks", NULL}; @@ -1543,10 +1542,10 @@ PyDoc_STRVAR(os__exit__doc__, {"_exit", (PyCFunction)os__exit, METH_VARARGS|METH_KEYWORDS, os__exit__doc__}, static PyObject * -os__exit_impl(PyModuleDef *module, int status); +os__exit_impl(PyObject *module, int status); static PyObject * -os__exit(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os__exit(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -1578,10 +1577,10 @@ PyDoc_STRVAR(os_execv__doc__, {"execv", (PyCFunction)os_execv, METH_VARARGS, os_execv__doc__}, static PyObject * -os_execv_impl(PyModuleDef *module, PyObject *path, PyObject *argv); +os_execv_impl(PyObject *module, PyObject *path, PyObject *argv); static PyObject * -os_execv(PyModuleDef *module, PyObject *args) +os_execv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; PyObject *path = NULL; @@ -1620,11 +1619,10 @@ PyDoc_STRVAR(os_execve__doc__, {"execve", (PyCFunction)os_execve, METH_VARARGS|METH_KEYWORDS, os_execve__doc__}, static PyObject * -os_execve_impl(PyModuleDef *module, path_t *path, PyObject *argv, - PyObject *env); +os_execve_impl(PyObject *module, path_t *path, PyObject *argv, PyObject *env); static PyObject * -os_execve(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_execve(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "argv", "env", NULL}; @@ -1665,10 +1663,10 @@ PyDoc_STRVAR(os_spawnv__doc__, {"spawnv", (PyCFunction)os_spawnv, METH_VARARGS, os_spawnv__doc__}, static PyObject * -os_spawnv_impl(PyModuleDef *module, int mode, PyObject *path, PyObject *argv); +os_spawnv_impl(PyObject *module, int mode, PyObject *path, PyObject *argv); static PyObject * -os_spawnv(PyModuleDef *module, PyObject *args) +os_spawnv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int mode; @@ -1710,11 +1708,11 @@ PyDoc_STRVAR(os_spawnve__doc__, {"spawnve", (PyCFunction)os_spawnve, METH_VARARGS, os_spawnve__doc__}, static PyObject * -os_spawnve_impl(PyModuleDef *module, int mode, PyObject *path, - PyObject *argv, PyObject *env); +os_spawnve_impl(PyObject *module, int mode, PyObject *path, PyObject *argv, + PyObject *env); static PyObject * -os_spawnve(PyModuleDef *module, PyObject *args) +os_spawnve(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int mode; @@ -1750,10 +1748,10 @@ PyDoc_STRVAR(os_fork1__doc__, {"fork1", (PyCFunction)os_fork1, METH_NOARGS, os_fork1__doc__}, static PyObject * -os_fork1_impl(PyModuleDef *module); +os_fork1_impl(PyObject *module); static PyObject * -os_fork1(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_fork1(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_fork1_impl(module); } @@ -1774,10 +1772,10 @@ PyDoc_STRVAR(os_fork__doc__, {"fork", (PyCFunction)os_fork, METH_NOARGS, os_fork__doc__}, static PyObject * -os_fork_impl(PyModuleDef *module); +os_fork_impl(PyObject *module); static PyObject * -os_fork(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_fork(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_fork_impl(module); } @@ -1796,10 +1794,10 @@ PyDoc_STRVAR(os_sched_get_priority_max__doc__, {"sched_get_priority_max", (PyCFunction)os_sched_get_priority_max, METH_VARARGS|METH_KEYWORDS, os_sched_get_priority_max__doc__}, static PyObject * -os_sched_get_priority_max_impl(PyModuleDef *module, int policy); +os_sched_get_priority_max_impl(PyObject *module, int policy); static PyObject * -os_sched_get_priority_max(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_sched_get_priority_max(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"policy", NULL}; @@ -1828,10 +1826,10 @@ PyDoc_STRVAR(os_sched_get_priority_min__doc__, {"sched_get_priority_min", (PyCFunction)os_sched_get_priority_min, METH_VARARGS|METH_KEYWORDS, os_sched_get_priority_min__doc__}, static PyObject * -os_sched_get_priority_min_impl(PyModuleDef *module, int policy); +os_sched_get_priority_min_impl(PyObject *module, int policy); static PyObject * -os_sched_get_priority_min(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_sched_get_priority_min(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"policy", NULL}; @@ -1862,10 +1860,10 @@ PyDoc_STRVAR(os_sched_getscheduler__doc__, {"sched_getscheduler", (PyCFunction)os_sched_getscheduler, METH_O, os_sched_getscheduler__doc__}, static PyObject * -os_sched_getscheduler_impl(PyModuleDef *module, pid_t pid); +os_sched_getscheduler_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_getscheduler(PyModuleDef *module, PyObject *arg) +os_sched_getscheduler(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -1927,11 +1925,11 @@ PyDoc_STRVAR(os_sched_setscheduler__doc__, {"sched_setscheduler", (PyCFunction)os_sched_setscheduler, METH_VARARGS, os_sched_setscheduler__doc__}, static PyObject * -os_sched_setscheduler_impl(PyModuleDef *module, pid_t pid, int policy, +os_sched_setscheduler_impl(PyObject *module, pid_t pid, int policy, struct sched_param *param); static PyObject * -os_sched_setscheduler(PyModuleDef *module, PyObject *args) +os_sched_setscheduler(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -1964,10 +1962,10 @@ PyDoc_STRVAR(os_sched_getparam__doc__, {"sched_getparam", (PyCFunction)os_sched_getparam, METH_O, os_sched_getparam__doc__}, static PyObject * -os_sched_getparam_impl(PyModuleDef *module, pid_t pid); +os_sched_getparam_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_getparam(PyModuleDef *module, PyObject *arg) +os_sched_getparam(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -1997,11 +1995,11 @@ PyDoc_STRVAR(os_sched_setparam__doc__, {"sched_setparam", (PyCFunction)os_sched_setparam, METH_VARARGS, os_sched_setparam__doc__}, static PyObject * -os_sched_setparam_impl(PyModuleDef *module, pid_t pid, +os_sched_setparam_impl(PyObject *module, pid_t pid, struct sched_param *param); static PyObject * -os_sched_setparam(PyModuleDef *module, PyObject *args) +os_sched_setparam(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2032,10 +2030,10 @@ PyDoc_STRVAR(os_sched_rr_get_interval__doc__, {"sched_rr_get_interval", (PyCFunction)os_sched_rr_get_interval, METH_O, os_sched_rr_get_interval__doc__}, static double -os_sched_rr_get_interval_impl(PyModuleDef *module, pid_t pid); +os_sched_rr_get_interval_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_rr_get_interval(PyModuleDef *module, PyObject *arg) +os_sched_rr_get_interval(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -2066,10 +2064,10 @@ PyDoc_STRVAR(os_sched_yield__doc__, {"sched_yield", (PyCFunction)os_sched_yield, METH_NOARGS, os_sched_yield__doc__}, static PyObject * -os_sched_yield_impl(PyModuleDef *module); +os_sched_yield_impl(PyObject *module); static PyObject * -os_sched_yield(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_sched_yield(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_sched_yield_impl(module); } @@ -2090,10 +2088,10 @@ PyDoc_STRVAR(os_sched_setaffinity__doc__, {"sched_setaffinity", (PyCFunction)os_sched_setaffinity, METH_VARARGS, os_sched_setaffinity__doc__}, static PyObject * -os_sched_setaffinity_impl(PyModuleDef *module, pid_t pid, PyObject *mask); +os_sched_setaffinity_impl(PyObject *module, pid_t pid, PyObject *mask); static PyObject * -os_sched_setaffinity(PyModuleDef *module, PyObject *args) +os_sched_setaffinity(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2124,10 +2122,10 @@ PyDoc_STRVAR(os_sched_getaffinity__doc__, {"sched_getaffinity", (PyCFunction)os_sched_getaffinity, METH_O, os_sched_getaffinity__doc__}, static PyObject * -os_sched_getaffinity_impl(PyModuleDef *module, pid_t pid); +os_sched_getaffinity_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_getaffinity(PyModuleDef *module, PyObject *arg) +os_sched_getaffinity(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -2157,10 +2155,10 @@ PyDoc_STRVAR(os_openpty__doc__, {"openpty", (PyCFunction)os_openpty, METH_NOARGS, os_openpty__doc__}, static PyObject * -os_openpty_impl(PyModuleDef *module); +os_openpty_impl(PyObject *module); static PyObject * -os_openpty(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_openpty(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_openpty_impl(module); } @@ -2184,10 +2182,10 @@ PyDoc_STRVAR(os_forkpty__doc__, {"forkpty", (PyCFunction)os_forkpty, METH_NOARGS, os_forkpty__doc__}, static PyObject * -os_forkpty_impl(PyModuleDef *module); +os_forkpty_impl(PyObject *module); static PyObject * -os_forkpty(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_forkpty(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_forkpty_impl(module); } @@ -2206,10 +2204,10 @@ PyDoc_STRVAR(os_getegid__doc__, {"getegid", (PyCFunction)os_getegid, METH_NOARGS, os_getegid__doc__}, static PyObject * -os_getegid_impl(PyModuleDef *module); +os_getegid_impl(PyObject *module); static PyObject * -os_getegid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getegid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getegid_impl(module); } @@ -2228,10 +2226,10 @@ PyDoc_STRVAR(os_geteuid__doc__, {"geteuid", (PyCFunction)os_geteuid, METH_NOARGS, os_geteuid__doc__}, static PyObject * -os_geteuid_impl(PyModuleDef *module); +os_geteuid_impl(PyObject *module); static PyObject * -os_geteuid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_geteuid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_geteuid_impl(module); } @@ -2250,10 +2248,10 @@ PyDoc_STRVAR(os_getgid__doc__, {"getgid", (PyCFunction)os_getgid, METH_NOARGS, os_getgid__doc__}, static PyObject * -os_getgid_impl(PyModuleDef *module); +os_getgid_impl(PyObject *module); static PyObject * -os_getgid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getgid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getgid_impl(module); } @@ -2270,10 +2268,10 @@ PyDoc_STRVAR(os_getpid__doc__, {"getpid", (PyCFunction)os_getpid, METH_NOARGS, os_getpid__doc__}, static PyObject * -os_getpid_impl(PyModuleDef *module); +os_getpid_impl(PyObject *module); static PyObject * -os_getpid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getpid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getpid_impl(module); } @@ -2290,10 +2288,10 @@ PyDoc_STRVAR(os_getgroups__doc__, {"getgroups", (PyCFunction)os_getgroups, METH_NOARGS, os_getgroups__doc__}, static PyObject * -os_getgroups_impl(PyModuleDef *module); +os_getgroups_impl(PyObject *module); static PyObject * -os_getgroups(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getgroups(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getgroups_impl(module); } @@ -2312,10 +2310,10 @@ PyDoc_STRVAR(os_getpgid__doc__, {"getpgid", (PyCFunction)os_getpgid, METH_VARARGS|METH_KEYWORDS, os_getpgid__doc__}, static PyObject * -os_getpgid_impl(PyModuleDef *module, pid_t pid); +os_getpgid_impl(PyObject *module, pid_t pid); static PyObject * -os_getpgid(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_getpgid(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"pid", NULL}; @@ -2344,10 +2342,10 @@ PyDoc_STRVAR(os_getpgrp__doc__, {"getpgrp", (PyCFunction)os_getpgrp, METH_NOARGS, os_getpgrp__doc__}, static PyObject * -os_getpgrp_impl(PyModuleDef *module); +os_getpgrp_impl(PyObject *module); static PyObject * -os_getpgrp(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getpgrp_impl(module); } @@ -2366,10 +2364,10 @@ PyDoc_STRVAR(os_setpgrp__doc__, {"setpgrp", (PyCFunction)os_setpgrp, METH_NOARGS, os_setpgrp__doc__}, static PyObject * -os_setpgrp_impl(PyModuleDef *module); +os_setpgrp_impl(PyObject *module); static PyObject * -os_setpgrp(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_setpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_setpgrp_impl(module); } @@ -2391,10 +2389,10 @@ PyDoc_STRVAR(os_getppid__doc__, {"getppid", (PyCFunction)os_getppid, METH_NOARGS, os_getppid__doc__}, static PyObject * -os_getppid_impl(PyModuleDef *module); +os_getppid_impl(PyObject *module); static PyObject * -os_getppid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getppid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getppid_impl(module); } @@ -2413,10 +2411,10 @@ PyDoc_STRVAR(os_getlogin__doc__, {"getlogin", (PyCFunction)os_getlogin, METH_NOARGS, os_getlogin__doc__}, static PyObject * -os_getlogin_impl(PyModuleDef *module); +os_getlogin_impl(PyObject *module); static PyObject * -os_getlogin(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getlogin(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getlogin_impl(module); } @@ -2435,10 +2433,10 @@ PyDoc_STRVAR(os_getuid__doc__, {"getuid", (PyCFunction)os_getuid, METH_NOARGS, os_getuid__doc__}, static PyObject * -os_getuid_impl(PyModuleDef *module); +os_getuid_impl(PyObject *module); static PyObject * -os_getuid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getuid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getuid_impl(module); } @@ -2457,10 +2455,10 @@ PyDoc_STRVAR(os_kill__doc__, {"kill", (PyCFunction)os_kill, METH_VARARGS, os_kill__doc__}, static PyObject * -os_kill_impl(PyModuleDef *module, pid_t pid, Py_ssize_t signal); +os_kill_impl(PyObject *module, pid_t pid, Py_ssize_t signal); static PyObject * -os_kill(PyModuleDef *module, PyObject *args) +os_kill(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2489,10 +2487,10 @@ PyDoc_STRVAR(os_killpg__doc__, {"killpg", (PyCFunction)os_killpg, METH_VARARGS, os_killpg__doc__}, static PyObject * -os_killpg_impl(PyModuleDef *module, pid_t pgid, int signal); +os_killpg_impl(PyObject *module, pid_t pgid, int signal); static PyObject * -os_killpg(PyModuleDef *module, PyObject *args) +os_killpg(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pgid; @@ -2521,10 +2519,10 @@ PyDoc_STRVAR(os_plock__doc__, {"plock", (PyCFunction)os_plock, METH_O, os_plock__doc__}, static PyObject * -os_plock_impl(PyModuleDef *module, int op); +os_plock_impl(PyObject *module, int op); static PyObject * -os_plock(PyModuleDef *module, PyObject *arg) +os_plock(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int op; @@ -2551,10 +2549,10 @@ PyDoc_STRVAR(os_setuid__doc__, {"setuid", (PyCFunction)os_setuid, METH_O, os_setuid__doc__}, static PyObject * -os_setuid_impl(PyModuleDef *module, uid_t uid); +os_setuid_impl(PyObject *module, uid_t uid); static PyObject * -os_setuid(PyModuleDef *module, PyObject *arg) +os_setuid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; uid_t uid; @@ -2581,10 +2579,10 @@ PyDoc_STRVAR(os_seteuid__doc__, {"seteuid", (PyCFunction)os_seteuid, METH_O, os_seteuid__doc__}, static PyObject * -os_seteuid_impl(PyModuleDef *module, uid_t euid); +os_seteuid_impl(PyObject *module, uid_t euid); static PyObject * -os_seteuid(PyModuleDef *module, PyObject *arg) +os_seteuid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; uid_t euid; @@ -2611,10 +2609,10 @@ PyDoc_STRVAR(os_setegid__doc__, {"setegid", (PyCFunction)os_setegid, METH_O, os_setegid__doc__}, static PyObject * -os_setegid_impl(PyModuleDef *module, gid_t egid); +os_setegid_impl(PyObject *module, gid_t egid); static PyObject * -os_setegid(PyModuleDef *module, PyObject *arg) +os_setegid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; gid_t egid; @@ -2641,10 +2639,10 @@ PyDoc_STRVAR(os_setreuid__doc__, {"setreuid", (PyCFunction)os_setreuid, METH_VARARGS, os_setreuid__doc__}, static PyObject * -os_setreuid_impl(PyModuleDef *module, uid_t ruid, uid_t euid); +os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid); static PyObject * -os_setreuid(PyModuleDef *module, PyObject *args) +os_setreuid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; uid_t ruid; @@ -2673,10 +2671,10 @@ PyDoc_STRVAR(os_setregid__doc__, {"setregid", (PyCFunction)os_setregid, METH_VARARGS, os_setregid__doc__}, static PyObject * -os_setregid_impl(PyModuleDef *module, gid_t rgid, gid_t egid); +os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid); static PyObject * -os_setregid(PyModuleDef *module, PyObject *args) +os_setregid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; gid_t rgid; @@ -2705,10 +2703,10 @@ PyDoc_STRVAR(os_setgid__doc__, {"setgid", (PyCFunction)os_setgid, METH_O, os_setgid__doc__}, static PyObject * -os_setgid_impl(PyModuleDef *module, gid_t gid); +os_setgid_impl(PyObject *module, gid_t gid); static PyObject * -os_setgid(PyModuleDef *module, PyObject *arg) +os_setgid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; gid_t gid; @@ -2751,10 +2749,10 @@ PyDoc_STRVAR(os_wait3__doc__, {"wait3", (PyCFunction)os_wait3, METH_VARARGS|METH_KEYWORDS, os_wait3__doc__}, static PyObject * -os_wait3_impl(PyModuleDef *module, int options); +os_wait3_impl(PyObject *module, int options); static PyObject * -os_wait3(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_wait3(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"options", NULL}; @@ -2786,10 +2784,10 @@ PyDoc_STRVAR(os_wait4__doc__, {"wait4", (PyCFunction)os_wait4, METH_VARARGS|METH_KEYWORDS, os_wait4__doc__}, static PyObject * -os_wait4_impl(PyModuleDef *module, pid_t pid, int options); +os_wait4_impl(PyObject *module, pid_t pid, int options); static PyObject * -os_wait4(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_wait4(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"pid", "options", NULL}; @@ -2830,10 +2828,10 @@ PyDoc_STRVAR(os_waitid__doc__, {"waitid", (PyCFunction)os_waitid, METH_VARARGS, os_waitid__doc__}, static PyObject * -os_waitid_impl(PyModuleDef *module, idtype_t idtype, id_t id, int options); +os_waitid_impl(PyObject *module, idtype_t idtype, id_t id, int options); static PyObject * -os_waitid(PyModuleDef *module, PyObject *args) +os_waitid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; idtype_t idtype; @@ -2868,10 +2866,10 @@ PyDoc_STRVAR(os_waitpid__doc__, {"waitpid", (PyCFunction)os_waitpid, METH_VARARGS, os_waitpid__doc__}, static PyObject * -os_waitpid_impl(PyModuleDef *module, pid_t pid, int options); +os_waitpid_impl(PyObject *module, pid_t pid, int options); static PyObject * -os_waitpid(PyModuleDef *module, PyObject *args) +os_waitpid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2905,10 +2903,10 @@ PyDoc_STRVAR(os_waitpid__doc__, {"waitpid", (PyCFunction)os_waitpid, METH_VARARGS, os_waitpid__doc__}, static PyObject * -os_waitpid_impl(PyModuleDef *module, Py_intptr_t pid, int options); +os_waitpid_impl(PyObject *module, Py_intptr_t pid, int options); static PyObject * -os_waitpid(PyModuleDef *module, PyObject *args) +os_waitpid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; Py_intptr_t pid; @@ -2940,10 +2938,10 @@ PyDoc_STRVAR(os_wait__doc__, {"wait", (PyCFunction)os_wait, METH_NOARGS, os_wait__doc__}, static PyObject * -os_wait_impl(PyModuleDef *module); +os_wait_impl(PyObject *module); static PyObject * -os_wait(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_wait(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_wait_impl(module); } @@ -2972,11 +2970,11 @@ PyDoc_STRVAR(os_symlink__doc__, {"symlink", (PyCFunction)os_symlink, METH_VARARGS|METH_KEYWORDS, os_symlink__doc__}, static PyObject * -os_symlink_impl(PyModuleDef *module, path_t *src, path_t *dst, +os_symlink_impl(PyObject *module, path_t *src, path_t *dst, int target_is_directory, int dir_fd); static PyObject * -os_symlink(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_symlink(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "target_is_directory", "dir_fd", NULL}; @@ -3017,10 +3015,10 @@ PyDoc_STRVAR(os_times__doc__, {"times", (PyCFunction)os_times, METH_NOARGS, os_times__doc__}, static PyObject * -os_times_impl(PyModuleDef *module); +os_times_impl(PyObject *module); static PyObject * -os_times(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_times(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_times_impl(module); } @@ -3039,10 +3037,10 @@ PyDoc_STRVAR(os_getsid__doc__, {"getsid", (PyCFunction)os_getsid, METH_O, os_getsid__doc__}, static PyObject * -os_getsid_impl(PyModuleDef *module, pid_t pid); +os_getsid_impl(PyObject *module, pid_t pid); static PyObject * -os_getsid(PyModuleDef *module, PyObject *arg) +os_getsid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -3069,10 +3067,10 @@ PyDoc_STRVAR(os_setsid__doc__, {"setsid", (PyCFunction)os_setsid, METH_NOARGS, os_setsid__doc__}, static PyObject * -os_setsid_impl(PyModuleDef *module); +os_setsid_impl(PyObject *module); static PyObject * -os_setsid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_setsid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_setsid_impl(module); } @@ -3091,10 +3089,10 @@ PyDoc_STRVAR(os_setpgid__doc__, {"setpgid", (PyCFunction)os_setpgid, METH_VARARGS, os_setpgid__doc__}, static PyObject * -os_setpgid_impl(PyModuleDef *module, pid_t pid, pid_t pgrp); +os_setpgid_impl(PyObject *module, pid_t pid, pid_t pgrp); static PyObject * -os_setpgid(PyModuleDef *module, PyObject *args) +os_setpgid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -3123,10 +3121,10 @@ PyDoc_STRVAR(os_tcgetpgrp__doc__, {"tcgetpgrp", (PyCFunction)os_tcgetpgrp, METH_O, os_tcgetpgrp__doc__}, static PyObject * -os_tcgetpgrp_impl(PyModuleDef *module, int fd); +os_tcgetpgrp_impl(PyObject *module, int fd); static PyObject * -os_tcgetpgrp(PyModuleDef *module, PyObject *arg) +os_tcgetpgrp(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -3153,10 +3151,10 @@ PyDoc_STRVAR(os_tcsetpgrp__doc__, {"tcsetpgrp", (PyCFunction)os_tcsetpgrp, METH_VARARGS, os_tcsetpgrp__doc__}, static PyObject * -os_tcsetpgrp_impl(PyModuleDef *module, int fd, pid_t pgid); +os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid); static PyObject * -os_tcsetpgrp(PyModuleDef *module, PyObject *args) +os_tcsetpgrp(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3188,11 +3186,10 @@ PyDoc_STRVAR(os_open__doc__, {"open", (PyCFunction)os_open, METH_VARARGS|METH_KEYWORDS, os_open__doc__}, static int -os_open_impl(PyModuleDef *module, path_t *path, int flags, int mode, - int dir_fd); +os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd); static PyObject * -os_open(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_open(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "flags", "mode", "dir_fd", NULL}; @@ -3227,10 +3224,10 @@ PyDoc_STRVAR(os_close__doc__, {"close", (PyCFunction)os_close, METH_VARARGS|METH_KEYWORDS, os_close__doc__}, static PyObject * -os_close_impl(PyModuleDef *module, int fd); +os_close_impl(PyObject *module, int fd); static PyObject * -os_close(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_close(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -3255,10 +3252,10 @@ PyDoc_STRVAR(os_closerange__doc__, {"closerange", (PyCFunction)os_closerange, METH_VARARGS, os_closerange__doc__}, static PyObject * -os_closerange_impl(PyModuleDef *module, int fd_low, int fd_high); +os_closerange_impl(PyObject *module, int fd_low, int fd_high); static PyObject * -os_closerange(PyModuleDef *module, PyObject *args) +os_closerange(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd_low; @@ -3283,10 +3280,10 @@ PyDoc_STRVAR(os_dup__doc__, {"dup", (PyCFunction)os_dup, METH_O, os_dup__doc__}, static int -os_dup_impl(PyModuleDef *module, int fd); +os_dup_impl(PyObject *module, int fd); static PyObject * -os_dup(PyModuleDef *module, PyObject *arg) +os_dup(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -3313,10 +3310,10 @@ PyDoc_STRVAR(os_dup2__doc__, {"dup2", (PyCFunction)os_dup2, METH_VARARGS|METH_KEYWORDS, os_dup2__doc__}, static PyObject * -os_dup2_impl(PyModuleDef *module, int fd, int fd2, int inheritable); +os_dup2_impl(PyObject *module, int fd, int fd2, int inheritable); static PyObject * -os_dup2(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_dup2(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", "fd2", "inheritable", NULL}; @@ -3352,10 +3349,10 @@ PyDoc_STRVAR(os_lockf__doc__, {"lockf", (PyCFunction)os_lockf, METH_VARARGS, os_lockf__doc__}, static PyObject * -os_lockf_impl(PyModuleDef *module, int fd, int command, Py_off_t length); +os_lockf_impl(PyObject *module, int fd, int command, Py_off_t length); static PyObject * -os_lockf(PyModuleDef *module, PyObject *args) +os_lockf(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3386,10 +3383,10 @@ PyDoc_STRVAR(os_lseek__doc__, {"lseek", (PyCFunction)os_lseek, METH_VARARGS, os_lseek__doc__}, static Py_off_t -os_lseek_impl(PyModuleDef *module, int fd, Py_off_t position, int how); +os_lseek_impl(PyObject *module, int fd, Py_off_t position, int how); static PyObject * -os_lseek(PyModuleDef *module, PyObject *args) +os_lseek(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3419,10 +3416,10 @@ PyDoc_STRVAR(os_read__doc__, {"read", (PyCFunction)os_read, METH_VARARGS, os_read__doc__}, static PyObject * -os_read_impl(PyModuleDef *module, int fd, Py_ssize_t length); +os_read_impl(PyObject *module, int fd, Py_ssize_t length); static PyObject * -os_read(PyModuleDef *module, PyObject *args) +os_read(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3457,10 +3454,10 @@ PyDoc_STRVAR(os_readv__doc__, {"readv", (PyCFunction)os_readv, METH_VARARGS, os_readv__doc__}, static Py_ssize_t -os_readv_impl(PyModuleDef *module, int fd, PyObject *buffers); +os_readv_impl(PyObject *module, int fd, PyObject *buffers); static PyObject * -os_readv(PyModuleDef *module, PyObject *args) +os_readv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3496,10 +3493,10 @@ PyDoc_STRVAR(os_pread__doc__, {"pread", (PyCFunction)os_pread, METH_VARARGS, os_pread__doc__}, static PyObject * -os_pread_impl(PyModuleDef *module, int fd, int length, Py_off_t offset); +os_pread_impl(PyObject *module, int fd, int length, Py_off_t offset); static PyObject * -os_pread(PyModuleDef *module, PyObject *args) +os_pread(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3527,10 +3524,10 @@ PyDoc_STRVAR(os_write__doc__, {"write", (PyCFunction)os_write, METH_VARARGS, os_write__doc__}, static Py_ssize_t -os_write_impl(PyModuleDef *module, int fd, Py_buffer *data); +os_write_impl(PyObject *module, int fd, Py_buffer *data); static PyObject * -os_write(PyModuleDef *module, PyObject *args) +os_write(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3566,10 +3563,10 @@ PyDoc_STRVAR(os_fstat__doc__, {"fstat", (PyCFunction)os_fstat, METH_VARARGS|METH_KEYWORDS, os_fstat__doc__}, static PyObject * -os_fstat_impl(PyModuleDef *module, int fd); +os_fstat_impl(PyObject *module, int fd); static PyObject * -os_fstat(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fstat(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -3597,10 +3594,10 @@ PyDoc_STRVAR(os_isatty__doc__, {"isatty", (PyCFunction)os_isatty, METH_O, os_isatty__doc__}, static int -os_isatty_impl(PyModuleDef *module, int fd); +os_isatty_impl(PyObject *module, int fd); static PyObject * -os_isatty(PyModuleDef *module, PyObject *arg) +os_isatty(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -3632,10 +3629,10 @@ PyDoc_STRVAR(os_pipe__doc__, {"pipe", (PyCFunction)os_pipe, METH_NOARGS, os_pipe__doc__}, static PyObject * -os_pipe_impl(PyModuleDef *module); +os_pipe_impl(PyObject *module); static PyObject * -os_pipe(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_pipe(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_pipe_impl(module); } @@ -3660,10 +3657,10 @@ PyDoc_STRVAR(os_pipe2__doc__, {"pipe2", (PyCFunction)os_pipe2, METH_O, os_pipe2__doc__}, static PyObject * -os_pipe2_impl(PyModuleDef *module, int flags); +os_pipe2_impl(PyObject *module, int flags); static PyObject * -os_pipe2(PyModuleDef *module, PyObject *arg) +os_pipe2(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int flags; @@ -3693,10 +3690,10 @@ PyDoc_STRVAR(os_writev__doc__, {"writev", (PyCFunction)os_writev, METH_VARARGS, os_writev__doc__}, static Py_ssize_t -os_writev_impl(PyModuleDef *module, int fd, PyObject *buffers); +os_writev_impl(PyObject *module, int fd, PyObject *buffers); static PyObject * -os_writev(PyModuleDef *module, PyObject *args) +os_writev(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3733,11 +3730,10 @@ PyDoc_STRVAR(os_pwrite__doc__, {"pwrite", (PyCFunction)os_pwrite, METH_VARARGS, os_pwrite__doc__}, static Py_ssize_t -os_pwrite_impl(PyModuleDef *module, int fd, Py_buffer *buffer, - Py_off_t offset); +os_pwrite_impl(PyObject *module, int fd, Py_buffer *buffer, Py_off_t offset); static PyObject * -os_pwrite(PyModuleDef *module, PyObject *args) +os_pwrite(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3780,10 +3776,10 @@ PyDoc_STRVAR(os_mkfifo__doc__, {"mkfifo", (PyCFunction)os_mkfifo, METH_VARARGS|METH_KEYWORDS, os_mkfifo__doc__}, static PyObject * -os_mkfifo_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd); +os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd); static PyObject * -os_mkfifo(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_mkfifo(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", NULL}; @@ -3829,11 +3825,11 @@ PyDoc_STRVAR(os_mknod__doc__, {"mknod", (PyCFunction)os_mknod, METH_VARARGS|METH_KEYWORDS, os_mknod__doc__}, static PyObject * -os_mknod_impl(PyModuleDef *module, path_t *path, int mode, dev_t device, +os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device, int dir_fd); static PyObject * -os_mknod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_mknod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "device", "dir_fd", NULL}; @@ -3868,10 +3864,10 @@ PyDoc_STRVAR(os_major__doc__, {"major", (PyCFunction)os_major, METH_O, os_major__doc__}, static unsigned int -os_major_impl(PyModuleDef *module, dev_t device); +os_major_impl(PyObject *module, dev_t device); static PyObject * -os_major(PyModuleDef *module, PyObject *arg) +os_major(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; dev_t device; @@ -3902,10 +3898,10 @@ PyDoc_STRVAR(os_minor__doc__, {"minor", (PyCFunction)os_minor, METH_O, os_minor__doc__}, static unsigned int -os_minor_impl(PyModuleDef *module, dev_t device); +os_minor_impl(PyObject *module, dev_t device); static PyObject * -os_minor(PyModuleDef *module, PyObject *arg) +os_minor(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; dev_t device; @@ -3936,10 +3932,10 @@ PyDoc_STRVAR(os_makedev__doc__, {"makedev", (PyCFunction)os_makedev, METH_VARARGS, os_makedev__doc__}, static dev_t -os_makedev_impl(PyModuleDef *module, int major, int minor); +os_makedev_impl(PyObject *module, int major, int minor); static PyObject * -os_makedev(PyModuleDef *module, PyObject *args) +os_makedev(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int major; @@ -3972,10 +3968,10 @@ PyDoc_STRVAR(os_ftruncate__doc__, {"ftruncate", (PyCFunction)os_ftruncate, METH_VARARGS, os_ftruncate__doc__}, static PyObject * -os_ftruncate_impl(PyModuleDef *module, int fd, Py_off_t length); +os_ftruncate_impl(PyObject *module, int fd, Py_off_t length); static PyObject * -os_ftruncate(PyModuleDef *module, PyObject *args) +os_ftruncate(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4007,10 +4003,10 @@ PyDoc_STRVAR(os_truncate__doc__, {"truncate", (PyCFunction)os_truncate, METH_VARARGS|METH_KEYWORDS, os_truncate__doc__}, static PyObject * -os_truncate_impl(PyModuleDef *module, path_t *path, Py_off_t length); +os_truncate_impl(PyObject *module, path_t *path, Py_off_t length); static PyObject * -os_truncate(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_truncate(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "length", NULL}; @@ -4046,11 +4042,11 @@ PyDoc_STRVAR(os_posix_fallocate__doc__, {"posix_fallocate", (PyCFunction)os_posix_fallocate, METH_VARARGS, os_posix_fallocate__doc__}, static PyObject * -os_posix_fallocate_impl(PyModuleDef *module, int fd, Py_off_t offset, +os_posix_fallocate_impl(PyObject *module, int fd, Py_off_t offset, Py_off_t length); static PyObject * -os_posix_fallocate(PyModuleDef *module, PyObject *args) +os_posix_fallocate(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4088,11 +4084,11 @@ PyDoc_STRVAR(os_posix_fadvise__doc__, {"posix_fadvise", (PyCFunction)os_posix_fadvise, METH_VARARGS, os_posix_fadvise__doc__}, static PyObject * -os_posix_fadvise_impl(PyModuleDef *module, int fd, Py_off_t offset, +os_posix_fadvise_impl(PyObject *module, int fd, Py_off_t offset, Py_off_t length, int advice); static PyObject * -os_posix_fadvise(PyModuleDef *module, PyObject *args) +os_posix_fadvise(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4123,10 +4119,10 @@ PyDoc_STRVAR(os_putenv__doc__, {"putenv", (PyCFunction)os_putenv, METH_VARARGS, os_putenv__doc__}, static PyObject * -os_putenv_impl(PyModuleDef *module, PyObject *name, PyObject *value); +os_putenv_impl(PyObject *module, PyObject *name, PyObject *value); static PyObject * -os_putenv(PyModuleDef *module, PyObject *args) +os_putenv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; PyObject *name; @@ -4155,10 +4151,10 @@ PyDoc_STRVAR(os_putenv__doc__, {"putenv", (PyCFunction)os_putenv, METH_VARARGS, os_putenv__doc__}, static PyObject * -os_putenv_impl(PyModuleDef *module, PyObject *name, PyObject *value); +os_putenv_impl(PyObject *module, PyObject *name, PyObject *value); static PyObject * -os_putenv(PyModuleDef *module, PyObject *args) +os_putenv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; PyObject *name = NULL; @@ -4192,10 +4188,10 @@ PyDoc_STRVAR(os_unsetenv__doc__, {"unsetenv", (PyCFunction)os_unsetenv, METH_O, os_unsetenv__doc__}, static PyObject * -os_unsetenv_impl(PyModuleDef *module, PyObject *name); +os_unsetenv_impl(PyObject *module, PyObject *name); static PyObject * -os_unsetenv(PyModuleDef *module, PyObject *arg) +os_unsetenv(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; PyObject *name = NULL; @@ -4223,10 +4219,10 @@ PyDoc_STRVAR(os_strerror__doc__, {"strerror", (PyCFunction)os_strerror, METH_O, os_strerror__doc__}, static PyObject * -os_strerror_impl(PyModuleDef *module, int code); +os_strerror_impl(PyObject *module, int code); static PyObject * -os_strerror(PyModuleDef *module, PyObject *arg) +os_strerror(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int code; @@ -4251,10 +4247,10 @@ PyDoc_STRVAR(os_WCOREDUMP__doc__, {"WCOREDUMP", (PyCFunction)os_WCOREDUMP, METH_O, os_WCOREDUMP__doc__}, static int -os_WCOREDUMP_impl(PyModuleDef *module, int status); +os_WCOREDUMP_impl(PyObject *module, int status); static PyObject * -os_WCOREDUMP(PyModuleDef *module, PyObject *arg) +os_WCOREDUMP(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int status; @@ -4288,10 +4284,10 @@ PyDoc_STRVAR(os_WIFCONTINUED__doc__, {"WIFCONTINUED", (PyCFunction)os_WIFCONTINUED, METH_VARARGS|METH_KEYWORDS, os_WIFCONTINUED__doc__}, static int -os_WIFCONTINUED_impl(PyModuleDef *module, int status); +os_WIFCONTINUED_impl(PyObject *module, int status); static PyObject * -os_WIFCONTINUED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFCONTINUED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4324,10 +4320,10 @@ PyDoc_STRVAR(os_WIFSTOPPED__doc__, {"WIFSTOPPED", (PyCFunction)os_WIFSTOPPED, METH_VARARGS|METH_KEYWORDS, os_WIFSTOPPED__doc__}, static int -os_WIFSTOPPED_impl(PyModuleDef *module, int status); +os_WIFSTOPPED_impl(PyObject *module, int status); static PyObject * -os_WIFSTOPPED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFSTOPPED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4360,10 +4356,10 @@ PyDoc_STRVAR(os_WIFSIGNALED__doc__, {"WIFSIGNALED", (PyCFunction)os_WIFSIGNALED, METH_VARARGS|METH_KEYWORDS, os_WIFSIGNALED__doc__}, static int -os_WIFSIGNALED_impl(PyModuleDef *module, int status); +os_WIFSIGNALED_impl(PyObject *module, int status); static PyObject * -os_WIFSIGNALED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFSIGNALED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4396,10 +4392,10 @@ PyDoc_STRVAR(os_WIFEXITED__doc__, {"WIFEXITED", (PyCFunction)os_WIFEXITED, METH_VARARGS|METH_KEYWORDS, os_WIFEXITED__doc__}, static int -os_WIFEXITED_impl(PyModuleDef *module, int status); +os_WIFEXITED_impl(PyObject *module, int status); static PyObject * -os_WIFEXITED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFEXITED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4432,10 +4428,10 @@ PyDoc_STRVAR(os_WEXITSTATUS__doc__, {"WEXITSTATUS", (PyCFunction)os_WEXITSTATUS, METH_VARARGS|METH_KEYWORDS, os_WEXITSTATUS__doc__}, static int -os_WEXITSTATUS_impl(PyModuleDef *module, int status); +os_WEXITSTATUS_impl(PyObject *module, int status); static PyObject * -os_WEXITSTATUS(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WEXITSTATUS(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4468,10 +4464,10 @@ PyDoc_STRVAR(os_WTERMSIG__doc__, {"WTERMSIG", (PyCFunction)os_WTERMSIG, METH_VARARGS|METH_KEYWORDS, os_WTERMSIG__doc__}, static int -os_WTERMSIG_impl(PyModuleDef *module, int status); +os_WTERMSIG_impl(PyObject *module, int status); static PyObject * -os_WTERMSIG(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WTERMSIG(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4504,10 +4500,10 @@ PyDoc_STRVAR(os_WSTOPSIG__doc__, {"WSTOPSIG", (PyCFunction)os_WSTOPSIG, METH_VARARGS|METH_KEYWORDS, os_WSTOPSIG__doc__}, static int -os_WSTOPSIG_impl(PyModuleDef *module, int status); +os_WSTOPSIG_impl(PyObject *module, int status); static PyObject * -os_WSTOPSIG(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WSTOPSIG(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4542,10 +4538,10 @@ PyDoc_STRVAR(os_fstatvfs__doc__, {"fstatvfs", (PyCFunction)os_fstatvfs, METH_O, os_fstatvfs__doc__}, static PyObject * -os_fstatvfs_impl(PyModuleDef *module, int fd); +os_fstatvfs_impl(PyObject *module, int fd); static PyObject * -os_fstatvfs(PyModuleDef *module, PyObject *arg) +os_fstatvfs(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -4576,10 +4572,10 @@ PyDoc_STRVAR(os_statvfs__doc__, {"statvfs", (PyCFunction)os_statvfs, METH_VARARGS|METH_KEYWORDS, os_statvfs__doc__}, static PyObject * -os_statvfs_impl(PyModuleDef *module, path_t *path); +os_statvfs_impl(PyObject *module, path_t *path); static PyObject * -os_statvfs(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_statvfs(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -4611,10 +4607,10 @@ PyDoc_STRVAR(os__getdiskusage__doc__, {"_getdiskusage", (PyCFunction)os__getdiskusage, METH_VARARGS|METH_KEYWORDS, os__getdiskusage__doc__}, static PyObject * -os__getdiskusage_impl(PyModuleDef *module, Py_UNICODE *path); +os__getdiskusage_impl(PyObject *module, Py_UNICODE *path); static PyObject * -os__getdiskusage(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os__getdiskusage(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -4645,10 +4641,10 @@ PyDoc_STRVAR(os_fpathconf__doc__, {"fpathconf", (PyCFunction)os_fpathconf, METH_VARARGS, os_fpathconf__doc__}, static long -os_fpathconf_impl(PyModuleDef *module, int fd, int name); +os_fpathconf_impl(PyObject *module, int fd, int name); static PyObject * -os_fpathconf(PyModuleDef *module, PyObject *args) +os_fpathconf(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4685,10 +4681,10 @@ PyDoc_STRVAR(os_pathconf__doc__, {"pathconf", (PyCFunction)os_pathconf, METH_VARARGS|METH_KEYWORDS, os_pathconf__doc__}, static long -os_pathconf_impl(PyModuleDef *module, path_t *path, int name); +os_pathconf_impl(PyObject *module, path_t *path, int name); static PyObject * -os_pathconf(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_pathconf(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "name", NULL}; @@ -4725,10 +4721,10 @@ PyDoc_STRVAR(os_confstr__doc__, {"confstr", (PyCFunction)os_confstr, METH_O, os_confstr__doc__}, static PyObject * -os_confstr_impl(PyModuleDef *module, int name); +os_confstr_impl(PyObject *module, int name); static PyObject * -os_confstr(PyModuleDef *module, PyObject *arg) +os_confstr(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int name; @@ -4755,10 +4751,10 @@ PyDoc_STRVAR(os_sysconf__doc__, {"sysconf", (PyCFunction)os_sysconf, METH_O, os_sysconf__doc__}, static long -os_sysconf_impl(PyModuleDef *module, int name); +os_sysconf_impl(PyObject *module, int name); static PyObject * -os_sysconf(PyModuleDef *module, PyObject *arg) +os_sysconf(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int name; @@ -4790,10 +4786,10 @@ PyDoc_STRVAR(os_abort__doc__, {"abort", (PyCFunction)os_abort, METH_NOARGS, os_abort__doc__}, static PyObject * -os_abort_impl(PyModuleDef *module); +os_abort_impl(PyObject *module); static PyObject * -os_abort(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_abort(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_abort_impl(module); } @@ -4814,10 +4810,10 @@ PyDoc_STRVAR(os_getloadavg__doc__, {"getloadavg", (PyCFunction)os_getloadavg, METH_NOARGS, os_getloadavg__doc__}, static PyObject * -os_getloadavg_impl(PyModuleDef *module); +os_getloadavg_impl(PyObject *module); static PyObject * -os_getloadavg(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getloadavg(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getloadavg_impl(module); } @@ -4837,10 +4833,10 @@ PyDoc_STRVAR(os_device_encoding__doc__, {"device_encoding", (PyCFunction)os_device_encoding, METH_VARARGS|METH_KEYWORDS, os_device_encoding__doc__}, static PyObject * -os_device_encoding_impl(PyModuleDef *module, int fd); +os_device_encoding_impl(PyObject *module, int fd); static PyObject * -os_device_encoding(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_device_encoding(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -4867,10 +4863,10 @@ PyDoc_STRVAR(os_setresuid__doc__, {"setresuid", (PyCFunction)os_setresuid, METH_VARARGS, os_setresuid__doc__}, static PyObject * -os_setresuid_impl(PyModuleDef *module, uid_t ruid, uid_t euid, uid_t suid); +os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid); static PyObject * -os_setresuid(PyModuleDef *module, PyObject *args) +os_setresuid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; uid_t ruid; @@ -4900,10 +4896,10 @@ PyDoc_STRVAR(os_setresgid__doc__, {"setresgid", (PyCFunction)os_setresgid, METH_VARARGS, os_setresgid__doc__}, static PyObject * -os_setresgid_impl(PyModuleDef *module, gid_t rgid, gid_t egid, gid_t sgid); +os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid); static PyObject * -os_setresgid(PyModuleDef *module, PyObject *args) +os_setresgid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; gid_t rgid; @@ -4933,10 +4929,10 @@ PyDoc_STRVAR(os_getresuid__doc__, {"getresuid", (PyCFunction)os_getresuid, METH_NOARGS, os_getresuid__doc__}, static PyObject * -os_getresuid_impl(PyModuleDef *module); +os_getresuid_impl(PyObject *module); static PyObject * -os_getresuid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getresuid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getresuid_impl(module); } @@ -4955,10 +4951,10 @@ PyDoc_STRVAR(os_getresgid__doc__, {"getresgid", (PyCFunction)os_getresgid, METH_NOARGS, os_getresgid__doc__}, static PyObject * -os_getresgid_impl(PyModuleDef *module); +os_getresgid_impl(PyObject *module); static PyObject * -os_getresgid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getresgid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getresgid_impl(module); } @@ -4982,11 +4978,11 @@ PyDoc_STRVAR(os_getxattr__doc__, {"getxattr", (PyCFunction)os_getxattr, METH_VARARGS|METH_KEYWORDS, os_getxattr__doc__}, static PyObject * -os_getxattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_getxattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks); static PyObject * -os_getxattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_getxattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "attribute", "follow_symlinks", NULL}; @@ -5028,11 +5024,11 @@ PyDoc_STRVAR(os_setxattr__doc__, {"setxattr", (PyCFunction)os_setxattr, METH_VARARGS|METH_KEYWORDS, os_setxattr__doc__}, static PyObject * -os_setxattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_setxattr_impl(PyObject *module, path_t *path, path_t *attribute, Py_buffer *value, int flags, int follow_symlinks); static PyObject * -os_setxattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_setxattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "attribute", "value", "flags", "follow_symlinks", NULL}; @@ -5078,11 +5074,11 @@ PyDoc_STRVAR(os_removexattr__doc__, {"removexattr", (PyCFunction)os_removexattr, METH_VARARGS|METH_KEYWORDS, os_removexattr__doc__}, static PyObject * -os_removexattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_removexattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks); static PyObject * -os_removexattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_removexattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "attribute", "follow_symlinks", NULL}; @@ -5124,10 +5120,10 @@ PyDoc_STRVAR(os_listxattr__doc__, {"listxattr", (PyCFunction)os_listxattr, METH_VARARGS|METH_KEYWORDS, os_listxattr__doc__}, static PyObject * -os_listxattr_impl(PyModuleDef *module, path_t *path, int follow_symlinks); +os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks); static PyObject * -os_listxattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_listxattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "follow_symlinks", NULL}; @@ -5158,10 +5154,10 @@ PyDoc_STRVAR(os_urandom__doc__, {"urandom", (PyCFunction)os_urandom, METH_O, os_urandom__doc__}, static PyObject * -os_urandom_impl(PyModuleDef *module, Py_ssize_t size); +os_urandom_impl(PyObject *module, Py_ssize_t size); static PyObject * -os_urandom(PyModuleDef *module, PyObject *arg) +os_urandom(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; Py_ssize_t size; @@ -5184,10 +5180,10 @@ PyDoc_STRVAR(os_cpu_count__doc__, {"cpu_count", (PyCFunction)os_cpu_count, METH_NOARGS, os_cpu_count__doc__}, static PyObject * -os_cpu_count_impl(PyModuleDef *module); +os_cpu_count_impl(PyObject *module); static PyObject * -os_cpu_count(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_cpu_count(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_cpu_count_impl(module); } @@ -5202,10 +5198,10 @@ PyDoc_STRVAR(os_get_inheritable__doc__, {"get_inheritable", (PyCFunction)os_get_inheritable, METH_O, os_get_inheritable__doc__}, static int -os_get_inheritable_impl(PyModuleDef *module, int fd); +os_get_inheritable_impl(PyObject *module, int fd); static PyObject * -os_get_inheritable(PyModuleDef *module, PyObject *arg) +os_get_inheritable(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -5232,10 +5228,10 @@ PyDoc_STRVAR(os_set_inheritable__doc__, {"set_inheritable", (PyCFunction)os_set_inheritable, METH_VARARGS, os_set_inheritable__doc__}, static PyObject * -os_set_inheritable_impl(PyModuleDef *module, int fd, int inheritable); +os_set_inheritable_impl(PyObject *module, int fd, int inheritable); static PyObject * -os_set_inheritable(PyModuleDef *module, PyObject *args) +os_set_inheritable(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -5262,10 +5258,10 @@ PyDoc_STRVAR(os_get_handle_inheritable__doc__, {"get_handle_inheritable", (PyCFunction)os_get_handle_inheritable, METH_O, os_get_handle_inheritable__doc__}, static int -os_get_handle_inheritable_impl(PyModuleDef *module, Py_intptr_t handle); +os_get_handle_inheritable_impl(PyObject *module, Py_intptr_t handle); static PyObject * -os_get_handle_inheritable(PyModuleDef *module, PyObject *arg) +os_get_handle_inheritable(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; Py_intptr_t handle; @@ -5296,11 +5292,11 @@ PyDoc_STRVAR(os_set_handle_inheritable__doc__, {"set_handle_inheritable", (PyCFunction)os_set_handle_inheritable, METH_VARARGS, os_set_handle_inheritable__doc__}, static PyObject * -os_set_handle_inheritable_impl(PyModuleDef *module, Py_intptr_t handle, +os_set_handle_inheritable_impl(PyObject *module, Py_intptr_t handle, int inheritable); static PyObject * -os_set_handle_inheritable(PyModuleDef *module, PyObject *args) +os_set_handle_inheritable(PyObject *module, PyObject *args) { PyObject *return_value = NULL; Py_intptr_t handle; @@ -5788,4 +5784,4 @@ exit: #ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF #define OS_SET_HANDLE_INHERITABLE_METHODDEF #endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */ -/*[clinic end generated code: output=95824c52fd034654 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c27221987f987cf3 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/pwdmodule.c.h b/Modules/clinic/pwdmodule.c.h index 9de2e4ff2a0..cb191a0b776 100644 --- a/Modules/clinic/pwdmodule.c.h +++ b/Modules/clinic/pwdmodule.c.h @@ -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; @@ -55,10 +55,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); } @@ -68,4 +68,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=2ed0ecf34fd3f98f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d0ea1c5c832f0c1a input=a9049054013a1b77]*/ diff --git a/Modules/clinic/pyexpat.c.h b/Modules/clinic/pyexpat.c.h index 379c5db637d..c5b5c71c995 100644 --- a/Modules/clinic/pyexpat.c.h +++ b/Modules/clinic/pyexpat.c.h @@ -231,11 +231,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}; @@ -262,10 +262,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; @@ -281,4 +281,4 @@ exit: #ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */ -/*[clinic end generated code: output=bf4d99c9702d8a6c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d479cfab607e9dc8 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/sha1module.c.h b/Modules/clinic/sha1module.c.h index fa865baec80..5b8db8079be 100644 --- a/Modules/clinic/sha1module.c.h +++ b/Modules/clinic/sha1module.c.h @@ -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}; @@ -92,4 +92,4 @@ _sha1_sha1(PyModuleDef *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=be19102f3120490a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=0b6a194fbb0b94f2 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/sha256module.c.h b/Modules/clinic/sha256module.c.h index c5fe188a9c3..661569c4fe6 100644 --- a/Modules/clinic/sha256module.c.h +++ b/Modules/clinic/sha256module.c.h @@ -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}; @@ -103,10 +103,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}; @@ -120,4 +120,4 @@ _sha256_sha224(PyModuleDef *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=354cedf3b632c7b2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5a1fc5480e399f95 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/sha512module.c.h b/Modules/clinic/sha512module.c.h index c308739d448..d64c2a413f5 100644 --- a/Modules/clinic/sha512module.c.h +++ b/Modules/clinic/sha512module.c.h @@ -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}; @@ -125,10 +125,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}; @@ -168,4 +168,4 @@ exit: #ifndef _SHA512_SHA384_METHODDEF #define _SHA512_SHA384_METHODDEF #endif /* !defined(_SHA512_SHA384_METHODDEF) */ -/*[clinic end generated code: output=1c7d385731fee7c0 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bb87f494df50ffc0 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/signalmodule.c.h b/Modules/clinic/signalmodule.c.h index ec07ef1f8e7..c8f4cd5c41b 100644 --- a/Modules/clinic/signalmodule.c.h +++ b/Modules/clinic/signalmodule.c.h @@ -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; @@ -48,10 +48,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); } @@ -75,10 +75,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; @@ -109,10 +109,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; @@ -140,10 +140,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; @@ -177,11 +177,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; @@ -211,10 +211,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; @@ -241,10 +241,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; @@ -276,10 +276,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); } @@ -332,11 +332,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; @@ -366,10 +366,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; @@ -429,4 +429,4 @@ exit: #ifndef SIGNAL_PTHREAD_KILL_METHODDEF #define SIGNAL_PTHREAD_KILL_METHODDEF #endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */ -/*[clinic end generated code: output=b99278c16c40ea43 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=dafa598412bfb8d2 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/spwdmodule.c.h b/Modules/clinic/spwdmodule.c.h index c0d18db5890..e26acf1863a 100644 --- a/Modules/clinic/spwdmodule.c.h +++ b/Modules/clinic/spwdmodule.c.h @@ -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; @@ -48,10 +48,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); } @@ -65,4 +65,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=6c178830413f7763 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=510f681b36f54c30 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/zlibmodule.c.h b/Modules/clinic/zlibmodule.c.h index 602ae1df827..71da0273a70 100644 --- a/Modules/clinic/zlibmodule.c.h +++ b/Modules/clinic/zlibmodule.c.h @@ -17,10 +17,10 @@ PyDoc_STRVAR(zlib_compress__doc__, {"compress", (PyCFunction)zlib_compress, METH_VARARGS, zlib_compress__doc__}, static PyObject * -zlib_compress_impl(PyModuleDef *module, Py_buffer *bytes, int level); +zlib_compress_impl(PyObject *module, Py_buffer *bytes, int level); static PyObject * -zlib_compress(PyModuleDef *module, PyObject *args) +zlib_compress(PyObject *module, PyObject *args) { PyObject *return_value = NULL; Py_buffer bytes = {NULL, NULL}; @@ -56,11 +56,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}; @@ -114,11 +114,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}; @@ -158,10 +158,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}; @@ -380,10 +380,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}; @@ -417,10 +417,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}; @@ -442,4 +442,4 @@ exit: #ifndef ZLIB_COMPRESS_COPY_METHODDEF #define ZLIB_COMPRESS_COPY_METHODDEF #endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */ -/*[clinic end generated code: output=f31627b314a7bd2f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=8545565b1a1822de input=a9049054013a1b77]*/ diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index 82ea589e738..cba42a7257a 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -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; diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 4e6eb727801..7bd18ac49e8 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -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; diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c index 403e434697b..3a134a0333e 100644 --- a/Modules/grpmodule.c +++ b/Modules/grpmodule.c @@ -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; @@ -131,8 +131,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; @@ -163,8 +163,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; diff --git a/Modules/md5module.c b/Modules/md5module.c index a9ebc8cc51c..f94acc75130 100644 --- a/Modules/md5module.c +++ b/Modules/md5module.c @@ -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; diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e5f58ab06b4..3c3f80660c8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -2483,9 +2483,8 @@ It's an error to use dir_fd or follow_symlinks when specifying path as [clinic start generated code]*/ static PyObject * -os_stat_impl(PyModuleDef *module, path_t *path, int dir_fd, - int follow_symlinks) -/*[clinic end generated code: output=e4f7569f95d523ca input=099d356c306fa24a]*/ +os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks) +/*[clinic end generated code: output=7d4976e6f18a59c5 input=099d356c306fa24a]*/ { return posix_do_stat("stat", path, dir_fd, follow_symlinks); } @@ -2507,8 +2506,8 @@ Equivalent to stat(path, follow_symlinks=False). [clinic start generated code]*/ static PyObject * -os_lstat_impl(PyModuleDef *module, path_t *path, int dir_fd) -/*[clinic end generated code: output=7a748e333fcb39bd input=0b7474765927b925]*/ +os_lstat_impl(PyObject *module, path_t *path, int dir_fd) +/*[clinic end generated code: output=ef82a5d35ce8ab37 input=0b7474765927b925]*/ { int follow_symlinks = 0; return posix_do_stat("lstat", path, dir_fd, follow_symlinks); @@ -2555,9 +2554,9 @@ Note that most operations will use the effective uid/gid, therefore this [clinic start generated code]*/ static int -os_access_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd, +os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd, int effective_ids, int follow_symlinks) -/*[clinic end generated code: output=abaa53340210088d input=b75a756797af45ec]*/ +/*[clinic end generated code: output=cf84158bc90b1a77 input=b75a756797af45ec]*/ { int return_value; @@ -2648,8 +2647,8 @@ Return the name of the terminal device connected to 'fd'. [clinic start generated code]*/ static char * -os_ttyname_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=03ad3d5ccaef75c3 input=5f72ca83e76b3b45]*/ +os_ttyname_impl(PyObject *module, int fd) +/*[clinic end generated code: output=ed16ad216d813591 input=5f72ca83e76b3b45]*/ { char *ret; @@ -2668,8 +2667,8 @@ Return the name of the controlling terminal for this process. [clinic start generated code]*/ static PyObject * -os_ctermid_impl(PyModuleDef *module) -/*[clinic end generated code: output=1b73788201e0aebd input=3b87fdd52556382d]*/ +os_ctermid_impl(PyObject *module) +/*[clinic end generated code: output=02f017e6c9e620db input=3b87fdd52556382d]*/ { char *ret; char buffer[L_ctermid]; @@ -2699,8 +2698,8 @@ On some platforms, path may also be specified as an open file descriptor. [clinic start generated code]*/ static PyObject * -os_chdir_impl(PyModuleDef *module, path_t *path) -/*[clinic end generated code: output=7358e3a20fb5aa93 input=1a4a15b4d12cb15d]*/ +os_chdir_impl(PyObject *module, path_t *path) +/*[clinic end generated code: output=3be6400eee26eaae input=1a4a15b4d12cb15d]*/ { int result; @@ -2743,8 +2742,8 @@ Equivalent to os.chdir(fd). [clinic start generated code]*/ static PyObject * -os_fchdir_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=361d30df6b2d3418 input=18e816479a2fa985]*/ +os_fchdir_impl(PyObject *module, int fd) +/*[clinic end generated code: output=42e064ec4dc00ab0 input=18e816479a2fa985]*/ { return posix_fildes_fd(fd, fchdir); } @@ -2784,9 +2783,9 @@ dir_fd and follow_symlinks may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_chmod_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd, +os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd, int follow_symlinks) -/*[clinic end generated code: output=05e7f73b1a843ba2 input=7f1618e5e15cc196]*/ +/*[clinic end generated code: output=5cf6a94915cc7bff input=7f1618e5e15cc196]*/ { int result; @@ -2898,8 +2897,8 @@ Equivalent to os.chmod(fd, mode). [clinic start generated code]*/ static PyObject * -os_fchmod_impl(PyModuleDef *module, int fd, int mode) -/*[clinic end generated code: output=2ee31ca226d1ed33 input=8ab11975ca01ee5b]*/ +os_fchmod_impl(PyObject *module, int fd, int mode) +/*[clinic end generated code: output=afd9bc05b4e426b3 input=8ab11975ca01ee5b]*/ { int res; int async_err = 0; @@ -2931,8 +2930,8 @@ Equivalent to chmod(path, mode, follow_symlinks=False)." [clinic start generated code]*/ static PyObject * -os_lchmod_impl(PyModuleDef *module, path_t *path, int mode) -/*[clinic end generated code: output=7c0cc46588d89e46 input=90c5663c7465d24f]*/ +os_lchmod_impl(PyObject *module, path_t *path, int mode) +/*[clinic end generated code: output=082344022b51a1d5 input=90c5663c7465d24f]*/ { int res; Py_BEGIN_ALLOW_THREADS @@ -2966,9 +2965,9 @@ unavailable, using it will raise a NotImplementedError. [clinic start generated code]*/ static PyObject * -os_chflags_impl(PyModuleDef *module, path_t *path, unsigned long flags, +os_chflags_impl(PyObject *module, path_t *path, unsigned long flags, int follow_symlinks) -/*[clinic end generated code: output=ff2d6e73534a95b9 input=0327e29feb876236]*/ +/*[clinic end generated code: output=85571c6737661ce9 input=0327e29feb876236]*/ { int result; @@ -3008,8 +3007,8 @@ Equivalent to chflags(path, flags, follow_symlinks=False). [clinic start generated code]*/ static PyObject * -os_lchflags_impl(PyModuleDef *module, path_t *path, unsigned long flags) -/*[clinic end generated code: output=6741322fb949661b input=f9f82ea8b585ca9d]*/ +os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags) +/*[clinic end generated code: output=30ae958695c07316 input=f9f82ea8b585ca9d]*/ { int res; Py_BEGIN_ALLOW_THREADS @@ -3033,8 +3032,8 @@ Change root directory to path. [clinic start generated code]*/ static PyObject * -os_chroot_impl(PyModuleDef *module, path_t *path) -/*[clinic end generated code: output=b6dbfabe74ecaa9d input=14822965652c3dc3]*/ +os_chroot_impl(PyObject *module, path_t *path) +/*[clinic end generated code: output=de80befc763a4475 input=14822965652c3dc3]*/ { int res; Py_BEGIN_ALLOW_THREADS @@ -3057,8 +3056,8 @@ Force write of fd to disk. [clinic start generated code]*/ static PyObject * -os_fsync_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=83a350851064aea7 input=21c3645c056967f2]*/ +os_fsync_impl(PyObject *module, int fd) +/*[clinic end generated code: output=4a10d773f52b3584 input=21c3645c056967f2]*/ { return posix_fildes_fd(fd, fsync); } @@ -3073,8 +3072,8 @@ Force write of everything to disk. [clinic start generated code]*/ static PyObject * -os_sync_impl(PyModuleDef *module) -/*[clinic end generated code: output=ba524f656c201c40 input=84749fe5e9b404ff]*/ +os_sync_impl(PyObject *module) +/*[clinic end generated code: output=2796b1f0818cd71c input=84749fe5e9b404ff]*/ { Py_BEGIN_ALLOW_THREADS sync(); @@ -3098,8 +3097,8 @@ Force write of fd to disk without forcing update of metadata. [clinic start generated code]*/ static PyObject * -os_fdatasync_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=e0f04a3aff515b75 input=bc74791ee54dd291]*/ +os_fdatasync_impl(PyObject *module, int fd) +/*[clinic end generated code: output=b4b9698b5d7e26dd input=bc74791ee54dd291]*/ { return posix_fildes_fd(fd, fdatasync); } @@ -3147,9 +3146,9 @@ dir_fd and follow_symlinks may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_chown_impl(PyModuleDef *module, path_t *path, uid_t uid, gid_t gid, +os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid, int dir_fd, int follow_symlinks) -/*[clinic end generated code: output=e0a4559f394dbd91 input=a61cc35574814d5d]*/ +/*[clinic end generated code: output=4beadab0db5f70cd input=a61cc35574814d5d]*/ { int result; @@ -3217,8 +3216,8 @@ Equivalent to os.chown(fd, uid, gid). [clinic start generated code]*/ static PyObject * -os_fchown_impl(PyModuleDef *module, int fd, uid_t uid, gid_t gid) -/*[clinic end generated code: output=7545abf8f6086d76 input=3af544ba1b13a0d7]*/ +os_fchown_impl(PyObject *module, int fd, uid_t uid, gid_t gid) +/*[clinic end generated code: output=97d21cbd5a4350a6 input=3af544ba1b13a0d7]*/ { int res; int async_err = 0; @@ -3251,8 +3250,8 @@ Equivalent to os.chown(path, uid, gid, follow_symlinks=False). [clinic start generated code]*/ static PyObject * -os_lchown_impl(PyModuleDef *module, path_t *path, uid_t uid, gid_t gid) -/*[clinic end generated code: output=bb0d2da1579ac275 input=b1c6014d563a7161]*/ +os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid) +/*[clinic end generated code: output=25eaf6af412fdf2f input=b1c6014d563a7161]*/ { int res; Py_BEGIN_ALLOW_THREADS @@ -3346,8 +3345,8 @@ Return a unicode string representing the current working directory. [clinic start generated code]*/ static PyObject * -os_getcwd_impl(PyModuleDef *module) -/*[clinic end generated code: output=efe3a8c0121525ea input=f069211bb70e3d39]*/ +os_getcwd_impl(PyObject *module) +/*[clinic end generated code: output=21badfae2ea99ddc input=f069211bb70e3d39]*/ { return posix_getcwd(0); } @@ -3360,8 +3359,8 @@ Return a bytes string representing the current working directory. [clinic start generated code]*/ static PyObject * -os_getcwdb_impl(PyModuleDef *module) -/*[clinic end generated code: output=7fce42ee4b2a296a input=f6f6a378dad3d9cb]*/ +os_getcwdb_impl(PyObject *module) +/*[clinic end generated code: output=3dd47909480e4824 input=f6f6a378dad3d9cb]*/ { return posix_getcwd(1); } @@ -3397,9 +3396,9 @@ src_dir_fd, dst_dir_fd, and follow_symlinks may not be implemented on your [clinic start generated code]*/ static PyObject * -os_link_impl(PyModuleDef *module, path_t *src, path_t *dst, int src_dir_fd, +os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd, int follow_symlinks) -/*[clinic end generated code: output=f47a7e88f7b391b6 input=b0095ebbcbaa7e04]*/ +/*[clinic end generated code: output=7f00f6007fd5269a input=b0095ebbcbaa7e04]*/ { #ifdef MS_WINDOWS BOOL result; @@ -3738,8 +3737,8 @@ entries '.' and '..' even if they are present in the directory. [clinic start generated code]*/ static PyObject * -os_listdir_impl(PyModuleDef *module, path_t *path) -/*[clinic end generated code: output=1fbe67c1f780c8b7 input=09e300416e3cd729]*/ +os_listdir_impl(PyObject *module, path_t *path) +/*[clinic end generated code: output=293045673fcd1a75 input=09e300416e3cd729]*/ { #if defined(MS_WINDOWS) && !defined(HAVE_OPENDIR) return _listdir_windows_no_opendir(path, NULL); @@ -3759,8 +3758,8 @@ os._getfullpathname [clinic start generated code]*/ static PyObject * -os__getfullpathname_impl(PyModuleDef *module, path_t *path) -/*[clinic end generated code: output=b90b1f103b08773f input=332ed537c29d0a3e]*/ +os__getfullpathname_impl(PyObject *module, path_t *path) +/*[clinic end generated code: output=bb8679d56845bc9b input=332ed537c29d0a3e]*/ { if (!path->narrow) { @@ -3810,8 +3809,8 @@ A helper function for samepath on windows. [clinic start generated code]*/ static PyObject * -os__getfinalpathname_impl(PyModuleDef *module, PyObject *path) -/*[clinic end generated code: output=8be81a5f51a34bcf input=71d5e89334891bf4]*/ +os__getfinalpathname_impl(PyObject *module, PyObject *path) +/*[clinic end generated code: output=9bd78d0e52782e75 input=71d5e89334891bf4]*/ { HANDLE hFile; int buf_size; @@ -3874,8 +3873,8 @@ os._isdir [clinic start generated code]*/ static PyObject * -os__isdir_impl(PyModuleDef *module, path_t *path) -/*[clinic end generated code: output=f17b2d4e1994b0ff input=e794f12faab62a2a]*/ +os__isdir_impl(PyObject *module, path_t *path) +/*[clinic end generated code: output=75f56f32720836cb input=e794f12faab62a2a]*/ { DWORD attributes; @@ -3903,8 +3902,8 @@ A helper function for ismount on Win32. [clinic start generated code]*/ static PyObject * -os__getvolumepathname_impl(PyModuleDef *module, PyObject *path) -/*[clinic end generated code: output=79a0ba729f956dbe input=7eacadc40acbda6b]*/ +os__getvolumepathname_impl(PyObject *module, PyObject *path) +/*[clinic end generated code: output=cbdcbd1059ceef4c input=7eacadc40acbda6b]*/ { PyObject *result; wchar_t *path_wchar, *mountpath=NULL; @@ -3971,8 +3970,8 @@ The mode argument is ignored on Windows. [clinic start generated code]*/ static PyObject * -os_mkdir_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd) -/*[clinic end generated code: output=8bf1f738873ef2c5 input=e965f68377e9b1ce]*/ +os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd) +/*[clinic end generated code: output=a70446903abe821f input=e965f68377e9b1ce]*/ { int result; @@ -4023,8 +4022,8 @@ Add increment to the priority of process and return the new priority. [clinic start generated code]*/ static PyObject * -os_nice_impl(PyModuleDef *module, int increment) -/*[clinic end generated code: output=8870418a3fc07b51 input=864be2d402a21da2]*/ +os_nice_impl(PyObject *module, int increment) +/*[clinic end generated code: output=9dad8a9da8109943 input=864be2d402a21da2]*/ { int value; @@ -4063,8 +4062,8 @@ Return program scheduling priority. [clinic start generated code]*/ static PyObject * -os_getpriority_impl(PyModuleDef *module, int which, int who) -/*[clinic end generated code: output=4759937aa5b67ed6 input=9be615d40e2544ef]*/ +os_getpriority_impl(PyObject *module, int which, int who) +/*[clinic end generated code: output=c41b7b63c7420228 input=9be615d40e2544ef]*/ { int retval; @@ -4089,8 +4088,8 @@ Set program scheduling priority. [clinic start generated code]*/ static PyObject * -os_setpriority_impl(PyModuleDef *module, int which, int who, int priority) -/*[clinic end generated code: output=6497d3301547e7d5 input=710ccbf65b9dc513]*/ +os_setpriority_impl(PyObject *module, int which, int who, int priority) +/*[clinic end generated code: output=3d910d95a7771eb2 input=710ccbf65b9dc513]*/ { int retval; @@ -4177,9 +4176,9 @@ src_dir_fd and dst_dir_fd, may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_rename_impl(PyModuleDef *module, path_t *src, path_t *dst, int src_dir_fd, +os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd) -/*[clinic end generated code: output=08033bb2ec27fb5f input=faa61c847912c850]*/ +/*[clinic end generated code: output=59e803072cf41230 input=faa61c847912c850]*/ { return internal_rename(src, dst, src_dir_fd, dst_dir_fd, 0); } @@ -4198,9 +4197,9 @@ src_dir_fd and dst_dir_fd, may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_replace_impl(PyModuleDef *module, path_t *src, path_t *dst, - int src_dir_fd, int dst_dir_fd) -/*[clinic end generated code: output=131d012eed8d3b8b input=25515dfb107c8421]*/ +os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, + int dst_dir_fd) +/*[clinic end generated code: output=1968c02e7857422b input=25515dfb107c8421]*/ { return internal_rename(src, dst, src_dir_fd, dst_dir_fd, 1); } @@ -4222,8 +4221,8 @@ dir_fd may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_rmdir_impl(PyModuleDef *module, path_t *path, int dir_fd) -/*[clinic end generated code: output=cabadec80d5a77c7 input=38c8b375ca34a7e2]*/ +os_rmdir_impl(PyObject *module, path_t *path, int dir_fd) +/*[clinic end generated code: output=080eb54f506e8301 input=38c8b375ca34a7e2]*/ { int result; @@ -4262,8 +4261,8 @@ Execute the command in a subshell. [clinic start generated code]*/ static long -os_system_impl(PyModuleDef *module, Py_UNICODE *command) -/*[clinic end generated code: output=4c3bd5abcd9c29e7 input=303f5ce97df606b0]*/ +os_system_impl(PyObject *module, Py_UNICODE *command) +/*[clinic end generated code: output=96c4dffee36dfb48 input=303f5ce97df606b0]*/ { long result; Py_BEGIN_ALLOW_THREADS @@ -4281,8 +4280,8 @@ Execute the command in a subshell. [clinic start generated code]*/ static long -os_system_impl(PyModuleDef *module, PyObject *command) -/*[clinic end generated code: output=800f775e10b7be55 input=86a58554ba6094af]*/ +os_system_impl(PyObject *module, PyObject *command) +/*[clinic end generated code: output=290fc437dd4f33a0 input=86a58554ba6094af]*/ { long result; char *bytes = PyBytes_AsString(command); @@ -4305,8 +4304,8 @@ Set the current numeric umask and return the previous umask. [clinic start generated code]*/ static PyObject * -os_umask_impl(PyModuleDef *module, int mask) -/*[clinic end generated code: output=9e1fe3c9f14d6a05 input=ab6bfd9b24d8a7e8]*/ +os_umask_impl(PyObject *module, int mask) +/*[clinic end generated code: output=a2e33ce3bc1a6e33 input=ab6bfd9b24d8a7e8]*/ { int i = (int)umask(mask); if (i < 0) @@ -4371,8 +4370,8 @@ dir_fd may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_unlink_impl(PyModuleDef *module, path_t *path, int dir_fd) -/*[clinic end generated code: output=474afd5cd09b237e input=d7bcde2b1b2a2552]*/ +os_unlink_impl(PyObject *module, path_t *path, int dir_fd) +/*[clinic end generated code: output=621797807b9963b1 input=d7bcde2b1b2a2552]*/ { int result; @@ -4414,8 +4413,8 @@ dir_fd may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_remove_impl(PyModuleDef *module, path_t *path, int dir_fd) -/*[clinic end generated code: output=d0d5149e64832b9e input=e05c5ab55cd30983]*/ +os_remove_impl(PyObject *module, path_t *path, int dir_fd) +/*[clinic end generated code: output=a8535b28f0068883 input=e05c5ab55cd30983]*/ { return os_unlink_impl(module, path, dir_fd); } @@ -4460,8 +4459,8 @@ The object behaves like a named tuple with the following fields: [clinic start generated code]*/ static PyObject * -os_uname_impl(PyModuleDef *module) -/*[clinic end generated code: output=01e1421b757e753f input=e68bd246db3043ed]*/ +os_uname_impl(PyObject *module) +/*[clinic end generated code: output=e6a49cf1a1508a19 input=e68bd246db3043ed]*/ { struct utsname u; int res; @@ -4710,9 +4709,9 @@ dir_fd and follow_symlinks may not be available on your platform. [clinic start generated code]*/ static PyObject * -os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times, - PyObject *ns, int dir_fd, int follow_symlinks) -/*[clinic end generated code: output=31f3434e560ba2f0 input=081cdc54ca685385]*/ +os_utime_impl(PyObject *module, path_t *path, PyObject *times, PyObject *ns, + int dir_fd, int follow_symlinks) +/*[clinic end generated code: output=cfcac69d027b82cf input=081cdc54ca685385]*/ { #ifdef MS_WINDOWS HANDLE hFile; @@ -4880,8 +4879,8 @@ Exit to the system with specified status, without normal exit processing. [clinic start generated code]*/ static PyObject * -os__exit_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=472a3cbaf68f3621 input=5e6d57556b0c4a62]*/ +os__exit_impl(PyObject *module, int status) +/*[clinic end generated code: output=116e52d9c2260d54 input=5e6d57556b0c4a62]*/ { _exit(status); return NULL; /* Make gcc -Wall happy */ @@ -5036,8 +5035,8 @@ Execute an executable path with arguments, replacing current process. [clinic start generated code]*/ static PyObject * -os_execv_impl(PyModuleDef *module, PyObject *path, PyObject *argv) -/*[clinic end generated code: output=9221f08143146fff input=96041559925e5229]*/ +os_execv_impl(PyObject *module, PyObject *path, PyObject *argv) +/*[clinic end generated code: output=b21dc34deeb5b004 input=96041559925e5229]*/ { char *path_char; char **argvlist; @@ -5086,9 +5085,8 @@ Execute an executable path with arguments, replacing current process. [clinic start generated code]*/ static PyObject * -os_execve_impl(PyModuleDef *module, path_t *path, PyObject *argv, - PyObject *env) -/*[clinic end generated code: output=181884fcdb21508e input=626804fa092606d9]*/ +os_execve_impl(PyObject *module, path_t *path, PyObject *argv, PyObject *env) +/*[clinic end generated code: output=ff9fa8e4da8bde58 input=626804fa092606d9]*/ { char **argvlist = NULL; char **envlist; @@ -5157,8 +5155,8 @@ Execute the program specified by path in a new process. [clinic start generated code]*/ static PyObject * -os_spawnv_impl(PyModuleDef *module, int mode, PyObject *path, PyObject *argv) -/*[clinic end generated code: output=140a7945484c8cc5 input=042c91dfc1e6debc]*/ +os_spawnv_impl(PyObject *module, int mode, PyObject *path, PyObject *argv) +/*[clinic end generated code: output=c427c0ce40f10638 input=042c91dfc1e6debc]*/ { char *path_char; char **argvlist; @@ -5234,9 +5232,9 @@ Execute the program specified by path in a new process. [clinic start generated code]*/ static PyObject * -os_spawnve_impl(PyModuleDef *module, int mode, PyObject *path, - PyObject *argv, PyObject *env) -/*[clinic end generated code: output=e7f5f0703610531f input=02362fd937963f8f]*/ +os_spawnve_impl(PyObject *module, int mode, PyObject *path, PyObject *argv, + PyObject *env) +/*[clinic end generated code: output=ebcfa5f7ba2f4219 input=02362fd937963f8f]*/ { char *path_char; char **argvlist; @@ -5325,8 +5323,8 @@ Return 0 to child process and PID of child to parent process. [clinic start generated code]*/ static PyObject * -os_fork1_impl(PyModuleDef *module) -/*[clinic end generated code: output=e27b4f66419c9dcf input=12db02167893926e]*/ +os_fork1_impl(PyObject *module) +/*[clinic end generated code: output=0de8e67ce2a310bc input=12db02167893926e]*/ { pid_t pid; int result = 0; @@ -5362,8 +5360,8 @@ Return 0 to child process and PID of child to parent process. [clinic start generated code]*/ static PyObject * -os_fork_impl(PyModuleDef *module) -/*[clinic end generated code: output=898b1ecd3498ba12 input=13c956413110eeaa]*/ +os_fork_impl(PyObject *module) +/*[clinic end generated code: output=3626c81f98985d49 input=13c956413110eeaa]*/ { pid_t pid; int result = 0; @@ -5400,8 +5398,8 @@ Get the maximum scheduling priority for policy. [clinic start generated code]*/ static PyObject * -os_sched_get_priority_max_impl(PyModuleDef *module, int policy) -/*[clinic end generated code: output=a6a30fa5071f2d81 input=2097b7998eca6874]*/ +os_sched_get_priority_max_impl(PyObject *module, int policy) +/*[clinic end generated code: output=9e465c6e43130521 input=2097b7998eca6874]*/ { int max; @@ -5421,8 +5419,8 @@ Get the minimum scheduling priority for policy. [clinic start generated code]*/ static PyObject * -os_sched_get_priority_min_impl(PyModuleDef *module, int policy) -/*[clinic end generated code: output=5ca3ed6bc43e9b20 input=21bc8fa0d70983bf]*/ +os_sched_get_priority_min_impl(PyObject *module, int policy) +/*[clinic end generated code: output=7595c1138cc47a6d input=21bc8fa0d70983bf]*/ { int min = sched_get_priority_min(policy); if (min < 0) @@ -5444,8 +5442,8 @@ Passing 0 for pid returns the scheduling policy for the calling process. [clinic start generated code]*/ static PyObject * -os_sched_getscheduler_impl(PyModuleDef *module, pid_t pid) -/*[clinic end generated code: output=8cd63c15caf54fa9 input=5f14cfd1f189e1a0]*/ +os_sched_getscheduler_impl(PyObject *module, pid_t pid) +/*[clinic end generated code: output=dce4c0bd3f1b34c8 input=5f14cfd1f189e1a0]*/ { int policy; @@ -5537,9 +5535,9 @@ param is an instance of sched_param. [clinic start generated code]*/ static PyObject * -os_sched_setscheduler_impl(PyModuleDef *module, pid_t pid, int policy, +os_sched_setscheduler_impl(PyObject *module, pid_t pid, int policy, struct sched_param *param) -/*[clinic end generated code: output=37053e5c528c35c9 input=c581f9469a5327dd]*/ +/*[clinic end generated code: output=b0ac0a70d3b1d705 input=c581f9469a5327dd]*/ { /* ** sched_setscheduler() returns 0 in Linux, but the previous @@ -5566,8 +5564,8 @@ Return value is an instance of sched_param. [clinic start generated code]*/ static PyObject * -os_sched_getparam_impl(PyModuleDef *module, pid_t pid) -/*[clinic end generated code: output=f42c5bd2604ecd08 input=18a1ef9c2efae296]*/ +os_sched_getparam_impl(PyObject *module, pid_t pid) +/*[clinic end generated code: output=b194e8708dcf2db8 input=18a1ef9c2efae296]*/ { struct sched_param param; PyObject *result; @@ -5601,9 +5599,9 @@ param should be an instance of sched_param. [clinic start generated code]*/ static PyObject * -os_sched_setparam_impl(PyModuleDef *module, pid_t pid, +os_sched_setparam_impl(PyObject *module, pid_t pid, struct sched_param *param) -/*[clinic end generated code: output=b7a3c589436cec9b input=6b8d6dfcecdc21bd]*/ +/*[clinic end generated code: output=8af013f78a32b591 input=6b8d6dfcecdc21bd]*/ { if (sched_setparam(pid, param)) return posix_error(); @@ -5624,8 +5622,8 @@ Value returned is a float. [clinic start generated code]*/ static double -os_sched_rr_get_interval_impl(PyModuleDef *module, pid_t pid) -/*[clinic end generated code: output=7adc137a86dea581 input=2a973da15cca6fae]*/ +os_sched_rr_get_interval_impl(PyObject *module, pid_t pid) +/*[clinic end generated code: output=7e2d935833ab47dc input=2a973da15cca6fae]*/ { struct timespec interval; if (sched_rr_get_interval(pid, &interval)) { @@ -5644,8 +5642,8 @@ Voluntarily relinquish the CPU. [clinic start generated code]*/ static PyObject * -os_sched_yield_impl(PyModuleDef *module) -/*[clinic end generated code: output=d7bd51869c4cb6a8 input=e54d6f98189391d4]*/ +os_sched_yield_impl(PyObject *module) +/*[clinic end generated code: output=902323500f222cac input=e54d6f98189391d4]*/ { if (sched_yield()) return posix_error(); @@ -5668,8 +5666,8 @@ mask should be an iterable of integers identifying CPUs. [clinic start generated code]*/ static PyObject * -os_sched_setaffinity_impl(PyModuleDef *module, pid_t pid, PyObject *mask) -/*[clinic end generated code: output=582bcbf40d3253a9 input=a0791a597c7085ba]*/ +os_sched_setaffinity_impl(PyObject *module, pid_t pid, PyObject *mask) +/*[clinic end generated code: output=882d7dd9a229335b input=a0791a597c7085ba]*/ { int ncpus; size_t setsize; @@ -5764,8 +5762,8 @@ The affinity is returned as a set of CPU identifiers. [clinic start generated code]*/ static PyObject * -os_sched_getaffinity_impl(PyModuleDef *module, pid_t pid) -/*[clinic end generated code: output=b431a8f310e369e7 input=eaf161936874b8a1]*/ +os_sched_getaffinity_impl(PyObject *module, pid_t pid) +/*[clinic end generated code: output=f726f2c193c17a4f input=eaf161936874b8a1]*/ { int cpu, ncpus, count; size_t setsize; @@ -5860,8 +5858,8 @@ for both the master and slave ends. [clinic start generated code]*/ static PyObject * -os_openpty_impl(PyModuleDef *module) -/*[clinic end generated code: output=358e571c1ba135ee input=f3d99fd99e762907]*/ +os_openpty_impl(PyObject *module) +/*[clinic end generated code: output=98841ce5ec9cef3c input=f3d99fd99e762907]*/ { int master_fd = -1, slave_fd = -1; #ifndef HAVE_OPENPTY @@ -5962,8 +5960,8 @@ To both, return fd of newly opened pseudo-terminal. [clinic start generated code]*/ static PyObject * -os_forkpty_impl(PyModuleDef *module) -/*[clinic end generated code: output=a11b8391dce3cb57 input=f1f7f4bae3966010]*/ +os_forkpty_impl(PyObject *module) +/*[clinic end generated code: output=60d0a5c7512e4087 input=f1f7f4bae3966010]*/ { int master_fd = -1, result = 0; pid_t pid; @@ -5998,8 +5996,8 @@ Return the current process's effective group id. [clinic start generated code]*/ static PyObject * -os_getegid_impl(PyModuleDef *module) -/*[clinic end generated code: output=90f433a8c0b1d919 input=1596f79ad1107d5d]*/ +os_getegid_impl(PyObject *module) +/*[clinic end generated code: output=67d9be7ac68898a2 input=1596f79ad1107d5d]*/ { return _PyLong_FromGid(getegid()); } @@ -6014,8 +6012,8 @@ Return the current process's effective user id. [clinic start generated code]*/ static PyObject * -os_geteuid_impl(PyModuleDef *module) -/*[clinic end generated code: output=1a532c4a66874357 input=4644c662d3bd9f19]*/ +os_geteuid_impl(PyObject *module) +/*[clinic end generated code: output=ea1b60f0d6abb66e input=4644c662d3bd9f19]*/ { return _PyLong_FromUid(geteuid()); } @@ -6030,8 +6028,8 @@ Return the current process's group id. [clinic start generated code]*/ static PyObject * -os_getgid_impl(PyModuleDef *module) -/*[clinic end generated code: output=91a22021b74ea46b input=58796344cd87c0f6]*/ +os_getgid_impl(PyObject *module) +/*[clinic end generated code: output=4f28ebc9d3e5dfcf input=58796344cd87c0f6]*/ { return _PyLong_FromGid(getgid()); } @@ -6045,8 +6043,8 @@ Return the current process id. [clinic start generated code]*/ static PyObject * -os_getpid_impl(PyModuleDef *module) -/*[clinic end generated code: output=8fbf3a934ee09e62 input=5a9a00f0ab68aa00]*/ +os_getpid_impl(PyObject *module) +/*[clinic end generated code: output=9ea6fdac01ed2b3c input=5a9a00f0ab68aa00]*/ { return PyLong_FromPid(getpid()); } @@ -6137,8 +6135,8 @@ Return list of supplemental group IDs for the process. [clinic start generated code]*/ static PyObject * -os_getgroups_impl(PyModuleDef *module) -/*[clinic end generated code: output=6e7c4fd2db6d5c60 input=d3f109412e6a155c]*/ +os_getgroups_impl(PyObject *module) +/*[clinic end generated code: output=42b0c17758561b56 input=d3f109412e6a155c]*/ { PyObject *result = NULL; @@ -6292,8 +6290,8 @@ Call the system call getpgid(), and return the result. [clinic start generated code]*/ static PyObject * -os_getpgid_impl(PyModuleDef *module, pid_t pid) -/*[clinic end generated code: output=70e713b4d54b7c61 input=39d710ae3baaf1c7]*/ +os_getpgid_impl(PyObject *module, pid_t pid) +/*[clinic end generated code: output=1db95a97be205d18 input=39d710ae3baaf1c7]*/ { pid_t pgid = getpgid(pid); if (pgid < 0) @@ -6311,8 +6309,8 @@ Return the current process group id. [clinic start generated code]*/ static PyObject * -os_getpgrp_impl(PyModuleDef *module) -/*[clinic end generated code: output=cf3403585846811f input=6846fb2bb9a3705e]*/ +os_getpgrp_impl(PyObject *module) +/*[clinic end generated code: output=c4fc381e51103cf3 input=6846fb2bb9a3705e]*/ { #ifdef GETPGRP_HAVE_ARG return PyLong_FromPid(getpgrp(0)); @@ -6331,8 +6329,8 @@ Make the current process the leader of its process group. [clinic start generated code]*/ static PyObject * -os_setpgrp_impl(PyModuleDef *module) -/*[clinic end generated code: output=59650f55a963d7ac input=1f0619fcb5731e7e]*/ +os_setpgrp_impl(PyObject *module) +/*[clinic end generated code: output=2554735b0a60f0a0 input=1f0619fcb5731e7e]*/ { #ifdef SETPGRP_HAVE_ARG if (setpgrp(0, 0) < 0) @@ -6400,8 +6398,8 @@ return its id; others systems will return the id of the 'init' process (1). [clinic start generated code]*/ static PyObject * -os_getppid_impl(PyModuleDef *module) -/*[clinic end generated code: output=4e49c8e7a8738cd2 input=e637cb87539c030e]*/ +os_getppid_impl(PyObject *module) +/*[clinic end generated code: output=43b2a946a8c603b4 input=e637cb87539c030e]*/ { #ifdef MS_WINDOWS return win32_getppid(); @@ -6420,8 +6418,8 @@ Return the actual login name. [clinic start generated code]*/ static PyObject * -os_getlogin_impl(PyModuleDef *module) -/*[clinic end generated code: output=037ebdb3e4b5dac1 input=2a21ab1e917163df]*/ +os_getlogin_impl(PyObject *module) +/*[clinic end generated code: output=a32e66a7e5715dac input=2a21ab1e917163df]*/ { PyObject *result = NULL; #ifdef MS_WINDOWS @@ -6463,8 +6461,8 @@ Return the current process's user id. [clinic start generated code]*/ static PyObject * -os_getuid_impl(PyModuleDef *module) -/*[clinic end generated code: output=03a8b894cefb3fa5 input=b53c8b35f110a516]*/ +os_getuid_impl(PyObject *module) +/*[clinic end generated code: output=415c0b401ebed11a input=b53c8b35f110a516]*/ { return _PyLong_FromUid(getuid()); } @@ -6487,8 +6485,8 @@ Kill a process with a signal. [clinic start generated code]*/ static PyObject * -os_kill_impl(PyModuleDef *module, pid_t pid, Py_ssize_t signal) -/*[clinic end generated code: output=74f907dd00a83c26 input=61a36b86ca275ab9]*/ +os_kill_impl(PyObject *module, pid_t pid, Py_ssize_t signal) +/*[clinic end generated code: output=8e346a6701c88568 input=61a36b86ca275ab9]*/ #ifndef MS_WINDOWS { if (kill(pid, (int)signal) == -1) @@ -6548,8 +6546,8 @@ Kill a process group with a signal. [clinic start generated code]*/ static PyObject * -os_killpg_impl(PyModuleDef *module, pid_t pgid, int signal) -/*[clinic end generated code: output=3434a766ef945f93 input=38b5449eb8faec19]*/ +os_killpg_impl(PyObject *module, pid_t pgid, int signal) +/*[clinic end generated code: output=6dbcd2f1fdf5fdba input=38b5449eb8faec19]*/ { /* XXX some man pages make the `pgid` parameter an int, others a pid_t. Since getpgrp() returns a pid_t, we assume killpg should @@ -6576,8 +6574,8 @@ Lock program segments into memory."); [clinic start generated code]*/ static PyObject * -os_plock_impl(PyModuleDef *module, int op) -/*[clinic end generated code: output=5cb851f81b914984 input=e6e5e348e1525f60]*/ +os_plock_impl(PyObject *module, int op) +/*[clinic end generated code: output=81424167033b168e input=e6e5e348e1525f60]*/ { if (plock(op) == -1) return posix_error(); @@ -6597,8 +6595,8 @@ Set the current process's user id. [clinic start generated code]*/ static PyObject * -os_setuid_impl(PyModuleDef *module, uid_t uid) -/*[clinic end generated code: output=941ea9a8d1e5d565 input=c921a3285aa22256]*/ +os_setuid_impl(PyObject *module, uid_t uid) +/*[clinic end generated code: output=a0a41fd0d1ec555f input=c921a3285aa22256]*/ { if (setuid(uid) < 0) return posix_error(); @@ -6618,8 +6616,8 @@ Set the current process's effective user id. [clinic start generated code]*/ static PyObject * -os_seteuid_impl(PyModuleDef *module, uid_t euid) -/*[clinic end generated code: output=66f4f6823a648d6d input=ba93d927e4781aa9]*/ +os_seteuid_impl(PyObject *module, uid_t euid) +/*[clinic end generated code: output=102e3ad98361519a input=ba93d927e4781aa9]*/ { if (seteuid(euid) < 0) return posix_error(); @@ -6639,8 +6637,8 @@ Set the current process's effective group id. [clinic start generated code]*/ static PyObject * -os_setegid_impl(PyModuleDef *module, gid_t egid) -/*[clinic end generated code: output=ca094a69a081a60f input=4080526d0ccd6ce3]*/ +os_setegid_impl(PyObject *module, gid_t egid) +/*[clinic end generated code: output=4e4b825a6a10258d input=4080526d0ccd6ce3]*/ { if (setegid(egid) < 0) return posix_error(); @@ -6661,8 +6659,8 @@ Set the current process's real and effective user ids. [clinic start generated code]*/ static PyObject * -os_setreuid_impl(PyModuleDef *module, uid_t ruid, uid_t euid) -/*[clinic end generated code: output=b2938c3e73d27ec7 input=0ca8978de663880c]*/ +os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid) +/*[clinic end generated code: output=62d991210006530a input=0ca8978de663880c]*/ { if (setreuid(ruid, euid) < 0) { return posix_error(); @@ -6686,8 +6684,8 @@ Set the current process's real and effective group ids. [clinic start generated code]*/ static PyObject * -os_setregid_impl(PyModuleDef *module, gid_t rgid, gid_t egid) -/*[clinic end generated code: output=db18f1839ababe3d input=c59499f72846db78]*/ +os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid) +/*[clinic end generated code: output=aa803835cf5342f3 input=c59499f72846db78]*/ { if (setregid(rgid, egid) < 0) return posix_error(); @@ -6706,8 +6704,8 @@ Set the current process's group id. [clinic start generated code]*/ static PyObject * -os_setgid_impl(PyModuleDef *module, gid_t gid) -/*[clinic end generated code: output=756cb42c6abd9d87 input=27d30c4059045dc6]*/ +os_setgid_impl(PyObject *module, gid_t gid) +/*[clinic end generated code: output=bdccd7403f6ad8c3 input=27d30c4059045dc6]*/ { if (setgid(gid) < 0) return posix_error(); @@ -6727,8 +6725,8 @@ Set the groups of the current process to list. [clinic start generated code]*/ static PyObject * -os_setgroups(PyModuleDef *module, PyObject *groups) -/*[clinic end generated code: output=7945c2e3cc817c58 input=fa742ca3daf85a7e]*/ +os_setgroups(PyObject *module, PyObject *groups) +/*[clinic end generated code: output=3fcb32aad58c5ecd input=fa742ca3daf85a7e]*/ { int i, len; gid_t grouplist[MAX_GROUPS]; @@ -6842,8 +6840,8 @@ Returns a tuple of information about the child process: [clinic start generated code]*/ static PyObject * -os_wait3_impl(PyModuleDef *module, int options) -/*[clinic end generated code: output=e18af4924dc54945 input=8ac4c56956b61710]*/ +os_wait3_impl(PyObject *module, int options) +/*[clinic end generated code: output=92c3224e6f28217a input=8ac4c56956b61710]*/ { pid_t pid; struct rusage ru; @@ -6879,8 +6877,8 @@ Returns a tuple of information about the child process: [clinic start generated code]*/ static PyObject * -os_wait4_impl(PyModuleDef *module, pid_t pid, int options) -/*[clinic end generated code: output=714f19e6ff01e099 input=d11deed0750600ba]*/ +os_wait4_impl(PyObject *module, pid_t pid, int options) +/*[clinic end generated code: output=66195aa507b35f70 input=d11deed0750600ba]*/ { pid_t res; struct rusage ru; @@ -6921,8 +6919,8 @@ no children in a waitable state. [clinic start generated code]*/ static PyObject * -os_waitid_impl(PyModuleDef *module, idtype_t idtype, id_t id, int options) -/*[clinic end generated code: output=5c0192750e22fa2e input=d8e7f76e052b7920]*/ +os_waitid_impl(PyObject *module, idtype_t idtype, id_t id, int options) +/*[clinic end generated code: output=5d2e1c0bde61f4d8 input=d8e7f76e052b7920]*/ { PyObject *result; int res; @@ -6976,8 +6974,8 @@ The options argument is ignored on Windows. [clinic start generated code]*/ static PyObject * -os_waitpid_impl(PyModuleDef *module, pid_t pid, int options) -/*[clinic end generated code: output=5e3593353d54b15b input=0bf1666b8758fda3]*/ +os_waitpid_impl(PyObject *module, pid_t pid, int options) +/*[clinic end generated code: output=5c37c06887a20270 input=0bf1666b8758fda3]*/ { pid_t res; int async_err = 0; @@ -7011,8 +7009,8 @@ The options argument is ignored on Windows. [clinic start generated code]*/ static PyObject * -os_waitpid_impl(PyModuleDef *module, Py_intptr_t pid, int options) -/*[clinic end generated code: output=fc1d520db019625f input=444c8f51cca5b862]*/ +os_waitpid_impl(PyObject *module, Py_intptr_t pid, int options) +/*[clinic end generated code: output=15f1ce005a346b09 input=444c8f51cca5b862]*/ { int status; Py_intptr_t res; @@ -7043,8 +7041,8 @@ Returns a tuple of information about the child process: [clinic start generated code]*/ static PyObject * -os_wait_impl(PyModuleDef *module) -/*[clinic end generated code: output=4a7f4978393e0654 input=03b0182d4a4700ce]*/ +os_wait_impl(PyObject *module) +/*[clinic end generated code: output=6bc419ac32fb364b input=03b0182d4a4700ce]*/ { pid_t pid; int async_err = 0; @@ -7371,9 +7369,9 @@ dir_fd may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_symlink_impl(PyModuleDef *module, path_t *src, path_t *dst, +os_symlink_impl(PyObject *module, path_t *src, path_t *dst, int target_is_directory, int dir_fd) -/*[clinic end generated code: output=a01b4bcf32403ccd input=e820ec4472547bc3]*/ +/*[clinic end generated code: output=08ca9f3f3cf960f6 input=e820ec4472547bc3]*/ { #ifdef MS_WINDOWS DWORD result; @@ -7521,8 +7519,8 @@ All fields are floating point numbers. [clinic start generated code]*/ static PyObject * -os_times_impl(PyModuleDef *module) -/*[clinic end generated code: output=df0a63ebe6e6f091 input=2bf9df3d6ab2e48b]*/ +os_times_impl(PyObject *module) +/*[clinic end generated code: output=35f640503557d32a input=2bf9df3d6ab2e48b]*/ #ifdef MS_WINDOWS { FILETIME create, exit, kernel, user; @@ -7575,8 +7573,8 @@ Call the system call getsid(pid) and return the result. [clinic start generated code]*/ static PyObject * -os_getsid_impl(PyModuleDef *module, pid_t pid) -/*[clinic end generated code: output=a074f80c0e6bfb38 input=eeb2b923a30ce04e]*/ +os_getsid_impl(PyObject *module, pid_t pid) +/*[clinic end generated code: output=112deae56b306460 input=eeb2b923a30ce04e]*/ { int sid; sid = getsid(pid); @@ -7595,8 +7593,8 @@ Call the system call setsid(). [clinic start generated code]*/ static PyObject * -os_setsid_impl(PyModuleDef *module) -/*[clinic end generated code: output=398fc152ae327330 input=5fff45858e2f0776]*/ +os_setsid_impl(PyObject *module) +/*[clinic end generated code: output=e2ddedd517086d77 input=5fff45858e2f0776]*/ { if (setsid() < 0) return posix_error(); @@ -7617,8 +7615,8 @@ Call the system call setpgid(pid, pgrp). [clinic start generated code]*/ static PyObject * -os_setpgid_impl(PyModuleDef *module, pid_t pid, pid_t pgrp) -/*[clinic end generated code: output=7079a8e932912841 input=fceb395eca572e1a]*/ +os_setpgid_impl(PyObject *module, pid_t pid, pid_t pgrp) +/*[clinic end generated code: output=6461160319a43d6a input=fceb395eca572e1a]*/ { if (setpgid(pid, pgrp) < 0) return posix_error(); @@ -7638,8 +7636,8 @@ Return the process group associated with the terminal specified by fd. [clinic start generated code]*/ static PyObject * -os_tcgetpgrp_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=ebb6dc5f111c7dc0 input=7f6c18eac10ada86]*/ +os_tcgetpgrp_impl(PyObject *module, int fd) +/*[clinic end generated code: output=f865e88be86c272b input=7f6c18eac10ada86]*/ { pid_t pgid = tcgetpgrp(fd); if (pgid < 0) @@ -7661,8 +7659,8 @@ Set the process group associated with the terminal specified by fd. [clinic start generated code]*/ static PyObject * -os_tcsetpgrp_impl(PyModuleDef *module, int fd, pid_t pgid) -/*[clinic end generated code: output=3e4b05177462cd22 input=5bdc997c6a619020]*/ +os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid) +/*[clinic end generated code: output=f1821a381b9daa39 input=5bdc997c6a619020]*/ { if (tcsetpgrp(fd, pgid) < 0) return posix_error(); @@ -7696,9 +7694,8 @@ dir_fd may not be implemented on your platform. [clinic start generated code]*/ static int -os_open_impl(PyModuleDef *module, path_t *path, int flags, int mode, - int dir_fd) -/*[clinic end generated code: output=47e8cc63559f5ddd input=ad8623b29acd2934]*/ +os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd) +/*[clinic end generated code: output=abc7227888c8bc73 input=ad8623b29acd2934]*/ { int fd; int async_err = 0; @@ -7759,8 +7756,8 @@ Close a file descriptor. [clinic start generated code]*/ static PyObject * -os_close_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=47bf2ea536445a26 input=2bc42451ca5c3223]*/ +os_close_impl(PyObject *module, int fd) +/*[clinic end generated code: output=2fe4e93602822c14 input=2bc42451ca5c3223]*/ { int res; if (!_PyVerify_fd(fd)) @@ -7791,8 +7788,8 @@ Closes all file descriptors in [fd_low, fd_high), ignoring errors. [clinic start generated code]*/ static PyObject * -os_closerange_impl(PyModuleDef *module, int fd_low, int fd_high) -/*[clinic end generated code: output=70e6adb95220ba96 input=5855a3d053ebd4ec]*/ +os_closerange_impl(PyObject *module, int fd_low, int fd_high) +/*[clinic end generated code: output=0ce5c20fcda681c2 input=5855a3d053ebd4ec]*/ { int i; Py_BEGIN_ALLOW_THREADS @@ -7816,8 +7813,8 @@ Return a duplicate of a file descriptor. [clinic start generated code]*/ static int -os_dup_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=f4bbac8c7652d05e input=6f10f7ea97f7852a]*/ +os_dup_impl(PyObject *module, int fd) +/*[clinic end generated code: output=486f4860636b2a9f input=6f10f7ea97f7852a]*/ { return _Py_dup(fd); } @@ -7833,8 +7830,8 @@ Duplicate file descriptor. [clinic start generated code]*/ static PyObject * -os_dup2_impl(PyModuleDef *module, int fd, int fd2, int inheritable) -/*[clinic end generated code: output=9a099d95881a7923 input=76e96f511be0352f]*/ +os_dup2_impl(PyObject *module, int fd, int fd2, int inheritable) +/*[clinic end generated code: output=db832a2d872ccc5f input=76e96f511be0352f]*/ { int res; #if defined(HAVE_DUP3) && \ @@ -7930,8 +7927,8 @@ Apply, test or remove a POSIX lock on an open file descriptor. [clinic start generated code]*/ static PyObject * -os_lockf_impl(PyModuleDef *module, int fd, int command, Py_off_t length) -/*[clinic end generated code: output=25ff778f9e2fbf1b input=65da41d2106e9b79]*/ +os_lockf_impl(PyObject *module, int fd, int command, Py_off_t length) +/*[clinic end generated code: output=af7051f3e7c29651 input=65da41d2106e9b79]*/ { int res; @@ -7962,8 +7959,8 @@ relative to the beginning of the file. [clinic start generated code]*/ static Py_off_t -os_lseek_impl(PyModuleDef *module, int fd, Py_off_t position, int how) -/*[clinic end generated code: output=65d4ab96d664998c input=902654ad3f96a6d3]*/ +os_lseek_impl(PyObject *module, int fd, Py_off_t position, int how) +/*[clinic end generated code: output=971e1efb6b30bd2f input=902654ad3f96a6d3]*/ { Py_off_t result; @@ -8013,8 +8010,8 @@ Read from a file descriptor. Returns a bytes object. [clinic start generated code]*/ static PyObject * -os_read_impl(PyModuleDef *module, int fd, Py_ssize_t length) -/*[clinic end generated code: output=be24f44178455e8b input=1df2eaa27c0bf1d3]*/ +os_read_impl(PyObject *module, int fd, Py_ssize_t length) +/*[clinic end generated code: output=dafbe9a5cddb987b input=1df2eaa27c0bf1d3]*/ { Py_ssize_t n; PyObject *buffer; @@ -8125,8 +8122,8 @@ which may be less than the total capacity of all the buffers. [clinic start generated code]*/ static Py_ssize_t -os_readv_impl(PyModuleDef *module, int fd, PyObject *buffers) -/*[clinic end generated code: output=00fc56ff1800059f input=e679eb5dbfa0357d]*/ +os_readv_impl(PyObject *module, int fd, PyObject *buffers) +/*[clinic end generated code: output=792da062d3fcebdb input=e679eb5dbfa0357d]*/ { int cnt; Py_ssize_t n; @@ -8180,8 +8177,8 @@ the beginning of the file. The file offset remains unchanged. [clinic start generated code]*/ static PyObject * -os_pread_impl(PyModuleDef *module, int fd, int length, Py_off_t offset) -/*[clinic end generated code: output=90d1fed87f68fa33 input=084948dcbaa35d4c]*/ +os_pread_impl(PyObject *module, int fd, int length, Py_off_t offset) +/*[clinic end generated code: output=435b29ee32b54a78 input=084948dcbaa35d4c]*/ { Py_ssize_t n; int async_err = 0; @@ -8229,8 +8226,8 @@ Write a bytes object to a file descriptor. [clinic start generated code]*/ static Py_ssize_t -os_write_impl(PyModuleDef *module, int fd, Py_buffer *data) -/*[clinic end generated code: output=58845c93c9ee1dda input=3207e28963234f3c]*/ +os_write_impl(PyObject *module, int fd, Py_buffer *data) +/*[clinic end generated code: output=e4ef5bc904b58ef9 input=3207e28963234f3c]*/ { return _Py_write(fd, data->buf, data->len); } @@ -8400,8 +8397,8 @@ Equivalent to os.stat(fd). [clinic start generated code]*/ static PyObject * -os_fstat_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=d71fe98bf042b626 input=27e0e0ebbe5600c9]*/ +os_fstat_impl(PyObject *module, int fd) +/*[clinic end generated code: output=efc038cb5f654492 input=27e0e0ebbe5600c9]*/ { STRUCT_STAT st; int res; @@ -8436,8 +8433,8 @@ connected to the slave end of a terminal. [clinic start generated code]*/ static int -os_isatty_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=acec9d3c29d16d33 input=08ce94aa1eaf7b5e]*/ +os_isatty_impl(PyObject *module, int fd) +/*[clinic end generated code: output=6a48c8b4e644ca00 input=08ce94aa1eaf7b5e]*/ { int return_value; if (!_PyVerify_fd(fd)) @@ -8460,8 +8457,8 @@ Returns a tuple of two file descriptors: [clinic start generated code]*/ static PyObject * -os_pipe_impl(PyModuleDef *module) -/*[clinic end generated code: output=6b0cd3f868ec3c40 input=02535e8c8fa6c4d4]*/ +os_pipe_impl(PyObject *module) +/*[clinic end generated code: output=ff9b76255793b440 input=02535e8c8fa6c4d4]*/ { int fds[2]; #ifdef MS_WINDOWS @@ -8547,8 +8544,8 @@ O_NONBLOCK, O_CLOEXEC. [clinic start generated code]*/ static PyObject * -os_pipe2_impl(PyModuleDef *module, int flags) -/*[clinic end generated code: output=c15b6075d0c6b2e7 input=f261b6e7e63c6817]*/ +os_pipe2_impl(PyObject *module, int flags) +/*[clinic end generated code: output=25751fb43a45540f input=f261b6e7e63c6817]*/ { int fds[2]; int res; @@ -8575,8 +8572,8 @@ buffers must be a sequence of bytes-like objects. [clinic start generated code]*/ static Py_ssize_t -os_writev_impl(PyModuleDef *module, int fd, PyObject *buffers) -/*[clinic end generated code: output=a48925dbf2d5c238 input=5b8d17fe4189d2fe]*/ +os_writev_impl(PyObject *module, int fd, PyObject *buffers) +/*[clinic end generated code: output=56565cfac3aac15b input=5b8d17fe4189d2fe]*/ { int cnt; Py_ssize_t result; @@ -8627,9 +8624,8 @@ current file offset. [clinic start generated code]*/ static Py_ssize_t -os_pwrite_impl(PyModuleDef *module, int fd, Py_buffer *buffer, - Py_off_t offset) -/*[clinic end generated code: output=93aabdb40e17d325 input=19903f1b3dd26377]*/ +os_pwrite_impl(PyObject *module, int fd, Py_buffer *buffer, Py_off_t offset) +/*[clinic end generated code: output=c74da630758ee925 input=19903f1b3dd26377]*/ { Py_ssize_t size; int async_err = 0; @@ -8672,8 +8668,8 @@ dir_fd may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_mkfifo_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd) -/*[clinic end generated code: output=8f5f5e72c630049a input=73032e98a36e0e19]*/ +os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd) +/*[clinic end generated code: output=ce41cfad0e68c940 input=73032e98a36e0e19]*/ { int result; int async_err = 0; @@ -8723,9 +8719,9 @@ dir_fd may not be implemented on your platform. [clinic start generated code]*/ static PyObject * -os_mknod_impl(PyModuleDef *module, path_t *path, int mode, dev_t device, +os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device, int dir_fd) -/*[clinic end generated code: output=5151a8a9f754d272 input=ee44531551a4d83b]*/ +/*[clinic end generated code: output=92e55d3ca8917461 input=ee44531551a4d83b]*/ { int result; int async_err = 0; @@ -8760,8 +8756,8 @@ Extracts a device major number from a raw device number. [clinic start generated code]*/ static unsigned int -os_major_impl(PyModuleDef *module, dev_t device) -/*[clinic end generated code: output=ba55693ab49bac34 input=1e16a4d30c4d4462]*/ +os_major_impl(PyObject *module, dev_t device) +/*[clinic end generated code: output=5b3b2589bafb498e input=1e16a4d30c4d4462]*/ { return major(device); } @@ -8777,8 +8773,8 @@ Extracts a device minor number from a raw device number. [clinic start generated code]*/ static unsigned int -os_minor_impl(PyModuleDef *module, dev_t device) -/*[clinic end generated code: output=2867219ebf274e27 input=0842c6d23f24c65e]*/ +os_minor_impl(PyObject *module, dev_t device) +/*[clinic end generated code: output=5e1a25e630b0157d input=0842c6d23f24c65e]*/ { return minor(device); } @@ -8795,8 +8791,8 @@ Composes a raw device number from the major and minor device numbers. [clinic start generated code]*/ static dev_t -os_makedev_impl(PyModuleDef *module, int major, int minor) -/*[clinic end generated code: output=7cb6264352437660 input=4b9fd8fc73cbe48f]*/ +os_makedev_impl(PyObject *module, int major, int minor) +/*[clinic end generated code: output=881aaa4aba6f6a52 input=4b9fd8fc73cbe48f]*/ { return makedev(major, minor); } @@ -8815,8 +8811,8 @@ Truncate a file, specified by file descriptor, to a specific length. [clinic start generated code]*/ static PyObject * -os_ftruncate_impl(PyModuleDef *module, int fd, Py_off_t length) -/*[clinic end generated code: output=3666f401d76bf834 input=63b43641e52818f2]*/ +os_ftruncate_impl(PyObject *module, int fd, Py_off_t length) +/*[clinic end generated code: output=fba15523721be7e4 input=63b43641e52818f2]*/ { int result; int async_err = 0; @@ -8856,8 +8852,8 @@ On some platforms, path may also be specified as an open file descriptor. [clinic start generated code]*/ static PyObject * -os_truncate_impl(PyModuleDef *module, path_t *path, Py_off_t length) -/*[clinic end generated code: output=f60a9e08370e9e2e input=77229cf0b50a9b77]*/ +os_truncate_impl(PyObject *module, path_t *path, Py_off_t length) +/*[clinic end generated code: output=43009c8df5c0a12b input=77229cf0b50a9b77]*/ { int result; #ifdef MS_WINDOWS @@ -8920,9 +8916,9 @@ starting at offset bytes from the beginning and continuing for length bytes. [clinic start generated code]*/ static PyObject * -os_posix_fallocate_impl(PyModuleDef *module, int fd, Py_off_t offset, +os_posix_fallocate_impl(PyObject *module, int fd, Py_off_t offset, Py_off_t length) -/*[clinic end generated code: output=7f6f87a8c751e1b4 input=d7a2ef0ab2ca52fb]*/ +/*[clinic end generated code: output=73f107139564aa9d input=d7a2ef0ab2ca52fb]*/ { int result; int async_err = 0; @@ -8962,9 +8958,9 @@ POSIX_FADV_DONTNEED. [clinic start generated code]*/ static PyObject * -os_posix_fadvise_impl(PyModuleDef *module, int fd, Py_off_t offset, +os_posix_fadvise_impl(PyObject *module, int fd, Py_off_t offset, Py_off_t length, int advice) -/*[clinic end generated code: output=457ce6a67189e10d input=0fbe554edc2f04b5]*/ +/*[clinic end generated code: output=412ef4aa70c98642 input=0fbe554edc2f04b5]*/ { int result; int async_err = 0; @@ -9014,8 +9010,8 @@ Change or add an environment variable. [clinic start generated code]*/ static PyObject * -os_putenv_impl(PyModuleDef *module, PyObject *name, PyObject *value) -/*[clinic end generated code: output=a2438cf95e5a0c1c input=ba586581c2e6105f]*/ +os_putenv_impl(PyObject *module, PyObject *name, PyObject *value) +/*[clinic end generated code: output=d29a567d6b2327d2 input=ba586581c2e6105f]*/ { wchar_t *env; @@ -9058,8 +9054,8 @@ Change or add an environment variable. [clinic start generated code]*/ static PyObject * -os_putenv_impl(PyModuleDef *module, PyObject *name, PyObject *value) -/*[clinic end generated code: output=a2438cf95e5a0c1c input=a97bc6152f688d31]*/ +os_putenv_impl(PyObject *module, PyObject *name, PyObject *value) +/*[clinic end generated code: output=d29a567d6b2327d2 input=a97bc6152f688d31]*/ { PyObject *bytes = NULL; char *env; @@ -9095,8 +9091,8 @@ Delete an environment variable. [clinic start generated code]*/ static PyObject * -os_unsetenv_impl(PyModuleDef *module, PyObject *name) -/*[clinic end generated code: output=25994b57016a2dc9 input=2bb5288a599c7107]*/ +os_unsetenv_impl(PyObject *module, PyObject *name) +/*[clinic end generated code: output=54c4137ab1834f02 input=2bb5288a599c7107]*/ { #ifndef HAVE_BROKEN_UNSETENV int err; @@ -9134,8 +9130,8 @@ Translate an error code to a message string. [clinic start generated code]*/ static PyObject * -os_strerror_impl(PyModuleDef *module, int code) -/*[clinic end generated code: output=0280c6af51e5c9fe input=75a8673d97915a91]*/ +os_strerror_impl(PyObject *module, int code) +/*[clinic end generated code: output=baebf09fa02a78f2 input=75a8673d97915a91]*/ { char *message = strerror(code); if (message == NULL) { @@ -9159,8 +9155,8 @@ Return True if the process returning status was dumped to a core file. [clinic start generated code]*/ static int -os_WCOREDUMP_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=134f70bbe63fbf41 input=8b05e7ab38528d04]*/ +os_WCOREDUMP_impl(PyObject *module, int status) +/*[clinic end generated code: output=1a584b147b16bd18 input=8b05e7ab38528d04]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9182,8 +9178,8 @@ job control stop. [clinic start generated code]*/ static int -os_WIFCONTINUED_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=9cdd26543ebb6dcd input=e777e7d38eb25bd9]*/ +os_WIFCONTINUED_impl(PyObject *module, int status) +/*[clinic end generated code: output=1e35295d844364bd input=e777e7d38eb25bd9]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9202,8 +9198,8 @@ Return True if the process returning status was stopped. [clinic start generated code]*/ static int -os_WIFSTOPPED_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=73bf35e44994a724 input=043cb7f1289ef904]*/ +os_WIFSTOPPED_impl(PyObject *module, int status) +/*[clinic end generated code: output=fdb57122a5c9b4cb input=043cb7f1289ef904]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9222,8 +9218,8 @@ Return True if the process returning status was terminated by a signal. [clinic start generated code]*/ static int -os_WIFSIGNALED_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=2697975771872420 input=d55ba7cc9ce5dc43]*/ +os_WIFSIGNALED_impl(PyObject *module, int status) +/*[clinic end generated code: output=d1dde4dcc819a5f5 input=d55ba7cc9ce5dc43]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9242,8 +9238,8 @@ Return True if the process returning status exited via the exit() system call. [clinic start generated code]*/ static int -os_WIFEXITED_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=ca8f8c61f0b8532e input=d63775a6791586c0]*/ +os_WIFEXITED_impl(PyObject *module, int status) +/*[clinic end generated code: output=01c09d6ebfeea397 input=d63775a6791586c0]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9262,8 +9258,8 @@ Return the process return code from status. [clinic start generated code]*/ static int -os_WEXITSTATUS_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=ea54da23d9e0f6af input=e1fb4944e377585b]*/ +os_WEXITSTATUS_impl(PyObject *module, int status) +/*[clinic end generated code: output=6e3efbba11f6488d input=e1fb4944e377585b]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9282,8 +9278,8 @@ Return the signal that terminated the process that provided the status value. [clinic start generated code]*/ static int -os_WTERMSIG_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=4d25367026cb852c input=727fd7f84ec3f243]*/ +os_WTERMSIG_impl(PyObject *module, int status) +/*[clinic end generated code: output=172f7dfc8dcfc3ad input=727fd7f84ec3f243]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9302,8 +9298,8 @@ Return the signal that stopped the process that provided the status value. [clinic start generated code]*/ static int -os_WSTOPSIG_impl(PyModuleDef *module, int status) -/*[clinic end generated code: output=54eb9c13b001adb4 input=46ebf1d1b293c5c1]*/ +os_WSTOPSIG_impl(PyObject *module, int status) +/*[clinic end generated code: output=0ab7586396f5d82b input=46ebf1d1b293c5c1]*/ { WAIT_TYPE wait_status; WAIT_STATUS_INT(wait_status) = status; @@ -9376,8 +9372,8 @@ Equivalent to statvfs(fd). [clinic start generated code]*/ static PyObject * -os_fstatvfs_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=584a94a754497ac0 input=d8122243ac50975e]*/ +os_fstatvfs_impl(PyObject *module, int fd) +/*[clinic end generated code: output=53547cf0cc55e6c5 input=d8122243ac50975e]*/ { int result; int async_err = 0; @@ -9412,8 +9408,8 @@ On some platforms, path may also be specified as an open file descriptor. [clinic start generated code]*/ static PyObject * -os_statvfs_impl(PyModuleDef *module, path_t *path) -/*[clinic end generated code: output=5ced07a2cf931f41 input=3f5c35791c669bd9]*/ +os_statvfs_impl(PyObject *module, path_t *path) +/*[clinic end generated code: output=87106dd1beb8556e input=3f5c35791c669bd9]*/ { int result; struct statvfs st; @@ -9454,8 +9450,8 @@ Return disk usage statistics about the given path as a (total, free) tuple. [clinic start generated code]*/ static PyObject * -os__getdiskusage_impl(PyModuleDef *module, Py_UNICODE *path) -/*[clinic end generated code: output=60a9cf33449db1dd input=6458133aed893c78]*/ +os__getdiskusage_impl(PyObject *module, Py_UNICODE *path) +/*[clinic end generated code: output=76d6adcd86b1db0b input=6458133aed893c78]*/ { BOOL retval; ULARGE_INTEGER _, total, free; @@ -9640,8 +9636,8 @@ If there is no limit, return -1. [clinic start generated code]*/ static long -os_fpathconf_impl(PyModuleDef *module, int fd, int name) -/*[clinic end generated code: output=082b2922d4441de7 input=5942a024d3777810]*/ +os_fpathconf_impl(PyObject *module, int fd, int name) +/*[clinic end generated code: output=d5b7042425fc3e21 input=5942a024d3777810]*/ { long limit; @@ -9669,8 +9665,8 @@ On some platforms, path may also be specified as an open file descriptor. [clinic start generated code]*/ static long -os_pathconf_impl(PyModuleDef *module, path_t *path, int name) -/*[clinic end generated code: output=3713029e9501f5ab input=bc3e2a985af27e5e]*/ +os_pathconf_impl(PyObject *module, path_t *path, int name) +/*[clinic end generated code: output=5bedee35b293a089 input=bc3e2a985af27e5e]*/ { long limit; @@ -9866,8 +9862,8 @@ Return a string-valued system configuration variable. [clinic start generated code]*/ static PyObject * -os_confstr_impl(PyModuleDef *module, int name) -/*[clinic end generated code: output=6ff79c9eed8c2daf input=18fb4d0567242e65]*/ +os_confstr_impl(PyObject *module, int name) +/*[clinic end generated code: output=bfb0b1b1e49b9383 input=18fb4d0567242e65]*/ { PyObject *result = NULL; char buffer[255]; @@ -10416,8 +10412,8 @@ Return an integer-valued system configuration variable. [clinic start generated code]*/ static long -os_sysconf_impl(PyModuleDef *module, int name) -/*[clinic end generated code: output=ed567306f58d69c4 input=279e3430a33f29e4]*/ +os_sysconf_impl(PyObject *module, int name) +/*[clinic end generated code: output=3662f945fc0cc756 input=279e3430a33f29e4]*/ { long value; @@ -10514,8 +10510,8 @@ on the hosting operating system. This function never returns. [clinic start generated code]*/ static PyObject * -os_abort_impl(PyModuleDef *module) -/*[clinic end generated code: output=486bb96647c299b3 input=cf2c7d98bc504047]*/ +os_abort_impl(PyObject *module) +/*[clinic end generated code: output=dcf52586dad2467c input=cf2c7d98bc504047]*/ { abort(); /*NOTREACHED*/ @@ -10672,8 +10668,8 @@ Raises OSError if the load average was unobtainable. [clinic start generated code]*/ static PyObject * -os_getloadavg_impl(PyModuleDef *module) -/*[clinic end generated code: output=2b64c5b675d74c14 input=3d6d826b76d8a34e]*/ +os_getloadavg_impl(PyObject *module) +/*[clinic end generated code: output=9ad3a11bfb4f4bd2 input=3d6d826b76d8a34e]*/ { double loadavg[3]; if (getloadavg(loadavg, 3)!=3) { @@ -10696,8 +10692,8 @@ If the device is not a terminal, return None. [clinic start generated code]*/ static PyObject * -os_device_encoding_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=34f14e33468419c1 input=9e1d4a42b66df312]*/ +os_device_encoding_impl(PyObject *module, int fd) +/*[clinic end generated code: output=e0d294bbab7e8c2b input=9e1d4a42b66df312]*/ { return _Py_device_encoding(fd); } @@ -10716,8 +10712,8 @@ Set the current process's real, effective, and saved user ids. [clinic start generated code]*/ static PyObject * -os_setresuid_impl(PyModuleDef *module, uid_t ruid, uid_t euid, uid_t suid) -/*[clinic end generated code: output=92cc330812c6ed0f input=9e33cb79a82792f3]*/ +os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid) +/*[clinic end generated code: output=834a641e15373e97 input=9e33cb79a82792f3]*/ { if (setresuid(ruid, euid, suid) < 0) return posix_error(); @@ -10739,8 +10735,8 @@ Set the current process's real, effective, and saved group ids. [clinic start generated code]*/ static PyObject * -os_setresgid_impl(PyModuleDef *module, gid_t rgid, gid_t egid, gid_t sgid) -/*[clinic end generated code: output=e91dc4842a604429 input=33e9e0785ef426b1]*/ +os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid) +/*[clinic end generated code: output=6aa402f3d2e514a9 input=33e9e0785ef426b1]*/ { if (setresgid(rgid, egid, sgid) < 0) return posix_error(); @@ -10757,8 +10753,8 @@ Return a tuple of the current process's real, effective, and saved user ids. [clinic start generated code]*/ static PyObject * -os_getresuid_impl(PyModuleDef *module) -/*[clinic end generated code: output=9ddef62faae8e477 input=41ccfa8e1f6517ad]*/ +os_getresuid_impl(PyObject *module) +/*[clinic end generated code: output=8e0becff5dece5bf input=41ccfa8e1f6517ad]*/ { uid_t ruid, euid, suid; if (getresuid(&ruid, &euid, &suid) < 0) @@ -10778,8 +10774,8 @@ Return a tuple of the current process's real, effective, and saved group ids. [clinic start generated code]*/ static PyObject * -os_getresgid_impl(PyModuleDef *module) -/*[clinic end generated code: output=e1a553cbcf16234c input=517e68db9ca32df6]*/ +os_getresgid_impl(PyObject *module) +/*[clinic end generated code: output=2719c4bfcf27fb9f input=517e68db9ca32df6]*/ { gid_t rgid, egid, sgid; if (getresgid(&rgid, &egid, &sgid) < 0) @@ -10810,9 +10806,9 @@ If follow_symlinks is False, and the last element of the path is a symbolic [clinic start generated code]*/ static PyObject * -os_getxattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_getxattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks) -/*[clinic end generated code: output=cf2cede74bd5d412 input=8c8ea3bab78d89c2]*/ +/*[clinic end generated code: output=5f2f44200a43cff2 input=8c8ea3bab78d89c2]*/ { Py_ssize_t i; PyObject *buffer = NULL; @@ -10882,9 +10878,9 @@ If follow_symlinks is False, and the last element of the path is a symbolic [clinic start generated code]*/ static PyObject * -os_setxattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_setxattr_impl(PyObject *module, path_t *path, path_t *attribute, Py_buffer *value, int flags, int follow_symlinks) -/*[clinic end generated code: output=1b395ef82880fea0 input=f0d26833992015c2]*/ +/*[clinic end generated code: output=98b83f63fdde26bb input=f0d26833992015c2]*/ { ssize_t result; @@ -10930,9 +10926,9 @@ If follow_symlinks is False, and the last element of the path is a symbolic [clinic start generated code]*/ static PyObject * -os_removexattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_removexattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks) -/*[clinic end generated code: output=f92bb39ab992650d input=cdb54834161e3329]*/ +/*[clinic end generated code: output=521a51817980cda6 input=cdb54834161e3329]*/ { ssize_t result; @@ -10973,8 +10969,8 @@ If follow_symlinks is False, and the last element of the path is a symbolic [clinic start generated code]*/ static PyObject * -os_listxattr_impl(PyModuleDef *module, path_t *path, int follow_symlinks) -/*[clinic end generated code: output=a87ad6ce56e42a4f input=08cca53ac0b07c13]*/ +os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks) +/*[clinic end generated code: output=bebdb4e2ad0ce435 input=08cca53ac0b07c13]*/ { Py_ssize_t i; PyObject *result = NULL; @@ -11067,8 +11063,8 @@ Return a bytes object containing random bytes suitable for cryptographic use. [clinic start generated code]*/ static PyObject * -os_urandom_impl(PyModuleDef *module, Py_ssize_t size) -/*[clinic end generated code: output=e0011f021501f03b input=4067cdb1b6776c29]*/ +os_urandom_impl(PyObject *module, Py_ssize_t size) +/*[clinic end generated code: output=42c5cca9d18068e9 input=4067cdb1b6776c29]*/ { PyObject *bytes; int result; @@ -11204,8 +11200,8 @@ Return the number of CPUs in the system; return None if indeterminable. [clinic start generated code]*/ static PyObject * -os_cpu_count_impl(PyModuleDef *module) -/*[clinic end generated code: output=c59ee7f6bce832b8 input=d55e2f8f3823a628]*/ +os_cpu_count_impl(PyObject *module) +/*[clinic end generated code: output=5fc29463c3936a9c input=d55e2f8f3823a628]*/ { int ncpu = 0; #ifdef MS_WINDOWS @@ -11245,8 +11241,8 @@ Get the close-on-exe flag of the specified file descriptor. [clinic start generated code]*/ static int -os_get_inheritable_impl(PyModuleDef *module, int fd) -/*[clinic end generated code: output=36110bb36efaa21e input=89ac008dc9ab6b95]*/ +os_get_inheritable_impl(PyObject *module, int fd) +/*[clinic end generated code: output=0445e20e149aa5b8 input=89ac008dc9ab6b95]*/ { int return_value; if (!_PyVerify_fd(fd)) { @@ -11271,8 +11267,8 @@ Set the inheritable flag of the specified file descriptor. [clinic start generated code]*/ static PyObject * -os_set_inheritable_impl(PyModuleDef *module, int fd, int inheritable) -/*[clinic end generated code: output=2ac5c6ce8623f045 input=9ceaead87a1e2402]*/ +os_set_inheritable_impl(PyObject *module, int fd, int inheritable) +/*[clinic end generated code: output=f1b1918a2f3c38c2 input=9ceaead87a1e2402]*/ { int result; if (!_PyVerify_fd(fd)) @@ -11297,8 +11293,8 @@ Get the close-on-exe flag of the specified file descriptor. [clinic start generated code]*/ static int -os_get_handle_inheritable_impl(PyModuleDef *module, Py_intptr_t handle) -/*[clinic end generated code: output=3b7b3e1b43f312b6 input=5f7759443aae3dc5]*/ +os_get_handle_inheritable_impl(PyObject *module, Py_intptr_t handle) +/*[clinic end generated code: output=9e5389b0aa0916ce input=5f7759443aae3dc5]*/ { DWORD flags; @@ -11321,9 +11317,9 @@ Set the inheritable flag of the specified handle. [clinic start generated code]*/ static PyObject * -os_set_handle_inheritable_impl(PyModuleDef *module, Py_intptr_t handle, +os_set_handle_inheritable_impl(PyObject *module, Py_intptr_t handle, int inheritable) -/*[clinic end generated code: output=d2e111a96c9eb296 input=e64b2b2730469def]*/ +/*[clinic end generated code: output=b1e67bfa3213d745 input=e64b2b2730469def]*/ { DWORD flags = inheritable ? HANDLE_FLAG_INHERIT : 0; if (!SetHandleInformation((HANDLE)handle, HANDLE_FLAG_INHERIT, flags)) { diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 281c30b26ee..7416cf71d59 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -105,8 +105,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; @@ -141,8 +141,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; @@ -173,8 +173,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; diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 9a6da737fb3..eb322c20d4a 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -1560,9 +1560,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; @@ -1606,8 +1606,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)); } diff --git a/Modules/sha1module.c b/Modules/sha1module.c index 74b94ba270a..6cb32ed69c1 100644 --- a/Modules/sha1module.c +++ b/Modules/sha1module.c @@ -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; diff --git a/Modules/sha256module.c b/Modules/sha256module.c index 70c2b5b507e..8f067f182c7 100644 --- a/Modules/sha256module.c +++ b/Modules/sha256module.c @@ -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; diff --git a/Modules/sha512module.c b/Modules/sha512module.c index 76942aa7132..f9ff0eaf2df 100644 --- a/Modules/sha512module.c +++ b/Modules/sha512module.c @@ -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; diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index da454de8d9a..a1a18b062d1 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -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; diff --git a/Modules/spwdmodule.c b/Modules/spwdmodule.c index 49324d50f83..4b9f3cd9b71 100644 --- a/Modules/spwdmodule.c +++ b/Modules/spwdmodule.c @@ -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; @@ -159,8 +159,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; diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 16cc17886bf..ab5b65d264d 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -151,8 +151,8 @@ Returns a bytes object containing compressed data. [clinic start generated code]*/ static PyObject * -zlib_compress_impl(PyModuleDef *module, Py_buffer *bytes, int level) -/*[clinic end generated code: output=5d7dd4588788efd3 input=be3abe9934bda4b3]*/ +zlib_compress_impl(PyObject *module, Py_buffer *bytes, int level) +/*[clinic end generated code: output=ae64c2c3076321a0 input=be3abe9934bda4b3]*/ { 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; diff --git a/PC/clinic/msvcrtmodule.c.h b/PC/clinic/msvcrtmodule.c.h index c8e6ed8533f..e7a72c47f6d 100644 --- a/PC/clinic/msvcrtmodule.c.h +++ b/PC/clinic/msvcrtmodule.c.h @@ -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; @@ -74,10 +74,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; @@ -110,11 +110,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; @@ -145,10 +144,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; @@ -175,10 +174,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; @@ -208,10 +207,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]; @@ -232,10 +231,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; @@ -256,10 +255,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]; @@ -280,10 +279,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; @@ -304,10 +303,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; @@ -330,10 +329,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; @@ -360,10 +359,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; @@ -386,10 +385,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; @@ -416,10 +415,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; @@ -454,10 +453,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; @@ -492,10 +491,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; @@ -524,10 +523,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; @@ -551,4 +550,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=16613d3119a1fd44 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=2a794c520d6ae887 input=a9049054013a1b77]*/ diff --git a/PC/clinic/winreg.c.h b/PC/clinic/winreg.c.h index 338e33d39ab..f6ae2c0b921 100644 --- a/PC/clinic/winreg.c.h +++ b/PC/clinic/winreg.c.h @@ -135,11 +135,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; @@ -181,10 +181,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; @@ -232,11 +232,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}; @@ -280,10 +280,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; @@ -327,11 +327,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}; @@ -364,10 +364,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; @@ -401,10 +401,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; @@ -447,10 +447,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; @@ -475,10 +475,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; @@ -514,10 +514,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; @@ -562,11 +562,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; @@ -605,11 +605,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}; @@ -654,11 +654,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}; @@ -699,10 +699,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; @@ -739,10 +739,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; @@ -777,10 +777,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; @@ -820,10 +820,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; @@ -868,12 +868,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; @@ -936,11 +936,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; @@ -977,10 +977,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; @@ -1010,10 +1010,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; @@ -1041,10 +1041,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; @@ -1056,4 +1056,4 @@ winreg_QueryReflectionKey(PyModuleDef *module, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=5e346dccc296f9f1 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7b8940a23f605ddc input=a9049054013a1b77]*/ diff --git a/PC/clinic/winsound.c.h b/PC/clinic/winsound.c.h index dca5a429f36..b00b442362d 100644 --- a/PC/clinic/winsound.c.h +++ b/PC/clinic/winsound.c.h @@ -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; @@ -51,10 +51,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; @@ -81,10 +81,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; @@ -97,4 +97,4 @@ winsound_MessageBeep(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=c5b018ac9dc1f500 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c0b290daf2330dc9 input=a9049054013a1b77]*/ diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 52d41007592..b0739d0167f 100644 --- a/PC/msvcrtmodule.c +++ b/PC/msvcrtmodule.c @@ -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; diff --git a/PC/winreg.c b/PC/winreg.c index d1c3f39525b..f08d9a47ffa 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -774,8 +774,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; @@ -799,9 +799,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; @@ -836,8 +836,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; @@ -875,9 +875,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; @@ -910,8 +910,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 ); @@ -945,9 +945,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); @@ -987,8 +987,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 @@ -1017,8 +1017,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; @@ -1068,8 +1068,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; @@ -1155,8 +1155,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; @@ -1205,8 +1205,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 @@ -1248,9 +1248,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; @@ -1282,9 +1282,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; @@ -1309,9 +1309,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); } @@ -1333,8 +1333,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; @@ -1379,8 +1379,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; @@ -1446,8 +1446,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; @@ -1519,8 +1519,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; @@ -1565,10 +1565,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; @@ -1629,9 +1629,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=f1b16cbcc3ed4101]*/ +/*[clinic end generated code: output=c88c8426b6c00ec7 input=f1b16cbcc3ed4101]*/ { BYTE *data; DWORD len; @@ -1672,8 +1672,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); @@ -1715,8 +1715,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); @@ -1756,8 +1756,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 *); diff --git a/PC/winsound.c b/PC/winsound.c index 8e77d1387e1..6b79d238ed9 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -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; diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index f3d0c9a8701..eedd7c3c3c3 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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; @@ -1324,9 +1323,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; @@ -1348,8 +1347,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; @@ -1371,8 +1370,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; @@ -1396,8 +1395,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); } @@ -1440,8 +1439,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; @@ -1463,8 +1462,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; @@ -1622,8 +1621,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); } @@ -1639,8 +1638,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; @@ -1699,8 +1698,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); } @@ -1818,8 +1817,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; diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index 90995e5ac7b..4e2b1f1fe81 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -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; @@ -112,10 +111,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; @@ -150,12 +149,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}; @@ -185,10 +184,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; @@ -220,11 +219,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; @@ -257,11 +256,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; @@ -291,10 +290,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); } @@ -311,10 +310,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; @@ -354,11 +353,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; @@ -387,10 +386,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; @@ -453,10 +452,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); } @@ -495,10 +494,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; @@ -531,10 +530,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; @@ -574,10 +573,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; @@ -607,11 +606,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; @@ -641,11 +640,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; @@ -660,4 +659,4 @@ builtin_issubclass(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=4bef16b6aa432879 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9031270b64c794b8 input=a9049054013a1b77]*/ diff --git a/Python/clinic/import.c.h b/Python/clinic/import.c.h index 247766519e1..05d79ac41b4 100644 --- a/Python/clinic/import.c.h +++ b/Python/clinic/import.c.h @@ -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; @@ -116,10 +116,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); } @@ -134,10 +134,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; @@ -160,10 +160,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; @@ -186,10 +186,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; @@ -212,10 +212,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; @@ -238,10 +238,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; @@ -266,10 +266,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; @@ -299,10 +299,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; @@ -328,10 +328,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; @@ -352,4 +352,4 @@ exit: #ifndef _IMP_EXEC_DYNAMIC_METHODDEF #define _IMP_EXEC_DYNAMIC_METHODDEF #endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */ -/*[clinic end generated code: output=32324a5e46cdfc4b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=90ad6e5833e6170d input=a9049054013a1b77]*/ diff --git a/Python/import.c b/Python/import.c index 0b843dafd3d..1312fd0281d 100644 --- a/Python/import.c +++ b/Python/import.c @@ -242,8 +242,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); @@ -262,8 +262,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(); @@ -281,8 +281,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) { @@ -926,9 +926,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); @@ -1040,8 +1040,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; @@ -1823,8 +1823,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; @@ -1862,8 +1862,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; @@ -1890,8 +1890,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); } @@ -1906,8 +1906,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); } @@ -1922,8 +1922,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)); } @@ -1938,8 +1938,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; @@ -1988,8 +1988,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; @@ -2043,8 +2043,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); } @@ -2062,8 +2062,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); } diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 1d851da9561..f615ed9a446 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -2793,7 +2793,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):