Open encukou opened 1 month ago
3.13 newly defines the following unprefixed functions/macros/types via Python.h. They should probably be hidden:
Python.h
uop_get_target
Include/cpython/optimizer.h:67
uop_get_exit_index
Include/cpython/optimizer.h:73
uop_get_jump_target
Include/cpython/optimizer.h:79
uop_get_error_target
Include/cpython/optimizer.h:85
BLOOM_FILTER_WORDS
Include/cpython/optimizer.h
UOP_FORMAT_TARGET
UOP_FORMAT_EXIT
UOP_FORMAT_JUMP
UOP_FORMAT_UNUSED
struct _bloom_filter
Include/cpython/optimizer.h:19
struct _exit_data
Include/cpython/optimizer.h:91
optimize_func
Include/cpython/optimizer.h:112
CO_NO_MONITORING_EVENTS
Include/cpython/code.h:192
Some more are generated by configure:
HAVE_CLOCK_T
./pyconfig.h:138
HAVE_CLOSEFROM
HAVE_GETGRENT
HAVE_GRANTPT
./pyconfig.h:515
HAVE_POSIX_OPENPT
./pyconfig.h:849
HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP
HAVE_PROCESS_VM_READV
HAVE_PTSNAME
./pyconfig.h:957
HAVE_PTSNAME_R
HAVE_SOCKLEN_T
HAVE_SYS_TIMERFD_H
./pyconfig.h:1406
HAVE_TIMERFD_CREATE
HAVE_UNLOCKPT
HAVE___UINT128_T
./pyconfig.h:1582
WITH_MIMALLOC
./pyconfig.h:1867
Can't we move most of Include/cpython/optimizer.h contents to the internal C API? Is there a reason to expose it? I mean, the private functions (named prefixed by _Py).
_Py
3.13 newly defines the following unprefixed functions/macros/types via
Python.h
. They should probably be hidden:uop_get_target
inInclude/cpython/optimizer.h:67
uop_get_exit_index
inInclude/cpython/optimizer.h:73
uop_get_jump_target
inInclude/cpython/optimizer.h:79
uop_get_error_target
inInclude/cpython/optimizer.h:85
BLOOM_FILTER_WORDS
inInclude/cpython/optimizer.h
UOP_FORMAT_TARGET
inInclude/cpython/optimizer.h
UOP_FORMAT_EXIT
inInclude/cpython/optimizer.h
UOP_FORMAT_JUMP
inInclude/cpython/optimizer.h
UOP_FORMAT_UNUSED
inInclude/cpython/optimizer.h
struct _bloom_filter
inInclude/cpython/optimizer.h:19
struct _exit_data
inInclude/cpython/optimizer.h:91
optimize_func
inInclude/cpython/optimizer.h:112
CO_NO_MONITORING_EVENTS
inInclude/cpython/code.h:192
Some more are generated by configure:
HAVE_CLOCK_T
in./pyconfig.h:138
HAVE_CLOSEFROM
in./pyconfig.h:138
HAVE_GETGRENT
in./pyconfig.h:138
HAVE_GRANTPT
in./pyconfig.h:515
HAVE_POSIX_OPENPT
in./pyconfig.h:849
HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP
in./pyconfig.h:849
HAVE_PROCESS_VM_READV
in./pyconfig.h:849
HAVE_PTSNAME
in./pyconfig.h:957
HAVE_PTSNAME_R
in./pyconfig.h:957
HAVE_SOCKLEN_T
in./pyconfig.h:957
HAVE_SYS_TIMERFD_H
in./pyconfig.h:1406
HAVE_TIMERFD_CREATE
in./pyconfig.h:1406
HAVE_UNLOCKPT
in./pyconfig.h:1406
HAVE___UINT128_T
in./pyconfig.h:1582
WITH_MIMALLOC
in./pyconfig.h:1867
Linked PRs