mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-22 20:26:17 +01:00
move "transfer" and "null-ok" attributes from <function> to <return-value>
2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi> * tools/generate.c (write_callable_info): move "transfer" and "null-ok" attributes from <function> to <return-value> element svn path=/trunk/; revision=691
This commit is contained in:
parent
04b52f9874
commit
781262a266
@ -239,6 +239,10 @@ write_callable_info (const gchar *namespace,
|
||||
|
||||
type = g_callable_info_get_return_type (info);
|
||||
|
||||
g_fprintf (file, ">\n");
|
||||
|
||||
g_fprintf (file, "%*s <return-value", indent, "");
|
||||
|
||||
if (g_type_info_is_pointer (type))
|
||||
{
|
||||
switch (g_callable_info_get_caller_owns (info))
|
||||
@ -255,14 +259,12 @@ write_callable_info (const gchar *namespace,
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
|
||||
g_fprintf (file, ">\n");
|
||||
|
||||
g_fprintf (file, "%*s <return-value>\n", indent, "");
|
||||
|
||||
if (g_callable_info_may_return_null (info))
|
||||
g_fprintf (file, " null-ok=\"1\"");
|
||||
|
||||
g_fprintf (file, ">\n");
|
||||
|
||||
g_fprintf (file, "%*s <type name=\"", indent + 2, "");
|
||||
|
||||
write_type_info (namespace, type, file);
|
||||
|
Loading…
Reference in New Issue
Block a user