From d604d9221c388fbe627019735a65b63a155d6abb Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Fri, 27 Oct 2023 12:26:19 +0200 Subject: [PATCH] Make bonus part not depend on non-bonus part Change includes to include the bonus header file. Change 42headers to reflect the names of the files. --- get_next_line_bonus.c | 6 +++--- get_next_line_bonus.h | 8 ++++---- get_next_line_utils_bonus.c | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/get_next_line_bonus.c b/get_next_line_bonus.c index cffebc3..e1d2c79 100644 --- a/get_next_line_bonus.c +++ b/get_next_line_bonus.c @@ -1,18 +1,18 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* get_next_line.c :+: :+: :+: */ +/* get_next_line_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/28 00:01:15 by ljiriste #+# #+# */ -/* Updated: 2023/10/27 10:24:16 by ljiriste ### ########.fr */ +/* Updated: 2023/10/27 12:21:02 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include #include -#include "get_next_line.h" +#include "get_next_line_bonus.h" // How to free? // static in get_next_line? So it could be passed to select AND delete diff --git a/get_next_line_bonus.h b/get_next_line_bonus.h index 9f951da..022d567 100644 --- a/get_next_line_bonus.h +++ b/get_next_line_bonus.h @@ -1,17 +1,17 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* get_next_line.h :+: :+: :+: */ +/* get_next_line_bonus.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/28 11:24:52 by ljiriste #+# #+# */ -/* Updated: 2023/10/11 18:16:37 by ljiriste ### ########.fr */ +/* Updated: 2023/10/27 12:21:04 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#ifndef GET_NEXT_LINE_H -# define GET_NEXT_LINE_H +#ifndef GET_NEXT_LINE_BONUS_H +# define GET_NEXT_LINE_BONUS_H # ifndef BUFFER_SIZE # define BUFFER_SIZE 80 diff --git a/get_next_line_utils_bonus.c b/get_next_line_utils_bonus.c index fb4048a..f7b3343 100644 --- a/get_next_line_utils_bonus.c +++ b/get_next_line_utils_bonus.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* get_next_line_utils.c :+: :+: :+: */ +/* get_next_line_utils_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/11 13:36:53 by ljiriste #+# #+# */ -/* Updated: 2023/10/11 15:42:18 by ljiriste ### ########.fr */ +/* Updated: 2023/10/27 12:21:02 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,7 +15,7 @@ */ #include // malloc etc. -#include "get_next_line.h" +#include "get_next_line_bonus.h" //This function may be useful enough to add to Libft /* Functions like ft_strncat but reallocates dest to -- 2.30.2