diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-05-10 18:14:15 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-05-10 18:14:15 -0600 |
commit | 89d6e639ae535600af4cf3eb7053aa9c4c905580 (patch) | |
tree | 41633f2a5b44761a0e57374699711c1eab2cc9e2 /include/my_tree.h | |
parent | 174fdf05a14cecb499030460ecceed5f4df79cf9 (diff) | |
download | mariadb-git-89d6e639ae535600af4cf3eb7053aa9c4c905580.tar.gz |
change tree to use qsort_cmp2 - compare function with 3 instead of 2 arguments
include/global.h:
qsort_cmp2
include/my_tree.h:
use qsort_cmp2
myisam/ft_boolean_search.c:
use qsort_cmp2
myisam/ft_nlq_search.c:
use qsort_cmp2
myisam/ft_parser.c:
use qsort_cmp2
myisam/ft_stopwords.c:
use qsort_cmp2
myisam/myisampack.c:
use qsort_cmp2
mysys/tree.c:
use qsort_cmp2
sql/sql_analyse.cc:
use qsort_cmp2
sql/sql_analyse.h:
use qsort_cmp2
Diffstat (limited to 'include/my_tree.h')
-rw-r--r-- | include/my_tree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/my_tree.h b/include/my_tree.h index 0a227ea3944..c0950409588 100644 --- a/include/my_tree.h +++ b/include/my_tree.h @@ -50,7 +50,8 @@ typedef struct st_tree { TREE_ELEMENT *root,null_element; TREE_ELEMENT **parents[MAX_TREE_HIGHT]; uint offset_to_key,elements_in_tree,size_of_element; - qsort_cmp compare; + qsort_cmp2 compare; + void* cmp_arg; MEM_ROOT mem_root; my_bool with_delete; void (*free)(void *); @@ -58,7 +59,7 @@ typedef struct st_tree { /* Functions on hole tree */ void init_tree(TREE *tree,uint default_alloc_size, int element_size, - qsort_cmp compare, my_bool with_delete, + qsort_cmp2 compare, my_bool with_delete, void (*free_element)(void*)); void delete_tree(TREE*); #define is_tree_inited(tree) ((tree)->root != 0) |