mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
Remove debug flag argument to g_type_init() and add
Thu Jun 28 22:49:40 2001 Owen Taylor <otaylor@redhat.com> * gtype.[ch] gobject-query.c testgruntime.c: Remove debug flag argument to g_type_init() and add g_type_init_with_debug_flags().
This commit is contained in:
parent
4be0cfddf9
commit
f571f74616
@ -401,6 +401,7 @@ the type system and assorted other code portions (such as the various fundamenta
|
|||||||
type implementations or the signal system).
|
type implementations or the signal system).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<!-- # Unused Parameters # -->
|
||||||
@debug_flags: Bitwise combination of #GTypeDebugFlags values for debugging purposes.
|
@debug_flags: Bitwise combination of #GTypeDebugFlags values for debugging purposes.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jun 28 22:49:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtype.[ch] gobject-query.c testgruntime.c: Remove
|
||||||
|
debug flag argument to g_type_init() and add
|
||||||
|
g_type_init_with_debug_flags().
|
||||||
|
|
||||||
Thu Jun 28 16:42:49 2001 Tim Janik <timj@gtk.org>
|
Thu Jun 28 16:42:49 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gsignal.c (g_signal_lookup):
|
* gsignal.c (g_signal_lookup):
|
||||||
|
@ -133,7 +133,7 @@ main (gint argc,
|
|||||||
|
|
||||||
root = G_TYPE_OBJECT;
|
root = G_TYPE_OBJECT;
|
||||||
|
|
||||||
g_type_init (0);
|
g_type_init ();
|
||||||
|
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
{
|
{
|
||||||
|
@ -2769,7 +2769,7 @@ extern void g_signal_init (void); /* sync with gsignal.c */
|
|||||||
|
|
||||||
/* --- initialization --- */
|
/* --- initialization --- */
|
||||||
void
|
void
|
||||||
g_type_init (GTypeDebugFlags debug_flags)
|
g_type_init_with_debug_flags (GTypeDebugFlags debug_flags)
|
||||||
{
|
{
|
||||||
G_LOCK_DEFINE_STATIC (type_init_lock);
|
G_LOCK_DEFINE_STATIC (type_init_lock);
|
||||||
static TypeNode *type0_node = NULL;
|
static TypeNode *type0_node = NULL;
|
||||||
@ -2875,3 +2875,9 @@ g_type_init (GTypeDebugFlags debug_flags)
|
|||||||
|
|
||||||
G_UNLOCK (type_init_lock);
|
G_UNLOCK (type_init_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
g_type_init (void)
|
||||||
|
{
|
||||||
|
g_type_init_with_debug_flags (0);
|
||||||
|
}
|
||||||
|
@ -182,7 +182,8 @@ typedef enum /*< skip >*/
|
|||||||
|
|
||||||
|
|
||||||
/* --- prototypes --- */
|
/* --- prototypes --- */
|
||||||
void g_type_init (GTypeDebugFlags debug_flags);
|
void g_type_init (void);
|
||||||
|
void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags);
|
||||||
G_CONST_RETURN gchar* g_type_name (GType type);
|
G_CONST_RETURN gchar* g_type_name (GType type);
|
||||||
GQuark g_type_qname (GType type);
|
GQuark g_type_qname (GType type);
|
||||||
GType g_type_from_name (const gchar *name);
|
GType g_type_from_name (const gchar *name);
|
||||||
|
@ -167,7 +167,7 @@ main (int argc,
|
|||||||
g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
|
g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
|
||||||
G_LOG_LEVEL_WARNING |
|
G_LOG_LEVEL_WARNING |
|
||||||
G_LOG_LEVEL_CRITICAL);
|
G_LOG_LEVEL_CRITICAL);
|
||||||
g_type_init (G_TYPE_DEBUG_OBJECTS | G_TYPE_DEBUG_SIGNALS);
|
g_type_init_with_debug_flags (G_TYPE_DEBUG_OBJECTS | G_TYPE_DEBUG_SIGNALS);
|
||||||
|
|
||||||
tobject = g_object_new (TEST_TYPE_OBJECT, NULL);
|
tobject = g_object_new (TEST_TYPE_OBJECT, NULL);
|
||||||
sigarg = g_object_new (TEST_TYPE_OBJECT, NULL);
|
sigarg = g_object_new (TEST_TYPE_OBJECT, NULL);
|
||||||
|
@ -167,7 +167,7 @@ main (int argc,
|
|||||||
g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
|
g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
|
||||||
G_LOG_LEVEL_WARNING |
|
G_LOG_LEVEL_WARNING |
|
||||||
G_LOG_LEVEL_CRITICAL);
|
G_LOG_LEVEL_CRITICAL);
|
||||||
g_type_init (G_TYPE_DEBUG_OBJECTS | G_TYPE_DEBUG_SIGNALS);
|
g_type_init_with_debug_flags (G_TYPE_DEBUG_OBJECTS | G_TYPE_DEBUG_SIGNALS);
|
||||||
|
|
||||||
tobject = g_object_new (TEST_TYPE_OBJECT, NULL);
|
tobject = g_object_new (TEST_TYPE_OBJECT, NULL);
|
||||||
sigarg = g_object_new (TEST_TYPE_OBJECT, NULL);
|
sigarg = g_object_new (TEST_TYPE_OBJECT, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user