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.
This commit is contained in:
Victor Stinner 2023-08-26 04:05:17 +02:00 committed by GitHub
parent 6353c21b78
commit 8ba4714611
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 88 additions and 62 deletions

View file

@ -7,6 +7,7 @@ preserve
# include "pycore_runtime.h" // _Py_ID()
#endif
#include "pycore_abstract.h" // _PyNumber_Index()
PyDoc_STRVAR(EncodingMap_size__doc__,
"size($self, /)\n"
@ -1504,4 +1505,4 @@ skip_optional_pos:
exit:
return return_value;
}
/*[clinic end generated code: output=2e1e1b136ef1b681 input=a9049054013a1b77]*/
/*[clinic end generated code: output=a64776a3ea1c970c input=a9049054013a1b77]*/