42-archive/42-piscine-c/d13/ex08/ft_btree_rb.h
2016-08-25 20:50:28 +02:00

30 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_btree_rb.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/23 00:51:18 by jhalford #+# #+# */
/* Updated: 2016/08/23 19:09:10 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_BTREE_RB_H
# define FT_BTREE_RB_H
enum e_rb_color
{
RB_BLACK,
RB_RED
};
typedef struct s_rb_node
{
struct s_rb_node *parent;
struct s_rb_node *left;
struct s_rb_node *right;
void *data;
enum e_rb_color color;
} t_rb_node;
#endif