diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:19 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:19 +0000 |
| commit | d4f82ebb242f63966e641d755ce29b46b384d686 (patch) | |
| tree | e32a53e49c0ffac7cded4db1adca030e8fc6df79 | |
| parent | b03b0ea5a4616eb8fd01632203cda3223717b024 (diff) | |
| download | lasso-d4f82ebb242f63966e641d755ce29b46b384d686.tar.gz lasso-d4f82ebb242f63966e641d755ce29b46b384d686.tar.xz lasso-d4f82ebb242f63966e641d755ce29b46b384d686.zip | |
[project @ fpeters@0d.be-20080321174813-7pcjuucmw5xw4d4o]
declare functions, and make them static
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-21 18:48:13.524000+01:00
| -rw-r--r-- | bindings/lang_python_wrapper_top.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bindings/lang_python_wrapper_top.c b/bindings/lang_python_wrapper_top.c index 33ce2801..1454aff6 100644 --- a/bindings/lang_python_wrapper_top.c +++ b/bindings/lang_python_wrapper_top.c @@ -17,6 +17,9 @@ static void set_list_of_pygobject(GList **a_list, PyObject *seq); static PyObject *get_list_of_strings(GList *a_list); static PyObject *get_list_of_xml_nodes(GList *a_list); static PyObject *get_list_of_pygobject(GList *a_list); +static gboolean valid_seq(PyObject *seq); +static void free_list(GList **a_list, GFunc free_help); + typedef struct { PyObject_HEAD GObject *obj; @@ -144,7 +147,7 @@ get_pystring_from_xml_node(xmlNode *xmlnode) return pystring; } -gboolean +static gboolean valid_seq(PyObject *seq) { if (! seq || ( seq != Py_None && ! PyTuple_Check(seq))) { PyErr_SetString(PyExc_TypeError, "value should be tuple"); @@ -153,7 +156,8 @@ valid_seq(PyObject *seq) { return 1; } -void free_list(GList **a_list, GFunc free_help) { +static void +free_list(GList **a_list, GFunc free_help) { if (*a_list) { g_list_foreach(*a_list, free_help, NULL); g_list_free(*a_list); |
