]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108220: Internal header files require Py_BUILD_CORE to be defined (#108221)
authorVictor Stinner <vstinner@python.org>
Mon, 21 Aug 2023 17:15:52 +0000 (19:15 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2023 17:15:52 +0000 (19:15 +0200)
commit21c0844742cf15db8e56e8848ecbb2e25f314aed
tree67737687dce08f38f3f4048c2142ec35a253fe3c
parentdb55383829ccd5ce80c551d60f26851346741fdf
gh-108220: Internal header files require Py_BUILD_CORE to be defined (#108221)

* pycore_intrinsics.h does nothing if included twice
  (add #ifndef and #define).
* Update Tools/cases_generator/generate_cases.py to generate the
  Py_BUILD_CORE test.
* _bz2, _lzma, _opcode and zlib extensions now define the
  Py_BUILD_CORE_MODULE macro to use internal headers
  (pycore_code.h, pycore_intrinsics.h and pycore_blocks_output_buffer.h).
16 files changed:
Include/internal/pycore_blocks_output_buffer.h
Include/internal/pycore_code.h
Include/internal/pycore_codecs.h
Include/internal/pycore_emscripten_signal.h
Include/internal/pycore_fileutils.h
Include/internal/pycore_fileutils_windows.h
Include/internal/pycore_frame.h
Include/internal/pycore_import.h
Include/internal/pycore_instruments.h
Include/internal/pycore_intrinsics.h
Include/internal/pycore_opcode_metadata.h
Modules/_bz2module.c
Modules/_lzmamodule.c
Modules/_opcode.c
Modules/zlibmodule.c
Tools/cases_generator/generate_cases.py