semi-final parser

This commit is contained in:
Mthandazo Ndhlovu
2019-05-02 12:58:28 +02:00
10 changed files with 150 additions and 14 deletions

View File

@@ -6,7 +6,7 @@
/* By: mndhlovu <mndhlovu@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/22 08:55:30 by mndhlovu #+# #+# */
/* Updated: 2019/04/29 12:06:41 by mndhlovu ### ########.fr */
/* Updated: 2019/05/02 12:58:05 by mndhlovu ### ########.fr */
/* */
/* ************************************************************************** */
@@ -39,7 +39,7 @@ int lm_check_forbiden_chars(char *line, int flag)
if (flag == 2 && dash == NULL
&& (hash == NULL || (hash != NULL && line[1] != '#')))
return (1);
if (flag == 3 && dash != NULL && hash == NULL)
if (flag == 3 && (dash != NULL && hash == NULL))
return (1);
}
return (0);