From c38d9110f7eea0a56f4ff54af91da4ae9d3df77d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 16 Jun 2003 13:18:57 +0200 Subject: [PATCH] comment added --- mysys/tree.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 #include