mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 04:05:11 +01:00
Several minor ANSI C fixes.
2000-09-29 Martin Baulig <baulig@suse.de> Several minor ANSI C fixes. Added missing casts: * gtype.c (type_class_init): `(gpointer) bnode->data->class.class_init_base' in call to g_slist_prepend() and 'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'. * gobject.c: Put text following #endif into comments.
This commit is contained in:
parent
a3fc275ddd
commit
f7ffcb3a92
@ -1,3 +1,14 @@
|
|||||||
|
2000-09-29 Martin Baulig <baulig@suse.de>
|
||||||
|
|
||||||
|
Several minor ANSI C fixes.
|
||||||
|
|
||||||
|
Added missing casts:
|
||||||
|
* gtype.c (type_class_init): `(gpointer) bnode->data->class.class_init_base'
|
||||||
|
in call to g_slist_prepend() and
|
||||||
|
'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
|
||||||
|
|
||||||
|
* gobject.c: Put text following #endif into comments.
|
||||||
|
|
||||||
2000-09-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-09-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* Makefile.am: Remove empty SUBDIRS line, as that prevents make
|
* Makefile.am: Remove empty SUBDIRS line, as that prevents make
|
||||||
|
@ -97,7 +97,7 @@ debug_objects_atexit (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif DEBUG_OBJECTS
|
#endif /* DEBUG_OBJECTS */
|
||||||
|
|
||||||
void
|
void
|
||||||
g_object_type_init (void) /* sync with gtype.c */
|
g_object_type_init (void) /* sync with gtype.c */
|
||||||
@ -140,7 +140,7 @@ g_object_type_init (void) /* sync with gtype.c */
|
|||||||
|
|
||||||
#ifdef DEBUG_OBJECTS
|
#ifdef DEBUG_OBJECTS
|
||||||
g_atexit (debug_objects_atexit);
|
g_atexit (debug_objects_atexit);
|
||||||
#endif DEBUG_OBJECTS
|
#endif /* DEBUG_OBJECTS */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -256,7 +256,7 @@ g_object_do_init (GObject *object)
|
|||||||
debug_objects_count++;
|
debug_objects_count++;
|
||||||
g_hash_table_insert (debug_objects_ht, object, object);
|
g_hash_table_insert (debug_objects_ht, object, object);
|
||||||
}
|
}
|
||||||
#endif DEBUG_OBJECTS
|
#endif /* DEBUG_OBJECTS */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -298,7 +298,7 @@ g_object_do_finalize (GObject *object)
|
|||||||
g_hash_table_remove (debug_objects_ht, object);
|
g_hash_table_remove (debug_objects_ht, object);
|
||||||
debug_objects_count--;
|
debug_objects_count--;
|
||||||
}
|
}
|
||||||
#endif DEBUG_OBJECTS
|
#endif /* DEBUG_OBJECTS */
|
||||||
}
|
}
|
||||||
|
|
||||||
gpointer
|
gpointer
|
||||||
|
@ -1098,10 +1098,10 @@ type_class_init (TypeNode *node,
|
|||||||
*/
|
*/
|
||||||
for (bnode = node; bnode; bnode = LOOKUP_TYPE_NODE (NODE_PARENT_TYPE (bnode)))
|
for (bnode = node; bnode; bnode = LOOKUP_TYPE_NODE (NODE_PARENT_TYPE (bnode)))
|
||||||
if (bnode->data->class.class_init_base)
|
if (bnode->data->class.class_init_base)
|
||||||
init_slist = g_slist_prepend (init_slist, bnode->data->class.class_init_base);
|
init_slist = g_slist_prepend (init_slist, (gpointer) bnode->data->class.class_init_base);
|
||||||
for (slist = init_slist; slist; slist = slist->next)
|
for (slist = init_slist; slist; slist = slist->next)
|
||||||
{
|
{
|
||||||
GBaseInitFunc class_init_base = slist->data;
|
GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data;
|
||||||
|
|
||||||
class_init_base (class);
|
class_init_base (class);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user