From 4e05a55e373bd315e721d534a1711fec4c0054c5 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 12 Oct 2020 16:26:42 +0200 Subject: Moved to linux kernel inspired clang-format --- sem3/algo/mm6/tree.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'sem3/algo/mm6/tree.h') 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 -- cgit v1.2.3