aboutsummaryrefslogtreecommitdiff
path: root/include/libft_ht.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-18 16:39:52 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-18 16:39:52 +0200
commitdd0c485ac4975b7dd6d2e230213be1da50d0a065 (patch)
tree5fbd967f8b95c72fbb696bb089c2cc349d28b61f /include/libft_ht.h
parent3c3f1115f6e9a9b914e2dcbd796501ca7ce85342 (diff)
downloadlibft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.tar.gz
libft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.tar.bz2
libft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.zip
Removing unnecessary stuffmalloc
Diffstat (limited to 'include/libft_ht.h')
-rw-r--r--include/libft_ht.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/include/libft_ht.h b/include/libft_ht.h
deleted file mode 100644
index 62f2ee1..0000000
--- a/include/libft_ht.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* libft_ht.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/31 10:36:09 by cacharle #+# #+# */
-/* Updated: 2020/02/19 02:38:28 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#ifndef LIBFT_HT_H
-# define LIBFT_HT_H
-
-# include "libft.h"
-# include "libft_lst.h"
-
-typedef struct s_ftht_content
-{
- char *key;
- void *value;
-} t_ftht_content;
-
-typedef t_ftlst* t_ftht_entry;
-
-typedef struct s_ftht
-{
- t_ftsize size;
- t_ftht_entry *entries;
-} t_ftht;
-
-typedef t_ftuint t_ftht_digest;
-
-t_ftht_digest ft_hthash(t_ftht *ht, char *key);
-
-t_ftht *ft_htnew(t_ftsize size);
-void ft_htdestroy(t_ftht *ht, void (*del)(t_ftht_content*));
-void ft_htdestroy_all(t_ftht *ht);
-void ft_htdestroy_key(t_ftht *ht);
-void *ft_htget(t_ftht *ht, char *key);
-t_ftht_content *ft_htset(t_ftht *ht, char *key, void *value,
- void (*del)(t_ftht_content*));
-void ft_htdelone(t_ftht *ht, char *key,
- void (*del)(t_ftht_content*));
-void ft_htdelone_key(t_ftht *ht, char *key);
-t_ftht_content *ft_htcontent_new(char *key, void *value);
-
-/*
-** internals
-*/
-
-void ft_inter_htdelcontent_key(t_ftht_content *content);
-int ft_inter_htkey_cmp(const void *ref_key,
- const void *content);
-
-#endif