]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91321: Add _Py_NULL macro (#92253)
authorVictor Stinner <vstinner@python.org>
Tue, 3 May 2022 19:38:37 +0000 (21:38 +0200)
committerGitHub <noreply@github.com>
Tue, 3 May 2022 19:38:37 +0000 (21:38 +0200)
commit551d02b3e697098236bb3a6e0a855b2ad8dc0424
treeffa7db7f5129f7167df4c40bf4bbed2f5481c28b
parent456cd513e360ccd17e51ae3711ec48976b1be0c0
gh-91321: Add _Py_NULL macro (#92253)

Fix C++ compiler warnings: "zero as null pointer constant"
(clang -Wzero-as-null-pointer-constant).

* Add the _Py_NULL macro used by static inline functions to use
  nullptr in C++.
* Replace NULL with nullptr in _testcppext.cpp.
Include/cpython/abstract.h
Include/cpython/unicodeobject.h
Include/object.h
Include/pyport.h
Lib/test/_testcppext.cpp
Lib/test/test_cppext.py