200 #if ((defined(__SUNPRO_C) && __SUNPRO_C >= 0x570) || (defined(_MSC_VER) && _MSC_VER >= 1600) || (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || (defined (__WATCOMC__) && (defined (_STDINT_H_INCLUDED) || __WATCOMC__ >= 1250)) || (defined(__GNUC__) && (__GNUC__ > 3 || defined(_STDINT_H) || defined(_STDINT_H_) || defined (__UINT_FAST64_TYPE__)) )) && !defined (_PSTDINT_H_INCLUDED) 202 #define _PSTDINT_H_INCLUDED 203 # if defined(__GNUC__) && (defined(__x86_64__) || defined(__ppc64__)) && !(defined(__APPLE__) && defined(__MACH__)) 204 # ifndef PRINTF_INT64_MODIFIER 205 # define PRINTF_INT64_MODIFIER "l" 207 # ifndef PRINTF_INT32_MODIFIER 208 # define PRINTF_INT32_MODIFIER "" 211 # ifndef PRINTF_INT64_MODIFIER 212 # define PRINTF_INT64_MODIFIER "ll" 214 # ifndef PRINTF_INT32_MODIFIER 215 # if (UINT_MAX == UINT32_MAX) 216 # define PRINTF_INT32_MODIFIER "" 218 # define PRINTF_INT32_MODIFIER "l" 222 # ifndef PRINTF_INT16_MODIFIER 223 # define PRINTF_INT16_MODIFIER "h" 225 # ifndef PRINTF_INTMAX_MODIFIER 226 # define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 228 # ifndef PRINTF_INT64_HEX_WIDTH 229 # define PRINTF_INT64_HEX_WIDTH "16" 231 # ifndef PRINTF_UINT64_HEX_WIDTH 232 # define PRINTF_UINT64_HEX_WIDTH "16" 234 # ifndef PRINTF_INT32_HEX_WIDTH 235 # define PRINTF_INT32_HEX_WIDTH "8" 237 # ifndef PRINTF_UINT32_HEX_WIDTH 238 # define PRINTF_UINT32_HEX_WIDTH "8" 240 # ifndef PRINTF_INT16_HEX_WIDTH 241 # define PRINTF_INT16_HEX_WIDTH "4" 243 # ifndef PRINTF_UINT16_HEX_WIDTH 244 # define PRINTF_UINT16_HEX_WIDTH "4" 246 # ifndef PRINTF_INT8_HEX_WIDTH 247 # define PRINTF_INT8_HEX_WIDTH "2" 249 # ifndef PRINTF_UINT8_HEX_WIDTH 250 # define PRINTF_UINT8_HEX_WIDTH "2" 252 # ifndef PRINTF_INT64_DEC_WIDTH 253 # define PRINTF_INT64_DEC_WIDTH "19" 255 # ifndef PRINTF_UINT64_DEC_WIDTH 256 # define PRINTF_UINT64_DEC_WIDTH "20" 258 # ifndef PRINTF_INT32_DEC_WIDTH 259 # define PRINTF_INT32_DEC_WIDTH "10" 261 # ifndef PRINTF_UINT32_DEC_WIDTH 262 # define PRINTF_UINT32_DEC_WIDTH "10" 264 # ifndef PRINTF_INT16_DEC_WIDTH 265 # define PRINTF_INT16_DEC_WIDTH "5" 267 # ifndef PRINTF_UINT16_DEC_WIDTH 268 # define PRINTF_UINT16_DEC_WIDTH "5" 270 # ifndef PRINTF_INT8_DEC_WIDTH 271 # define PRINTF_INT8_DEC_WIDTH "3" 273 # ifndef PRINTF_UINT8_DEC_WIDTH 274 # define PRINTF_UINT8_DEC_WIDTH "3" 276 # ifndef PRINTF_INTMAX_HEX_WIDTH 277 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_UINT64_HEX_WIDTH 279 # ifndef PRINTF_UINTMAX_HEX_WIDTH 280 # define PRINTF_UINTMAX_HEX_WIDTH PRINTF_UINT64_HEX_WIDTH 282 # ifndef PRINTF_INTMAX_DEC_WIDTH 283 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_UINT64_DEC_WIDTH 285 # ifndef PRINTF_UINTMAX_DEC_WIDTH 286 # define PRINTF_UINTMAX_DEC_WIDTH PRINTF_UINT64_DEC_WIDTH 294 # if defined (__WATCOMC__) && __WATCOMC__ >= 1250 295 # if !defined (INT64_C) 296 # define INT64_C(x) (x + (INT64_MAX - INT64_MAX)) 298 # if !defined (UINT64_C) 299 # define UINT64_C(x) (x + (UINT64_MAX - UINT64_MAX)) 301 # if !defined (INT32_C) 302 # define INT32_C(x) (x + (INT32_MAX - INT32_MAX)) 304 # if !defined (UINT32_C) 305 # define UINT32_C(x) (x + (UINT32_MAX - UINT32_MAX)) 307 # if !defined (INT16_C) 308 # define INT16_C(x) (x) 310 # if !defined (UINT16_C) 311 # define UINT16_C(x) (x) 313 # if !defined (INT8_C) 314 # define INT8_C(x) (x) 316 # if !defined (UINT8_C) 317 # define UINT8_C(x) (x) 319 # if !defined (UINT64_MAX) 320 # define UINT64_MAX 18446744073709551615ULL 322 # if !defined (INT64_MAX) 323 # define INT64_MAX 9223372036854775807LL 325 # if !defined (UINT32_MAX) 326 # define UINT32_MAX 4294967295UL 328 # if !defined (INT32_MAX) 329 # define INT32_MAX 2147483647L 331 # if !defined (INTMAX_MAX) 332 # define INTMAX_MAX INT64_MAX 334 # if !defined (INTMAX_MIN) 335 # define INTMAX_MIN INT64_MIN 349 #if (defined(__SUNPRO_C) && __SUNPRO_C >= 0x420) && !defined(_PSTDINT_H_INCLUDED) 350 #include <sys/inttypes.h> 351 #define _PSTDINT_H_INCLUDED 354 #ifndef _PSTDINT_H_INCLUDED 355 #define _PSTDINT_H_INCLUDED 358 # define SIZE_MAX (~(size_t)0) 368 # define UINT8_MAX 0xff 370 #if !defined(uint8_t) && !defined(_UINT8_T) && !defined(vxWorks) 371 # if (UCHAR_MAX == UINT8_MAX) || defined (S_SPLINT_S) 372 typedef unsigned char uint8_t;
373 # define UINT8_C(v) ((uint8_t) v) 375 # error "Platform not supported" 380 # define INT8_MAX 0x7f 383 # define INT8_MIN INT8_C(0x80) 385 #if !defined(int8_t) && !defined(_INT8_T) && !defined(vxWorks) 386 # if (SCHAR_MAX == INT8_MAX) || defined (S_SPLINT_S) 387 typedef signed char int8_t;
388 # define INT8_C(v) ((int8_t) v) 390 # error "Platform not supported" 395 # define UINT16_MAX 0xffff 397 #if !defined(uint16_t) && !defined(_UINT16_T) && !defined(vxWorks) 398 #if (UINT_MAX == UINT16_MAX) || defined (S_SPLINT_S) 399 typedef unsigned int uint16_t;
400 # ifndef PRINTF_INT16_MODIFIER 401 # define PRINTF_INT16_MODIFIER "" 403 # define UINT16_C(v) ((uint16_t) (v)) 404 #elif (USHRT_MAX == UINT16_MAX) 405 typedef unsigned short uint16_t;
406 # define UINT16_C(v) ((uint16_t) (v)) 407 # ifndef PRINTF_INT16_MODIFIER 408 # define PRINTF_INT16_MODIFIER "h" 411 #error "Platform not supported" 416 # define INT16_MAX 0x7fff 419 # define INT16_MIN INT16_C(0x8000) 421 #if !defined(int16_t) && !defined(_INT16_T) && !defined(vxWorks) 422 #if (INT_MAX == INT16_MAX) || defined (S_SPLINT_S) 423 typedef signed int int16_t;
424 # define INT16_C(v) ((int16_t) (v)) 425 # ifndef PRINTF_INT16_MODIFIER 426 # define PRINTF_INT16_MODIFIER "" 428 #elif (SHRT_MAX == INT16_MAX) 429 typedef signed short int16_t;
430 # define INT16_C(v) ((int16_t) (v)) 431 # ifndef PRINTF_INT16_MODIFIER 432 # define PRINTF_INT16_MODIFIER "h" 435 #error "Platform not supported" 440 # define UINT32_MAX (0xffffffffUL) 442 #if !defined(uint32_t) && !defined(_UINT32_T) && !defined(vxWorks) 443 #if (ULONG_MAX == UINT32_MAX) || defined (S_SPLINT_S) 444 typedef unsigned long uint32_t;
445 # define UINT32_C(v) v ## UL 446 # ifndef PRINTF_INT32_MODIFIER 447 # define PRINTF_INT32_MODIFIER "l" 449 #elif (UINT_MAX == UINT32_MAX) 450 typedef unsigned int uint32_t;
451 # ifndef PRINTF_INT32_MODIFIER 452 # define PRINTF_INT32_MODIFIER "" 454 # define UINT32_C(v) v ## U 455 #elif (USHRT_MAX == UINT32_MAX) 456 typedef unsigned short uint32_t;
457 # define UINT32_C(v) ((unsigned short) (v)) 458 # ifndef PRINTF_INT32_MODIFIER 459 # define PRINTF_INT32_MODIFIER "" 462 #error "Platform not supported" 467 # define INT32_MAX (0x7fffffffL) 470 # define INT32_MIN INT32_C(0x80000000) 472 #if !defined(int32_t) && !defined(_INT32_T) && !defined(vxWorks) 473 #if (LONG_MAX == INT32_MAX) || defined (S_SPLINT_S) 474 typedef signed long int32_t;
475 # define INT32_C(v) v ## L 476 # ifndef PRINTF_INT32_MODIFIER 477 # define PRINTF_INT32_MODIFIER "l" 479 #elif (INT_MAX == INT32_MAX) 480 typedef signed int int32_t;
481 # define INT32_C(v) v 482 # ifndef PRINTF_INT32_MODIFIER 483 # define PRINTF_INT32_MODIFIER "" 485 #elif (SHRT_MAX == INT32_MAX) 486 typedef signed short int32_t;
487 # define INT32_C(v) ((short) (v)) 488 # ifndef PRINTF_INT32_MODIFIER 489 # define PRINTF_INT32_MODIFIER "" 492 #error "Platform not supported" 503 #undef stdint_int64_defined 504 #if (defined(__STDC__) && defined(__STDC_VERSION__)) || defined (S_SPLINT_S) 505 # if (__STDC__ && __STDC_VERSION__ >= 199901L) || defined (S_SPLINT_S) 506 # define stdint_int64_defined 507 typedef long long int64_t;
508 typedef unsigned long long uint64_t;
509 # define UINT64_C(v) v ## ULL 510 # define INT64_C(v) v ## LL 511 # ifndef PRINTF_INT64_MODIFIER 512 # define PRINTF_INT64_MODIFIER "ll" 517 #if !defined (stdint_int64_defined) 518 # if defined(__GNUC__) && !defined(vxWorks) 519 # define stdint_int64_defined 520 __extension__
typedef long long int64_t;
521 __extension__
typedef unsigned long long uint64_t;
522 # define UINT64_C(v) v ## ULL 523 # define INT64_C(v) v ## LL 524 # ifndef PRINTF_INT64_MODIFIER 525 # define PRINTF_INT64_MODIFIER "ll" 527 # elif defined(__MWERKS__) || defined (__SUNPRO_C) || defined (__SUNPRO_CC) || defined (__APPLE_CC__) || defined (_LONG_LONG) || defined (_CRAYC) || defined (S_SPLINT_S) 528 # define stdint_int64_defined 529 typedef long long int64_t;
530 typedef unsigned long long uint64_t;
531 # define UINT64_C(v) v ## ULL 532 # define INT64_C(v) v ## LL 533 # ifndef PRINTF_INT64_MODIFIER 534 # define PRINTF_INT64_MODIFIER "ll" 536 # elif (defined(__WATCOMC__) && defined(__WATCOM_INT64__)) || (defined(_MSC_VER) && _INTEGRAL_MAX_BITS >= 64) || (defined (__BORLANDC__) && __BORLANDC__ > 0x460) || defined (__alpha) || defined (__DECC) 537 # define stdint_int64_defined 538 typedef __int64 int64_t;
539 typedef unsigned __int64 uint64_t;
540 # define UINT64_C(v) v ## UI64 541 # define INT64_C(v) v ## I64 542 # ifndef PRINTF_INT64_MODIFIER 543 # define PRINTF_INT64_MODIFIER "I64" 548 #if !defined (LONG_LONG_MAX) && defined (INT64_C) 549 # define LONG_LONG_MAX INT64_C (9223372036854775807) 551 #ifndef ULONG_LONG_MAX 552 # define ULONG_LONG_MAX UINT64_C (18446744073709551615) 555 #if !defined (INT64_MAX) && defined (INT64_C) 556 # define INT64_MAX INT64_C (9223372036854775807) 558 #if !defined (INT64_MIN) && defined (INT64_C) 559 # define INT64_MIN INT64_C (-9223372036854775808) 561 #if !defined (UINT64_MAX) && defined (INT64_C) 562 # define UINT64_MAX UINT64_C (18446744073709551615) 569 #ifndef PRINTF_INT64_HEX_WIDTH 570 # define PRINTF_INT64_HEX_WIDTH "16" 572 #ifndef PRINTF_INT32_HEX_WIDTH 573 # define PRINTF_INT32_HEX_WIDTH "8" 575 #ifndef PRINTF_INT16_HEX_WIDTH 576 # define PRINTF_INT16_HEX_WIDTH "4" 578 #ifndef PRINTF_INT8_HEX_WIDTH 579 # define PRINTF_INT8_HEX_WIDTH "2" 581 #ifndef PRINTF_INT64_DEC_WIDTH 582 # define PRINTF_INT64_DEC_WIDTH "19" 584 #ifndef PRINTF_INT32_DEC_WIDTH 585 # define PRINTF_INT32_DEC_WIDTH "10" 587 #ifndef PRINTF_INT16_DEC_WIDTH 588 # define PRINTF_INT16_DEC_WIDTH "5" 590 #ifndef PRINTF_INT8_DEC_WIDTH 591 # define PRINTF_INT8_DEC_WIDTH "3" 593 #ifndef PRINTF_UINT64_DEC_WIDTH 594 # define PRINTF_UINT64_DEC_WIDTH "20" 596 #ifndef PRINTF_UINT32_DEC_WIDTH 597 # define PRINTF_UINT32_DEC_WIDTH "10" 599 #ifndef PRINTF_UINT16_DEC_WIDTH 600 # define PRINTF_UINT16_DEC_WIDTH "5" 602 #ifndef PRINTF_UINT8_DEC_WIDTH 603 # define PRINTF_UINT8_DEC_WIDTH "3" 612 #ifdef stdint_int64_defined 613 typedef int64_t intmax_t;
614 typedef uint64_t uintmax_t;
615 # define INTMAX_MAX INT64_MAX 616 # define INTMAX_MIN INT64_MIN 617 # define UINTMAX_MAX UINT64_MAX 618 # define UINTMAX_C(v) UINT64_C(v) 619 # define INTMAX_C(v) INT64_C(v) 620 # ifndef PRINTF_INTMAX_MODIFIER 621 # define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 623 # ifndef PRINTF_INTMAX_HEX_WIDTH 624 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT64_HEX_WIDTH 626 # ifndef PRINTF_INTMAX_DEC_WIDTH 627 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT64_DEC_WIDTH 630 typedef int32_t intmax_t;
631 typedef uint32_t uintmax_t;
632 # define INTMAX_MAX INT32_MAX 633 # define UINTMAX_MAX UINT32_MAX 634 # define UINTMAX_C(v) UINT32_C(v) 635 # define INTMAX_C(v) INT32_C(v) 636 # ifndef PRINTF_INTMAX_MODIFIER 637 # define PRINTF_INTMAX_MODIFIER PRINTF_INT32_MODIFIER 639 # ifndef PRINTF_INTMAX_HEX_WIDTH 640 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT32_HEX_WIDTH 642 # ifndef PRINTF_INTMAX_DEC_WIDTH 643 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT32_DEC_WIDTH 654 #ifndef stdint_least_defined 655 typedef int8_t int_least8_t;
656 typedef uint8_t uint_least8_t;
657 typedef int16_t int_least16_t;
658 typedef uint16_t uint_least16_t;
659 typedef int32_t int_least32_t;
660 typedef uint32_t uint_least32_t;
661 # define PRINTF_LEAST32_MODIFIER PRINTF_INT32_MODIFIER 662 # define PRINTF_LEAST16_MODIFIER PRINTF_INT16_MODIFIER 663 # define UINT_LEAST8_MAX UINT8_MAX 664 # define INT_LEAST8_MAX INT8_MAX 665 # define UINT_LEAST16_MAX UINT16_MAX 666 # define INT_LEAST16_MAX INT16_MAX 667 # define UINT_LEAST32_MAX UINT32_MAX 668 # define INT_LEAST32_MAX INT32_MAX 669 # define INT_LEAST8_MIN INT8_MIN 670 # define INT_LEAST16_MIN INT16_MIN 671 # define INT_LEAST32_MIN INT32_MIN 672 # ifdef stdint_int64_defined 673 typedef int64_t int_least64_t;
674 typedef uint64_t uint_least64_t;
675 # define PRINTF_LEAST64_MODIFIER PRINTF_INT64_MODIFIER 676 # define UINT_LEAST64_MAX UINT64_MAX 677 # define INT_LEAST64_MAX INT64_MAX 678 # define INT_LEAST64_MIN INT64_MIN 681 #undef stdint_least_defined 694 typedef int_least8_t int_fast8_t;
695 typedef uint_least8_t uint_fast8_t;
696 typedef int_least16_t int_fast16_t;
697 typedef uint_least16_t uint_fast16_t;
698 typedef int_least32_t int_fast32_t;
699 typedef uint_least32_t uint_fast32_t;
700 #define UINT_FAST8_MAX UINT_LEAST8_MAX 701 #define INT_FAST8_MAX INT_LEAST8_MAX 702 #define UINT_FAST16_MAX UINT_LEAST16_MAX 703 #define INT_FAST16_MAX INT_LEAST16_MAX 704 #define UINT_FAST32_MAX UINT_LEAST32_MAX 705 #define INT_FAST32_MAX INT_LEAST32_MAX 706 #define INT_FAST8_MIN INT_LEAST8_MIN 707 #define INT_FAST16_MIN INT_LEAST16_MIN 708 #define INT_FAST32_MIN INT_LEAST32_MIN 709 #ifdef stdint_int64_defined 710 typedef int_least64_t int_fast64_t;
711 typedef uint_least64_t uint_fast64_t;
712 # define UINT_FAST64_MAX UINT_LEAST64_MAX 713 # define INT_FAST64_MAX INT_LEAST64_MAX 714 # define INT_FAST64_MIN INT_LEAST64_MIN 717 #undef stdint_int64_defined 724 #if defined(__WATCOMC__) || defined(_MSC_VER) || defined (__GNUC__) && !defined(vxWorks) 730 # define WCHAR_MAX ((wchar_t)-1) 739 #if (defined (_MSC_VER) && defined (_UINTPTR_T_DEFINED)) || defined (_UINTPTR_T) 740 # define STDINT_H_UINTPTR_T_DEFINED 743 #ifndef STDINT_H_UINTPTR_T_DEFINED 744 # if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (_WIN64) || defined (__ppc64__) 745 # define stdint_intptr_bits 64 746 # elif defined (__WATCOMC__) || defined (__TURBOC__) 747 # if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__) 748 # define stdint_intptr_bits 16 750 # define stdint_intptr_bits 32 752 # elif defined (__i386__) || defined (_WIN32) || defined (WIN32) || defined (__ppc64__) 753 # define stdint_intptr_bits 32 754 # elif defined (__INTEL_COMPILER) 760 # ifdef stdint_intptr_bits 761 # define stdint_intptr_glue3_i(a,b,c) a##b##c 762 # define stdint_intptr_glue3(a,b,c) stdint_intptr_glue3_i(a,b,c) 763 # ifndef PRINTF_INTPTR_MODIFIER 764 # define PRINTF_INTPTR_MODIFIER stdint_intptr_glue3(PRINTF_INT,stdint_intptr_bits,_MODIFIER) 767 # define PTRDIFF_MAX stdint_intptr_glue3(INT,stdint_intptr_bits,_MAX) 770 # define PTRDIFF_MIN stdint_intptr_glue3(INT,stdint_intptr_bits,_MIN) 773 # define UINTPTR_MAX stdint_intptr_glue3(UINT,stdint_intptr_bits,_MAX) 776 # define INTPTR_MAX stdint_intptr_glue3(INT,stdint_intptr_bits,_MAX) 779 # define INTPTR_MIN stdint_intptr_glue3(INT,stdint_intptr_bits,_MIN) 782 # define INTPTR_C(x) stdint_intptr_glue3(INT,stdint_intptr_bits,_C)(x) 785 # define UINTPTR_C(x) stdint_intptr_glue3(UINT,stdint_intptr_bits,_C)(x) 787 typedef stdint_intptr_glue3(uint,stdint_intptr_bits,_t) uintptr_t;
788 typedef stdint_intptr_glue3(
int,stdint_intptr_bits,_t) intptr_t;
792 typedef ptrdiff_t intptr_t;
794 # define STDINT_H_UINTPTR_T_DEFINED 801 #ifndef SIG_ATOMIC_MAX 802 # define SIG_ATOMIC_MAX ((((sig_atomic_t) 1) << (sizeof (sig_atomic_t)*CHAR_BIT-1)) - 1) 807 #if defined (__TEST_PSTDINT_FOR_CORRECTNESS) 818 #define glue3_aux(x,y,z) x ## y ## z 819 #define glue3(x,y,z) glue3_aux(x,y,z) 821 #define DECLU(bits) glue3(uint,bits,_t) glue3(u,bits,) = glue3(UINT,bits,_C) (0); 822 #define DECLI(bits) glue3(int,bits,_t) glue3(i,bits,) = glue3(INT,bits,_C) (0); 824 #define DECL(us,bits) glue3(DECL,us,) (bits) 826 #define TESTUMAX(bits) glue3(u,bits,) = ~glue3(u,bits,); if (glue3(UINT,bits,_MAX) != glue3(u,bits,)) printf ("Something wrong with UINT%d_MAX\n", bits) 828 #define REPORTERROR(msg) { err_n++; if (err_first <= 0) err_first = __LINE__; printf msg; } 843 intmax_t imax = INTMAX_C(0);
844 uintmax_t umax = UINTMAX_C(0);
845 char str0[256], str1[256];
847 sprintf (str0,
"%" PRINTF_INT32_MODIFIER
"d", INT32_C(2147483647));
848 if (0 != strcmp (str0,
"2147483647")) REPORTERROR ((
"Something wrong with PRINTF_INT32_MODIFIER : %s\n", str0));
849 if (atoi(PRINTF_INT32_DEC_WIDTH) != (
int) strlen(str0)) REPORTERROR ((
"Something wrong with PRINTF_INT32_DEC_WIDTH : %s\n", PRINTF_INT32_DEC_WIDTH));
850 sprintf (str0,
"%" PRINTF_INT32_MODIFIER
"u", UINT32_C(4294967295));
851 if (0 != strcmp (str0,
"4294967295")) REPORTERROR ((
"Something wrong with PRINTF_INT32_MODIFIER : %s\n", str0));
852 if (atoi(PRINTF_UINT32_DEC_WIDTH) != (
int) strlen(str0)) REPORTERROR ((
"Something wrong with PRINTF_UINT32_DEC_WIDTH : %s\n", PRINTF_UINT32_DEC_WIDTH));
854 sprintf (str1,
"%" PRINTF_INT64_MODIFIER
"d", INT64_C(9223372036854775807));
855 if (0 != strcmp (str1,
"9223372036854775807")) REPORTERROR ((
"Something wrong with PRINTF_INT32_MODIFIER : %s\n", str1));
856 if (atoi(PRINTF_INT64_DEC_WIDTH) != (
int) strlen(str1)) REPORTERROR ((
"Something wrong with PRINTF_INT64_DEC_WIDTH : %s, %d\n", PRINTF_INT64_DEC_WIDTH, (
int) strlen(str1)));
857 sprintf (str1,
"%" PRINTF_INT64_MODIFIER
"u", UINT64_C(18446744073709550591));
858 if (0 != strcmp (str1,
"18446744073709550591")) REPORTERROR ((
"Something wrong with PRINTF_INT32_MODIFIER : %s\n", str1));
859 if (atoi(PRINTF_UINT64_DEC_WIDTH) != (
int) strlen(str1)) REPORTERROR ((
"Something wrong with PRINTF_UINT64_DEC_WIDTH : %s, %d\n", PRINTF_UINT64_DEC_WIDTH, (
int) strlen(str1)));
862 sprintf (str0,
"%d %x\n", 0, ~0);
864 sprintf (str1,
"%d %x\n", i8, ~0);
865 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with i8 : %s\n", str1));
866 sprintf (str1,
"%u %x\n", u8, ~0);
867 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with u8 : %s\n", str1));
868 sprintf (str1,
"%d %x\n", i16, ~0);
869 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with i16 : %s\n", str1));
870 sprintf (str1,
"%u %x\n", u16, ~0);
871 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with u16 : %s\n", str1));
872 sprintf (str1,
"%" PRINTF_INT32_MODIFIER
"d %x\n", i32, ~0);
873 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with i32 : %s\n", str1));
874 sprintf (str1,
"%" PRINTF_INT32_MODIFIER
"u %x\n", u32, ~0);
875 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with u32 : %s\n", str1));
877 sprintf (str1,
"%" PRINTF_INT64_MODIFIER
"d %x\n", i64, ~0);
878 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with i64 : %s\n", str1));
880 sprintf (str1,
"%" PRINTF_INTMAX_MODIFIER
"d %x\n", imax, ~0);
881 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with imax : %s\n", str1));
882 sprintf (str1,
"%" PRINTF_INTMAX_MODIFIER
"u %x\n", umax, ~0);
883 if (0 != strcmp (str0, str1)) REPORTERROR ((
"Something wrong with umax : %s\n", str1));
893 #define Q(v) printf ("sizeof " STR(v) " = %u\n", (unsigned) sizeof (v)); 895 printf (
"pstdint.h is not correct. Please use sizes below to correct it:\n");