~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_tree.h

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
extern "C" {
20
20
#endif
21
21
 
22
 
#include "my_base.h"            /* get 'enum ha_rkey_function' */
 
22
#include <drizzled/base.h>              /* get 'enum ha_rkey_function' */
23
23
 
24
24
/* Worst case tree is half full. This gives use 2^(MAX_TREE_HEIGHT/2) leafs */
25
25
#define MAX_TREE_HEIGHT 64
33
33
#define TREE_NO_DUPS 1
34
34
 
35
35
typedef enum { left_root_right, right_root_left } TREE_WALK;
36
 
typedef uint32 element_count;
 
36
typedef uint32_t element_count;
37
37
typedef int (*tree_walk_action)(void *,element_count,void *);
38
38
 
39
39
typedef enum { free_init, free_free, free_end } TREE_FREE;
41
41
 
42
42
typedef struct st_tree_element {
43
43
  struct st_tree_element *left,*right;
44
 
  uint32 count:31,
 
44
  uint32_t count:31,
45
45
         colour:1;                      /* black is marked as 1 */
46
46
} TREE_ELEMENT;
47
47