"Return a copy of the hash object.");
#define MD5TYPE_COPY_METHODDEF \
- {"copy", _PyCFunction_CAST(MD5Type_copy), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, MD5Type_copy__doc__},
+ {"copy", (PyCFunction)(void(*)(void))MD5Type_copy, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, MD5Type_copy__doc__},
static PyObject *
MD5Type_copy_impl(MD5object *self, PyTypeObject *cls);
exit:
return return_value;
}
-/*[clinic end generated code: output=015f7613e3a9bb93 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=81702ec915f36236 input=a9049054013a1b77]*/
fastcall = not new_or_init
limited_capi = clinic.limited_capi
- if limited_capi and (requires_defining_class or pseudo_args or
+ if limited_capi and (pseudo_args or
(any(p.is_optional() for p in parameters) and
any(p.is_keyword_only() and not p.is_optional() for p in parameters)) or
any(c.broken_limited_capi for c in converters)):
declarations=declarations)
+ methoddef_cast_end = ""
if flags in ('METH_NOARGS', 'METH_O', 'METH_VARARGS'):
methoddef_cast = "(PyCFunction)"
- methoddef_cast_end = ""
elif limited_capi:
methoddef_cast = "(PyCFunction)(void(*)(void))"
- methoddef_cast_end = ""
else:
methoddef_cast = "_PyCFunction_CAST("
methoddef_cast_end = ")"