Commit 100cde1c authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Owen Taylor

include missing #ifdef G_ENA\BLE_DEBUG

Thu May 16 17:29:08 2002  Jonathan Blandford  <jrb@redhat.com>

        * gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENA\BLE_DEBUG
parent 3dbc0d63
Thu May 16 17:29:08 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
Thu May 16 15:44:15 2002 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/editable_cells.c (cell_edited): Fix
......
Thu May 16 17:29:08 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
Thu May 16 15:44:15 2002 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/editable_cells.c (cell_edited): Fix
......
Thu May 16 17:29:08 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
Thu May 16 15:44:15 2002 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/editable_cells.c (cell_edited): Fix
......
Thu May 16 17:29:08 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
Thu May 16 15:44:15 2002 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/editable_cells.c (cell_edited): Fix
......
Thu May 16 17:29:08 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
Thu May 16 15:44:15 2002 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/editable_cells.c (cell_edited): Fix
......
Thu May 16 17:29:08 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
Thu May 16 15:44:15 2002 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/editable_cells.c (cell_edited): Fix
......
......@@ -482,8 +482,10 @@ _gtk_rbtree_remove (GtkRBTree *tree)
gint height = tree->root->offset;
#ifdef G_ENABLE_DEBUG
if (gtk_debug_flags & GTK_DEBUG_TREE)
_gtk_rbtree_test (G_STRLOC, tree);
#endif
tmp_tree = tree->parent_tree;
tmp_node = tree->parent_node;
......@@ -513,8 +515,10 @@ _gtk_rbtree_remove (GtkRBTree *tree)
tmp_node = tree->parent_node;
_gtk_rbtree_free (tree);
#ifdef G_ENABLE_DEBUG
if (gtk_debug_flags & GTK_DEBUG_TREE)
_gtk_rbtree_test (G_STRLOC, tmp_tree);
#endif
}
......@@ -733,8 +737,10 @@ _gtk_rbtree_node_set_height (GtkRBTree *tree,
tmp_tree = tmp_tree->parent_tree;
}
}
#ifdef G_ENABLE_DEBUG
if (gtk_debug_flags & GTK_DEBUG_TREE)
_gtk_rbtree_test (G_STRLOC, tree);
#endif
}
void
......@@ -1219,9 +1225,11 @@ _gtk_rbtree_remove_node (GtkRBTree *tree,
;
g_return_if_fail (x == tree->root);
#ifdef G_ENABLE_DEBUG
if (gtk_debug_flags & GTK_DEBUG_TREE)
_gtk_rbtree_test (G_STRLOC, tree);
#endif
if (node->left == tree->nil || node->right == tree->nil)
{
y = node;
......
......@@ -171,10 +171,11 @@ void _gtk_rbtree_prev_full (GtkRBTree *tree,
gint _gtk_rbtree_get_depth (GtkRBTree *tree);
/* This func checks the integrity of the tree */
#ifdef G_ENABLE_DEBUG
void _gtk_rbtree_test (const gchar *where,
GtkRBTree *tree);
void _gtk_rbtree_debug_spew (GtkRBTree *tree);
#endif
#ifdef __cplusplus
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment