aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-30 20:24:32 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-30 20:24:32 +0100
commit6500b1ca9ce911d3db7c94ee3f4ee38489b8861a (patch)
tree4d2766b1bea4322a6e5851f53af33178d9643a5c /include
parentaa244ec3fb071a7fd08494d04cc865b281502804 (diff)
downloadlibft-6500b1ca9ce911d3db7c94ee3f4ee38489b8861a.tar.gz
libft-6500b1ca9ce911d3db7c94ee3f4ee38489b8861a.tar.bz2
libft-6500b1ca9ce911d3db7c94ee3f4ee38489b8861a.zip
Renaming t_list -> t_ftlst, changing feature adding by header
Diffstat (limited to 'include')
-rw-r--r--include/libft_ht.h11
-rw-r--r--include/libft_io.h11
-rw-r--r--include/libft_lst.h49
-rw-r--r--include/libft_mem.h11
-rw-r--r--include/libft_printf.h11
-rw-r--r--include/libft_str.h11
-rw-r--r--include/libft_types.h11
7 files changed, 20 insertions, 95 deletions
diff --git a/include/libft_ht.h b/include/libft_ht.h
index bd67b47..b890316 100644
--- a/include/libft_ht.h
+++ b/include/libft_ht.h
@@ -1,14 +1,3 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_ht.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/30 08:19:23 by cacharle #+# #+# */
-/* Updated: 2020/01/30 10:34:40 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
#ifndef FT_HT
# define FT_HT
diff --git a/include/libft_io.h b/include/libft_io.h
index f4c223b..75dda57 100644
--- a/include/libft_io.h
+++ b/include/libft_io.h
@@ -1,14 +1,3 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_io.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/17 09:47:14 by cacharle #+# #+# */
-/* Updated: 2020/01/17 10:07:47 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
#ifndef FT_IO_H
# define FT_IO_H
diff --git a/include/libft_lst.h b/include/libft_lst.h
index 23fb192..8f77233 100644
--- a/include/libft_lst.h
+++ b/include/libft_lst.h
@@ -1,38 +1,29 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_lst.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/17 09:58:02 by cacharle #+# #+# */
-/* Updated: 2020/01/30 09:55:43 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-#ifndef FT_LST_H
-# define FT_LST_H
+#ifndef LIBFT_LST_H
+# define LIBFT_LST_H
-typedef struct s_list
+# include "libft_types.h"
+
+typedef struct s_ftlst
{
void *content;
- struct s_list *next;
-} t_list;
+ struct s_ftlst *next;
+} t_ftlst;
-t_list *ft_lstnew(void const *content);
-void ft_lstadd_front(t_list **alst, t_list *new);
-int ft_lstsize(t_list *lst);
-t_list *ft_lstlast(t_list *lst);
-void ft_lstadd_back(t_list **alst, t_list *new);
-void ft_lstdelone(t_list *lst, void (*del)(void *));
-void ft_lstclear(t_list **lst, void (*del)(void *));
-void ft_lstiter(t_list *lst, void (*f)(void *));
-t_list *ft_lstmap(t_list *lst, void *(*f)(void *),
+t_ftlst *ft_lstnew(void const *content);
+void ft_lstadd_front(t_ftlst **alst, t_ftlst *new);
+int ft_lstsize(t_ftlst *lst);
+t_ftlst *ft_lstlast(t_ftlst *lst);
+void ft_lstadd_back(t_ftlst **alst, t_ftlst *new);
+void ft_lstdelone(t_ftlst *lst, void (*del)(void *));
+void ft_lstclear(t_ftlst **lst, void (*del)(void *));
+void ft_lstiter(t_ftlst *lst, void (*f)(void *));
+t_ftlst *ft_lstmap(t_ftlst *lst, void *(*f)(void *),
void (*del)(void *));
-void ft_lstpop_front(t_list **lst, void (*del)(void *));
-t_list *ft_lstreverse_ret(t_list *lst);
-void ft_lstreverse(t_list **lst);
-void ft_lstremove_if(t_list **lst,
+void ft_lstpop_front(t_ftlst **lst, void (*del)(void *));
+t_ftlst *ft_lstreverse_ret(t_ftlst *lst);
+void ft_lstreverse(t_ftlst **lst);
+void ft_lstremove_if(t_ftlst **lst,
t_ftbool (*equal)(void *ref, void *content), void *ref,
void (*del)(void *content));
diff --git a/include/libft_mem.h b/include/libft_mem.h
index d1e47f6..a9717b8 100644
--- a/include/libft_mem.h
+++ b/include/libft_mem.h
@@ -1,14 +1,3 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_mem.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/17 09:56:20 by cacharle #+# #+# */
-/* Updated: 2020/01/17 09:57:54 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
#ifndef FT_MEM_H
# define FT_MEM_H
diff --git a/include/libft_printf.h b/include/libft_printf.h
index 615039b..1200478 100644
--- a/include/libft_printf.h
+++ b/include/libft_printf.h
@@ -1,14 +1,3 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_printf.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/17 10:05:59 by cacharle #+# #+# */
-/* Updated: 2020/01/17 10:10:18 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
diff --git a/include/libft_str.h b/include/libft_str.h
index 105da79..8c4bef5 100644
--- a/include/libft_str.h
+++ b/include/libft_str.h
@@ -1,14 +1,3 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_str.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/17 09:50:14 by cacharle #+# #+# */
-/* Updated: 2020/01/17 10:22:38 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
#ifndef FT_STR_H
# define FT_STR_H
diff --git a/include/libft_types.h b/include/libft_types.h
index 04c9f02..be1cc20 100644
--- a/include/libft_types.h
+++ b/include/libft_types.h
@@ -1,14 +1,3 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_types.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/17 09:59:15 by cacharle #+# #+# */
-/* Updated: 2020/01/30 09:54:28 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
#ifndef FT_TYPES_H
# define FT_TYPES_H