ft_defs.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_defs.h :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2018/10/05 22:22:34 by bchanot #+# #+# */
  9. /* Updated: 2018/10/22 02:46:35 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef FT_DEFS_H
  13. # define FT_DEFS_H
  14. # include <string.h>
  15. # define NO_FLAGS 0
  16. typedef unsigned char t_uint8;
  17. typedef unsigned short t_uint16;
  18. typedef unsigned int t_uint32;
  19. typedef unsigned long long t_uint64;
  20. typedef char t_int8;
  21. typedef short t_int16;
  22. typedef int t_int32;
  23. typedef long long t_int64;
  24. typedef struct s_gnl
  25. {
  26. char *tmp;
  27. int fd;
  28. int eof;
  29. struct s_gnl *next;
  30. } t_gnl;
  31. typedef enum e_bool
  32. {
  33. false,
  34. true
  35. } t_bool;
  36. #endif