diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-03 07:19:25 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-03 07:19:25 +0200 |
| commit | d2feec1f97e9f8f201e56ad33662bb663c328a0a (patch) | |
| tree | f97690082352bb1752d867d66f21a7bee1ef126c /include/libft_def.h | |
| parent | 948c0953527fe3bef28904b38a16a9e4342e7e98 (diff) | |
| download | libft-d2feec1f97e9f8f201e56ad33662bb663c328a0a.tar.gz libft-d2feec1f97e9f8f201e56ad33662bb663c328a0a.tar.bz2 libft-d2feec1f97e9f8f201e56ad33662bb663c328a0a.zip | |
Changing hash table del function to regular one with a first order internal function, removing a few typedef to instead use standard types
Diffstat (limited to 'include/libft_def.h')
| -rw-r--r-- | include/libft_def.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/libft_def.h b/include/libft_def.h new file mode 100644 index 0000000..69a7655 --- /dev/null +++ b/include/libft_def.h @@ -0,0 +1,36 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* libft_def.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/01/31 10:36:56 by cacharle #+# #+# */ +/* Updated: 2020/04/03 07:04:57 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef LIBFT_DEF_H +# define LIBFT_DEF_H + +# include <stddef.h> +# include <stdbool.h> + +# define TRUE 1 +# define FALSE 0 + +typedef unsigned char t_ftbyte; +typedef int t_ftbool; +typedef unsigned int t_ftsize; + +typedef char t_ftchar; +typedef unsigned char t_ftuchar; +typedef int t_ftint; +typedef unsigned int t_ftuint; +typedef long int t_ftlong; +typedef unsigned long int t_ftulong; + +typedef void (*t_ftdel_func)(void*); +typedef int (*t_ftcompar_func)(const void*, const void*); + +#endif |
