1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
|
// SPDX-License-Identifier: MPL-2.0
// (c) Hare authors <https://harelang.org>
use types;
// Integer type compatible with signed char, as specified by ISO/IEC 9899.
//
// This is an alias of i8 on all platforms.
export type schar = i8;
// Minimum value which can be stored in an [[schar]] type.
export def SCHAR_MIN: schar = types::I8_MIN;
// Maximum value which can be stored in an [[schar]] type.
export def SCHAR_MAX: schar = types::I8_MAX;
// Integer type compatible with unsigned char, as specified by ISO/IEC 9899.
//
// This is an alias of u8 on all platforms.
export type uchar = u8;
// Minimum value which can be stored in a [[uchar]] type.
export def UCHAR_MIN: uchar = types::U8_MIN;
// Maximum value which can be stored in a [[uchar]] type.
export def UCHAR_MAX: uchar = types::U8_MAX;
// Integer type compatible with char8_t, as defined in <uchar.h> and specified
// by ISO/IEC 9899.
//
// This is an alias of [[uchar]] (which aliases u8) on all platforms.
export type char8 = uchar;
// Minimum value which can be stored in a [[char8]] type.
export def CHAR8_MIN: char8 = UCHAR_MIN;
// Maximum value which can be stored in a [[char8]] type.
export def CHAR8_MAX: char8 = UCHAR_MAX;
// Integer type compatible with char16_t, as defined in <uchar.h> and specified
// by ISO/IEC 9899.
//
// This is an alias of [[uint_least16]] (which aliases u16) on all platforms.
export type char16 = uint_least16;
// Minimum value which can be stored in a [[char16]] type.
export def CHAR16_MIN: char16 = UINT_LEAST16_MIN;
// Maximum value which can be stored in a [[char16]] type.
export def CHAR16_MAX: char16 = UINT_LEAST16_MAX;
// Integer type compatible with char32_t, as defined in <uchar.h> and specified
// by ISO/IEC 9899.
//
// This is an alias of [[uint_least32]] (which aliases u32) on all platforms.
export type char32 = uint_least32;
// Minimum value which can be stored in a [[char32]] type.
export def CHAR32_MIN: char32 = UINT_LEAST32_MIN;
// Maximum value which can be stored in a [[char32]] type.
export def CHAR32_MAX: char32 = UINT_LEAST32_MAX;
// Integer type compatible with intmax_t, as defined in <stdint.h> and specified
// by ISO/IEC 9899.
//
// Note that this type isn't necessarily the actual maximum integer type. This
// type should only be used when required for C interop.
export type intmax = i64;
// Minimum value which can be stored in an [[intmax]] type.
export def INTMAX_MIN: intmax = types::I64_MIN;
// Maximum value which can be stored in an [[intmax]] type.
export def INTMAX_MAX: intmax = types::I64_MAX;
// Integer type compatible with uintmax_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// Note that this type isn't necessarily the actual maximum integer type. This
// type should only be used when required for C interop.
export type uintmax = u64;
// Minimum value which can be stored in a [[uintmax]] type.
export def UINTMAX_MIN: uintmax = types::U64_MIN;
// Maximum value which can be stored in a [[uintmax]] type.
export def UINTMAX_MAX: uintmax = types::U64_MAX;
// Integer type compatible with int_least8_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of i8 on all platforms.
export type int_least8 = i8;
// Minimum value which can be stored in an [[int_least8]] type.
export def INT_LEAST8_MIN: int_least8 = types::I8_MIN;
// Maximum value which can be stored in an [[int_least8]] type.
export def INT_LEAST8_MAX: int_least8 = types::I8_MAX;
// Integer type compatible with int_least16_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of i16 on all platforms.
export type int_least16 = i16;
// Minimum value which can be stored in an [[int_least16]] type.
export def INT_LEAST16_MIN: int_least16 = types::I16_MIN;
// Maximum value which can be stored in an [[int_least16]] type.
export def INT_LEAST16_MAX: int_least16 = types::I16_MAX;
// Integer type compatible with int_least32_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of i32 on all platforms.
export type int_least32 = i32;
// Minimum value which can be stored in an [[int_least32]] type.
export def INT_LEAST32_MIN: int_least32 = types::I32_MIN;
// Maximum value which can be stored in an [[int_least32]] type.
export def INT_LEAST32_MAX: int_least32 = types::I32_MAX;
// Integer type compatible with int_least64_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of i64 on all platforms.
export type int_least64 = i64;
// Minimum value which can be stored in an [[int_least64]] type.
export def INT_LEAST64_MIN: int_least64 = types::I64_MIN;
// Maximum value which can be stored in an [[int_least64]] type.
export def INT_LEAST64_MAX: int_least64 = types::I64_MAX;
// Integer type compatible with uint_least8_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of u8 on all platforms.
export type uint_least8 = u8;
// Minimum value which can be stored in a [[uint_least8]] type.
export def UINT_LEAST8_MIN: uint_least8 = types::U8_MIN;
// Maximum value which can be stored in a [[uint_least8]] type.
export def UINT_LEAST8_MAX: uint_least8 = types::U8_MAX;
// Integer type compatible with uint_least16_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of u16 on all platforms.
export type uint_least16 = u16;
// Minimum value which can be stored in a [[uint_least16]] type.
export def UINT_LEAST16_MIN: uint_least16 = types::U16_MIN;
// Maximum value which can be stored in a [[uint_least16]] type.
export def UINT_LEAST16_MAX: uint_least16 = types::U16_MAX;
// Integer type compatible with uint_least32_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of u32 on all platforms.
export type uint_least32 = u32;
// Minimum value which can be stored in a [[uint_least32]] type.
export def UINT_LEAST32_MIN: uint_least32 = types::U32_MIN;
// Maximum value which can be stored in a [[uint_least32]] type.
export def UINT_LEAST32_MAX: uint_least32 = types::U32_MAX;
// Integer type compatible with uint_least64_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
//
// This is an alias of u64 on all platforms.
export type uint_least64 = u64;
// Minimum value which can be stored in a [[uint_least64]] type.
export def UINT_LEAST64_MIN: uint_least64 = types::U64_MIN;
// Maximum value which can be stored in a [[uint_least64]] type.
export def UINT_LEAST64_MAX: uint_least64 = types::U64_MAX;
// Integer type compatible with int_fast8_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type int_fast8 = i8;
// Minimum value which can be stored in an [[int_fast8]] type.
export def INT_FAST8_MIN: int_fast8 = types::I8_MIN;
// Maximum value which can be stored in an [[int_fast8]] type.
export def INT_FAST8_MAX: int_fast8 = types::I8_MAX;
// Integer type compatible with int_fast16_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type int_fast16 = i16;
// Minimum value which can be stored in an [[int_fast16]] type.
export def INT_FAST16_MIN: int_fast16 = types::I16_MIN;
// Maximum value which can be stored in an [[int_fast16]] type.
export def INT_FAST16_MAX: int_fast16 = types::I16_MAX;
// Integer type compatible with int_fast32_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type int_fast32 = i32;
// Minimum value which can be stored in an [[int_fast32]] type.
export def INT_FAST32_MIN: int_fast32 = types::I32_MIN;
// Maximum value which can be stored in an [[int_fast32]] type.
export def INT_FAST32_MAX: int_fast32 = types::I32_MAX;
// Integer type compatible with int_fast64_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type int_fast64 = i64;
// Minimum value which can be stored in an [[int_fast64]] type.
export def INT_FAST64_MIN: int_fast64 = types::I64_MIN;
// Maximum value which can be stored in an [[int_fast64]] type.
export def INT_FAST64_MAX: int_fast64 = types::I64_MAX;
// Integer type compatible with uint_fast8_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type uint_fast8 = u8;
// Minimum value which can be stored in a [[uint_fast8]] type.
export def UINT_FAST8_MIN: uint_fast8 = types::U8_MIN;
// Maximum value which can be stored in a [[uint_fast8]] type.
export def UINT_FAST8_MAX: uint_fast8 = types::U8_MAX;
// Integer type compatible with uint_fast16_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type uint_fast16 = u16;
// Minimum value which can be stored in a [[uint_fast16]] type.
export def UINT_FAST16_MIN: uint_fast16 = types::U16_MIN;
// Maximum value which can be stored in a [[uint_fast16]] type.
export def UINT_FAST16_MAX: uint_fast16 = types::U16_MAX;
// Integer type compatible with uint_fast32_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type uint_fast32 = u32;
// Minimum value which can be stored in a [[uint_fast32]] type.
export def UINT_FAST32_MIN: uint_fast32 = types::U32_MIN;
// Maximum value which can be stored in a [[uint_fast32]] type.
export def UINT_FAST32_MAX: uint_fast32 = types::U32_MAX;
// Integer type compatible with uint_fast64_t, as defined in <stdint.h> and
// specified by ISO/IEC 9899.
export type uint_fast64 = u64;
// Minimum value which can be stored in a [[uint_fast64]] type.
export def UINT_FAST64_MIN: uint_fast64 = types::U64_MIN;
// Maximum value which can be stored in a [[uint_fast64]] type.
export def UINT_FAST64_MAX: uint_fast64 = types::U64_MAX;
// Integer type compatible with sig_atomic_t, as defined in <signal.h> and
// specified by ISO/IEC 9899.
export type sig_atomic = int;
// Minimum value which can be stored in a [[sig_atomic]] type.
export def SIG_ATOMIC_MIN: sig_atomic = types::INT_MIN;
// Maximum value which can be stored in a [[sig_atomic]] type.
export def SIG_ATOMIC_MAX: sig_atomic = types::INT_MAX;
// Integer type compatible with wchar_t, as defined in <stddef.h> and specified
// by ISO/IEC 9899.
export type wchar = i32;
// Minimum value which can be stored in a [[wchar]] type.
export def WCHAR_MIN: wchar = types::I32_MIN;
// Maximum value which can be stored in a [[wchar]] type.
export def WCHAR_MAX: wchar = types::I32_MAX;
// Integer type compatible with wint_t, as defined in <wchar.h> and specified
// by ISO/IEC 9899.
export type wint = u32;
// Minimum value which can be stored in a [[wint]] type.
export def WINT_MIN: wint = types::U32_MIN;
// Maximum value which can be stored in a [[wint]] type.
export def WINT_MAX: wint = types::U32_MAX;
|