diff options
author | Julian T <julian@jtle.dk> | 2020-10-12 16:26:42 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-10-12 16:54:48 +0200 |
commit | 4e05a55e373bd315e721d534a1711fec4c0054c5 (patch) | |
tree | 4fc0141760c2730ed79aaa4c7aa60ea45cc66cc0 /sem3/algo/mm6/tree.h | |
parent | b7f9cf43c8a9ab3400cbb30d5e1cadb0c6c2cf23 (diff) |
Moved to linux kernel inspired clang-format
Diffstat (limited to 'sem3/algo/mm6/tree.h')
-rw-r--r-- | sem3/algo/mm6/tree.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sem3/algo/mm6/tree.h b/sem3/algo/mm6/tree.h index 0d1c5c6..d94304f 100644 --- a/sem3/algo/mm6/tree.h +++ b/sem3/algo/mm6/tree.h @@ -6,16 +6,16 @@ #define CHILD_LEFT 0 #define CHILD_RIGHT 1 -typedef struct node_struct{ - struct node_struct *p; - struct node_struct *children[2]; - unsigned int index; - bool black; - char *value; +typedef struct node_struct { + struct node_struct *p; + struct node_struct *children[2]; + unsigned int index; + bool black; + char *value; } node_t; typedef struct { - node_t *root; + node_t *root; } tree_t; void tree_print(tree_t *tree); @@ -27,5 +27,4 @@ void node_rotate(tree_t *tree, node_t *x, int dir); char *tree_search(tree_t *tree, unsigned int index); - -#endif +#endif |