This commit is contained in:
Gregory Tertyshny 2016-12-20 20:36:37 +02:00
commit 7cc5410001
2 changed files with 6 additions and 14 deletions

View file

@ -37,14 +37,6 @@ typedef struct s_ttrmn
t_coord c[4]; t_coord c[4];
} t_ttrmn; } t_ttrmn;
typedef struct s_col
{
struct s_col *left;
struct s_col *right;
void *up;
void *down;
} t_col;
typedef struct s_node typedef struct s_node
{ {
struct s_node *left; struct s_node *left;
@ -52,7 +44,7 @@ typedef struct s_node
struct s_node *up; struct s_node *up;
struct s_node *down; struct s_node *down;
int row; int row;
t_col *column; struct s_node *column;
} t_node; } t_node;
@ -84,10 +76,10 @@ void to_letters(char **ttr);
// create array of ttr structures // create array of ttr structures
int *to_strct_array(char **ttr, t_ttrmn *templates); int *to_strct_array(char **ttr, t_ttrmn *templates);
t_col *add_column(t_col *root); t_node *add_column(t_node *root);
t_node *add_node(t_col *col, int row); t_node *add_node(t_node *col, int row);
void cover(t_col *to_cover); void cover(t_node *to_cover);
void uncover(t_col *to_uncover); void uncover(t_node *to_uncover);

View file

@ -39,7 +39,7 @@ t_node *add_node(t_node *col, int row)
return (new_node); return (new_node);
} }
void cover(t_col *to_cover) void cover(t_node *to_cover)
{ {
void *step_vert; void *step_vert;
t_node *step_horiz; t_node *step_horiz;