summaryrefslogtreecommitdiff
path: root/mysys/tree.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-06-16 13:18:57 +0200
committerunknown <serg@serg.mylan>2003-06-16 13:18:57 +0200
commitc38d9110f7eea0a56f4ff54af91da4ae9d3df77d (patch)
tree1aeb6aa05714d0f00efc629600948f52ef386bcf /mysys/tree.c
parentf45ff11f4b40e92f590a6627fd68a564d71b7dc5 (diff)
downloadmariadb-git-c38d9110f7eea0a56f4ff54af91da4ae9d3df77d.tar.gz
comment added
Diffstat (limited to 'mysys/tree.c')
-rw-r--r--mysys/tree.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysys/tree.c b/mysys/tree.c
index a3b69ebff5e..91d2f9771b5 100644
--- a/mysys/tree.c
+++ b/mysys/tree.c
@@ -46,6 +46,16 @@
Implemented by monty.
*/
+/*
+ NOTE:
+ tree->compare function should be ALWAYS called as
+ (*tree->compare)(custom_arg, ELEMENT_KEY(tree,element), key)
+ and not other way around, as
+ (*tree->compare)(custom_arg, key, ELEMENT_KEY(tree,element))
+
+ ft_boolean_search.c (at least) relies on that.
+*/
+
#include "mysys_priv.h"
#include <m_string.h>
#include <my_tree.h>