From 55070b0eb6d4eb41b9de9da5ec4ee936ec729c21 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 2 Mar 2021 10:31:51 +0100 Subject: [PATCH] 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 --- bindings/python/gpiodmodule.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.30.2