added protection on double pipes

This commit is contained in:
Tanguy MAZE
2019-04-11 22:34:35 +02:00
parent 0495ba9e55
commit d85e0873cb
2 changed files with 23 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/23 17:31:19 by tmaze #+# #+# */
/* Updated: 2019/04/11 10:50:04 by tmaze ### ########.fr */
/* Updated: 2019/04/11 17:31:09 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -66,6 +66,7 @@ typedef struct s_syntax
int e_error;
int v_error;
int l_error;
int gr_status;
int s_vert;
int e_vert;
int e_cmd;
@@ -97,6 +98,7 @@ int lm_validate(t_syntax *synt, t_lmdata *lmdata);
int lm_parser(t_syntax *synt, t_lmdata *ldata
, t_holder *holder);
int lm_check_room_before(char **tab, t_syntax *synt);
void lm_clear_unv(t_holder *holder);
int lm_add_vertex(t_lmdata *ldata, char *raw, char flag
, t_syntax *synt);
int lm_ext_conn(t_holder *holder, t_lmdata *data