cpython icon indicating copy to clipboard operation
cpython copied to clipboard

3.13 adds C macros/functions/types without the `Py`/`_Py` prefix

Open encukou opened this issue 1 month ago • 1 comments

3.13 newly defines the following unprefixed functions/macros/types via Python.h. They should probably be hidden:

  • [x] uop_get_target in Include/cpython/optimizer.h:67
  • [x] uop_get_exit_index in Include/cpython/optimizer.h:73
  • [x] uop_get_jump_target in Include/cpython/optimizer.h:79
  • [x] uop_get_error_target in Include/cpython/optimizer.h:85
  • [x] BLOOM_FILTER_WORDS in Include/cpython/optimizer.h
  • [x] UOP_FORMAT_TARGET in Include/cpython/optimizer.h
  • [x] UOP_FORMAT_EXIT in Include/cpython/optimizer.h
  • [x] UOP_FORMAT_JUMP in Include/cpython/optimizer.h
  • [x] UOP_FORMAT_UNUSED in Include/cpython/optimizer.h
  • [x] struct _bloom_filter in Include/cpython/optimizer.h:19
  • [x] struct _exit_data in Include/cpython/optimizer.h:91
  • [x] optimize_func in Include/cpython/optimizer.h:112
  • [ ] CO_NO_MONITORING_EVENTS in Include/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

  • gh-118825

encukou avatar May 08 '24 16:05 encukou