tgrekov-fdf
HIVE fdf May 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/06/13 03:09:23 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
20#include <stdint.h>
21#include <unistd.h>
22
23#ifndef INTERNAL_TYPES_H
24# define INTERNAL_TYPES_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# ifndef intmax_t
64# ifdef __intmax_t
65typedef __intmax_t intmax_t;
66# else
67typedef long int intmax_t;
68# endif
69
70# endif
71
72#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.