From 489071c75e10f9860ea749034b32047ef7f2bed7 Mon Sep 17 00:00:00 2001 From: Yaroslav Kolomiets Date: Tue, 20 Dec 2016 20:36:10 +0200 Subject: [PATCH] 123 --- inc/fillit.h | 18 +++++------------- src/dancing_links.c | 2 +- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/inc/fillit.h b/inc/fillit.h index 91297f0..2c5215c 100644 --- a/inc/fillit.h +++ b/inc/fillit.h @@ -37,14 +37,6 @@ typedef struct s_ttrmn t_coord c[4]; } t_ttrmn; -typedef struct s_col -{ - struct s_col *left; - struct s_col *right; - void *up; - void *down; -} t_col; - typedef struct s_node { struct s_node *left; @@ -52,7 +44,7 @@ typedef struct s_node struct s_node *up; struct s_node *down; int row; - t_col *column; + struct s_node *column; } t_node; @@ -84,10 +76,10 @@ void to_letters(char **ttr); // create array of ttr structures int *to_strct_array(char **ttr, t_ttrmn *templates); -t_col *add_column(t_col *root); -t_node *add_node(t_col *col, int row); -void cover(t_col *to_cover); -void uncover(t_col *to_uncover); +t_node *add_column(t_node *root); +t_node *add_node(t_node *col, int row); +void cover(t_node *to_cover); +void uncover(t_node *to_uncover); diff --git a/src/dancing_links.c b/src/dancing_links.c index 045784e..6600625 100644 --- a/src/dancing_links.c +++ b/src/dancing_links.c @@ -39,7 +39,7 @@ t_node *add_node(t_node *col, int row) return (new_node); } -void cover(t_col *to_cover) +void cover(t_node *to_cover) { void *step_vert; t_node *step_horiz;