]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45459: Rename buffer.h to pybuffer.h (#31201)
authorVictor Stinner <vstinner@python.org>
Tue, 22 Feb 2022 22:11:48 +0000 (23:11 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Feb 2022 22:11:48 +0000 (23:11 +0100)
commit66b3cd7063322a9f5c922a97bbd06fdb98309999
tree47e0543c2349afa7e57b6d167a7763828a714577
parentb899126094731bc49fecb61f2c1b7557d74ca839
bpo-45459: Rename buffer.h to pybuffer.h (#31201)

Rename Include/buffer.h header file to Include/pybuffer.h to avoid
conflicts with projects having an existing "buffer.h" header file.

* Incude pybuffer.h before object.h in Python.h.
* Remove #include "buffer.h" from Include/cpython/object.h.
* Add a forward declaration of the PyObject type in pybuffer.h to fix
  an inter-dependency issue.
Include/Python.h
Include/cpython/object.h
Include/pybuffer.h [moved from Include/buffer.h with 96% similarity]
Makefile.pre.in
Misc/NEWS.d/next/C API/2022-02-07-18-47-00.bpo-45459.0FCWM8.rst [new file with mode: 0644]
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters