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:
Owen Taylor 2001-06-29 02:50:46 +00:00 committed by Owen Taylor
parent 4be0cfddf9
commit f571f74616
7 changed files with 19 additions and 5 deletions

View File

@ -401,6 +401,7 @@ the type system and assorted other code portions (such as the various fundamenta
type implementations or the signal system).
</para>
<!-- # Unused Parameters # -->
@debug_flags: Bitwise combination of #GTypeDebugFlags values for debugging purposes.

View File

@ -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>
* gsignal.c (g_signal_lookup):

View File

@ -133,7 +133,7 @@ main (gint argc,
root = G_TYPE_OBJECT;
g_type_init (0);
g_type_init ();
for (i = 1; i < argc; i++)
{

View File

@ -2769,7 +2769,7 @@ extern void g_signal_init (void); /* sync with gsignal.c */
/* --- initialization --- */
void
g_type_init (GTypeDebugFlags debug_flags)
g_type_init_with_debug_flags (GTypeDebugFlags debug_flags)
{
G_LOCK_DEFINE_STATIC (type_init_lock);
static TypeNode *type0_node = NULL;
@ -2875,3 +2875,9 @@ g_type_init (GTypeDebugFlags debug_flags)
G_UNLOCK (type_init_lock);
}
void
g_type_init (void)
{
g_type_init_with_debug_flags (0);
}

View File

@ -182,7 +182,8 @@ typedef enum /*< skip >*/
/* --- 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);
GQuark g_type_qname (GType type);
GType g_type_from_name (const gchar *name);

View File

@ -167,7 +167,7 @@ main (int argc,
g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
G_LOG_LEVEL_WARNING |
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);
sigarg = g_object_new (TEST_TYPE_OBJECT, NULL);

View File

@ -167,7 +167,7 @@ main (int argc,
g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
G_LOG_LEVEL_WARNING |
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);
sigarg = g_object_new (TEST_TYPE_OBJECT, NULL);