Skip to content

Commit a63456b

Browse files
MarkusVolktrini
authored andcommitted
scripts/dtc/pylibfdt/libfdt.i_shipped: 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-test/tmp/work/qemux86_64-poky-linux/u-boot/2024.10/git/arch/x86/cpu/u-boot-64.lds | scripts/dtc/pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’: | scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ | 5581 | resultobj = SWIG_Python_AppendOutput(resultobj, val); | | ^~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Markus Volk <[email protected]> Reported-by: Rudi Heitbaum <[email protected]> Link: dgibson/dtc#154
1 parent e26d2ca commit a63456b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/dtc/pylibfdt/libfdt.i_shipped‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ typedef uint32_t fdt32_t;
10371037
fdt_string(fdt1, fdt32_to_cpu($1->nameoff)));
10381038
buff = PyByteArray_FromStringAndSize(
10391039
(const char *)($1 + 1), fdt32_to_cpu($1->len));
1040-
resultobj = SWIG_Python_AppendOutput(resultobj, buff);
1040+
resultobj = SWIG_AppendOutput(resultobj, buff);
10411041
}
10421042
}
10431043

@@ -1076,7 +1076,7 @@ typedef uint32_t fdt32_t;
10761076

10771077
%typemap(argout) int *depth {
10781078
PyObject *val = Py_BuildValue("i", *arg$argnum);
1079-
resultobj = SWIG_Python_AppendOutput(resultobj, val);
1079+
resultobj = SWIG_AppendOutput(resultobj, val);
10801080
}
10811081

10821082
%apply int *depth { int *depth };
@@ -1092,7 +1092,7 @@ typedef uint32_t fdt32_t;
10921092
if (PyTuple_GET_SIZE(resultobj) == 0)
10931093
resultobj = val;
10941094
else
1095-
resultobj = SWIG_Python_AppendOutput(resultobj, val);
1095+
resultobj = SWIG_AppendOutput(resultobj, val);
10961096
}
10971097
}
10981098

0 commit comments

Comments
 (0)