summaryrefslogtreecommitdiff
path: root/plugins/yaml/python/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/yaml/python/reader.c')
-rw-r--r--plugins/yaml/python/reader.c28
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 }
};