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:05 by mndhlovu #+# #+# */
/* Updated: 2019/04/24 09:44:41 by tmaze ### ########.fr */
/* Updated: 2019/04/24 18:23:42 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -58,16 +58,13 @@ static int lem_in(t_syntax *synt, t_holder *holder,
{
if (!(lm_parser(synt, lmdata, holder)))
return (0);
ft_printf("start verify\n");
if (!(lm_verify_cmd(synt, holder, lmdata)))
return (0);
ft_printf("Number of nodes %d\n", lmdata->nb_nodes);
print_map(lmdata);
if (!lst_indinit(lmdata))
return (0);
ft_printf("plap\n");
if (!(lm_adj_parser(lmdata, holder)))
return (0);
ft_printf("plop\n");
lm_clear_unv(holder);
get_nb_paths_max(lmdata, get_node_role(lmdata, 's')->ind
, get_node_role(lmdata, 'e')->ind);