]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1996: Cannot build with python312 v9.0.1996
authorKen Takata <kentkt@csc.jp>
Fri, 6 Oct 2023 17:27:13 +0000 (19:27 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 6 Oct 2023 17:27:13 +0000 (19:27 +0200)
commitfa145f200966e47e11c403520374d6d37cfd1de7
treec044575d65f75505d6a51caab65fc5680ebf04d1
parent26e8f7b0ab451e76319d113038c86c79488bbbc4
patch 9.0.1996: Cannot build with python312

Problem:  Cannot build with python312
Solution: Define wrapper types and functions for python 3.12

Py_SIZE() uses PyLong_Type and PyBool_Type starting from Python 3.12.
We need to define our own Py_SIZE() to replace Py{Bool,Long}_Type with
py3_Py{Bool,Long}_Type.
We also need to redefine PyTuple_GET_SIZE() and PyList_GET_SIZE(), because
they use Py_SIZE().

closes: #13281
closes: #13290

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ken Takata <kentkt@csc.jp>
src/if_python3.c
src/version.c