summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/_hashopenssl.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-26 02:05:17 (GMT)
committerGitHub <noreply@github.com>2023-08-26 02:05:17 (GMT)
commit8ba47146111d714c7b61825d43b52311d9be366d (patch)
tree061438cacfecebab0264ef41fb94e11a40431924 /Modules/clinic/_hashopenssl.c.h
parent6353c21b78a3d91e7cd7810f1c00258a34e85fe7 (diff)
downloadcpython-8ba47146111d714c7b61825d43b52311d9be366d.zip
cpython-8ba47146111d714c7b61825d43b52311d9be366d.tar.gz
cpython-8ba47146111d714c7b61825d43b52311d9be366d.tar.bz2
gh-106320: Remove private AC converter functions (#108505)
Move these private functions to the internal C API (pycore_abstract.h): * _Py_convert_optional_to_ssize_t() * _PyNumber_Index() Argument Clinic now emits #include "pycore_abstract.h" when these functions are used. The parser of the c-analyzer tool now uses a list of files which use the limited C API, rather than a list of files using the internal C API.
Diffstat (limited to 'Modules/clinic/_hashopenssl.c.h')
-rw-r--r--Modules/clinic/_hashopenssl.c.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/clinic/_hashopenssl.c.h b/Modules/clinic/_hashopenssl.c.h
index fb61a44..0ea192e 100644
--- a/Modules/clinic/_hashopenssl.c.h
+++ b/Modules/clinic/_hashopenssl.c.h
@@ -7,6 +7,7 @@ preserve
# include "pycore_runtime.h" // _Py_ID()
#endif
+#include "pycore_abstract.h" // _PyNumber_Index()
PyDoc_STRVAR(EVP_copy__doc__,
"copy($self, /)\n"
@@ -1851,4 +1852,4 @@ exit:
#ifndef _HASHLIB_SCRYPT_METHODDEF
#define _HASHLIB_SCRYPT_METHODDEF
#endif /* !defined(_HASHLIB_SCRYPT_METHODDEF) */
-/*[clinic end generated code: output=b339e255db698147 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=cfad8d5e904a4917 input=a9049054013a1b77]*/