From: Bartosz Golaszewski Date: Tue, 2 Mar 2021 09:31:51 +0000 (+0100) Subject: bindings: python: add semicolons to PyObject_HEAD X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=55070b0eb6d4eb41b9de9da5ec4ee936ec729c21;p=qemu-gpiodev%2Flibgpiod.git bindings: python: add semicolons to PyObject_HEAD While not necessary to compile, the PyObject_HEAD macros look more consistent with the rest of the code if they too have semicolons at the end of the lines. Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/gpiodmodule.c b/bindings/python/gpiodmodule.c index 91b0c04..dca6a98 100644 --- a/bindings/python/gpiodmodule.c +++ b/bindings/python/gpiodmodule.c @@ -7,31 +7,31 @@ #define LINE_REQUEST_MAX_LINES 64 typedef struct { - PyObject_HEAD + PyObject_HEAD; struct gpiod_chip *chip; } gpiod_ChipObject; typedef struct { - PyObject_HEAD + PyObject_HEAD; struct gpiod_line *line; gpiod_ChipObject *owner; } gpiod_LineObject; typedef struct { - PyObject_HEAD + PyObject_HEAD; struct gpiod_line_event event; gpiod_LineObject *source; } gpiod_LineEventObject; typedef struct { - PyObject_HEAD + PyObject_HEAD; PyObject **lines; Py_ssize_t num_lines; Py_ssize_t iter_idx; } gpiod_LineBulkObject; typedef struct { - PyObject_HEAD + PyObject_HEAD; unsigned int offset; gpiod_ChipObject *owner; } gpiod_LineIterObject;