tgrekov-push_swap
HIVE push_swap July 2024
Loading...
Searching...
No Matches
internal_types.h
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* internal_types.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/01/09 20:40:21 by tgrekov #+# #+# */
9/* Updated: 2024/07/11 08:16:09 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
20#ifndef INTERNAL_TYPES_H
21# define INTERNAL_TYPES_H
22
23# include <stdint.h>
24# include <unistd.h>
25
29typedef long long t_biggest;
34typedef unsigned long long t_ubiggest;
38# define T_BIGGEST_MAX 9223372036854775807LL
39
43# ifdef _WCHAR_H_
44
45typedef wint_t t_wint_t;
46# else
47
48typedef int t_wint_t;
49# endif
50
55# ifdef _PTRDIFF_T
56
57typedef ptrdiff_t t_ptrdiff_t;
58# else
59
60typedef long t_ptrdiff_t;
61# endif
62
63# ifdef intmax_t
64
65typedef intmax_t t_intmax_t;
66# else
67
68typedef long int t_intmax_t;
69# endif
70
71#endif
int t_wint_t
If _WCHAR_H_ is defined, set to wint_t. Set to int otherwise.
long long t_biggest
Convenience typedef for largest signed type I need to handle.
unsigned long long t_ubiggest
Convenience typedef for largest unsigned type I need to handle.
long t_ptrdiff_t
If _PTRDIFF_T is defined, set to ptrdiff_t. Set to long otherwise.