diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2022-12-15 13:12:32 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2022-12-15 17:37:07 +0100 |
commit | 975acaf5498223318ed2c61bf896dc982c1801f4 (patch) | |
tree | a50ba8c48ed685e21d9b17faa35fea0d24154511 /parttype.c | |
parent | eaf98290cf111f1427d1c3adeea688b90452802a (diff) |
coding style: line breaks
Only two line breaks separate copyright notice from source.
For the rest of the source file any function declaration or similar
block is separated with a line break from any other block.
Except when a python function definition is previously followed by
a docstring #define block.
Diffstat (limited to 'parttype.c')
-rw-r--r-- | parttype.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,7 @@ * Author: Jose M. Guisado <jguisado@soleta.eu> */ + #include "fdisk.h" static PyMemberDef PartType_members[] = { @@ -28,10 +29,12 @@ static PyObject *PartType_get_name(PartTypeObject *self) { return PyObjectResultStr(fdisk_parttype_get_name(self->type)); } + static PyObject *PartType_get_code(PartTypeObject *self) { return PyLong_FromUnsignedLong(fdisk_parttype_get_code(self->type)); } + static PyGetSetDef PartType_getseters[] = { {"name", (getter)PartType_get_name, NULL, "parttype human readable name", NULL}, {"code", (getter)PartType_get_code, NULL, "parttype DOS code", NULL}, |