aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2024-10-28 18:26:45 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2024-10-30 12:06:50 +1100
commitd1e2384185c5eeb8e238f7a8174ff43ea0da5d92 (patch)
tree74fa08bf733845b3c1f025aa241a2bf2963ef7e0
parent18aa49a9f68dfa2a00edee071a95019ed30da9f7 (diff)
downloaddtc-d1e2384185c5eeb8e238f7a8174ff43ea0da5d92.zip
dtc-d1e2384185c5eeb8e238f7a8174ff43ea0da5d92.tar.gz
dtc-d1e2384185c5eeb8e238f7a8174ff43ea0da5d92.tar.bz2
pylibfdt/libfdt.i: Use SWIG_AppendOutput
Swig has changed language specific AppendOutput functions. The helper macro SWIG_AppendOutput remains unchanged. Use that instead of SWIG_Python_AppendOutput, which would require an extra parameter since swig 4.3.0. | /home/flk/poky/build-hypr/tmp/work/x86_64-linux/python3-dtc-native/1.7.0/git/pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’: | /home/flk/poky/build-hypr/tmp/work/x86_64-linux/python3-dtc-native/1.7.0/git/pylibfdt/libfdt_wrap.c:5598:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ | 5598 | resultobj = SWIG_Python_AppendOutput(resultobj, val); Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--pylibfdt/libfdt.i6
1 files changed, 3 insertions, 3 deletions
diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i
index bbc91ad..9f5b6a9 100644
--- a/pylibfdt/libfdt.i
+++ b/pylibfdt/libfdt.i
@@ -1137,7 +1137,7 @@ typedef uint32_t fdt32_t;
fdt_string(fdt1, fdt32_to_cpu($1->nameoff)));
buff = PyByteArray_FromStringAndSize(
(const char *)($1 + 1), fdt32_to_cpu($1->len));
- resultobj = SWIG_Python_AppendOutput(resultobj, buff);
+ resultobj = SWIG_AppendOutput(resultobj, buff);
}
}
@@ -1178,7 +1178,7 @@ typedef uint32_t fdt32_t;
%typemap(argout) int *depth {
PyObject *val = Py_BuildValue("i", *arg$argnum);
- resultobj = SWIG_Python_AppendOutput(resultobj, val);
+ resultobj = SWIG_AppendOutput(resultobj, val);
}
%apply int *depth { int *depth };
@@ -1190,7 +1190,7 @@ typedef uint32_t fdt32_t;
%typemap(argout) uint64_t * {
PyObject *val = PyLong_FromUnsignedLongLong(*arg$argnum);
- resultobj = SWIG_Python_AppendOutput(resultobj, val);
+ resultobj = SWIG_AppendOutput(resultobj, val);
}
%include "cstring.i"