Skip to content

Commit

Permalink
add red black main functions
Browse files Browse the repository at this point in the history
  • Loading branch information
moltanix committed Jun 17, 2016
1 parent c530cc6 commit f631c40
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ hash:hash.c
gcc -o $@ $<
hash.c:hash.h

rb_tree:rb_tree.c rb_tree_main.c
rb_tree:rb_tree.o rb_tree_main.o
gcc -o $@ $?
rb_tree.o:rb_tree.c
gcc -c -o $@ $<
rb_tree_main.o:rb_tree_main.c
gcc -c -o $@ $<

clean:
rm -rf ./*.o hash_main bubble_sort hash br_tree
Binary file added rb_tree
Binary file not shown.
2 changes: 1 addition & 1 deletion rb_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ typedef enum color_t

typedef struct rb_node_t
{
struct rb_node_t *left, right, *parent;
struct rb_node_t *left, *right, *parent;
key_t key;
data_t data;
color_t color;
Expand Down
10 changes: 10 additions & 0 deletions rb_tree_main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>

int main( void )
{

return 0;
}

0 comments on commit f631c40

Please sign in to comment.