gobject-introspection r726 - trunk/tools
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r726 - trunk/tools
- Date: Thu, 16 Oct 2008 13:16:30 +0000 (UTC)
Author: walters
Date: Thu Oct 16 13:16:30 2008
New Revision: 726
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=726&view=rev
Log:
Fix up g-ir-generate for new include= syntax
Modified:
trunk/tools/generate.c
Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c (original)
+++ trunk/tools/generate.c Thu Oct 16 13:16:30 2008
@@ -1168,9 +1168,11 @@
{
for (i = 0; dependencies[i]; i++)
{
+ char **parts = g_strsplit (dependencies[i], "-", 2);
xml_start_element (xml, "include");
- xml_printf (xml, " name=\"%s\"", dependencies[i]);
+ xml_printf (xml, " name=\"%s\" version=\"%s\"", parts[0], parts[1]);
xml_end_element (xml, "include");
+ g_strfreev (parts);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]