bindings: python: add semicolons to PyObject_HEAD
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 2 Mar 2021 09:31:51 +0000 (10:31 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 2 Mar 2021 11:05:55 +0000 (12:05 +0100)
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 <bgolaszewski@baylibre.com>
bindings/python/gpiodmodule.c

index 91b0c048ce21e267bf5c569f3fe8aa0fabefb381..dca6a981f31b6687efc2600e3b63a60852aff350 100644 (file)
@@ -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;