mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Issue #27332: Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ results for a given *word*.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
crypt_crypt_impl(PyModuleDef *module, const char *word, const char *salt)
|
||||
/*[clinic end generated code: output=995ad1e854d83069 input=0e8edec9c364352b]*/
|
||||
crypt_crypt_impl(PyObject *module, const char *word, const char *salt)
|
||||
/*[clinic end generated code: output=0512284a03d2803c input=0e8edec9c364352b]*/
|
||||
{
|
||||
/* On some platforms (AtheOS) crypt returns NULL for an invalid
|
||||
salt. Return None in that case. XXX Maybe raise an exception? */
|
||||
|
||||
@@ -430,9 +430,9 @@ Return a database object.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
dbmopen_impl(PyModuleDef *module, const char *filename, const char *flags,
|
||||
dbmopen_impl(PyObject *module, const char *filename, const char *flags,
|
||||
int mode)
|
||||
/*[clinic end generated code: output=e8d4b36f25c733fd input=226334bade5764e6]*/
|
||||
/*[clinic end generated code: output=5fade8cf16e0755f input=226334bade5764e6]*/
|
||||
{
|
||||
int iflags;
|
||||
|
||||
|
||||
@@ -562,9 +562,8 @@ when the database has to be created. It defaults to octal 0o666.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
dbmopen_impl(PyModuleDef *module, const char *name, const char *flags,
|
||||
int mode)
|
||||
/*[clinic end generated code: output=365b31415c03ccd4 input=55563cd60e51984a]*/
|
||||
dbmopen_impl(PyObject *module, const char *name, const char *flags, int mode)
|
||||
/*[clinic end generated code: output=31aa1bafdf5da688 input=55563cd60e51984a]*/
|
||||
{
|
||||
int iflags;
|
||||
|
||||
|
||||
@@ -227,10 +227,10 @@ opened in a binary mode.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_io_open_impl(PyModuleDef *module, PyObject *file, const char *mode,
|
||||
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
|
||||
int buffering, const char *encoding, const char *errors,
|
||||
const char *newline, int closefd, PyObject *opener)
|
||||
/*[clinic end generated code: output=7615d0d746eb14d2 input=f4e1ca75223987bc]*/
|
||||
/*[clinic end generated code: output=aefafc4ce2b46dc0 input=f4e1ca75223987bc]*/
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
||||
@@ -130,12 +130,12 @@ PyDoc_STRVAR(_io_open__doc__,
|
||||
{"open", (PyCFunction)_io_open, METH_VARARGS|METH_KEYWORDS, _io_open__doc__},
|
||||
|
||||
static PyObject *
|
||||
_io_open_impl(PyModuleDef *module, PyObject *file, const char *mode,
|
||||
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
|
||||
int buffering, const char *encoding, const char *errors,
|
||||
const char *newline, int closefd, PyObject *opener);
|
||||
|
||||
static PyObject *
|
||||
_io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs)
|
||||
_io_open(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
static char *_keywords[] = {"file", "mode", "buffering", "encoding", "errors", "newline", "closefd", "opener", NULL};
|
||||
@@ -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]*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ Return the number of weak references to 'object'.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static Py_ssize_t
|
||||
_weakref_getweakrefcount_impl(PyModuleDef *module, PyObject *object)
|
||||
/*[clinic end generated code: output=6a6ad0b98285e468 input=cedb69711b6a2507]*/
|
||||
_weakref_getweakrefcount_impl(PyObject *module, PyObject *object)
|
||||
/*[clinic end generated code: output=301806d59558ff3e input=cedb69711b6a2507]*/
|
||||
{
|
||||
PyWeakReference **list;
|
||||
|
||||
|
||||
@@ -368,8 +368,8 @@ Close handle.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CloseHandle_impl(PyModuleDef *module, HANDLE handle)
|
||||
/*[clinic end generated code: output=0548595c71cb4bf7 input=7f0e4ac36e0352b8]*/
|
||||
_winapi_CloseHandle_impl(PyObject *module, HANDLE handle)
|
||||
/*[clinic end generated code: output=7ad37345f07bd782 input=7f0e4ac36e0352b8]*/
|
||||
{
|
||||
BOOL success;
|
||||
|
||||
@@ -391,9 +391,9 @@ _winapi.ConnectNamedPipe
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_ConnectNamedPipe_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_ConnectNamedPipe_impl(PyObject *module, HANDLE handle,
|
||||
int use_overlapped)
|
||||
/*[clinic end generated code: output=fed3b165d1bca95a input=edc83da007ebf3be]*/
|
||||
/*[clinic end generated code: output=335a0e7086800671 input=edc83da007ebf3be]*/
|
||||
{
|
||||
BOOL success;
|
||||
OverlappedObject *overlapped = NULL;
|
||||
@@ -443,12 +443,12 @@ _winapi.CreateFile -> HANDLE
|
||||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_CreateFile_impl(PyModuleDef *module, LPCTSTR file_name,
|
||||
_winapi_CreateFile_impl(PyObject *module, LPCTSTR file_name,
|
||||
DWORD desired_access, DWORD share_mode,
|
||||
LPSECURITY_ATTRIBUTES security_attributes,
|
||||
DWORD creation_disposition,
|
||||
DWORD flags_and_attributes, HANDLE template_file)
|
||||
/*[clinic end generated code: output=c6e1d78f8affd10c input=6423c3e40372dbd5]*/
|
||||
/*[clinic end generated code: output=417ddcebfc5a3d53 input=6423c3e40372dbd5]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
@@ -474,9 +474,9 @@ _winapi.CreateJunction
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateJunction_impl(PyModuleDef *module, LPWSTR src_path,
|
||||
_winapi_CreateJunction_impl(PyObject *module, LPWSTR src_path,
|
||||
LPWSTR dst_path)
|
||||
/*[clinic end generated code: output=eccae9364e46f6da input=8cd1f9964b6e3d36]*/
|
||||
/*[clinic end generated code: output=66b7eb746e1dfa25 input=8cd1f9964b6e3d36]*/
|
||||
{
|
||||
/* Privilege adjustment */
|
||||
HANDLE token = NULL;
|
||||
@@ -617,12 +617,12 @@ _winapi.CreateNamedPipe -> HANDLE
|
||||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_CreateNamedPipe_impl(PyModuleDef *module, LPCTSTR name,
|
||||
DWORD open_mode, DWORD pipe_mode,
|
||||
DWORD max_instances, DWORD out_buffer_size,
|
||||
DWORD in_buffer_size, DWORD default_timeout,
|
||||
_winapi_CreateNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD open_mode,
|
||||
DWORD pipe_mode, DWORD max_instances,
|
||||
DWORD out_buffer_size, DWORD in_buffer_size,
|
||||
DWORD default_timeout,
|
||||
LPSECURITY_ATTRIBUTES security_attributes)
|
||||
/*[clinic end generated code: output=44ca2a06a219b523 input=5a73530b84d8bc37]*/
|
||||
/*[clinic end generated code: output=80f8c07346a94fbc input=5a73530b84d8bc37]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
@@ -653,9 +653,8 @@ Returns a 2-tuple of handles, to the read and write ends of the pipe.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreatePipe_impl(PyModuleDef *module, PyObject *pipe_attrs,
|
||||
DWORD size)
|
||||
/*[clinic end generated code: output=fef99f3b4222bc78 input=c4f2cfa56ef68d90]*/
|
||||
_winapi_CreatePipe_impl(PyObject *module, PyObject *pipe_attrs, DWORD size)
|
||||
/*[clinic end generated code: output=1c4411d8699f0925 input=c4f2cfa56ef68d90]*/
|
||||
{
|
||||
HANDLE read_pipe;
|
||||
HANDLE write_pipe;
|
||||
@@ -814,13 +813,13 @@ process ID, and thread ID.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_CreateProcess_impl(PyModuleDef *module, Py_UNICODE *application_name,
|
||||
_winapi_CreateProcess_impl(PyObject *module, Py_UNICODE *application_name,
|
||||
Py_UNICODE *command_line, PyObject *proc_attrs,
|
||||
PyObject *thread_attrs, BOOL inherit_handles,
|
||||
DWORD creation_flags, PyObject *env_mapping,
|
||||
Py_UNICODE *current_directory,
|
||||
PyObject *startup_info)
|
||||
/*[clinic end generated code: output=874bb350ff9ed4ef input=4a43b05038d639bb]*/
|
||||
/*[clinic end generated code: output=4652a33aff4b0ae1 input=4a43b05038d639bb]*/
|
||||
{
|
||||
BOOL result;
|
||||
PROCESS_INFORMATION pi;
|
||||
@@ -900,13 +899,12 @@ through both handles.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_DuplicateHandle_impl(PyModuleDef *module,
|
||||
HANDLE source_process_handle,
|
||||
_winapi_DuplicateHandle_impl(PyObject *module, HANDLE source_process_handle,
|
||||
HANDLE source_handle,
|
||||
HANDLE target_process_handle,
|
||||
DWORD desired_access, BOOL inherit_handle,
|
||||
DWORD options)
|
||||
/*[clinic end generated code: output=0799515b68b5237b input=b933e3f2356a8c12]*/
|
||||
/*[clinic end generated code: output=ad9711397b5dcd4e input=b933e3f2356a8c12]*/
|
||||
{
|
||||
HANDLE target_handle;
|
||||
BOOL result;
|
||||
@@ -940,8 +938,8 @@ _winapi.ExitProcess
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_ExitProcess_impl(PyModuleDef *module, UINT ExitCode)
|
||||
/*[clinic end generated code: output=25f3b499c24cedc8 input=4f05466a9406c558]*/
|
||||
_winapi_ExitProcess_impl(PyObject *module, UINT ExitCode)
|
||||
/*[clinic end generated code: output=a387deb651175301 input=4f05466a9406c558]*/
|
||||
{
|
||||
#if defined(Py_DEBUG)
|
||||
SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOALIGNMENTFAULTEXCEPT|
|
||||
@@ -961,8 +959,8 @@ Return a handle object for the current process.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_GetCurrentProcess_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=be29ac3ad5f8291e input=b213403fd4b96b41]*/
|
||||
_winapi_GetCurrentProcess_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=ddeb4dd2ffadf344 input=b213403fd4b96b41]*/
|
||||
{
|
||||
return GetCurrentProcess();
|
||||
}
|
||||
@@ -977,8 +975,8 @@ Return the termination status of the specified process.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static DWORD
|
||||
_winapi_GetExitCodeProcess_impl(PyModuleDef *module, HANDLE process)
|
||||
/*[clinic end generated code: output=0b10f0848a410f65 input=61b6bfc7dc2ee374]*/
|
||||
_winapi_GetExitCodeProcess_impl(PyObject *module, HANDLE process)
|
||||
/*[clinic end generated code: output=b4620bdf2bccf36b input=61b6bfc7dc2ee374]*/
|
||||
{
|
||||
DWORD exit_code;
|
||||
BOOL result;
|
||||
@@ -998,8 +996,8 @@ _winapi.GetLastError -> DWORD
|
||||
[clinic start generated code]*/
|
||||
|
||||
static DWORD
|
||||
_winapi_GetLastError_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=0ea00d8e67bdd056 input=62d47fb9bce038ba]*/
|
||||
_winapi_GetLastError_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=8585b827cb1a92c5 input=62d47fb9bce038ba]*/
|
||||
{
|
||||
return GetLastError();
|
||||
}
|
||||
@@ -1021,8 +1019,8 @@ of the current process.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_GetModuleFileName_impl(PyModuleDef *module, HMODULE module_handle)
|
||||
/*[clinic end generated code: output=90063dc63bdbfa18 input=6d66ff7deca5d11f]*/
|
||||
_winapi_GetModuleFileName_impl(PyObject *module, HMODULE module_handle)
|
||||
/*[clinic end generated code: output=85b4b728c5160306 input=6d66ff7deca5d11f]*/
|
||||
{
|
||||
BOOL result;
|
||||
WCHAR filename[MAX_PATH];
|
||||
@@ -1049,8 +1047,8 @@ The integer associated with the handle object is returned.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_GetStdHandle_impl(PyModuleDef *module, DWORD std_handle)
|
||||
/*[clinic end generated code: output=5f5ca28b28c6fad2 input=07016b06a2fc8826]*/
|
||||
_winapi_GetStdHandle_impl(PyObject *module, DWORD std_handle)
|
||||
/*[clinic end generated code: output=0e613001e73ab614 input=07016b06a2fc8826]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
@@ -1071,8 +1069,8 @@ Return the version number of the current operating system.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
_winapi_GetVersion_impl(PyModuleDef *module)
|
||||
/*[clinic end generated code: output=95a2f8ad3b948ca8 input=e21dff8d0baeded2]*/
|
||||
_winapi_GetVersion_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=e41f0db5a3b82682 input=e21dff8d0baeded2]*/
|
||||
/* Disable deprecation warnings about GetVersionEx as the result is
|
||||
being passed straight through to the caller, who is responsible for
|
||||
using it correctly. */
|
||||
@@ -1095,9 +1093,9 @@ _winapi.OpenProcess -> HANDLE
|
||||
[clinic start generated code]*/
|
||||
|
||||
static HANDLE
|
||||
_winapi_OpenProcess_impl(PyModuleDef *module, DWORD desired_access,
|
||||
_winapi_OpenProcess_impl(PyObject *module, DWORD desired_access,
|
||||
BOOL inherit_handle, DWORD process_id)
|
||||
/*[clinic end generated code: output=6bc52eda82a3d226 input=ec98c4cf4ea2ec36]*/
|
||||
/*[clinic end generated code: output=b42b6b81ea5a0fc3 input=ec98c4cf4ea2ec36]*/
|
||||
{
|
||||
HANDLE handle;
|
||||
|
||||
@@ -1119,8 +1117,8 @@ _winapi.PeekNamedPipe
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_PeekNamedPipe_impl(PyModuleDef *module, HANDLE handle, int size)
|
||||
/*[clinic end generated code: output=e6c908e2fb63c798 input=c7aa53bfbce69d70]*/
|
||||
_winapi_PeekNamedPipe_impl(PyObject *module, HANDLE handle, int size)
|
||||
/*[clinic end generated code: output=d0c3e29e49d323dd input=c7aa53bfbce69d70]*/
|
||||
{
|
||||
PyObject *buf = NULL;
|
||||
DWORD nread, navail, nleft;
|
||||
@@ -1167,9 +1165,9 @@ _winapi.ReadFile
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_ReadFile_impl(PyModuleDef *module, HANDLE handle, int size,
|
||||
_winapi_ReadFile_impl(PyObject *module, HANDLE handle, int size,
|
||||
int use_overlapped)
|
||||
/*[clinic end generated code: output=d7695db4db97b135 input=8dd810194e86ac7d]*/
|
||||
/*[clinic end generated code: output=492029ca98161d84 input=8dd810194e86ac7d]*/
|
||||
{
|
||||
DWORD nread;
|
||||
PyObject *buf;
|
||||
@@ -1229,11 +1227,11 @@ _winapi.SetNamedPipeHandleState
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_SetNamedPipeHandleState_impl(PyModuleDef *module, HANDLE named_pipe,
|
||||
_winapi_SetNamedPipeHandleState_impl(PyObject *module, HANDLE named_pipe,
|
||||
PyObject *mode,
|
||||
PyObject *max_collection_count,
|
||||
PyObject *collect_data_timeout)
|
||||
/*[clinic end generated code: output=25aa3c28dee223ce input=9142d72163d0faa6]*/
|
||||
/*[clinic end generated code: output=f2129d222cbfa095 input=9142d72163d0faa6]*/
|
||||
{
|
||||
PyObject *oArgs[3] = {mode, max_collection_count, collect_data_timeout};
|
||||
DWORD dwArgs[3], *pArgs[3] = {NULL, NULL, NULL};
|
||||
@@ -1268,9 +1266,9 @@ Terminate the specified process and all of its threads.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_TerminateProcess_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_TerminateProcess_impl(PyObject *module, HANDLE handle,
|
||||
UINT exit_code)
|
||||
/*[clinic end generated code: output=937c1bb6219aca8b input=d6bc0aa1ee3bb4df]*/
|
||||
/*[clinic end generated code: output=f4e99ac3f0b1f34a input=d6bc0aa1ee3bb4df]*/
|
||||
{
|
||||
BOOL result;
|
||||
|
||||
@@ -1291,8 +1289,8 @@ _winapi.WaitNamedPipe
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitNamedPipe_impl(PyModuleDef *module, LPCTSTR name, DWORD timeout)
|
||||
/*[clinic end generated code: output=5bca5e02f448c9d7 input=36fc781291b1862c]*/
|
||||
_winapi_WaitNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD timeout)
|
||||
/*[clinic end generated code: output=c2866f4439b1fe38 input=36fc781291b1862c]*/
|
||||
{
|
||||
BOOL success;
|
||||
|
||||
@@ -1316,10 +1314,9 @@ _winapi.WaitForMultipleObjects
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_WaitForMultipleObjects_impl(PyModuleDef *module,
|
||||
PyObject *handle_seq, BOOL wait_flag,
|
||||
DWORD milliseconds)
|
||||
/*[clinic end generated code: output=acb440728d06d130 input=36f76ca057cd28a0]*/
|
||||
_winapi_WaitForMultipleObjects_impl(PyObject *module, PyObject *handle_seq,
|
||||
BOOL wait_flag, DWORD milliseconds)
|
||||
/*[clinic end generated code: output=295e3f00b8e45899 input=36f76ca057cd28a0]*/
|
||||
{
|
||||
DWORD result;
|
||||
HANDLE handles[MAXIMUM_WAIT_OBJECTS];
|
||||
@@ -1393,9 +1390,9 @@ in milliseconds.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static long
|
||||
_winapi_WaitForSingleObject_impl(PyModuleDef *module, HANDLE handle,
|
||||
_winapi_WaitForSingleObject_impl(PyObject *module, HANDLE handle,
|
||||
DWORD milliseconds)
|
||||
/*[clinic end generated code: output=34ae40c269749c48 input=443d1ab076edc7b1]*/
|
||||
/*[clinic end generated code: output=3c4715d8f1b39859 input=443d1ab076edc7b1]*/
|
||||
{
|
||||
DWORD result;
|
||||
|
||||
@@ -1420,9 +1417,9 @@ _winapi.WriteFile
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_winapi_WriteFile_impl(PyModuleDef *module, HANDLE handle, PyObject *buffer,
|
||||
_winapi_WriteFile_impl(PyObject *module, HANDLE handle, PyObject *buffer,
|
||||
int use_overlapped)
|
||||
/*[clinic end generated code: output=65e70ea41f4d2a1d input=51846a5af52053fd]*/
|
||||
/*[clinic end generated code: output=2ca80f6bf3fa92e3 input=51846a5af52053fd]*/
|
||||
{
|
||||
Py_buffer _buf, *buf;
|
||||
DWORD len, written;
|
||||
|
||||
@@ -1938,11 +1938,11 @@ Internal. Used for pickling support.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype,
|
||||
array__array_reconstructor_impl(PyObject *module, PyTypeObject *arraytype,
|
||||
int typecode,
|
||||
enum machine_format_code mformat_code,
|
||||
PyObject *items)
|
||||
/*[clinic end generated code: output=6ecbf0e8e4d92ab9 input=2464dc8f4c7736b5]*/
|
||||
/*[clinic end generated code: output=e05263141ba28365 input=2464dc8f4c7736b5]*/
|
||||
{
|
||||
PyObject *converted_items;
|
||||
PyObject *result;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user