[gobject-introspection] scanner: Rename g_irepository_dump when included from the dumper
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Rename g_irepository_dump when included from the dumper
- Date: Tue, 11 Jan 2011 14:27:10 +0000 (UTC)
commit 5d999862113fbc655429a0dd9bd7583ba3848434
Author: Benjamin Otte <otte redhat com>
Date: Tue Jan 11 14:26:29 2011 +0100
scanner: Rename g_irepository_dump when included from the dumper
This avoids a naming conflict when compiling GiRepository.gir, where
g_irepository_dump() was defined in an included header.
girepository/gdump.c | 6 ++++--
giscanner/dumper.py | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/girepository/gdump.c b/girepository/gdump.c
index cdede61..1b9ffd4 100644
--- a/girepository/gdump.c
+++ b/girepository/gdump.c
@@ -381,10 +381,12 @@ dump_type (GType type, const char *symbol, GOutputStream *out)
* Returns: %TRUE on success, %FALSE on error
*/
#ifndef G_IREPOSITORY_COMPILATION
-static
-#endif
+static gboolean
+dump_irepository (const char *arg, GError **error)
+#else
gboolean
g_irepository_dump (const char *arg, GError **error)
+#endif
{
GHashTable *output_types;
char **args;
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 36a8807..fcc0002 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -58,7 +58,7 @@ main(int argc, char **argv)
exit (1);
}
- if (!g_irepository_dump (argv[1] + strlen(introspect_dump_prefix), &error))
+ if (!dump_irepository (argv[1] + strlen(introspect_dump_prefix), &error))
{
g_printerr ("%%s\\n", error->message);
exit (1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]