~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_tree.h

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
typedef struct st_tree {
51
51
  TREE_ELEMENT *root,null_element;
52
52
  TREE_ELEMENT **parents[MAX_TREE_HEIGHT];
53
 
  uint offset_to_key,elements_in_tree,size_of_element;
 
53
  uint32_t offset_to_key,elements_in_tree,size_of_element;
54
54
  uint32_t memory_limit, allocated;
55
55
  qsort_cmp2 compare;
56
56
  void *custom_arg;
57
57
  MEM_ROOT mem_root;
58
58
  bool with_delete;
59
59
  tree_element_free free;
60
 
  uint flag;
 
60
  uint32_t flag;
61
61
} TREE;
62
62
 
63
63
        /* Functions on whole tree */
71
71
#define is_tree_inited(tree) ((tree)->root != 0)
72
72
 
73
73
        /* Functions on leafs */
74
 
TREE_ELEMENT *tree_insert(TREE *tree,void *key, uint key_size, 
 
74
TREE_ELEMENT *tree_insert(TREE *tree,void *key, uint32_t key_size, 
75
75
                          void *custom_arg);
76
76
void *tree_search(TREE *tree, void *key, void *custom_arg);
77
77
int tree_walk(TREE *tree,tree_walk_action action,
78
78
              void *argument, TREE_WALK visit);
79
 
int tree_delete(TREE *tree, void *key, uint key_size, void *custom_arg);
 
79
int tree_delete(TREE *tree, void *key, uint32_t key_size, void *custom_arg);
80
80
void *tree_search_key(TREE *tree, const void *key, 
81
81
                      TREE_ELEMENT **parents, TREE_ELEMENT ***last_pos,
82
82
                      enum ha_rkey_function flag, void *custom_arg);