Add comments to the .rt file (//)
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 28 Nov 2024 22:10:00 +0000 (23:10 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 28 Nov 2024 22:10:00 +0000 (23:10 +0100)
src/parsing.c

index a24272a91304a60a34b98e90dd1a5331671b9d92..131ec513db95a9e3cc1e15d0e1d67abbcf042e14 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <ljiriste@student.42prague.com>   +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   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);