Debian Codegraph @

headers/cstdint

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_CSTDINT_H
17 #define CPPREFERENCE_CSTDINT_H
18
19 #if CPPREFERENCE_STDVER>= 2011
20 // impl-defined
21 #define PTRDIFF_MIN 0
22 #define PTRDIFF_MAX 0
23 #define SIZE_MAX 0
24 #define SIG_ATOMIC_MIN 0
25 #define SIG_ATOMIC_MAX 0
26 #define WCHAR_MIN 0
27 #define WCHAR_MAX 0
28 #define WINT_MIN 0
29 #define WINT_MAX 0
30
31 #define INT8_MIN 0
32 #define INT16_MIN 0
33 #define INT32_MIN 0
34 #define INT64_MIN 0
35 #define INT_LEAST8_MIN 0
36 #define INT_LEAST16_MIN 0
37 #define INT_LEAST32_MIN 0
38 #define INT_LEAST64_MIN 0
39 #define INT_FAST8_MIN 0
40 #define INT_FAST16_MIN 0
41 #define INT_FAST32_MIN 0
42 #define INT_FAST64_MIN 0
43 #define INTPTR_MIN 0
44 #define INTMAX_MIN 0
45
46 #define INT8_MAX 0
47 #define INT16_MAX 0
48 #define INT32_MAX 0
49 #define INT64_MAX 0
50 #define INT_LEAST8_MAX 0
51 #define INT_LEAST16_MAX 0
52 #define INT_LEAST32_MAX 0
53 #define INT_LEAST64_MAX 0
54 #define INT_FAST8_MAX 0
55 #define INT_FAST16_MAX 0
56 #define INT_FAST32_MAX 0
57 #define INT_FAST64_MAX 0
58 #define INTPTR_MAX 0
59 #define INTMAX_MAX 0
60
61 #define UINT8_MIN 0
62 #define UINT16_MIN 0
63 #define UINT32_MIN 0
64 #define UINT64_MIN 0
65 #define UINT_LEAST8_MIN 0
66 #define UINT_LEAST16_MIN 0
67 #define UINT_LEAST32_MIN 0
68 #define UINT_LEAST64_MIN 0
69 #define UINT_FAST8_MIN 0
70 #define UINT_FAST16_MIN 0
71 #define UINT_FAST32_MIN 0
72 #define UINT_FAST64_MIN 0
73 #define UINTPTR_MIN 0
74 #define UINTMAX_MIN 0
75
76 #define UINT8_MAX 0
77 #define UINT16_MAX 0
78 #define UINT32_MAX 0
79 #define UINT64_MAX 0
80 #define UINT_LEAST8_MAX 0
81 #define UINT_LEAST16_MAX 0
82 #define UINT_LEAST32_MAX 0
83 #define UINT_LEAST64_MAX 0
84 #define UINT_FAST8_MAX 0
85 #define UINT_FAST16_MAX 0
86 #define UINT_FAST32_MAX 0
87 #define UINT_FAST64_MAX 0
88 #define UINTPTR_MAX 0
89 #define UINTMAX_MAX 0
90
91 #define INT8_C(x) x
92 #define INT16_C(x) x
93 #define INT32_C(x) x
94 #define INT64_C(x) x
95 #define INTMAX_C(x) x
96 #define UINT8_C(x) x
97 #define UINT16_C(x) x
98 #define UINT32_C(x) x
99 #define UINT64_C(x) x
100 #define UINTMAX_C(x) x
101
102 namespace std {
103 // dummy typedefs
104
105 typedef char int8_t;
106 typedef short int16_t;
107 typedef int int32_t;
108 typedef long long int64_t;
109
110 typedef char int_least8_t;
111 typedef short int_least16_t;
112 typedef int int_least32_t;
113 typedef long long int_least64_t;
114
115 typedef char int_fast8_t;
116 typedef short int_fast16_t;
117 typedef int int_fast32_t;
118 typedef long long int_fast64_t;
119
120 typedef unsigned char uint8_t;
121 typedef unsigned short uint16_t;
122 typedef unsigned int uint32_t;
123 typedef unsigned long long uint64_t;
124
125 typedef unsigned char uint_least8_t;
126 typedef unsigned short uint_least16_t;
127 typedef unsigned int uint_least32_t;
128 typedef unsigned long long uint_least64_t;
129
130 typedef unsigned char uint_fast8_t;
131 typedef unsigned short uint_fast16_t;
132 typedef unsigned int uint_fast32_t;
133 typedef unsigned long long uint_fast64_t;
134
135 typedef long long intptr_t;
136 typedef unsigned long long uintptr_t;
137
138 typedef long long intmax_t;
139 typedef unsigned long long uintmax_t;
140
141
142 } // namespace std
143 #endif // CPPREFERENCE_STDVER>= 2011
144
145 #endif // CPPREFERENCE_CSTDINT_H