193 #if ((defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined (__WATCOMC__) && (defined (_STDINT_H_INCLUDED) || __WATCOMC__ >= 1250)) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)))) && !defined (_PSTDINT_H_INCLUDED) && !defined(_STDINT) 195 #define _PSTDINT_H_INCLUDED 196 # ifndef PRINTF_INT64_MODIFIER 197 # define PRINTF_INT64_MODIFIER "ll" 199 # ifndef PRINTF_INT32_MODIFIER 200 # define PRINTF_INT32_MODIFIER "l" 202 # ifndef PRINTF_INT16_MODIFIER 203 # define PRINTF_INT16_MODIFIER "h" 205 # ifndef PRINTF_INTMAX_MODIFIER 206 # define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 208 # ifndef PRINTF_INT64_HEX_WIDTH 209 # define PRINTF_INT64_HEX_WIDTH "16" 211 # ifndef PRINTF_INT32_HEX_WIDTH 212 # define PRINTF_INT32_HEX_WIDTH "8" 214 # ifndef PRINTF_INT16_HEX_WIDTH 215 # define PRINTF_INT16_HEX_WIDTH "4" 217 # ifndef PRINTF_INT8_HEX_WIDTH 218 # define PRINTF_INT8_HEX_WIDTH "2" 220 # ifndef PRINTF_INT64_DEC_WIDTH 221 # define PRINTF_INT64_DEC_WIDTH "20" 223 # ifndef PRINTF_INT32_DEC_WIDTH 224 # define PRINTF_INT32_DEC_WIDTH "10" 226 # ifndef PRINTF_INT16_DEC_WIDTH 227 # define PRINTF_INT16_DEC_WIDTH "5" 229 # ifndef PRINTF_INT8_DEC_WIDTH 230 # define PRINTF_INT8_DEC_WIDTH "3" 232 # ifndef PRINTF_INTMAX_HEX_WIDTH 233 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT64_HEX_WIDTH 235 # ifndef PRINTF_INTMAX_DEC_WIDTH 236 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT64_DEC_WIDTH 244 # if defined (__WATCOMC__) && __WATCOMC__ >= 1250 245 # if !defined (INT64_C) 246 # define INT64_C(x) (x + (INT64_MAX - INT64_MAX)) 248 # if !defined (UINT64_C) 249 # define UINT64_C(x) (x + (UINT64_MAX - UINT64_MAX)) 251 # if !defined (INT32_C) 252 # define INT32_C(x) (x + (INT32_MAX - INT32_MAX)) 254 # if !defined (UINT32_C) 255 # define UINT32_C(x) (x + (UINT32_MAX - UINT32_MAX)) 257 # if !defined (INT16_C) 258 # define INT16_C(x) (x) 260 # if !defined (UINT16_C) 261 # define UINT16_C(x) (x) 263 # if !defined (INT8_C) 264 # define INT8_C(x) (x) 266 # if !defined (UINT8_C) 267 # define UINT8_C(x) (x) 269 # if !defined (UINT64_MAX) 270 # define UINT64_MAX 18446744073709551615ULL 272 # if !defined (INT64_MAX) 273 # define INT64_MAX 9223372036854775807LL 275 # if !defined (UINT32_MAX) 276 # define UINT32_MAX 4294967295UL 278 # if !defined (INT32_MAX) 279 # define INT32_MAX 2147483647L 281 # if !defined (INTMAX_MAX) 282 # define INTMAX_MAX INT64_MAX 284 # if !defined (INTMAX_MIN) 285 # define INTMAX_MIN INT64_MIN 290 #ifndef _PSTDINT_H_INCLUDED 291 #define _PSTDINT_H_INCLUDED 294 # define SIZE_MAX (~(size_t)0) 304 # define UINT8_MAX 0xff 307 # if (UCHAR_MAX == UINT8_MAX) || defined (S_SPLINT_S) 308 typedef unsigned char uint8_t;
309 # define UINT8_C(v) ((uint8_t) v) 311 # error "Platform not supported" 316 # define INT8_MAX 0x7f 319 # define INT8_MIN INT8_C(0x80) 322 # if (SCHAR_MAX == INT8_MAX) || defined (S_SPLINT_S) 323 typedef signed char int8_t;
324 # define INT8_C(v) ((int8_t) v) 326 # error "Platform not supported" 331 # define UINT16_MAX 0xffff 334 #if (UINT_MAX == UINT16_MAX) || defined (S_SPLINT_S) 335 typedef unsigned int uint16_t;
336 # ifndef PRINTF_INT16_MODIFIER 337 # define PRINTF_INT16_MODIFIER "" 339 # define UINT16_C(v) ((uint16_t) (v)) 340 #elif (USHRT_MAX == UINT16_MAX) 341 typedef unsigned short uint16_t;
342 # define UINT16_C(v) ((uint16_t) (v)) 343 # ifndef PRINTF_INT16_MODIFIER 344 # define PRINTF_INT16_MODIFIER "h" 347 #error "Platform not supported" 352 # define INT16_MAX 0x7fff 355 # define INT16_MIN INT16_C(0x8000) 358 #if (INT_MAX == INT16_MAX) || defined (S_SPLINT_S) 359 typedef signed int int16_t;
360 # define INT16_C(v) ((int16_t) (v)) 361 # ifndef PRINTF_INT16_MODIFIER 362 # define PRINTF_INT16_MODIFIER "" 364 #elif (SHRT_MAX == INT16_MAX) 365 typedef signed short int16_t;
366 # define INT16_C(v) ((int16_t) (v)) 367 # ifndef PRINTF_INT16_MODIFIER 368 # define PRINTF_INT16_MODIFIER "h" 371 #error "Platform not supported" 376 # define UINT32_MAX (0xffffffffUL) 379 #if (ULONG_MAX == UINT32_MAX) || defined (S_SPLINT_S) 380 typedef unsigned long uint32_t;
381 # define UINT32_C(v) v ## UL 382 # ifndef PRINTF_INT32_MODIFIER 383 # define PRINTF_INT32_MODIFIER "l" 385 #elif (UINT_MAX == UINT32_MAX) 386 typedef unsigned int uint32_t;
387 # ifndef PRINTF_INT32_MODIFIER 388 # define PRINTF_INT32_MODIFIER "" 390 # define UINT32_C(v) v ## U 391 #elif (USHRT_MAX == UINT32_MAX) 392 typedef unsigned short uint32_t;
393 # define UINT32_C(v) ((unsigned short) (v)) 394 # ifndef PRINTF_INT32_MODIFIER 395 # define PRINTF_INT32_MODIFIER "" 398 #error "Platform not supported" 403 # define INT32_MAX (0x7fffffffL) 406 # define INT32_MIN INT32_C(0x80000000) 409 #if (LONG_MAX == INT32_MAX) || defined (S_SPLINT_S) 410 typedef signed long int32_t;
411 # define INT32_C(v) v ## L 412 # ifndef PRINTF_INT32_MODIFIER 413 # define PRINTF_INT32_MODIFIER "l" 415 #elif (INT_MAX == INT32_MAX) 416 typedef signed int int32_t;
417 # define INT32_C(v) v 418 # ifndef PRINTF_INT32_MODIFIER 419 # define PRINTF_INT32_MODIFIER "" 421 #elif (SHRT_MAX == INT32_MAX) 422 typedef signed short int32_t;
423 # define INT32_C(v) ((short) (v)) 424 # ifndef PRINTF_INT32_MODIFIER 425 # define PRINTF_INT32_MODIFIER "" 428 #error "Platform not supported" 439 #undef stdint_int64_defined 440 #if (defined(__STDC__) && defined(__STDC_VERSION__)) || defined (S_SPLINT_S) 441 # if (__STDC__ && __STDC_VERSION >= 199901L) || defined (S_SPLINT_S) 442 # define stdint_int64_defined 443 typedef long long int64_t;
444 typedef unsigned long long uint64_t;
445 # define UINT64_C(v) v ## ULL 446 # define INT64_C(v) v ## LL 447 # ifndef PRINTF_INT64_MODIFIER 448 # define PRINTF_INT64_MODIFIER "ll" 453 #if !defined (stdint_int64_defined) 454 # if defined(__GNUC__) 455 # define stdint_int64_defined 456 __extension__
typedef long long int64_t;
457 __extension__
typedef unsigned long long uint64_t;
458 # define UINT64_C(v) v ## ULL 459 # define INT64_C(v) v ## LL 460 # ifndef PRINTF_INT64_MODIFIER 461 # define PRINTF_INT64_MODIFIER "ll" 463 # elif defined(__MWERKS__) || defined (__SUNPRO_C) || defined (__SUNPRO_CC) || defined (__APPLE_CC__) || defined (_LONG_LONG) || defined (_CRAYC) || defined (S_SPLINT_S) 464 # define stdint_int64_defined 465 typedef long long int64_t;
466 typedef unsigned long long uint64_t;
467 # define UINT64_C(v) v ## ULL 468 # define INT64_C(v) v ## LL 469 # ifndef PRINTF_INT64_MODIFIER 470 # define PRINTF_INT64_MODIFIER "ll" 472 # elif (defined(__WATCOMC__) && defined(__WATCOM_INT64__)) || (defined(_MSC_VER) && _INTEGRAL_MAX_BITS >= 64) || (defined (__BORLANDC__) && __BORLANDC__ > 0x460) || defined (__alpha) || defined (__DECC) 473 # define stdint_int64_defined 474 typedef __int64 int64_t;
475 typedef unsigned __int64 uint64_t;
476 # define UINT64_C(v) v ## UI64 477 # define INT64_C(v) v ## I64 478 # ifndef PRINTF_INT64_MODIFIER 479 # define PRINTF_INT64_MODIFIER "I64" 484 #if !defined (LONG_LONG_MAX) && defined (INT64_C) 485 # define LONG_LONG_MAX INT64_C (9223372036854775807) 487 #ifndef ULONG_LONG_MAX 488 # define ULONG_LONG_MAX UINT64_C (18446744073709551615) 491 #if !defined (INT64_MAX) && defined (INT64_C) 492 # define INT64_MAX INT64_C (9223372036854775807) 494 #if !defined (INT64_MIN) && defined (INT64_C) 495 # define INT64_MIN INT64_C (-9223372036854775808) 497 #if !defined (UINT64_MAX) && defined (INT64_C) 498 # define UINT64_MAX UINT64_C (18446744073709551615) 505 #ifndef PRINTF_INT64_HEX_WIDTH 506 # define PRINTF_INT64_HEX_WIDTH "16" 508 #ifndef PRINTF_INT32_HEX_WIDTH 509 # define PRINTF_INT32_HEX_WIDTH "8" 511 #ifndef PRINTF_INT16_HEX_WIDTH 512 # define PRINTF_INT16_HEX_WIDTH "4" 514 #ifndef PRINTF_INT8_HEX_WIDTH 515 # define PRINTF_INT8_HEX_WIDTH "2" 518 #ifndef PRINTF_INT64_DEC_WIDTH 519 # define PRINTF_INT64_DEC_WIDTH "20" 521 #ifndef PRINTF_INT32_DEC_WIDTH 522 # define PRINTF_INT32_DEC_WIDTH "10" 524 #ifndef PRINTF_INT16_DEC_WIDTH 525 # define PRINTF_INT16_DEC_WIDTH "5" 527 #ifndef PRINTF_INT8_DEC_WIDTH 528 # define PRINTF_INT8_DEC_WIDTH "3" 537 #ifdef stdint_int64_defined 538 typedef int64_t intmax_t;
539 typedef uint64_t uintmax_t;
540 # define INTMAX_MAX INT64_MAX 541 # define INTMAX_MIN INT64_MIN 542 # define UINTMAX_MAX UINT64_MAX 543 # define UINTMAX_C(v) UINT64_C(v) 544 # define INTMAX_C(v) INT64_C(v) 545 # ifndef PRINTF_INTMAX_MODIFIER 546 # define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 548 # ifndef PRINTF_INTMAX_HEX_WIDTH 549 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT64_HEX_WIDTH 551 # ifndef PRINTF_INTMAX_DEC_WIDTH 552 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT64_DEC_WIDTH 555 typedef int32_t intmax_t;
556 typedef uint32_t uintmax_t;
557 # define INTMAX_MAX INT32_MAX 558 # define UINTMAX_MAX UINT32_MAX 559 # define UINTMAX_C(v) UINT32_C(v) 560 # define INTMAX_C(v) INT32_C(v) 561 # ifndef PRINTF_INTMAX_MODIFIER 562 # define PRINTF_INTMAX_MODIFIER PRINTF_INT32_MODIFIER 564 # ifndef PRINTF_INTMAX_HEX_WIDTH 565 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT32_HEX_WIDTH 567 # ifndef PRINTF_INTMAX_DEC_WIDTH 568 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT32_DEC_WIDTH 579 #ifndef stdint_least_defined 580 typedef int8_t int_least8_t;
581 typedef uint8_t uint_least8_t;
582 typedef int16_t int_least16_t;
583 typedef uint16_t uint_least16_t;
584 typedef int32_t int_least32_t;
585 typedef uint32_t uint_least32_t;
586 # define PRINTF_LEAST32_MODIFIER PRINTF_INT32_MODIFIER 587 # define PRINTF_LEAST16_MODIFIER PRINTF_INT16_MODIFIER 588 # define UINT_LEAST8_MAX UINT8_MAX 589 # define INT_LEAST8_MAX INT8_MAX 590 # define UINT_LEAST16_MAX UINT16_MAX 591 # define INT_LEAST16_MAX INT16_MAX 592 # define UINT_LEAST32_MAX UINT32_MAX 593 # define INT_LEAST32_MAX INT32_MAX 594 # define INT_LEAST8_MIN INT8_MIN 595 # define INT_LEAST16_MIN INT16_MIN 596 # define INT_LEAST32_MIN INT32_MIN 597 # ifdef stdint_int64_defined 598 typedef int64_t int_least64_t;
599 typedef uint64_t uint_least64_t;
600 # define PRINTF_LEAST64_MODIFIER PRINTF_INT64_MODIFIER 601 # define UINT_LEAST64_MAX UINT64_MAX 602 # define INT_LEAST64_MAX INT64_MAX 603 # define INT_LEAST64_MIN INT64_MIN 606 #undef stdint_least_defined 619 typedef int_least8_t int_fast8_t;
620 typedef uint_least8_t uint_fast8_t;
621 typedef int_least16_t int_fast16_t;
622 typedef uint_least16_t uint_fast16_t;
623 typedef int_least32_t int_fast32_t;
624 typedef uint_least32_t uint_fast32_t;
625 #define UINT_FAST8_MAX UINT_LEAST8_MAX 626 #define INT_FAST8_MAX INT_LEAST8_MAX 627 #define UINT_FAST16_MAX UINT_LEAST16_MAX 628 #define INT_FAST16_MAX INT_LEAST16_MAX 629 #define UINT_FAST32_MAX UINT_LEAST32_MAX 630 #define INT_FAST32_MAX INT_LEAST32_MAX 631 #define INT_FAST8_MIN INT_LEAST8_MIN 632 #define INT_FAST16_MIN INT_LEAST16_MIN 633 #define INT_FAST32_MIN INT_LEAST32_MIN 634 #ifdef stdint_int64_defined 635 typedef int_least64_t int_fast64_t;
636 typedef uint_least64_t uint_fast64_t;
637 # define UINT_FAST64_MAX UINT_LEAST64_MAX 638 # define INT_FAST64_MAX INT_LEAST64_MAX 639 # define INT_FAST64_MIN INT_LEAST64_MIN 642 #undef stdint_int64_defined 649 #if defined(__WATCOMC__) || defined(_MSC_VER) || defined (__GNUC__) 655 # define WCHAR_MAX ((wchar_t)-1) 664 #if defined (_MSC_VER) && defined (_UINTPTR_T_DEFINED) 665 # define STDINT_H_UINTPTR_T_DEFINED 668 #ifndef STDINT_H_UINTPTR_T_DEFINED 669 # if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (_WIN64) 670 # define stdint_intptr_bits 64 671 # elif defined (__WATCOMC__) || defined (__TURBOC__) 672 # if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__) 673 # define stdint_intptr_bits 16 675 # define stdint_intptr_bits 32 677 # elif defined (__i386__) || defined (_WIN32) || defined (WIN32) 678 # define stdint_intptr_bits 32 679 # elif defined (__INTEL_COMPILER) 683 # ifdef stdint_intptr_bits 684 # define stdint_intptr_glue3_i(a,b,c) a##b##c 685 # define stdint_intptr_glue3(a,b,c) stdint_intptr_glue3_i(a,b,c) 686 # ifndef PRINTF_INTPTR_MODIFIER 687 # define PRINTF_INTPTR_MODIFIER stdint_intptr_glue3(PRINTF_INT,stdint_intptr_bits,_MODIFIER) 690 # define PTRDIFF_MAX stdint_intptr_glue3(INT,stdint_intptr_bits,_MAX) 693 # define PTRDIFF_MIN stdint_intptr_glue3(INT,stdint_intptr_bits,_MIN) 696 # define UINTPTR_MAX stdint_intptr_glue3(UINT,stdint_intptr_bits,_MAX) 699 # define INTPTR_MAX stdint_intptr_glue3(INT,stdint_intptr_bits,_MAX) 702 # define INTPTR_MIN stdint_intptr_glue3(INT,stdint_intptr_bits,_MIN) 705 # define INTPTR_C(x) stdint_intptr_glue3(INT,stdint_intptr_bits,_C)(x) 708 # define UINTPTR_C(x) stdint_intptr_glue3(UINT,stdint_intptr_bits,_C)(x) 710 typedef stdint_intptr_glue3(uint,stdint_intptr_bits,_t) uintptr_t;
711 typedef stdint_intptr_glue3(
int,stdint_intptr_bits,_t) intptr_t;
715 typedef ptrdiff_t intptr_t;
717 # define STDINT_H_UINTPTR_T_DEFINED 724 #ifndef SIG_ATOMIC_MAX 725 # define SIG_ATOMIC_MAX ((((sig_atomic_t) 1) << (sizeof (sig_atomic_t)*CHAR_BIT-1)) - 1)