From 10d1563a8969ebeb823b2e818f7b78128d713273 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 11 Dec 2025 15:30:52 +0100 Subject: [PATCH] style(includes): moving the includes in libft folder - Disable conflict with libs like math.h --- includes/{ => libft}/char.h | 0 includes/{ => libft}/color.h | 0 includes/{ => libft}/convert.h | 0 includes/libft/gnl.h | 35 ++++++++++++++++++++++++++++++++++ includes/{ => libft}/list.h | 0 includes/{ => libft}/math.h | 0 includes/{ => libft}/memory.h | 0 includes/{ => libft}/print.h | 0 includes/{ => libft}/str.h | 0 9 files changed, 35 insertions(+) rename includes/{ => libft}/char.h (100%) rename includes/{ => libft}/color.h (100%) rename includes/{ => libft}/convert.h (100%) create mode 100644 includes/libft/gnl.h rename includes/{ => libft}/list.h (100%) rename includes/{ => libft}/math.h (100%) rename includes/{ => libft}/memory.h (100%) rename includes/{ => libft}/print.h (100%) rename includes/{ => libft}/str.h (100%) diff --git a/includes/char.h b/includes/libft/char.h similarity index 100% rename from includes/char.h rename to includes/libft/char.h diff --git a/includes/color.h b/includes/libft/color.h similarity index 100% rename from includes/color.h rename to includes/libft/color.h diff --git a/includes/convert.h b/includes/libft/convert.h similarity index 100% rename from includes/convert.h rename to includes/libft/convert.h diff --git a/includes/libft/gnl.h b/includes/libft/gnl.h new file mode 100644 index 0000000..ab42a87 --- /dev/null +++ b/includes/libft/gnl.h @@ -0,0 +1,35 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* gnl.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rparodi +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 17:12:04 by rparodi #+# #+# */ +/* Updated: 2025/12/11 15:24:17 by rparodi ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef GNL_H +# define GNL_H + +# ifndef BUFFER_SIZE +# define BUFFER_SIZE 420 +# endif + +# include +# include + +char **memory_storage(void); +char *ft_get_line(char *str); +char *get_next_line(int fd); +void get_next_line_clear(void); +char *ft_get_next(char *str); +char *ft_get_line(char *str); +char *ft_strjoin_gnl(char *s1, char *s2, int i, int j); +int ft_strchr_index(char *str, char c); +char *file_converted(int fd); +char *ft_free(char *str); +char *ft_check(char *memory, int fd); + +#endif diff --git a/includes/list.h b/includes/libft/list.h similarity index 100% rename from includes/list.h rename to includes/libft/list.h diff --git a/includes/math.h b/includes/libft/math.h similarity index 100% rename from includes/math.h rename to includes/libft/math.h diff --git a/includes/memory.h b/includes/libft/memory.h similarity index 100% rename from includes/memory.h rename to includes/libft/memory.h diff --git a/includes/print.h b/includes/libft/print.h similarity index 100% rename from includes/print.h rename to includes/libft/print.h diff --git a/includes/str.h b/includes/libft/str.h similarity index 100% rename from includes/str.h rename to includes/libft/str.h