no more leaks on all maps
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: mndhlovu <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/04/04 09:24:45 by mndhlovu #+# #+# */
|
||||
/* Updated: 2019/05/02 11:18:12 by mndhlovu ### ########.fr */
|
||||
/* Updated: 2019/05/02 13:12:06 by mndhlovu ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -44,37 +44,6 @@ void lm_get_cmd_vertices(int count, t_syntax *synt
|
||||
}
|
||||
}
|
||||
|
||||
void lm_get_cmd_vert(int count, t_syntax *synt
|
||||
, t_lmdata *ldata, char *line)
|
||||
{
|
||||
char *tmp;
|
||||
|
||||
if ((synt->s_pos == count - 1 && lm_check_forbiden_chars(line, 0))
|
||||
|| ((synt->s_pos <= count && !synt->s_vert)
|
||||
&& lm_check_forbiden_chars(line, 0)))
|
||||
{
|
||||
tmp = ft_strchr(line, '#');
|
||||
if (tmp == NULL && count != synt->e_vert)
|
||||
{
|
||||
synt->s_vert = count;
|
||||
if (!(lm_add_vertex(ldata, line, 's', synt)))
|
||||
synt->s_error = 1;
|
||||
}
|
||||
}
|
||||
if ((synt->e_pos == count - 1 && lm_check_forbiden_chars(line, 0))
|
||||
|| ((synt->e_pos <= count && !synt->e_vert)
|
||||
&& lm_check_forbiden_chars(line, 0)))
|
||||
{
|
||||
tmp = ft_strchr(line, '#');
|
||||
if (tmp == NULL && count != synt->s_vert)
|
||||
{
|
||||
synt->e_vert = count;
|
||||
if (!(lm_add_vertex(ldata, line, 'e', synt)))
|
||||
synt->e_error = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void lm_get_vert_link(int count, t_lmdata *ldata
|
||||
, t_syntax *syntax, t_holder *holder, char *line)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user