From: Lukas Jiriste Date: Thu, 28 Nov 2024 22:10:00 +0000 (+0100) Subject: Add comments to the .rt file (//) X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=67de435037e269ac30ad40ef80eef8dc0993c572;p=42%2FminiRT.git Add comments to the .rt file (//) --- diff --git a/src/parsing.c b/src/parsing.c index a24272a..131ec51 100644 --- a/src/parsing.c +++ b/src/parsing.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/28 12:34:20 by ljiriste #+# #+# */ -/* Updated: 2024/11/28 17:56:14 by ljiriste ### ########.fr */ +/* Updated: 2024/11/28 20:36:19 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -111,7 +111,7 @@ int tokenize(const char *filename, t_vec *tokens) line = get_next_line(fd); while (line) { - if (tokenize_line(line, tokens)) + if (ft_strncmp(line, "//", 2) && tokenize_line(line, tokens)) { free(line); get_next_line(-1);