clinic: PY_LONG_LONG -> long long
diff --git a/Modules/_sha3/clinic/sha3module.c.h b/Modules/_sha3/clinic/sha3module.c.h
index bfd95cd..704dc00 100644
--- a/Modules/_sha3/clinic/sha3module.c.h
+++ b/Modules/_sha3/clinic/sha3module.c.h
@@ -15,12 +15,14 @@
py_sha3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- static char *_keywords[] = {"string", NULL};
+ static const char * const _keywords[] = {"string", NULL};
+ static _PyArg_Parser _parser = {"|O:sha3_224", _keywords, 0};
PyObject *data = NULL;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O:sha3_224", _keywords,
- &data))
+ if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
+ &data)) {
goto exit;
+ }
return_value = py_sha3_new_impl(type, data);
exit:
@@ -106,12 +108,14 @@
_sha3_shake_128_digest(SHA3object *self, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- static char *_keywords[] = {"length", NULL};
+ static const char * const _keywords[] = {"length", NULL};
+ static _PyArg_Parser _parser = {"k:digest", _keywords, 0};
unsigned long length;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "k:digest", _keywords,
- &length))
+ if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
+ &length)) {
goto exit;
+ }
return_value = _sha3_shake_128_digest_impl(self, length);
exit:
@@ -134,15 +138,17 @@
_sha3_shake_128_hexdigest(SHA3object *self, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- static char *_keywords[] = {"length", NULL};
+ static const char * const _keywords[] = {"length", NULL};
+ static _PyArg_Parser _parser = {"k:hexdigest", _keywords, 0};
unsigned long length;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "k:hexdigest", _keywords,
- &length))
+ if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
+ &length)) {
goto exit;
+ }
return_value = _sha3_shake_128_hexdigest_impl(self, length);
exit:
return return_value;
}
-/*[clinic end generated code: output=2eb6db41778eeb50 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=50cff05f2c74d41e input=a9049054013a1b77]*/
diff --git a/Modules/clinic/sha512module.c.h b/Modules/clinic/sha512module.c.h
index 78f7743..9680ea2 100644
--- a/Modules/clinic/sha512module.c.h
+++ b/Modules/clinic/sha512module.c.h
@@ -2,8 +2,6 @@
preserve
[clinic start generated code]*/
-#if defined(PY_LONG_LONG)
-
PyDoc_STRVAR(SHA512Type_copy__doc__,
"copy($self, /)\n"
"--\n"
@@ -22,10 +20,6 @@
return SHA512Type_copy_impl(self);
}
-#endif /* defined(PY_LONG_LONG) */
-
-#if defined(PY_LONG_LONG)
-
PyDoc_STRVAR(SHA512Type_digest__doc__,
"digest($self, /)\n"
"--\n"
@@ -44,10 +38,6 @@
return SHA512Type_digest_impl(self);
}
-#endif /* defined(PY_LONG_LONG) */
-
-#if defined(PY_LONG_LONG)
-
PyDoc_STRVAR(SHA512Type_hexdigest__doc__,
"hexdigest($self, /)\n"
"--\n"
@@ -66,10 +56,6 @@
return SHA512Type_hexdigest_impl(self);
}
-#endif /* defined(PY_LONG_LONG) */
-
-#if defined(PY_LONG_LONG)
-
PyDoc_STRVAR(SHA512Type_update__doc__,
"update($self, obj, /)\n"
"--\n"
@@ -79,10 +65,6 @@
#define SHA512TYPE_UPDATE_METHODDEF \
{"update", (PyCFunction)SHA512Type_update, METH_O, SHA512Type_update__doc__},
-#endif /* defined(PY_LONG_LONG) */
-
-#if defined(PY_LONG_LONG)
-
PyDoc_STRVAR(_sha512_sha512__doc__,
"sha512($module, /, string=b\'\')\n"
"--\n"
@@ -113,10 +95,6 @@
return return_value;
}
-#endif /* defined(PY_LONG_LONG) */
-
-#if defined(PY_LONG_LONG)
-
PyDoc_STRVAR(_sha512_sha384__doc__,
"sha384($module, /, string=b\'\')\n"
"--\n"
@@ -146,30 +124,4 @@
exit:
return return_value;
}
-
-#endif /* defined(PY_LONG_LONG) */
-
-#ifndef SHA512TYPE_COPY_METHODDEF
- #define SHA512TYPE_COPY_METHODDEF
-#endif /* !defined(SHA512TYPE_COPY_METHODDEF) */
-
-#ifndef SHA512TYPE_DIGEST_METHODDEF
- #define SHA512TYPE_DIGEST_METHODDEF
-#endif /* !defined(SHA512TYPE_DIGEST_METHODDEF) */
-
-#ifndef SHA512TYPE_HEXDIGEST_METHODDEF
- #define SHA512TYPE_HEXDIGEST_METHODDEF
-#endif /* !defined(SHA512TYPE_HEXDIGEST_METHODDEF) */
-
-#ifndef SHA512TYPE_UPDATE_METHODDEF
- #define SHA512TYPE_UPDATE_METHODDEF
-#endif /* !defined(SHA512TYPE_UPDATE_METHODDEF) */
-
-#ifndef _SHA512_SHA512_METHODDEF
- #define _SHA512_SHA512_METHODDEF
-#endif /* !defined(_SHA512_SHA512_METHODDEF) */
-
-#ifndef _SHA512_SHA384_METHODDEF
- #define _SHA512_SHA384_METHODDEF
-#endif /* !defined(_SHA512_SHA384_METHODDEF) */
-/*[clinic end generated code: output=cf0da76cb603d1bf input=a9049054013a1b77]*/
+/*[clinic end generated code: output=8f7f6603a9c4e910 input=a9049054013a1b77]*/