Mark g_tree_traverse() as deprecated. (#65343)

* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)

        * glib/gtree.c (g_tree_traverse): Explain the deprecation in
        some detail.
This commit is contained in:
Matthias Clasen 2001-11-26 19:01:08 +00:00
parent ff3ecc745d
commit e446298113
10 changed files with 64 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -1,3 +1,10 @@
2001-11-26 Matthias Clasen <matthiasc@poet.de>
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.c (g_tree_traverse): Explain the deprecation in
some detail.
Mon Nov 26 09:42:24 2001 Tim Janik <timj@gtk.org>
* configure.in: provide GLIB_SIZEOF_SIZE_T.

View File

@ -467,7 +467,10 @@ g_tree_foreach (GTree *tree,
* @user_data: user data to pass to the function.
*
* Calls the given function for each node in the GTree. This function is
* deprecated, use g_tree_foreach() instead.
* deprecated, since the order of a balanced tree is somewhat arbitrary.
* If you just want to visit all nodes in some order, use g_tree_foreach()
* instead. If you really need to visit nodes in a specific order, consider
* using an <link linkend="glib-N-ary-Trees">N-ary Tree</link>.
**/
void
g_tree_traverse (GTree *tree,

View File

@ -66,10 +66,14 @@ gboolean g_tree_lookup_extended (GTree *tree,
void g_tree_foreach (GTree *tree,
GTraverseFunc func,
gpointer user_data);
#ifndef G_DISABLE_DEPRECATED
void g_tree_traverse (GTree *tree,
GTraverseFunc traverse_func,
GTraverseType traverse_type,
gpointer user_data);
#endif /* G_DISABLE_DEPRECATED */
gpointer g_tree_search (GTree *tree,
GCompareFunc search_func,
gconstpointer user_data);