diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-26 04:05:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-26 04:05:17 +0200 |
commit | 8ba47146111d714c7b61825d43b52311d9be366d (patch) | |
tree | 061438cacfecebab0264ef41fb94e11a40431924 /Python/getargs.c | |
parent | 6353c21b78a3d91e7cd7810f1c00258a34e85fe7 (diff) | |
download | cpython-8ba47146111d714c7b61825d43b52311d9be366d.tar.gz cpython-8ba47146111d714c7b61825d43b52311d9be366d.zip |
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 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 809b2d4ef17..fdc144488c9 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -2,6 +2,7 @@ /* New getargs implementation */ #include "Python.h" +#include "pycore_abstract.h" // _PyNumber_Index() #include "pycore_dict.h" // _PyDict_HasOnlyStringKeys() #include "pycore_pylifecycle.h" // _PyArg_Fini #include "pycore_tuple.h" // _PyTuple_ITEMS() |