makefile update

This commit is contained in:
Jack Halford 2017-03-08 12:00:51 +01:00
parent 7877637c60
commit 61f790b8fc
4 changed files with 6 additions and 7 deletions

View file

@ -94,7 +94,6 @@ lst/ft_lst_sorted_merge.c\
lst/ft_lstadd.c\ lst/ft_lstadd.c\
lst/ft_lstdel.c\ lst/ft_lstdel.c\
lst/ft_lstdelone.c\ lst/ft_lstdelone.c\
lst/ft_lstdup.c\
lst/ft_lsteadd.c\ lst/ft_lsteadd.c\
lst/ft_lstiter.c\ lst/ft_lstiter.c\
lst/ft_lstlast.c\ lst/ft_lstlast.c\

View file

@ -6,7 +6,7 @@
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */ /* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/07 13:49:04 by jhalford #+# #+# */ /* Created: 2016/11/07 13:49:04 by jhalford #+# #+# */
/* Updated: 2017/03/08 11:58:07 by jhalford ### ########.fr */ /* Updated: 2017/03/08 11:59:43 by jhalford ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */ /* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/08 11:50:46 by jhalford #+# #+# */ /* Created: 2017/03/08 11:50:46 by jhalford #+# #+# */
/* Updated: 2017/03/08 11:53:47 by jhalford ### ########.fr */ /* Updated: 2017/03/08 12:03:17 by jhalford ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */ /* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 14:57:21 by jhalford #+# #+# */ /* Created: 2016/11/03 14:57:21 by jhalford #+# #+# */
/* Updated: 2017/03/08 11:58:32 by jhalford ### ########.fr */ /* Updated: 2017/03/08 12:03:14 by jhalford ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -14,11 +14,11 @@
t_list *ft_lstmap(t_list *lst, void *(*f)(void *)) t_list *ft_lstmap(t_list *lst, void *(*f)(void *))
{ {
t_list *out;
t_list *elem; t_list *elem;
elem = ft_lstnew(lst->content, lst->content_size); if (!lst)
elem = (*f)(lst); return (NULL);
elem = ft_lstnew((*f)(lst->content), lst->content_size);
elem->next = ft_lstmap(lst->next, f); elem->next = ft_lstmap(lst->next, f);
return (elem); return (elem);
} }