Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-IceS
Commits
f84e1c14
Commit
f84e1c14
authored
Jul 07, 2003
by
brendan
Browse files
MAX may be defined elsewhere
svn path=/trunk/avl/; revision=5086
parent
e81379a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/avl/avl.c
View file @
f84e1c14
...
...
@@ -22,7 +22,7 @@
*
*/
/* $Id: avl.c,v 1.
6
2003/07/07 0
1:40:08
brendan Exp $ */
/* $Id: avl.c,v 1.
7
2003/07/07 0
3:37:23
brendan Exp $ */
/*
* This is a fairly straightfoward translation of a prototype
...
...
@@ -976,7 +976,7 @@ avl_get_item_by_key_least (avl_tree * tree,
}
}
#define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
#define
AVL_
MAX(X, Y) ((X) > (Y) ? (X) : (Y))
static
long
avl_verify_balance
(
avl_node
*
node
)
...
...
@@ -994,7 +994,7 @@ avl_verify_balance (avl_node * node)
fprintf
(
stderr
,
"unbalanced at node %d
\n
"
,
(
int
)
node
->
key
);
exit
(
1
);
}
return
(
1
+
MAX
(
lh
,
rh
));
return
(
1
+
AVL_
MAX
(
lh
,
rh
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment