merged, use the new lstmap instead of lstdup
This commit is contained in:
commit
7877637c60
11 changed files with 16 additions and 16 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
# By: jhalford <jack@crans.org> +#+ +:+ +#+ #
|
# By: jhalford <jack@crans.org> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2017/02/07 16:09:36 by jhalford #+# #+# #
|
# Created: 2017/02/07 16:09:36 by jhalford #+# #+# #
|
||||||
# Updated: 2017/03/07 14:28:55 by ariard ### ########.fr #
|
# Updated: 2017/03/08 01:11:01 by ariard ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|
@ -94,6 +94,7 @@ 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\
|
||||||
|
|
@ -150,6 +151,7 @@ str/ft_strbetween.c\
|
||||||
str/ft_strcat.c\
|
str/ft_strcat.c\
|
||||||
str/ft_strcatf.c\
|
str/ft_strcatf.c\
|
||||||
str/ft_strchr.c\
|
str/ft_strchr.c\
|
||||||
|
str/ft_strchrcpy.c\
|
||||||
str/ft_strclr.c\
|
str/ft_strclr.c\
|
||||||
str/ft_strcmp.c\
|
str/ft_strcmp.c\
|
||||||
str/ft_strcpy.c\
|
str/ft_strcpy.c\
|
||||||
|
|
@ -173,7 +175,6 @@ str/ft_strmapi.c\
|
||||||
str/ft_strncat.c\
|
str/ft_strncat.c\
|
||||||
str/ft_strncmp.c\
|
str/ft_strncmp.c\
|
||||||
str/ft_strncpy.c\
|
str/ft_strncpy.c\
|
||||||
str/ft_strchrcpy.c\
|
|
||||||
str/ft_strnequ.c\
|
str/ft_strnequ.c\
|
||||||
str/ft_strnew.c\
|
str/ft_strnew.c\
|
||||||
str/ft_strnstr.c\
|
str/ft_strnstr.c\
|
||||||
|
|
|
||||||
|
|
@ -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:57:34 by jhalford ### ########.fr */
|
/* Updated: 2017/03/08 11:58:07 by jhalford ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -54,8 +54,8 @@ struct s_stof
|
||||||
|
|
||||||
struct s_itof
|
struct s_itof
|
||||||
{
|
{
|
||||||
char *name;
|
int id;
|
||||||
int (*f)();
|
int (*f)();
|
||||||
};
|
};
|
||||||
|
|
||||||
int ft_printf(const char *format, ...);
|
int ft_printf(const char *format, ...);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/11/07 13:27:46 by jhalford #+# #+# */
|
/* Created: 2016/11/07 13:27:46 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/03/08 11:56:43 by jhalford ### ########.fr */
|
/* Updated: 2017/03/08 11:58:26 by jhalford ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/08/16 13:43:51 by jhalford #+# #+# */
|
/* Created: 2016/08/16 13:43:51 by jhalford #+# #+# */
|
||||||
/* Updated: 2016/11/14 16:11:49 by jhalford ### ########.fr */
|
/* Updated: 2017/03/08 00:35:44 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,7 @@ t_btree *btree_map(t_btree *root, void *(*f)(void *))
|
||||||
|
|
||||||
if (!root)
|
if (!root)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
new = btree_create_node(root->item, root->content_size);
|
new = btree_create_node((*f)(root->item), root->content_size);
|
||||||
new->item = (*f)(new->item);
|
|
||||||
new->left = btree_map(root->left, f);
|
new->left = btree_map(root->left, f);
|
||||||
new->right = btree_map(root->right, f);
|
new->right = btree_map(root->right, f);
|
||||||
return (new);
|
return (new);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/11/04 11:08:55 by jhalford #+# #+# */
|
/* Created: 2016/11/04 11:08:55 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/03/02 17:47:34 by jhalford ### ########.fr */
|
/* Updated: 2017/03/07 22:43:40 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* ft_list_reverse.c :+: :+: :+: */
|
/* ft_list_reverse.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jhalford <marvin@43.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/08/14 13:20:13 by jhalford #+# #+# */
|
/* Created: 2016/08/14 13:20:13 by jhalford #+# #+# */
|
||||||
/* Updated: 2016/11/04 11:09:34 by jhalford ### ########.fr */
|
/* Updated: 2017/03/08 00:31:33 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/11/03 14:57:13 by jhalford #+# #+# */
|
/* Created: 2016/11/03 14:57:13 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/02/09 21:50:08 by jhalford ### ########.fr */
|
/* Updated: 2017/03/08 00:19:43 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:57:03 by jhalford ### ########.fr */
|
/* Updated: 2017/03/08 11:58:32 by jhalford ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/11/29 15:57:38 by jhalford #+# #+# */
|
/* Created: 2016/11/29 15:57:38 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/02/09 21:37:14 by jhalford ### ########.fr */
|
/* Updated: 2017/03/08 00:21:44 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/12/07 14:25:45 by jhalford #+# #+# */
|
/* Created: 2016/12/07 14:25:45 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/01/11 17:49:34 by jhalford ### ########.fr */
|
/* Updated: 2017/03/07 19:58:12 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue