mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +01:00
remove unused indent parameters, xmlwriter keeps track of necessary
2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi> * tools/generate.c (write_field_info, write_callable_info, write_function_info, write_callback_info, write_struct_info, write_constant_value, write_signal_info, write_vfunc_info, write_object_info, write_interface_info, write_union_info, write_repository): remove unused indent parameters, xmlwriter keeps track of necessary indentation svn path=/trunk/; revision=714
This commit is contained in:
parent
efaa5894ad
commit
8da9bc265b
@ -350,8 +350,7 @@ write_field_info (const gchar *namespace,
|
|||||||
static void
|
static void
|
||||||
write_callable_info (const gchar *namespace,
|
write_callable_info (const gchar *namespace,
|
||||||
GICallableInfo *info,
|
GICallableInfo *info,
|
||||||
Xml *file,
|
Xml *file)
|
||||||
gint indent)
|
|
||||||
{
|
{
|
||||||
GITypeInfo *type;
|
GITypeInfo *type;
|
||||||
gint i;
|
gint i;
|
||||||
@ -468,8 +467,7 @@ write_callable_info (const gchar *namespace,
|
|||||||
static void
|
static void
|
||||||
write_function_info (const gchar *namespace,
|
write_function_info (const gchar *namespace,
|
||||||
GIFunctionInfo *info,
|
GIFunctionInfo *info,
|
||||||
Xml *file,
|
Xml *file)
|
||||||
gint indent)
|
|
||||||
{
|
{
|
||||||
GIFunctionInfoFlags flags;
|
GIFunctionInfoFlags flags;
|
||||||
const gchar *tag;
|
const gchar *tag;
|
||||||
@ -501,15 +499,14 @@ write_function_info (const gchar *namespace,
|
|||||||
if (deprecated)
|
if (deprecated)
|
||||||
xml_printf (file, " deprecated=\"1\"");
|
xml_printf (file, " deprecated=\"1\"");
|
||||||
|
|
||||||
write_callable_info (namespace, (GICallableInfo*)info, file, indent);
|
write_callable_info (namespace, (GICallableInfo*)info, file);
|
||||||
xml_end_element (file, tag);
|
xml_end_element (file, tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
write_callback_info (const gchar *namespace,
|
write_callback_info (const gchar *namespace,
|
||||||
GICallbackInfo *info,
|
GICallbackInfo *info,
|
||||||
Xml *file,
|
Xml *file)
|
||||||
gint indent)
|
|
||||||
{
|
{
|
||||||
const gchar *name;
|
const gchar *name;
|
||||||
gboolean deprecated;
|
gboolean deprecated;
|
||||||
@ -523,7 +520,7 @@ write_callback_info (const gchar *namespace,
|
|||||||
if (deprecated)
|
if (deprecated)
|
||||||
xml_printf (file, " deprecated=\"1\"");
|
xml_printf (file, " deprecated=\"1\"");
|
||||||
|
|
||||||
write_callable_info (namespace, (GICallableInfo*)info, file, indent);
|
write_callable_info (namespace, (GICallableInfo*)info, file);
|
||||||
xml_end_element (file, "callback");
|
xml_end_element (file, "callback");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -575,7 +572,7 @@ write_struct_info (const gchar *namespace,
|
|||||||
for (i = 0; i < g_struct_info_get_n_methods (info); i++)
|
for (i = 0; i < g_struct_info_get_n_methods (info); i++)
|
||||||
{
|
{
|
||||||
GIFunctionInfo *function = g_struct_info_get_method (info, i);
|
GIFunctionInfo *function = g_struct_info_get_method (info, i);
|
||||||
write_function_info (namespace, function, file, 6);
|
write_function_info (namespace, function, file);
|
||||||
g_base_info_unref ((GIBaseInfo *)function);
|
g_base_info_unref ((GIBaseInfo *)function);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -677,8 +674,7 @@ write_constant_value (const gchar *namespace,
|
|||||||
static void
|
static void
|
||||||
write_constant_info (const gchar *namespace,
|
write_constant_info (const gchar *namespace,
|
||||||
GIConstantInfo *info,
|
GIConstantInfo *info,
|
||||||
Xml *file,
|
Xml *file)
|
||||||
gint indent)
|
|
||||||
{
|
{
|
||||||
GITypeInfo *type;
|
GITypeInfo *type;
|
||||||
const gchar *name;
|
const gchar *name;
|
||||||
@ -790,7 +786,7 @@ write_signal_info (const gchar *namespace,
|
|||||||
if (flags & G_SIGNAL_NO_HOOKS)
|
if (flags & G_SIGNAL_NO_HOOKS)
|
||||||
xml_printf (file, " no-hooks=\"1\"");
|
xml_printf (file, " no-hooks=\"1\"");
|
||||||
|
|
||||||
write_callable_info (namespace, (GICallableInfo*)info, file, 6);
|
write_callable_info (namespace, (GICallableInfo*)info, file);
|
||||||
|
|
||||||
xml_end_element (file, "glib:signal");
|
xml_end_element (file, "glib:signal");
|
||||||
}
|
}
|
||||||
@ -826,7 +822,7 @@ write_vfunc_info (const gchar *namespace,
|
|||||||
|
|
||||||
xml_printf (file, " offset=\"%d\"", offset);
|
xml_printf (file, " offset=\"%d\"", offset);
|
||||||
|
|
||||||
write_callable_info (namespace, (GICallableInfo*)info, file, 6);
|
write_callable_info (namespace, (GICallableInfo*)info, file);
|
||||||
|
|
||||||
xml_end_element (file, "vfunc");
|
xml_end_element (file, "vfunc");
|
||||||
}
|
}
|
||||||
@ -941,7 +937,7 @@ write_object_info (const gchar *namespace,
|
|||||||
for (i = 0; i < g_object_info_get_n_methods (info); i++)
|
for (i = 0; i < g_object_info_get_n_methods (info); i++)
|
||||||
{
|
{
|
||||||
GIFunctionInfo *function = g_object_info_get_method (info, i);
|
GIFunctionInfo *function = g_object_info_get_method (info, i);
|
||||||
write_function_info (namespace, function, file, 6);
|
write_function_info (namespace, function, file);
|
||||||
g_base_info_unref ((GIBaseInfo *)function);
|
g_base_info_unref ((GIBaseInfo *)function);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -969,7 +965,7 @@ write_object_info (const gchar *namespace,
|
|||||||
for (i = 0; i < g_object_info_get_n_constants (info); i++)
|
for (i = 0; i < g_object_info_get_n_constants (info); i++)
|
||||||
{
|
{
|
||||||
GIConstantInfo *constant = g_object_info_get_constant (info, i);
|
GIConstantInfo *constant = g_object_info_get_constant (info, i);
|
||||||
write_constant_info (namespace, constant, file, 6);
|
write_constant_info (namespace, constant, file);
|
||||||
g_base_info_unref ((GIBaseInfo *)constant);
|
g_base_info_unref ((GIBaseInfo *)constant);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1022,7 +1018,7 @@ write_interface_info (const gchar *namespace,
|
|||||||
for (i = 0; i < g_interface_info_get_n_methods (info); i++)
|
for (i = 0; i < g_interface_info_get_n_methods (info); i++)
|
||||||
{
|
{
|
||||||
GIFunctionInfo *function = g_interface_info_get_method (info, i);
|
GIFunctionInfo *function = g_interface_info_get_method (info, i);
|
||||||
write_function_info (namespace, function, file, 6);
|
write_function_info (namespace, function, file);
|
||||||
g_base_info_unref ((GIBaseInfo *)function);
|
g_base_info_unref ((GIBaseInfo *)function);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1050,7 +1046,7 @@ write_interface_info (const gchar *namespace,
|
|||||||
for (i = 0; i < g_interface_info_get_n_constants (info); i++)
|
for (i = 0; i < g_interface_info_get_n_constants (info); i++)
|
||||||
{
|
{
|
||||||
GIConstantInfo *constant = g_interface_info_get_constant (info, i);
|
GIConstantInfo *constant = g_interface_info_get_constant (info, i);
|
||||||
write_constant_info (namespace, constant, file, 6);
|
write_constant_info (namespace, constant, file);
|
||||||
g_base_info_unref ((GIBaseInfo *)constant);
|
g_base_info_unref ((GIBaseInfo *)constant);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1131,7 +1127,7 @@ write_union_info (const gchar *namespace,
|
|||||||
for (i = 0; i < g_union_info_get_n_methods (info); i++)
|
for (i = 0; i < g_union_info_get_n_methods (info); i++)
|
||||||
{
|
{
|
||||||
GIFunctionInfo *function = g_union_info_get_method (info, i);
|
GIFunctionInfo *function = g_union_info_get_method (info, i);
|
||||||
write_function_info (namespace, function, file, 6);
|
write_function_info (namespace, function, file);
|
||||||
g_base_info_unref ((GIBaseInfo *)function);
|
g_base_info_unref ((GIBaseInfo *)function);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1216,11 +1212,11 @@ write_repository (const char *namespace,
|
|||||||
switch (g_base_info_get_type (info))
|
switch (g_base_info_get_type (info))
|
||||||
{
|
{
|
||||||
case GI_INFO_TYPE_FUNCTION:
|
case GI_INFO_TYPE_FUNCTION:
|
||||||
write_function_info (ns, (GIFunctionInfo *)info, xml, 4);
|
write_function_info (ns, (GIFunctionInfo *)info, xml);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GI_INFO_TYPE_CALLBACK:
|
case GI_INFO_TYPE_CALLBACK:
|
||||||
write_callback_info (ns, (GICallbackInfo *)info, xml, 4);
|
write_callback_info (ns, (GICallbackInfo *)info, xml);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GI_INFO_TYPE_STRUCT:
|
case GI_INFO_TYPE_STRUCT:
|
||||||
@ -1238,7 +1234,7 @@ write_repository (const char *namespace,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GI_INFO_TYPE_CONSTANT:
|
case GI_INFO_TYPE_CONSTANT:
|
||||||
write_constant_info (ns, (GIConstantInfo *)info, xml, 4);
|
write_constant_info (ns, (GIConstantInfo *)info, xml);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GI_INFO_TYPE_OBJECT:
|
case GI_INFO_TYPE_OBJECT:
|
||||||
|
Loading…
Reference in New Issue
Block a user