tabs->spaces
This commit is contained in:
@@ -7,23 +7,23 @@ extern "C" {
|
||||
|
||||
typedef enum RBColor RBColor;
|
||||
enum RBColor {
|
||||
Red,
|
||||
Black
|
||||
Red,
|
||||
Black
|
||||
};
|
||||
|
||||
typedef struct RBNode RBNode;
|
||||
struct RBNode {
|
||||
unsigned char color; //Red/Black
|
||||
RBNode *parent;
|
||||
RBNode *right;
|
||||
RBNode *left;
|
||||
void *data;
|
||||
unsigned char color; //Red/Black
|
||||
RBNode *parent;
|
||||
RBNode *right;
|
||||
RBNode *left;
|
||||
void *data;
|
||||
};
|
||||
|
||||
typedef struct RBTree RBTree;
|
||||
struct RBTree {
|
||||
RBNode *node;
|
||||
int (*compare)(const RBNode *a, const RBNode *b);
|
||||
RBNode *node;
|
||||
int (*compare)(const RBNode *a, const RBNode *b);
|
||||
};
|
||||
|
||||
/** Remove a node from the tree.
|
||||
|
||||
Reference in New Issue
Block a user