dtc/pylibfdt
Jitka Plesnikova 5008d1d6a3 pylibfdt: Replace removed SWIG Python 2 compatibility macros
SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_*, PyString_*)
from its runtime header pyhead.swg (see commit 79f7a2b7cb7d). Replace
them with their Python 3 C API equivalents:

- PyString_FromString -> PyUnicode_FromString
- PyString_AsString -> PyBytes_AsString
- PyInt_AsLong -> PyLong_AsLong

The replacements are safe since the macros were already aliased to
these exact functions in SWIG's Python 3 code path.

Signed-off-by: Jitka Plesnikova <jplesnik@redhat.com>
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2026-08-08 15:31:28 +10:00
..
.gitignore Use Python3 by default 2019-03-29 15:43:24 +11:00
libfdt.i pylibfdt: Replace removed SWIG Python 2 compatibility macros 2026-08-08 15:31:28 +10:00
meson.build meson: port python bindings to build natively via meson and meson-python 2025-05-01 19:27:10 +07:00