Patch from Josh Pritikin to fix reversed key and value destroy functions.
authorOwen Taylor <otaylor@redhat.com>
Thu, 23 Aug 2001 15:24:35 +0000 (15:24 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 23 Aug 2001 15:24:35 +0000 (15:24 +0000)
Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/ghash.c (g_hash_table_foreach_remove_or_steal):
        Patch from Josh Pritikin to fix reversed key and value destroy
        functions. (#59433)

        * glib/giochannel.h (struct _GIOChannel): Mark structure
        /*< private >*/

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/glib/tmpl/iochannels.sgml
glib/ghash.c
glib/giochannel.h

index 50e04ea..1af9a15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index 50e04ea..1af9a15 100644 (file)
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index 50e04ea..1af9a15 100644 (file)
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index 50e04ea..1af9a15 100644 (file)
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index 50e04ea..1af9a15 100644 (file)
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index 50e04ea..1af9a15 100644 (file)
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index 50e04ea..1af9a15 100644 (file)
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index 50e04ea..1af9a15 100644 (file)
@@ -1,3 +1,12 @@
+Thu Aug 23 11:09:58 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/ghash.c (g_hash_table_foreach_remove_or_steal): 
+       Patch from Josh Pritikin to fix reversed key and value destroy 
+       functions. (#59433)
+
+       * glib/giochannel.h (struct _GIOChannel): Mark structure
+       /*< private >*/
+
 Thu Aug 23 16:14:17 2001  Tim Janik  <timj@gtk.org>
 
        * glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
index a4286a0..4a6c864 100644 (file)
@@ -77,7 +77,6 @@ A data structure representing an IO Channel. The fields should be considered
 private and should only be accessed with the following functions.
 </para>
 
-@close_on_unref: 
 
 <!-- ##### FUNCTION g_io_channel_unix_new ##### -->
 <para>
@@ -584,6 +583,24 @@ generic way.
 @Returns: 
 
 
+<!-- ##### FUNCTION g_io_channel_get_close_on_unref ##### -->
+<para>
+
+</para>
+
+@channel: 
+@Returns: 
+
+
+<!-- ##### FUNCTION g_io_channel_set_close_on_unref ##### -->
+<para>
+
+</para>
+
+@channel: 
+@do_close: 
+
+
 <!-- ##### FUNCTION g_io_channel_read ##### -->
 <para>
 </para>
index 28bc1c3..40be7d3 100644 (file)
@@ -509,16 +509,16 @@ g_hash_table_foreach_remove_or_steal (GHashTable *hash_table,
                {
                  prev->next = node->next;
                  g_hash_node_destroy (node,
-                                      notify ? hash_table->value_destroy_func : NULL,
-                                      notify ? hash_table->key_destroy_func : NULL);
+                                      notify ? hash_table->key_destroy_func : NULL,
+                                      notify ? hash_table->value_destroy_func : NULL);
                  node = prev;
                }
              else
                {
                  hash_table->nodes[i] = node->next;
                  g_hash_node_destroy (node,
-                                      notify ? hash_table->value_destroy_func : NULL,
-                                      notify ? hash_table->key_destroy_func : NULL);
+                                      notify ? hash_table->key_destroy_func : NULL,
+                                      notify ? hash_table->value_destroy_func : NULL);
                  goto restart;
                }
            }
index a84670c..9abd511 100644 (file)
@@ -103,6 +103,7 @@ typedef enum
 
 struct _GIOChannel
 {
+  /*< private >*/
   guint ref_count;
   GIOFuncs *funcs;