diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-26 02:05:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-26 02:05:17 (GMT) |
commit | 8ba47146111d714c7b61825d43b52311d9be366d (patch) | |
tree | 061438cacfecebab0264ef41fb94e11a40431924 /Modules/clinic/posixmodule.c.h | |
parent | 6353c21b78a3d91e7cd7810f1c00258a34e85fe7 (diff) | |
download | cpython-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/posixmodule.c.h')
-rw-r--r-- | Modules/clinic/posixmodule.c.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index 4b85519..e80bbff 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -7,6 +7,7 @@ preserve # include "pycore_runtime.h" // _Py_ID() #endif +#include "pycore_abstract.h" // _PyNumber_Index() #include "pycore_fileutils.h" // _PyLong_FileDescriptor_Converter() #include "pycore_long.h" // _PyLong_UnsignedInt_Converter() @@ -11992,4 +11993,4 @@ exit: #ifndef OS_WAITSTATUS_TO_EXITCODE_METHODDEF #define OS_WAITSTATUS_TO_EXITCODE_METHODDEF #endif /* !defined(OS_WAITSTATUS_TO_EXITCODE_METHODDEF) */ -/*[clinic end generated code: output=ff0e50316f4ed71a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1b34619e5f65adc2 input=a9049054013a1b77]*/ |