diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-12-11 15:47:22 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-12-11 15:47:22 (GMT) |
commit | f61d22146a0b9c476157e79b49afabb89ac9e931 (patch) | |
tree | 155032149fdd66fbfd398a8a2b8a10ff8e02ea53 /plugins/yaml/python/reader.c | |
parent | 4b5cf2c57553eaeb647090ba8d0ad862c46e6733 (diff) |
Updated code to comply with the coding style.
Diffstat (limited to 'plugins/yaml/python/reader.c')
-rw-r--r-- | plugins/yaml/python/reader.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/yaml/python/reader.c b/plugins/yaml/python/reader.c index a69e54f..f80623f 100644 --- a/plugins/yaml/python/reader.c +++ b/plugins/yaml/python/reader.c @@ -77,11 +77,11 @@ static PyObject *py_yaml_reader_new_from_content(PyObject *self, PyObject *args) int ret; /* Bilan de lecture des args. */ GYamlReader *reader; /* Création GLib à transmettre */ -#define YAML_READER_NEW_FROM_CONTENT PYTHON_METHOD_DEF \ -( \ - new_from_content, "content", \ - METH_STATIC | METH_VARARGS, py_yaml_reader, \ - "Load a Yaml content." \ +#define YAML_READER_NEW_FROM_CONTENT_METHOD PYTHON_METHOD_DEF \ +( \ + new_from_content, "content", \ + METH_STATIC | METH_VARARGS, py_yaml_reader, \ + "Load a Yaml content." \ ) /** @@ -132,13 +132,13 @@ static PyObject *py_yaml_reader_new_from_path(PyObject *self, PyObject *args) int ret; /* Bilan de lecture des args. */ GYamlReader *reader; /* Création GLib à transmettre */ -#define YAML_READER_NEW_FROM_PATH PYTHON_METHOD_DEF \ -( \ - new_from_path, "path", \ - METH_STATIC | METH_VARARGS, py_yaml_reader, \ - "Load a Yaml content from a path.\n" \ - "\n" \ - "The path can be a filename or a resource URI." \ +#define YAML_READER_NEW_FROM_PATH_METHOD PYTHON_METHOD_DEF \ +( \ + new_from_path, "path", \ + METH_STATIC | METH_VARARGS, py_yaml_reader, \ + "Load a Yaml content from a path.\n" \ + "\n" \ + "The path can be a filename or a resource URI." \ ) ret = PyArg_ParseTuple(args, "s", &path); @@ -281,8 +281,8 @@ static PyObject *py_yaml_reader_get_tree(PyObject *self, void *closure) PyTypeObject *get_python_yaml_reader_type(void) { static PyMethodDef py_yaml_reader_methods[] = { - YAML_READER_NEW_FROM_CONTENT, - YAML_READER_NEW_FROM_PATH, + YAML_READER_NEW_FROM_CONTENT_METHOD, + YAML_READER_NEW_FROM_PATH_METHOD, { NULL } }; |