Remove debug flag argument to g_type_init() and add
authorOwen Taylor <otaylor@redhat.com>
Fri, 29 Jun 2001 02:50:46 +0000 (02:50 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 29 Jun 2001 02:50:46 +0000 (02:50 +0000)
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().

docs/reference/gobject/tmpl/types.sgml
gobject/ChangeLog
gobject/gobject-query.c
gobject/gtype.c
gobject/gtype.h
gobject/testgobject.c
gobject/testgruntime.c

index 67d845e..6aac8d6 100644 (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.
 
 
index 64f1c79..dcd0a3f 100644 (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): 
index 39b645f..652d09a 100644 (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++)
     {
index 50edc45..e13330f 100644 (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);
+}
index 07daee5..9e85d91 100644 (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);
index 0ccb801..5e8d1a2 100644 (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);
index 0ccb801..5e8d1a2 100644 (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);