From eb13d2e55b07db1759a58224b8d38b08109b223f Mon Sep 17 00:00:00 2001 From: Mark Doffman Date: Mon, 10 Mar 2008 17:47:26 +0000 Subject: [PATCH] girepository/ginfo.c tools/generate.c 2008-02-21 Mark Doffman * girepository/ginfo.c * tools/generate.c Change the way that external references with no namespace are dealt with. External references with no namespace are placed into the XML as-if they are a local reference. This is temporary, but helps with roundtrip tests. WARNING: This commit does not compile. It is a partial change. svn path=/trunk/; revision=134 --- girepository/tools/generate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/girepository/tools/generate.c b/girepository/tools/generate.c index 7c4569759..0f6db6b0f 100644 --- a/girepository/tools/generate.c +++ b/girepository/tools/generate.c @@ -39,7 +39,8 @@ write_type_name (const gchar *namespace, GIBaseInfo *info, FILE *file) { - if (strcmp (namespace, g_base_info_get_namespace (info)) != 0) + if (g_base_info_get_namespace (info) != 0 && + strcmp (namespace, g_base_info_get_namespace (info)) != 0) g_fprintf (file, "%s.", g_base_info_get_namespace (info)); g_fprintf (file, "%s", g_base_info_get_name (info));