summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/helpers.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-10-10 12:01:40 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-10-10 12:01:40 (GMT)
commit0b0f69bd1278b8f5d95c6ea8fb56915148992a77 (patch)
tree0d9ab819a636c6d7bf61e09856283efd1562353a /plugins/pychrysalide/helpers.c
parent1af362266f616aed07e2661c9676c67dc3365740 (diff)
Updated the basic types definition and its Python bindings.
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r--plugins/pychrysalide/helpers.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c
index 25ce772..870035d 100644
--- a/plugins/pychrysalide/helpers.c
+++ b/plugins/pychrysalide/helpers.c
@@ -648,6 +648,56 @@ PyObject *py_return_none(PyObject *self, PyObject *args)
/******************************************************************************
* *
+* Paramètres : self = objet quelconque. *
+* args = arguments fournis à l'appel. *
+* *
+* Description : Retourne toujours faux. *
+* *
+* Retour : False. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+PyObject *py_return_false(PyObject *self, PyObject *args)
+{
+ PyObject *result; /* Bilan à retourner */
+
+ result = Py_False;
+ Py_INCREF(result);
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : self = objet quelconque. *
+* args = arguments fournis à l'appel. *
+* *
+* Description : Retourne toujours vrai. *
+* *
+* Retour : False. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+PyObject *py_return_true(PyObject *self, PyObject *args)
+{
+ PyObject *result; /* Bilan à retourner */
+
+ result = Py_True;
+ Py_INCREF(result);
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : self = objet quelconque dont le code Python hérite. *
* closure = non utilisé ici. *
* *