From 1bdf65d8e63069cc917fb59db6b25ce93fe04c35 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 3 Oct 2020 16:43:25 +0200 Subject: Normed s_line --- src/s_line.c | 12 ++++-------- src/s_line.h | 8 ++++---- 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/s_line.c b/src/s_line.c index c6e2e0b..d7d48bb 100644 --- a/src/s_line.c +++ b/src/s_line.c @@ -19,8 +19,7 @@ #include "s_com.h" #include "s_struct.h" -t_line_block - *s_line_last(t_line_block *line) +t_line_block *s_line_last(t_line_block *line) { while (line->next != NULL) { @@ -29,8 +28,7 @@ t_line_block return (line); } -void - s_line_add_back(t_line_block **aline, t_line_block *new) +void s_line_add_back(t_line_block **aline, t_line_block *new) { t_line_block *tmp; @@ -45,8 +43,7 @@ void } } -void - s_line_clear(t_line_block **line) +void s_line_clear(t_line_block **line) { t_line_block *tmp; t_line_block *renext; @@ -66,8 +63,7 @@ void *line = NULL; } -t_line_block - *s_line_new(const char word[], uint8_t nextif) +t_line_block *s_line_new(const char word[], uint8_t nextif) { t_line_block *link; diff --git a/src/s_line.h b/src/s_line.h index b46643f..16855d9 100644 --- a/src/s_line.h +++ b/src/s_line.h @@ -10,12 +10,12 @@ /* */ /* ************************************************************************** */ -#ifndef S_LCOM_H -#define S_LCOM_H +#ifndef FT_S_LCOM_H +# define FT_S_LCOM_H -#include +# include -#include "s_struct.h" +# include "s_struct.h" void s_line_add_back(t_line_block **aline, t_line_block *new); void s_line_clear(t_line_block **line); -- cgit v1.2.3