modify map printing system

added functions to create, print and clear map when it's valid
This commit is contained in:
Tanguy MAZE
2019-04-24 18:24:34 +02:00
parent fe1c85371f
commit 5b4e0c0150
5 changed files with 82 additions and 17 deletions

View File

@@ -6,7 +6,7 @@
/* By: mndhlovu <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/25 06:31:37 by mndhlovu #+# #+# */
/* Updated: 2019/04/24 09:51:14 by tmaze ### ########.fr */
/* Updated: 2019/04/24 18:03:58 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -33,6 +33,7 @@ void lm_init_data(t_syntax *synt, t_holder *holder, t_lmdata *ldata)
ldata->nb_nodes = 0;
ldata->nodes_data = NULL;
ldata->adj = NULL;
ldata->map = NULL;
}
static void lm_add_vertex_sub(t_lmdata *ldata, t_node *new)