girepository/ginfo.c tools/generate.c

2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>

    * 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
This commit is contained in:
Mark Doffman 2008-03-10 17:47:26 +00:00 committed by Philip Withnall
parent e56744c907
commit eb13d2e55b

View File

@ -39,7 +39,8 @@ write_type_name (const gchar *namespace,
GIBaseInfo *info, GIBaseInfo *info,
FILE *file) 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_namespace (info));
g_fprintf (file, "%s", g_base_info_get_name (info)); g_fprintf (file, "%s", g_base_info_get_name (info));