diff options
author | David Zeuthen <davidz@redhat.com> | 2011-02-15 11:24:53 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-02-15 11:24:53 -0500 |
commit | 51d801027d7e2b0a0ce270875f9bf13dd227b752 (patch) | |
tree | abd706c07a525296f437b6c1c91635971dc440ff /src | |
parent | e3c86613fb5b9888b5271a1f6833d2f807500ca9 (diff) |
Make comparisons of array of strings actually work
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/codegen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.py b/src/codegen.py index d01b4ad..a488bce 100644 --- a/src/codegen.py +++ b/src/codegen.py @@ -85,7 +85,7 @@ class CodeGenerator: '\n') self.c.write('static gboolean\n' - '_g_strvcmp0 (gchar **a, gchar **b)\n' + '_g_strv_equal0 (gchar **a, gchar **b)\n' '{\n' ' gboolean ret = FALSE;\n' ' guint n;\n' @@ -155,7 +155,7 @@ class CodeGenerator: ' break;\n' ' default:\n' ' if (G_VALUE_TYPE (a) == G_TYPE_STRV)\n' - ' ret = (_g_strvcmp0 (g_value_get_boxed (a), g_value_get_boxed (b)) == 0);\n' + ' ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));\n' ' else\n' ' g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));\n' ' break;\n' |