From 69661f3343bedf86e514337cff63d96cc42f8859 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 27 Feb 2020 15:36:53 +1100 Subject: all: Reformat C and Python source code with tools/codeformat.py. This is run with uncrustify 0.70.1, and black 19.10b0. --- examples/unix/ffi_example.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/unix/ffi_example.py') diff --git a/examples/unix/ffi_example.py b/examples/unix/ffi_example.py index 3c3c3d239..a8f02c766 100644 --- a/examples/unix/ffi_example.py +++ b/examples/unix/ffi_example.py @@ -24,12 +24,14 @@ print("errno value:", errno.get()) perror("perror after error") print() + def cmp(pa, pb): a = uctypes.bytearray_at(pa, 1) b = uctypes.bytearray_at(pb, 1) print("cmp:", a, b) return a[0] - b[0] + cmp_cb = ffi.callback("i", cmp, "PP") print("callback:", cmp_cb) -- cgit v1.2.3