| 1 |
#if 0 |
| 2 |
<<'SKIP'; |
| 3 |
#endif |
| 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 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
|
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
|
| 462 |
|
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
|
| 502 |
|
| 503 |
|
| 504 |
|
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
|
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
|
| 537 |
|
| 538 |
|
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
|
| 558 |
|
| 559 |
|
| 560 |
|
| 561 |
|
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
|
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
|
| 582 |
|
| 583 |
|
| 584 |
|
| 585 |
|
| 586 |
|
| 587 |
|
| 588 |
|
| 589 |
|
| 590 |
|
| 591 |
|
| 592 |
|
| 593 |
|
| 594 |
|
| 595 |
|
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
|
| 600 |
|
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
|
| 605 |
|
| 606 |
|
| 607 |
|
| 608 |
|
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
|
| 644 |
|
| 645 |
|
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
|
| 650 |
|
| 651 |
|
| 652 |
|
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
|
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
|
| 664 |
|
| 665 |
|
| 666 |
|
| 667 |
|
| 668 |
|
| 669 |
|
| 670 |
|
| 671 |
|
| 672 |
|
| 673 |
|
| 674 |
|
| 675 |
|
| 676 |
|
| 677 |
|
| 678 |
|
| 679 |
|
| 680 |
|
| 681 |
|
| 682 |
|
| 683 |
|
| 684 |
|
| 685 |
|
| 686 |
|
| 687 |
|
| 688 |
|
| 689 |
|
| 690 |
|
| 691 |
|
| 692 |
|
| 693 |
|
| 694 |
|
| 695 |
|
| 696 |
|
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
|
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
|
| 711 |
|
| 712 |
|
| 713 |
|
| 714 |
|
| 715 |
|
| 716 |
|
| 717 |
|
| 718 |
|
| 719 |
|
| 720 |
|
| 721 |
|
| 722 |
|
| 723 |
|
| 724 |
|
| 725 |
|
| 726 |
|
| 727 |
|
| 728 |
|
| 729 |
|
| 730 |
|
| 731 |
|
| 732 |
|
| 733 |
|
| 734 |
|
| 735 |
|
| 736 |
|
| 737 |
|
| 738 |
|
| 739 |
|
| 740 |
|
| 741 |
|
| 742 |
|
| 743 |
|
| 744 |
|
| 745 |
|
| 746 |
|
| 747 |
|
| 748 |
|
| 749 |
|
| 750 |
|
| 751 |
|
| 752 |
|
| 753 |
|
| 754 |
|
| 755 |
|
| 756 |
|
| 757 |
|
| 758 |
|
| 759 |
|
| 760 |
|
| 761 |
|
| 762 |
|
| 763 |
|
| 764 |
|
| 765 |
|
| 766 |
|
| 767 |
|
| 768 |
|
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
|
| 775 |
|
| 776 |
|
| 777 |
|
| 778 |
|
| 779 |
|
| 780 |
|
| 781 |
|
| 782 |
|
| 783 |
|
| 784 |
|
| 785 |
|
| 786 |
|
| 787 |
|
| 788 |
|
| 789 |
|
| 790 |
|
| 791 |
|
| 792 |
|
| 793 |
|
| 794 |
|
| 795 |
|
| 796 |
|
| 797 |
|
| 798 |
|
| 799 |
|
| 800 |
|
| 801 |
|
| 802 |
|
| 803 |
|
| 804 |
|
| 805 |
|
| 806 |
|
| 807 |
|
| 808 |
|
| 809 |
|
| 810 |
|
| 811 |
|
| 812 |
|
| 813 |
|
| 814 |
|
| 815 |
|
| 816 |
|
| 817 |
|
| 818 |
|
| 819 |
|
| 820 |
|
| 821 |
|
| 822 |
|
| 823 |
|
| 824 |
|
| 825 |
|
| 826 |
|
| 827 |
|
| 828 |
|
| 829 |
|
| 830 |
|
| 831 |
|
| 832 |
|
| 833 |
|
| 834 |
|
| 835 |
|
| 836 |
|
| 837 |
|
| 838 |
|
| 839 |
|
| 840 |
|
| 841 |
|
| 842 |
|
| 843 |
|
| 844 |
|
| 845 |
|
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
|
| 850 |
|
| 851 |
|
| 852 |
|
| 853 |
|
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
|
| 858 |
|
| 859 |
|
| 860 |
|
| 861 |
|
| 862 |
|
| 863 |
|
| 864 |
|
| 865 |
|
| 866 |
|
| 867 |
|
| 868 |
|
| 869 |
|
| 870 |
|
| 871 |
|
| 872 |
|
| 873 |
|
| 874 |
|
| 875 |
|
| 876 |
|
| 877 |
|
| 878 |
|
| 879 |
|
| 880 |
|
| 881 |
|
| 882 |
|
| 883 |
|
| 884 |
|
| 885 |
|
| 886 |
|
| 887 |
|
| 888 |
|
| 889 |
|
| 890 |
|
| 891 |
|
| 892 |
|
| 893 |
|
| 894 |
|
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
|
| 899 |
|
| 900 |
|
| 901 |
|
| 902 |
|
| 903 |
|
| 904 |
|
| 905 |
|
| 906 |
|
| 907 |
|
| 908 |
|
| 909 |
|
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
|
| 915 |
|
| 916 |
|
| 917 |
|
| 918 |
|
| 919 |
|
| 920 |
|
| 921 |
|
| 922 |
|
| 923 |
|
| 924 |
|
| 925 |
|
| 926 |
|
| 927 |
|
| 928 |
|
| 929 |
|
| 930 |
|
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
|
| 935 |
|
| 936 |
|
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
|
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
|
| 946 |
|
| 947 |
|
| 948 |
|
| 949 |
|
| 950 |
|
| 951 |
|
| 952 |
|
| 953 |
|
| 954 |
|
| 955 |
|
| 956 |
|
| 957 |
|
| 958 |
|
| 959 |
|
| 960 |
|
| 961 |
|
| 962 |
|
| 963 |
|
| 964 |
|
| 965 |
|
| 966 |
|
| 967 |
|
| 968 |
|
| 969 |
|
| 970 |
|
| 971 |
|
| 972 |
|
| 973 |
|
| 974 |
|
| 975 |
|
| 976 |
|
| 977 |
|
| 978 |
|
| 979 |
|
| 980 |
|
| 981 |
|
| 982 |
|
| 983 |
|
| 984 |
|
| 985 |
|
| 986 |
|
| 987 |
|
| 988 |
|
| 989 |
|
| 990 |
|
| 991 |
|
| 992 |
|
| 993 |
|
| 994 |
|
| 995 |
|
| 996 |
|
| 997 |
|
| 998 |
|
| 999 |
|
| 1000 |
|
| 1001 |
|
| 1002 |
|
| 1003 |
|
| 1004 |
|
| 1005 |
|
| 1006 |
|
| 1007 |
|
| 1008 |
|
| 1009 |
|
| 1010 |
|
| 1011 |
|
| 1012 |
|
| 1013 |
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
|
| 1019 |
|
| 1020 |
|
| 1021 |
|
| 1022 |
|
| 1023 |
|
| 1024 |
|
| 1025 |
|
| 1026 |
|
| 1027 |
|
| 1028 |
|
| 1029 |
|
| 1030 |
|
| 1031 |
|
| 1032 |
|
| 1033 |
|
| 1034 |
|
| 1035 |
|
| 1036 |
|
| 1037 |
|
| 1038 |
|
| 1039 |
|
| 1040 |
|
| 1041 |
|
| 1042 |
|
| 1043 |
|
| 1044 |
|
| 1045 |
|
| 1046 |
|
| 1047 |
|
| 1048 |
|
| 1049 |
|
| 1050 |
|
| 1051 |
|
| 1052 |
|
| 1053 |
|
| 1054 |
|
| 1055 |
|
| 1056 |
|
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
|
| 1061 |
|
| 1062 |
|
| 1063 |
|
| 1064 |
|
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
|
| 1071 |
|
| 1072 |
|
| 1073 |
|
| 1074 |
|
| 1075 |
|
| 1076 |
|
| 1077 |
|
| 1078 |
|
| 1079 |
|
| 1080 |
|
| 1081 |
|
| 1082 |
|
| 1083 |
|
| 1084 |
|
| 1085 |
|
| 1086 |
|
| 1087 |
|
| 1088 |
|
| 1089 |
|
| 1090 |
|
| 1091 |
|
| 1092 |
|
| 1093 |
|
| 1094 |
|
| 1095 |
|
| 1096 |
|
| 1097 |
|
| 1098 |
|
| 1099 |
|
| 1100 |
|
| 1101 |
|
| 1102 |
|
| 1103 |
|
| 1104 |
|
| 1105 |
|
| 1106 |
|
| 1107 |
|
| 1108 |
|
| 1109 |
|
| 1110 |
|
| 1111 |
|
| 1112 |
|
| 1113 |
|
| 1114 |
|
| 1115 |
|
| 1116 |
|
| 1117 |
|
| 1118 |
|
| 1119 |
|
| 1120 |
|
| 1121 |
|
| 1122 |
|
| 1123 |
|
| 1124 |
|
| 1125 |
|
| 1126 |
|
| 1127 |
|
| 1128 |
|
| 1129 |
|
| 1130 |
|
| 1131 |
|
| 1132 |
|
| 1133 |
|
| 1134 |
|
| 1135 |
|
| 1136 |
|
| 1137 |
|
| 1138 |
|
| 1139 |
|
| 1140 |
|
| 1141 |
|
| 1142 |
|
| 1143 |
|
| 1144 |
|
| 1145 |
|
| 1146 |
|
| 1147 |
|
| 1148 |
|
| 1149 |
|
| 1150 |
|
| 1151 |
|
| 1152 |
|
| 1153 |
|
| 1154 |
|
| 1155 |
|
| 1156 |
|
| 1157 |
|
| 1158 |
|
| 1159 |
|
| 1160 |
|
| 1161 |
|
| 1162 |
|
| 1163 |
|
| 1164 |
|
| 1165 |
|
| 1166 |
|
| 1167 |
|
| 1168 |
|
| 1169 |
|
| 1170 |
|
| 1171 |
|
| 1172 |
|
| 1173 |
|
| 1174 |
|
| 1175 |
|
| 1176 |
|
| 1177 |
|
| 1178 |
|
| 1179 |
|
| 1180 |
|
| 1181 |
|
| 1182 |
|
| 1183 |
|
| 1184 |
|
| 1185 |
|
| 1186 |
|
| 1187 |
|
| 1188 |
|
| 1189 |
|
| 1190 |
|
| 1191 |
|
| 1192 |
|
| 1193 |
|
| 1194 |
|
| 1195 |
|
| 1196 |
|
| 1197 |
|
| 1198 |
|
| 1199 |
|
| 1200 |
|
| 1201 |
|
| 1202 |
|
| 1203 |
|
| 1204 |
|
| 1205 |
|
| 1206 |
|
| 1207 |
|
| 1208 |
|
| 1209 |
|
| 1210 |
|
| 1211 |
|
| 1212 |
|
| 1213 |
|
| 1214 |
|
| 1215 |
|
| 1216 |
|
| 1217 |
|
| 1218 |
|
| 1219 |
|
| 1220 |
|
| 1221 |
|
| 1222 |
|
| 1223 |
|
| 1224 |
|
| 1225 |
|
| 1226 |
|
| 1227 |
|
| 1228 |
|
| 1229 |
|
| 1230 |
|
| 1231 |
|
| 1232 |
|
| 1233 |
|
| 1234 |
|
| 1235 |
|
| 1236 |
|
| 1237 |
|
| 1238 |
|
| 1239 |
|
| 1240 |
|
| 1241 |
|
| 1242 |
|
| 1243 |
|
| 1244 |
|
| 1245 |
|
| 1246 |
|
| 1247 |
|
| 1248 |
|
| 1249 |
|
| 1250 |
|
| 1251 |
|
| 1252 |
|
| 1253 |
|
| 1254 |
|
| 1255 |
|
| 1256 |
|
| 1257 |
|
| 1258 |
|
| 1259 |
|
| 1260 |
|
| 1261 |
|
| 1262 |
|
| 1263 |
|
| 1264 |
|
| 1265 |
|
| 1266 |
|
| 1267 |
|
| 1268 |
|
| 1269 |
|
| 1270 |
|
| 1271 |
|
| 1272 |
|
| 1273 |
|
| 1274 |
|
| 1275 |
|
| 1276 |
|
| 1277 |
|
| 1278 |
|
| 1279 |
|
| 1280 |
|
| 1281 |
|
| 1282 |
|
| 1283 |
|
| 1284 |
|
| 1285 |
|
| 1286 |
|
| 1287 |
|
| 1288 |
|
| 1289 |
|
| 1290 |
|
| 1291 |
|
| 1292 |
|
| 1293 |
|
| 1294 |
|
| 1295 |
|
| 1296 |
|
| 1297 |
|
| 1298 |
|
| 1299 |
|
| 1300 |
|
| 1301 |
|
| 1302 |
|
| 1303 |
|
| 1304 |
|
| 1305 |
|
| 1306 |
|
| 1307 |
|
| 1308 |
|
| 1309 |
|
| 1310 |
|
| 1311 |
|
| 1312 |
|
| 1313 |
|
| 1314 |
|
| 1315 |
|
| 1316 |
|
| 1317 |
|
| 1318 |
|
| 1319 |
|
| 1320 |
|
| 1321 |
|
| 1322 |
|
| 1323 |
|
| 1324 |
|
| 1325 |
|
| 1326 |
|
| 1327 |
|
| 1328 |
|
| 1329 |
|
| 1330 |
|
| 1331 |
|
| 1332 |
|
| 1333 |
|
| 1334 |
|
| 1335 |
|
| 1336 |
|
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
|
| 1341 |
|
| 1342 |
|
| 1343 |
|
| 1344 |
|
| 1345 |
|
| 1346 |
|
| 1347 |
|
| 1348 |
|
| 1349 |
|
| 1350 |
|
| 1351 |
|
| 1352 |
|
| 1353 |
|
| 1354 |
|
| 1355 |
|
| 1356 |
|
| 1357 |
|
| 1358 |
|
| 1359 |
|
| 1360 |
|
| 1361 |
|
| 1362 |
|
| 1363 |
|
| 1364 |
|
| 1365 |
|
| 1366 |
|
| 1367 |
|
| 1368 |
|
| 1369 |
|
| 1370 |
|
| 1371 |
|
| 1372 |
|
| 1373 |
|
| 1374 |
|
| 1375 |
|
| 1376 |
|
| 1377 |
|
| 1378 |
|
| 1379 |
|
| 1380 |
|
| 1381 |
|
| 1382 |
|
| 1383 |
|
| 1384 |
|
| 1385 |
|
| 1386 |
|
| 1387 |
|
| 1388 |
|
| 1389 |
|
| 1390 |
|
| 1391 |
|
| 1392 |
|
| 1393 |
|
| 1394 |
|
| 1395 |
|
| 1396 |
|
| 1397 |
|
| 1398 |
|
| 1399 |
|
| 1400 |
|
| 1401 |
|
| 1402 |
|
| 1403 |
|
| 1404 |
|
| 1405 |
|
| 1406 |
|
| 1407 |
|
| 1408 |
|
| 1409 |
|
| 1410 |
|
| 1411 |
|
| 1412 |
|
| 1413 |
|
| 1414 |
|
| 1415 |
|
| 1416 |
|
| 1417 |
|
| 1418 |
|
| 1419 |
|
| 1420 |
|
| 1421 |
|
| 1422 |
|
| 1423 |
|
| 1424 |
|
| 1425 |
|
| 1426 |
|
| 1427 |
|
| 1428 |
|
| 1429 |
|
| 1430 |
|
| 1431 |
|
| 1432 |
|
| 1433 |
|
| 1434 |
|
| 1435 |
|
| 1436 |
|
| 1437 |
|
| 1438 |
|
| 1439 |
|
| 1440 |
|
| 1441 |
|
| 1442 |
|
| 1443 |
|
| 1444 |
|
| 1445 |
|
| 1446 |
|
| 1447 |
|
| 1448 |
|
| 1449 |
|
| 1450 |
|
| 1451 |
|
| 1452 |
|
| 1453 |
|
| 1454 |
|
| 1455 |
|
| 1456 |
|
| 1457 |
|
| 1458 |
|
| 1459 |
|
| 1460 |
|
| 1461 |
|
| 1462 |
|
| 1463 |
|
| 1464 |
|
| 1465 |
|
| 1466 |
|
| 1467 |
|
| 1468 |
|
| 1469 |
|
| 1470 |
|
| 1471 |
|
| 1472 |
|
| 1473 |
|
| 1474 |
|
| 1475 |
|
| 1476 |
|
| 1477 |
|
| 1478 |
|
| 1479 |
|
| 1480 |
|
| 1481 |
|
| 1482 |
|
| 1483 |
|
| 1484 |
|
| 1485 |
|
| 1486 |
|
| 1487 |
|
| 1488 |
|
| 1489 |
|
| 1490 |
|
| 1491 |
|
| 1492 |
|
| 1493 |
|
| 1494 |
|
| 1495 |
|
| 1496 |
|
| 1497 |
|
| 1498 |
|
| 1499 |
|
| 1500 |
|
| 1501 |
|
| 1502 |
|
| 1503 |
|
| 1504 |
|
| 1505 |
|
| 1506 |
|
| 1507 |
|
| 1508 |
|
| 1509 |
|
| 1510 |
|
| 1511 |
|
| 1512 |
|
| 1513 |
|
| 1514 |
|
| 1515 |
|
| 1516 |
|
| 1517 |
|
| 1518 |
|
| 1519 |
|
| 1520 |
|
| 1521 |
|
| 1522 |
|
| 1523 |
|
| 1524 |
|
| 1525 |
|
| 1526 |
|
| 1527 |
|
| 1528 |
|
| 1529 |
|
| 1530 |
|
| 1531 |
|
| 1532 |
|
| 1533 |
|
| 1534 |
|
| 1535 |
|
| 1536 |
|
| 1537 |
|
| 1538 |
|
| 1539 |
|
| 1540 |
|
| 1541 |
|
| 1542 |
|
| 1543 |
|
| 1544 |
|
| 1545 |
|
| 1546 |
|
| 1547 |
|
| 1548 |
|
| 1549 |
|
| 1550 |
|
| 1551 |
|
| 1552 |
|
| 1553 |
|
| 1554 |
|
| 1555 |
|
| 1556 |
|
| 1557 |
|
| 1558 |
|
| 1559 |
|
| 1560 |
|
| 1561 |
|
| 1562 |
|
| 1563 |
|
| 1564 |
|
| 1565 |
|
| 1566 |
|
| 1567 |
|
| 1568 |
|
| 1569 |
|
| 1570 |
|
| 1571 |
|
| 1572 |
|
| 1573 |
|
| 1574 |
|
| 1575 |
|
| 1576 |
|
| 1577 |
|
| 1578 |
|
| 1579 |
|
| 1580 |
|
| 1581 |
|
| 1582 |
|
| 1583 |
|
| 1584 |
|
| 1585 |
|
| 1586 |
|
| 1587 |
|
| 1588 |
|
| 1589 |
|
| 1590 |
|
| 1591 |
|
| 1592 |
|
| 1593 |
|
| 1594 |
|
| 1595 |
|
| 1596 |
|
| 1597 |
|
| 1598 |
|
| 1599 |
|
| 1600 |
|
| 1601 |
|
| 1602 |
|
| 1603 |
|
| 1604 |
|
| 1605 |
|
| 1606 |
|
| 1607 |
|
| 1608 |
|
| 1609 |
|
| 1610 |
|
| 1611 |
|
| 1612 |
|
| 1613 |
|
| 1614 |
|
| 1615 |
|
| 1616 |
|
| 1617 |
|
| 1618 |
|
| 1619 |
|
| 1620 |
|
| 1621 |
|
| 1622 |
|
| 1623 |
|
| 1624 |
|
| 1625 |
|
| 1626 |
|
| 1627 |
|
| 1628 |
|
| 1629 |
|
| 1630 |
|
| 1631 |
|
| 1632 |
|
| 1633 |
|
| 1634 |
|
| 1635 |
|
| 1636 |
|
| 1637 |
|
| 1638 |
|
| 1639 |
|
| 1640 |
|
| 1641 |
|
| 1642 |
|
| 1643 |
|
| 1644 |
|
| 1645 |
|
| 1646 |
|
| 1647 |
|
| 1648 |
|
| 1649 |
|
| 1650 |
|
| 1651 |
|
| 1652 |
|
| 1653 |
|
| 1654 |
|
| 1655 |
|
| 1656 |
|
| 1657 |
|
| 1658 |
|
| 1659 |
|
| 1660 |
|
| 1661 |
|
| 1662 |
|
| 1663 |
|
| 1664 |
|
| 1665 |
|
| 1666 |
|
| 1667 |
|
| 1668 |
|
| 1669 |
|
| 1670 |
|
| 1671 |
|
| 1672 |
|
| 1673 |
|
| 1674 |
|
| 1675 |
|
| 1676 |
|
| 1677 |
|
| 1678 |
|
| 1679 |
|
| 1680 |
|
| 1681 |
|
| 1682 |
|
| 1683 |
|
| 1684 |
|
| 1685 |
|
| 1686 |
|
| 1687 |
|
| 1688 |
|
| 1689 |
|
| 1690 |
|
| 1691 |
|
| 1692 |
|
| 1693 |
|
| 1694 |
|
| 1695 |
|
| 1696 |
|
| 1697 |
|
| 1698 |
|
| 1699 |
|
| 1700 |
|
| 1701 |
|
| 1702 |
|
| 1703 |
|
| 1704 |
|
| 1705 |
|
| 1706 |
|
| 1707 |
|
| 1708 |
|
| 1709 |
|
| 1710 |
|
| 1711 |
|
| 1712 |
|
| 1713 |
|
| 1714 |
|
| 1715 |
|
| 1716 |
|
| 1717 |
|
| 1718 |
|
| 1719 |
|
| 1720 |
|
| 1721 |
|
| 1722 |
|
| 1723 |
|
| 1724 |
|
| 1725 |
|
| 1726 |
|
| 1727 |
|
| 1728 |
|
| 1729 |
|
| 1730 |
|
| 1731 |
|
| 1732 |
|
| 1733 |
|
| 1734 |
|
| 1735 |
|
| 1736 |
|
| 1737 |
|
| 1738 |
|
| 1739 |
|
| 1740 |
|
| 1741 |
|
| 1742 |
|
| 1743 |
|
| 1744 |
|
| 1745 |
|
| 1746 |
|
| 1747 |
|
| 1748 |
|
| 1749 |
|
| 1750 |
|
| 1751 |
|
| 1752 |
|
| 1753 |
|
| 1754 |
|
| 1755 |
|
| 1756 |
|
| 1757 |
|
| 1758 |
|
| 1759 |
|
| 1760 |
|
| 1761 |
|
| 1762 |
|
| 1763 |
|
| 1764 |
|
| 1765 |
|
| 1766 |
|
| 1767 |
|
| 1768 |
|
| 1769 |
|
| 1770 |
|
| 1771 |
|
| 1772 |
|
| 1773 |
|
| 1774 |
|
| 1775 |
|
| 1776 |
|
| 1777 |
|
| 1778 |
|
| 1779 |
|
| 1780 |
|
| 1781 |
|
| 1782 |
|
| 1783 |
|
| 1784 |
|
| 1785 |
|
| 1786 |
|
| 1787 |
|
| 1788 |
|
| 1789 |
|
| 1790 |
|
| 1791 |
|
| 1792 |
|
| 1793 |
|
| 1794 |
|
| 1795 |
|
| 1796 |
|
| 1797 |
|
| 1798 |
|
| 1799 |
|
| 1800 |
|
| 1801 |
|
| 1802 |
|
| 1803 |
|
| 1804 |
|
| 1805 |
|
| 1806 |
|
| 1807 |
|
| 1808 |
|
| 1809 |
|
| 1810 |
|
| 1811 |
|
| 1812 |
|
| 1813 |
|
| 1814 |
|
| 1815 |
|
| 1816 |
|
| 1817 |
|
| 1818 |
|
| 1819 |
|
| 1820 |
|
| 1821 |
|
| 1822 |
|
| 1823 |
|
| 1824 |
|
| 1825 |
|
| 1826 |
|
| 1827 |
|
| 1828 |
|
| 1829 |
|
| 1830 |
|
| 1831 |
|
| 1832 |
|
| 1833 |
|
| 1834 |
|
| 1835 |
|
| 1836 |
|
| 1837 |
|
| 1838 |
|
| 1839 |
|
| 1840 |
|
| 1841 |
|
| 1842 |
|
| 1843 |
|
| 1844 |
|
| 1845 |
|
| 1846 |
|
| 1847 |
|
| 1848 |
|
| 1849 |
|
| 1850 |
|
| 1851 |
|
| 1852 |
|
| 1853 |
|
| 1854 |
|
| 1855 |
|
| 1856 |
|
| 1857 |
|
| 1858 |
|
| 1859 |
|
| 1860 |
|
| 1861 |
|
| 1862 |
|
| 1863 |
|
| 1864 |
|
| 1865 |
|
| 1866 |
|
| 1867 |
|
| 1868 |
|
| 1869 |
|
| 1870 |
|
| 1871 |
|
| 1872 |
|
| 1873 |
|
| 1874 |
|
| 1875 |
|
| 1876 |
|
| 1877 |
|
| 1878 |
|
| 1879 |
|
| 1880 |
|
| 1881 |
|
| 1882 |
|
| 1883 |
|
| 1884 |
|
| 1885 |
|
| 1886 |
|
| 1887 |
|
| 1888 |
|
| 1889 |
|
| 1890 |
|
| 1891 |
|
| 1892 |
|
| 1893 |
|
| 1894 |
|
| 1895 |
|
| 1896 |
|
| 1897 |
|
| 1898 |
|
| 1899 |
|
| 1900 |
|
| 1901 |
|
| 1902 |
|
| 1903 |
|
| 1904 |
|
| 1905 |
|
| 1906 |
|
| 1907 |
|
| 1908 |
|
| 1909 |
|
| 1910 |
|
| 1911 |
|
| 1912 |
|
| 1913 |
|
| 1914 |
|
| 1915 |
|
| 1916 |
|
| 1917 |
|
| 1918 |
|
| 1919 |
|
| 1920 |
|
| 1921 |
|
| 1922 |
|
| 1923 |
|
| 1924 |
|
| 1925 |
|
| 1926 |
|
| 1927 |
|
| 1928 |
|
| 1929 |
|
| 1930 |
|
| 1931 |
|
| 1932 |
|
| 1933 |
|
| 1934 |
|
| 1935 |
|
| 1936 |
|
| 1937 |
|
| 1938 |
|
| 1939 |
|
| 1940 |
|
| 1941 |
|
| 1942 |
|
| 1943 |
|
| 1944 |
|
| 1945 |
|
| 1946 |
|
| 1947 |
|
| 1948 |
|
| 1949 |
|
| 1950 |
|
| 1951 |
|
| 1952 |
|
| 1953 |
|
| 1954 |
|
| 1955 |
|
| 1956 |
|
| 1957 |
|
| 1958 |
|
| 1959 |
|
| 1960 |
|
| 1961 |
|
| 1962 |
|
| 1963 |
|
| 1964 |
|
| 1965 |
|
| 1966 |
|
| 1967 |
|
| 1968 |
|
| 1969 |
|
| 1970 |
|
| 1971 |
|
| 1972 |
|
| 1973 |
|
| 1974 |
|
| 1975 |
|
| 1976 |
|
| 1977 |
|
| 1978 |
|
| 1979 |
|
| 1980 |
|
| 1981 |
|
| 1982 |
|
| 1983 |
|
| 1984 |
|
| 1985 |
|
| 1986 |
|
| 1987 |
|
| 1988 |
|
| 1989 |
|
| 1990 |
|
| 1991 |
|
| 1992 |
|
| 1993 |
|
| 1994 |
|
| 1995 |
|
| 1996 |
|
| 1997 |
|
| 1998 |
|
| 1999 |
|
| 2000 |
|
| 2001 |
|
| 2002 |
|
| 2003 |
|
| 2004 |
|
| 2005 |
|
| 2006 |
|
| 2007 |
|
| 2008 |
|
| 2009 |
|
| 2010 |
|
| 2011 |
|
| 2012 |
|
| 2013 |
|
| 2014 |
|
| 2015 |
|
| 2016 |
|
| 2017 |
|
| 2018 |
|
| 2019 |
|
| 2020 |
|
| 2021 |
|
| 2022 |
|
| 2023 |
|
| 2024 |
|
| 2025 |
|
| 2026 |
|
| 2027 |
|
| 2028 |
|
| 2029 |
|
| 2030 |
|
| 2031 |
|
| 2032 |
|
| 2033 |
|
| 2034 |
|
| 2035 |
|
| 2036 |
|
| 2037 |
|
| 2038 |
|
| 2039 |
|
| 2040 |
|
| 2041 |
|
| 2042 |
|
| 2043 |
|
| 2044 |
|
| 2045 |
|
| 2046 |
|
| 2047 |
|
| 2048 |
|
| 2049 |
|
| 2050 |
|
| 2051 |
|
| 2052 |
|
| 2053 |
|
| 2054 |
|
| 2055 |
|
| 2056 |
|
| 2057 |
|
| 2058 |
|
| 2059 |
|
| 2060 |
|
| 2061 |
|
| 2062 |
|
| 2063 |
|
| 2064 |
|
| 2065 |
|
| 2066 |
|
| 2067 |
|
| 2068 |
|
| 2069 |
|
| 2070 |
|
| 2071 |
|
| 2072 |
|
| 2073 |
|
| 2074 |
|
| 2075 |
|
| 2076 |
|
| 2077 |
|
| 2078 |
|
| 2079 |
|
| 2080 |
|
| 2081 |
|
| 2082 |
|
| 2083 |
|
| 2084 |
|
| 2085 |
|
| 2086 |
|
| 2087 |
|
| 2088 |
|
| 2089 |
|
| 2090 |
|
| 2091 |
|
| 2092 |
|
| 2093 |
|
| 2094 |
|
| 2095 |
|
| 2096 |
|
| 2097 |
|
| 2098 |
|
| 2099 |
|
| 2100 |
|
| 2101 |
|
| 2102 |
|
| 2103 |
|
| 2104 |
|
| 2105 |
|
| 2106 |
|
| 2107 |
|
| 2108 |
|
| 2109 |
|
| 2110 |
|
| 2111 |
|
| 2112 |
|
| 2113 |
|
| 2114 |
|
| 2115 |
|
| 2116 |
|
| 2117 |
|
| 2118 |
|
| 2119 |
|
| 2120 |
|
| 2121 |
|
| 2122 |
|
| 2123 |
|
| 2124 |
|
| 2125 |
|
| 2126 |
|
| 2127 |
|
| 2128 |
|
| 2129 |
|
| 2130 |
|
| 2131 |
|
| 2132 |
|
| 2133 |
|
| 2134 |
|
| 2135 |
|
| 2136 |
|
| 2137 |
|
| 2138 |
|
| 2139 |
|
| 2140 |
|
| 2141 |
|
| 2142 |
|
| 2143 |
|
| 2144 |
|
| 2145 |
|
| 2146 |
|
| 2147 |
|
| 2148 |
|
| 2149 |
|
| 2150 |
|
| 2151 |
|
| 2152 |
|
| 2153 |
|
| 2154 |
|
| 2155 |
|
| 2156 |
|
| 2157 |
|
| 2158 |
|
| 2159 |
|
| 2160 |
|
| 2161 |
|
| 2162 |
|
| 2163 |
|
| 2164 |
|
| 2165 |
|
| 2166 |
|
| 2167 |
|
| 2168 |
|
| 2169 |
|
| 2170 |
|
| 2171 |
|
| 2172 |
|
| 2173 |
|
| 2174 |
|
| 2175 |
|
| 2176 |
|
| 2177 |
|
| 2178 |
|
| 2179 |
|
| 2180 |
|
| 2181 |
|
| 2182 |
|
| 2183 |
|
| 2184 |
|
| 2185 |
|
| 2186 |
|
| 2187 |
|
| 2188 |
|
| 2189 |
|
| 2190 |
|
| 2191 |
|
| 2192 |
|
| 2193 |
|
| 2194 |
|
| 2195 |
|
| 2196 |
|
| 2197 |
|
| 2198 |
|
| 2199 |
|
| 2200 |
|
| 2201 |
|
| 2202 |
|
| 2203 |
|
| 2204 |
|
| 2205 |
|
| 2206 |
|
| 2207 |
|
| 2208 |
|
| 2209 |
|
| 2210 |
|
| 2211 |
|
| 2212 |
|
| 2213 |
|
| 2214 |
|
| 2215 |
|
| 2216 |
|
| 2217 |
|
| 2218 |
|
| 2219 |
|
| 2220 |
|
| 2221 |
|
| 2222 |
|
| 2223 |
|
| 2224 |
|
| 2225 |
|
| 2226 |
|
| 2227 |
|
| 2228 |
|
| 2229 |
|
| 2230 |
|
| 2231 |
|
| 2232 |
|
| 2233 |
|
| 2234 |
|
| 2235 |
|
| 2236 |
|
| 2237 |
|
| 2238 |
|
| 2239 |
|
| 2240 |
|
| 2241 |
|
| 2242 |
|
| 2243 |
|
| 2244 |
|
| 2245 |
|
| 2246 |
|
| 2247 |
|
| 2248 |
|
| 2249 |
|
| 2250 |
|
| 2251 |
|
| 2252 |
|
| 2253 |
|
| 2254 |
|
| 2255 |
|
| 2256 |
|
| 2257 |
|
| 2258 |
|
| 2259 |
|
| 2260 |
|
| 2261 |
|
| 2262 |
|
| 2263 |
|
| 2264 |
|
| 2265 |
|
| 2266 |
|
| 2267 |
|
| 2268 |
|
| 2269 |
|
| 2270 |
|
| 2271 |
|
| 2272 |
|
| 2273 |
|
| 2274 |
|
| 2275 |
|
| 2276 |
|
| 2277 |
|
| 2278 |
|
| 2279 |
|
| 2280 |
|
| 2281 |
|
| 2282 |
|
| 2283 |
|
| 2284 |
|
| 2285 |
|
| 2286 |
|
| 2287 |
|
| 2288 |
|
| 2289 |
|
| 2290 |
|
| 2291 |
|
| 2292 |
|
| 2293 |
|
| 2294 |
|
| 2295 |
|
| 2296 |
|
| 2297 |
|
| 2298 |
|
| 2299 |
|
| 2300 |
|
| 2301 |
|
| 2302 |
|
| 2303 |
|
| 2304 |
|
| 2305 |
|
| 2306 |
|
| 2307 |
|
| 2308 |
|
| 2309 |
|
| 2310 |
|
| 2311 |
|
| 2312 |
|
| 2313 |
|
| 2314 |
|
| 2315 |
|
| 2316 |
|
| 2317 |
|
| 2318 |
|
| 2319 |
|
| 2320 |
|
| 2321 |
|
| 2322 |
|
| 2323 |
|
| 2324 |
|
| 2325 |
|
| 2326 |
|
| 2327 |
|
| 2328 |
|
| 2329 |
|
| 2330 |
|
| 2331 |
|
| 2332 |
|
| 2333 |
|
| 2334 |
|
| 2335 |
|
| 2336 |
|
| 2337 |
|
| 2338 |
|
| 2339 |
|
| 2340 |
|
| 2341 |
|
| 2342 |
|
| 2343 |
|
| 2344 |
|
| 2345 |
|
| 2346 |
|
| 2347 |
|
| 2348 |
|
| 2349 |
|
| 2350 |
|
| 2351 |
|
| 2352 |
|
| 2353 |
|
| 2354 |
|
| 2355 |
|
| 2356 |
|
| 2357 |
|
| 2358 |
|
| 2359 |
|
| 2360 |
|
| 2361 |
|
| 2362 |
|
| 2363 |
|
| 2364 |
|
| 2365 |
|
| 2366 |
|
| 2367 |
|
| 2368 |
|
| 2369 |
|
| 2370 |
|
| 2371 |
|
| 2372 |
|
| 2373 |
|
| 2374 |
|
| 2375 |
|
| 2376 |
|
| 2377 |
|
| 2378 |
|
| 2379 |
|
| 2380 |
|
| 2381 |
|
| 2382 |
|
| 2383 |
|
| 2384 |
|
| 2385 |
|
| 2386 |
|
| 2387 |
|
| 2388 |
|
| 2389 |
|
| 2390 |
|
| 2391 |
|
| 2392 |
|
| 2393 |
|
| 2394 |
|
| 2395 |
|
| 2396 |
|
| 2397 |
|
| 2398 |
|
| 2399 |
|
| 2400 |
|
| 2401 |
|
| 2402 |
|
| 2403 |
|
| 2404 |
|
| 2405 |
|
| 2406 |
|
| 2407 |
|
| 2408 |
|
| 2409 |
|
| 2410 |
|
| 2411 |
|
| 2412 |
|
| 2413 |
|
| 2414 |
|
| 2415 |
|
| 2416 |
|
| 2417 |
|
| 2418 |
|
| 2419 |
|
| 2420 |
|
| 2421 |
|
| 2422 |
|
| 2423 |
|
| 2424 |
|
| 2425 |
|
| 2426 |
|
| 2427 |
|
| 2428 |
|
| 2429 |
|
| 2430 |
|
| 2431 |
|
| 2432 |
|
| 2433 |
|
| 2434 |
|
| 2435 |
|
| 2436 |
|
| 2437 |
|
| 2438 |
|
| 2439 |
|
| 2440 |
|
| 2441 |
|
| 2442 |
|
| 2443 |
|
| 2444 |
|
| 2445 |
|
| 2446 |
|
| 2447 |
|
| 2448 |
|
| 2449 |
|
| 2450 |
|
| 2451 |
|
| 2452 |
|
| 2453 |
|
| 2454 |
|
| 2455 |
|
| 2456 |
|
| 2457 |
|
| 2458 |
|
| 2459 |
|
| 2460 |
|
| 2461 |
|
| 2462 |
|
| 2463 |
|
| 2464 |
|
| 2465 |
|
| 2466 |
|
| 2467 |
|
| 2468 |
|
| 2469 |
|
| 2470 |
|
| 2471 |
|
| 2472 |
|
| 2473 |
|
| 2474 |
|
| 2475 |
|
| 2476 |
|
| 2477 |
|
| 2478 |
|
| 2479 |
|
| 2480 |
|
| 2481 |
|
| 2482 |
|
| 2483 |
|
| 2484 |
|
| 2485 |
|
| 2486 |
|
| 2487 |
|
| 2488 |
|
| 2489 |
|
| 2490 |
|
| 2491 |
|
| 2492 |
|
| 2493 |
|
| 2494 |
|
| 2495 |
|
| 2496 |
|
| 2497 |
|
| 2498 |
|
| 2499 |
|
| 2500 |
|
| 2501 |
|
| 2502 |
|
| 2503 |
|
| 2504 |
|
| 2505 |
|
| 2506 |
|
| 2507 |
|
| 2508 |
|
| 2509 |
|
| 2510 |
|
| 2511 |
|
| 2512 |
|
| 2513 |
|
| 2514 |
|
| 2515 |
|
| 2516 |
|
| 2517 |
|
| 2518 |
|
| 2519 |
|
| 2520 |
|
| 2521 |
|
| 2522 |
|
| 2523 |
|
| 2524 |
|
| 2525 |
|
| 2526 |
|
| 2527 |
|
| 2528 |
|
| 2529 |
|
| 2530 |
|
| 2531 |
|
| 2532 |
|
| 2533 |
|
| 2534 |
|
| 2535 |
|
| 2536 |
|
| 2537 |
|
| 2538 |
|
| 2539 |
|
| 2540 |
|
| 2541 |
|
| 2542 |
|
| 2543 |
|
| 2544 |
|
| 2545 |
|
| 2546 |
|
| 2547 |
|
| 2548 |
|
| 2549 |
|
| 2550 |
|
| 2551 |
|
| 2552 |
|
| 2553 |
|
| 2554 |
|
| 2555 |
|
| 2556 |
|
| 2557 |
|
| 2558 |
|
| 2559 |
|
| 2560 |
|
| 2561 |
|
| 2562 |
|
| 2563 |
|
| 2564 |
|
| 2565 |
|
| 2566 |
|
| 2567 |
|
| 2568 |
|
| 2569 |
|
| 2570 |
|
| 2571 |
|
| 2572 |
|
| 2573 |
|
| 2574 |
|
| 2575 |
|
| 2576 |
|
| 2577 |
|
| 2578 |
|
| 2579 |
|
| 2580 |
|
| 2581 |
|
| 2582 |
|
| 2583 |
|
| 2584 |
|
| 2585 |
|
| 2586 |
|
| 2587 |
|
| 2588 |
|
| 2589 |
|
| 2590 |
|
| 2591 |
|
| 2592 |
|
| 2593 |
|
| 2594 |
|
| 2595 |
|
| 2596 |
|
| 2597 |
|
| 2598 |
|
| 2599 |
|
| 2600 |
|
| 2601 |
|
| 2602 |
|
| 2603 |
|
| 2604 |
|
| 2605 |
|
| 2606 |
|
| 2607 |
|
| 2608 |
|
| 2609 |
|
| 2610 |
|
| 2611 |
|
| 2612 |
|
| 2613 |
|
| 2614 |
|
| 2615 |
|
| 2616 |
|
| 2617 |
|
| 2618 |
|
| 2619 |
|
| 2620 |
|
| 2621 |
|
| 2622 |
|
| 2623 |
|
| 2624 |
|
| 2625 |
|
| 2626 |
|
| 2627 |
|
| 2628 |
|
| 2629 |
|
| 2630 |
|
| 2631 |
|
| 2632 |
|
| 2633 |
|
| 2634 |
|
| 2635 |
|
| 2636 |
|
| 2637 |
|
| 2638 |
|
| 2639 |
|
| 2640 |
|
| 2641 |
|
| 2642 |
|
| 2643 |
|
| 2644 |
|
| 2645 |
|
| 2646 |
|
| 2647 |
|
| 2648 |
|
| 2649 |
|
| 2650 |
|
| 2651 |
|
| 2652 |
|
| 2653 |
|
| 2654 |
|
| 2655 |
|
| 2656 |
|
| 2657 |
|
| 2658 |
|
| 2659 |
|
| 2660 |
|
| 2661 |
|
| 2662 |
|
| 2663 |
|
| 2664 |
|
| 2665 |
|
| 2666 |
|
| 2667 |
|
| 2668 |
|
| 2669 |
|
| 2670 |
|
| 2671 |
|
| 2672 |
|
| 2673 |
|
| 2674 |
|
| 2675 |
|
| 2676 |
|
| 2677 |
|
| 2678 |
|
| 2679 |
|
| 2680 |
|
| 2681 |
|
| 2682 |
|
| 2683 |
|
| 2684 |
|
| 2685 |
|
| 2686 |
|
| 2687 |
|
| 2688 |
|
| 2689 |
|
| 2690 |
|
| 2691 |
|
| 2692 |
|
| 2693 |
|
| 2694 |
|
| 2695 |
|
| 2696 |
|
| 2697 |
|
| 2698 |
|
| 2699 |
|
| 2700 |
|
| 2701 |
|
| 2702 |
|
| 2703 |
|
| 2704 |
|
| 2705 |
|
| 2706 |
|
| 2707 |
|
| 2708 |
|
| 2709 |
|
| 2710 |
|
| 2711 |
|
| 2712 |
|
| 2713 |
|
| 2714 |
|
| 2715 |
|
| 2716 |
|
| 2717 |
|
| 2718 |
|
| 2719 |
|
| 2720 |
|
| 2721 |
|
| 2722 |
|
| 2723 |
|
| 2724 |
|
| 2725 |
|
| 2726 |
|
| 2727 |
|
| 2728 |
|
| 2729 |
|
| 2730 |
|
| 2731 |
|
| 2732 |
|
| 2733 |
|
| 2734 |
|
| 2735 |
|
| 2736 |
|
| 2737 |
|
| 2738 |
|
| 2739 |
|
| 2740 |
|
| 2741 |
|
| 2742 |
|
| 2743 |
|
| 2744 |
|
| 2745 |
|
| 2746 |
|
| 2747 |
|
| 2748 |
|
| 2749 |
|
| 2750 |
|
| 2751 |
|
| 2752 |
|
| 2753 |
|
| 2754 |
|
| 2755 |
|
| 2756 |
|
| 2757 |
|
| 2758 |
|
| 2759 |
|
| 2760 |
|
| 2761 |
|
| 2762 |
|
| 2763 |
|
| 2764 |
|
| 2765 |
|
| 2766 |
|
| 2767 |
|
| 2768 |
|
| 2769 |
|
| 2770 |
|
| 2771 |
|
| 2772 |
|
| 2773 |
|
| 2774 |
|
| 2775 |
|
| 2776 |
|
| 2777 |
|
| 2778 |
|
| 2779 |
|
| 2780 |
|
| 2781 |
|
| 2782 |
|
| 2783 |
|
| 2784 |
|
| 2785 |
|
| 2786 |
|
| 2787 |
|
| 2788 |
|
| 2789 |
|
| 2790 |
|
| 2791 |
|
| 2792 |
|
| 2793 |
|
| 2794 |
|
| 2795 |
|
| 2796 |
|
| 2797 |
|
| 2798 |
|
| 2799 |
|
| 2800 |
|
| 2801 |
|
| 2802 |
|
| 2803 |
|
| 2804 |
|
| 2805 |
|
| 2806 |
|
| 2807 |
|
| 2808 |
|
| 2809 |
|
| 2810 |
|
| 2811 |
|
| 2812 |
|
| 2813 |
|
| 2814 |
|
| 2815 |
|
| 2816 |
|
| 2817 |
|
| 2818 |
|
| 2819 |
|
| 2820 |
|
| 2821 |
|
| 2822 |
|
| 2823 |
|
| 2824 |
|
| 2825 |
|
| 2826 |
|
| 2827 |
|
| 2828 |
|
| 2829 |
|
| 2830 |
|
| 2831 |
|
| 2832 |
|
| 2833 |
|
| 2834 |
|
| 2835 |
|
| 2836 |
|
| 2837 |
|
| 2838 |
|
| 2839 |
|
| 2840 |
|
| 2841 |
|
| 2842 |
|
| 2843 |
|
| 2844 |
|
| 2845 |
|
| 2846 |
|
| 2847 |
|
| 2848 |
|
| 2849 |
|
| 2850 |
|
| 2851 |
|
| 2852 |
|
| 2853 |
|
| 2854 |
|
| 2855 |
|
| 2856 |
|
| 2857 |
|
| 2858 |
|
| 2859 |
|
| 2860 |
|
| 2861 |
|
| 2862 |
|
| 2863 |
|
| 2864 |
|
| 2865 |
|
| 2866 |
|
| 2867 |
|
| 2868 |
|
| 2869 |
|
| 2870 |
|
| 2871 |
|
| 2872 |
|
| 2873 |
|
| 2874 |
|
| 2875 |
|
| 2876 |
|
| 2877 |
|
| 2878 |
|
| 2879 |
|
| 2880 |
|
| 2881 |
|
| 2882 |
|
| 2883 |
|
| 2884 |
|
| 2885 |
|
| 2886 |
|
| 2887 |
|
| 2888 |
|
| 2889 |
|
| 2890 |
|
| 2891 |
|
| 2892 |
|
| 2893 |
|
| 2894 |
|
| 2895 |
|
| 2896 |
|
| 2897 |
|
| 2898 |
|
| 2899 |
|
| 2900 |
|
| 2901 |
|
| 2902 |
|
| 2903 |
|
| 2904 |
|
| 2905 |
|
| 2906 |
|
| 2907 |
|
| 2908 |
|
| 2909 |
|
| 2910 |
|
| 2911 |
|
| 2912 |
|
| 2913 |
|
| 2914 |
|
| 2915 |
|
| 2916 |
|
| 2917 |
|
| 2918 |
|
| 2919 |
|
| 2920 |
|
| 2921 |
|
| 2922 |
|
| 2923 |
|
| 2924 |
|
| 2925 |
|
| 2926 |
|
| 2927 |
|
| 2928 |
|
| 2929 |
|
| 2930 |
|
| 2931 |
|
| 2932 |
|
| 2933 |
|
| 2934 |
|
| 2935 |
|
| 2936 |
|
| 2937 |
|
| 2938 |
|
| 2939 |
|
| 2940 |
|
| 2941 |
|
| 2942 |
|
| 2943 |
|
| 2944 |
|
| 2945 |
|
| 2946 |
|
| 2947 |
|
| 2948 |
|
| 2949 |
|
| 2950 |
|
| 2951 |
|
| 2952 |
|
| 2953 |
|
| 2954 |
|
| 2955 |
|
| 2956 |
|
| 2957 |
|
| 2958 |
|
| 2959 |
|
| 2960 |
|
| 2961 |
|
| 2962 |
|
| 2963 |
|
| 2964 |
|
| 2965 |
|
| 2966 |
|
| 2967 |
|
| 2968 |
|
| 2969 |
|
| 2970 |
|
| 2971 |
|
| 2972 |
|
| 2973 |
|
| 2974 |
|
| 2975 |
|
| 2976 |
|
| 2977 |
|
| 2978 |
|
| 2979 |
|
| 2980 |
|
| 2981 |
|
| 2982 |
|
| 2983 |
|
| 2984 |
|
| 2985 |
|
| 2986 |
|
| 2987 |
|
| 2988 |
|
| 2989 |
|
| 2990 |
|
| 2991 |
|
| 2992 |
|
| 2993 |
|
| 2994 |
|
| 2995 |
|
| 2996 |
|
| 2997 |
|
| 2998 |
|
| 2999 |
|
| 3000 |
|
| 3001 |
|
| 3002 |
|
| 3003 |
|
| 3004 |
|
| 3005 |
|
| 3006 |
|
| 3007 |
|
| 3008 |
|
| 3009 |
|
| 3010 |
|
| 3011 |
|
| 3012 |
|
| 3013 |
|
| 3014 |
|
| 3015 |
|
| 3016 |
|
| 3017 |
|
| 3018 |
|
| 3019 |
|
| 3020 |
|
| 3021 |
|
| 3022 |
|
| 3023 |
|
| 3024 |
|
| 3025 |
|
| 3026 |
|
| 3027 |
|
| 3028 |
|
| 3029 |
|
| 3030 |
|
| 3031 |
|
| 3032 |
|
| 3033 |
|
| 3034 |
|
| 3035 |
|
| 3036 |
|
| 3037 |
|
| 3038 |
|
| 3039 |
|
| 3040 |
|
| 3041 |
|
| 3042 |
|
| 3043 |
|
| 3044 |
|
| 3045 |
|
| 3046 |
|
| 3047 |
|
| 3048 |
|
| 3049 |
|
| 3050 |
|
| 3051 |
|
| 3052 |
|
| 3053 |
|
| 3054 |
|
| 3055 |
|
| 3056 |
|
| 3057 |
|
| 3058 |
|
| 3059 |
|
| 3060 |
|
| 3061 |
|
| 3062 |
|
| 3063 |
|
| 3064 |
|
| 3065 |
|
| 3066 |
|
| 3067 |
|
| 3068 |
|
| 3069 |
|
| 3070 |
|
| 3071 |
|
| 3072 |
|
| 3073 |
|
| 3074 |
|
| 3075 |
|
| 3076 |
|
| 3077 |
|
| 3078 |
|
| 3079 |
|
| 3080 |
|
| 3081 |
|
| 3082 |
|
| 3083 |
|
| 3084 |
|
| 3085 |
|
| 3086 |
|
| 3087 |
|
| 3088 |
|
| 3089 |
|
| 3090 |
|
| 3091 |
|
| 3092 |
|
| 3093 |
|
| 3094 |
|
| 3095 |
|
| 3096 |
|
| 3097 |
|
| 3098 |
|
| 3099 |
|
| 3100 |
|
| 3101 |
|
| 3102 |
|
| 3103 |
|
| 3104 |
|
| 3105 |
|
| 3106 |
|
| 3107 |
|
| 3108 |
|
| 3109 |
|
| 3110 |
|
| 3111 |
|
| 3112 |
|
| 3113 |
|
| 3114 |
|
| 3115 |
|
| 3116 |
|
| 3117 |
|
| 3118 |
|
| 3119 |
|
| 3120 |
|
| 3121 |
|
| 3122 |
|
| 3123 |
|
| 3124 |
|
| 3125 |
|
| 3126 |
|
| 3127 |
|
| 3128 |
|
| 3129 |
|
| 3130 |
|
| 3131 |
|
| 3132 |
|
| 3133 |
|
| 3134 |
|
| 3135 |
|
| 3136 |
|
| 3137 |
|
| 3138 |
|
| 3139 |
|
| 3140 |
|
| 3141 |
|
| 3142 |
|
| 3143 |
|
| 3144 |
|
| 3145 |
|
| 3146 |
|
| 3147 |
|
| 3148 |
|
| 3149 |
|
| 3150 |
|
| 3151 |
|
| 3152 |
|
| 3153 |
|
| 3154 |
|
| 3155 |
|
| 3156 |
|
| 3157 |
|
| 3158 |
|
| 3159 |
|
| 3160 |
|
| 3161 |
|
| 3162 |
|
| 3163 |
|
| 3164 |
|
| 3165 |
|
| 3166 |
|
| 3167 |
#ifndef _P_P_PORTABILITY_H_ |
| 3168 |
#define _P_P_PORTABILITY_H_ |
| 3169 |
|
| 3170 |
#ifndef DPPP_NAMESPACE |
| 3171 |
# define DPPP_NAMESPACE DPPP_ |
| 3172 |
#endif |
| 3173 |
|
| 3174 |
#define DPPP_CAT2(x,y) CAT2(x,y) |
| 3175 |
#define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name) |
| 3176 |
|
| 3177 |
#ifndef PERL_REVISION |
| 3178 |
# if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) |
| 3179 |
# define PERL_PATCHLEVEL_H_IMPLICIT |
| 3180 |
# include <patchlevel.h> |
| 3181 |
# endif |
| 3182 |
# if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) |
| 3183 |
# include <could_not_find_Perl_patchlevel.h> |
| 3184 |
# endif |
| 3185 |
# ifndef PERL_REVISION |
| 3186 |
# define PERL_REVISION (5) |
| 3187 |
|
| 3188 |
# define PERL_VERSION PATCHLEVEL |
| 3189 |
# define PERL_SUBVERSION SUBVERSION |
| 3190 |
|
| 3191 |
|
| 3192 |
# endif |
| 3193 |
#endif |
| 3194 |
|
| 3195 |
#define _dpppDEC2BCD(dec) ((((dec)/100)<<8)|((((dec)%100)/10)<<4)|((dec)%10)) |
| 3196 |
#define PERL_BCDVERSION ((_dpppDEC2BCD(PERL_REVISION)<<24)|(_dpppDEC2BCD(PERL_VERSION)<<12)|_dpppDEC2BCD(PERL_SUBVERSION)) |
| 3197 |
|
| 3198 |
|
| 3199 |
|
| 3200 |
|
| 3201 |
#if PERL_REVISION != 5 |
| 3202 |
# error ppport.h only works with Perl version 5 |
| 3203 |
#endif |
| 3204 |
#ifndef dTHR |
| 3205 |
# define dTHR dNOOP |
| 3206 |
#endif |
| 3207 |
#ifndef dTHX |
| 3208 |
# define dTHX dNOOP |
| 3209 |
#endif |
| 3210 |
|
| 3211 |
#ifndef dTHXa |
| 3212 |
# define dTHXa(x) dNOOP |
| 3213 |
#endif |
| 3214 |
#ifndef pTHX |
| 3215 |
# define pTHX void |
| 3216 |
#endif |
| 3217 |
|
| 3218 |
#ifndef pTHX_ |
| 3219 |
# define pTHX_ |
| 3220 |
#endif |
| 3221 |
|
| 3222 |
#ifndef aTHX |
| 3223 |
# define aTHX |
| 3224 |
#endif |
| 3225 |
|
| 3226 |
#ifndef aTHX_ |
| 3227 |
# define aTHX_ |
| 3228 |
#endif |
| 3229 |
|
| 3230 |
#if (PERL_BCDVERSION < 0x5006000) |
| 3231 |
# ifdef USE_THREADS |
| 3232 |
# define aTHXR thr |
| 3233 |
# define aTHXR_ thr, |
| 3234 |
# else |
| 3235 |
# define aTHXR |
| 3236 |
# define aTHXR_ |
| 3237 |
# endif |
| 3238 |
# define dTHXR dTHR |
| 3239 |
#else |
| 3240 |
# define aTHXR aTHX |
| 3241 |
# define aTHXR_ aTHX_ |
| 3242 |
# define dTHXR dTHX |
| 3243 |
#endif |
| 3244 |
#ifndef dTHXoa |
| 3245 |
# define dTHXoa(x) dTHXa(x) |
| 3246 |
#endif |
| 3247 |
|
| 3248 |
#ifdef I_LIMITS |
| 3249 |
# include <limits.h> |
| 3250 |
#endif |
| 3251 |
|
| 3252 |
#ifndef PERL_UCHAR_MIN |
| 3253 |
# define PERL_UCHAR_MIN ((unsigned char)0) |
| 3254 |
#endif |
| 3255 |
|
| 3256 |
#ifndef PERL_UCHAR_MAX |
| 3257 |
# ifdef UCHAR_MAX |
| 3258 |
# define PERL_UCHAR_MAX ((unsigned char)UCHAR_MAX) |
| 3259 |
# else |
| 3260 |
# ifdef MAXUCHAR |
| 3261 |
# define PERL_UCHAR_MAX ((unsigned char)MAXUCHAR) |
| 3262 |
# else |
| 3263 |
# define PERL_UCHAR_MAX ((unsigned char)~(unsigned)0) |
| 3264 |
# endif |
| 3265 |
# endif |
| 3266 |
#endif |
| 3267 |
|
| 3268 |
#ifndef PERL_USHORT_MIN |
| 3269 |
# define PERL_USHORT_MIN ((unsigned short)0) |
| 3270 |
#endif |
| 3271 |
|
| 3272 |
#ifndef PERL_USHORT_MAX |
| 3273 |
# ifdef USHORT_MAX |
| 3274 |
# define PERL_USHORT_MAX ((unsigned short)USHORT_MAX) |
| 3275 |
# else |
| 3276 |
# ifdef MAXUSHORT |
| 3277 |
# define PERL_USHORT_MAX ((unsigned short)MAXUSHORT) |
| 3278 |
# else |
| 3279 |
# ifdef USHRT_MAX |
| 3280 |
# define PERL_USHORT_MAX ((unsigned short)USHRT_MAX) |
| 3281 |
# else |
| 3282 |
# define PERL_USHORT_MAX ((unsigned short)~(unsigned)0) |
| 3283 |
# endif |
| 3284 |
# endif |
| 3285 |
# endif |
| 3286 |
#endif |
| 3287 |
|
| 3288 |
#ifndef PERL_SHORT_MAX |
| 3289 |
# ifdef SHORT_MAX |
| 3290 |
# define PERL_SHORT_MAX ((short)SHORT_MAX) |
| 3291 |
# else |
| 3292 |
# ifdef MAXSHORT |
| 3293 |
# define PERL_SHORT_MAX ((short)MAXSHORT) |
| 3294 |
# else |
| 3295 |
# ifdef SHRT_MAX |
| 3296 |
# define PERL_SHORT_MAX ((short)SHRT_MAX) |
| 3297 |
# else |
| 3298 |
# define PERL_SHORT_MAX ((short) (PERL_USHORT_MAX >> 1)) |
| 3299 |
# endif |
| 3300 |
# endif |
| 3301 |
# endif |
| 3302 |
#endif |
| 3303 |
|
| 3304 |
#ifndef PERL_SHORT_MIN |
| 3305 |
# ifdef SHORT_MIN |
| 3306 |
# define PERL_SHORT_MIN ((short)SHORT_MIN) |
| 3307 |
# else |
| 3308 |
# ifdef MINSHORT |
| 3309 |
# define PERL_SHORT_MIN ((short)MINSHORT) |
| 3310 |
# else |
| 3311 |
# ifdef SHRT_MIN |
| 3312 |
# define PERL_SHORT_MIN ((short)SHRT_MIN) |
| 3313 |
# else |
| 3314 |
# define PERL_SHORT_MIN (-PERL_SHORT_MAX - ((3 & -1) == 3)) |
| 3315 |
# endif |
| 3316 |
# endif |
| 3317 |
# endif |
| 3318 |
#endif |
| 3319 |
|
| 3320 |
#ifndef PERL_UINT_MAX |
| 3321 |
# ifdef UINT_MAX |
| 3322 |
# define PERL_UINT_MAX ((unsigned int)UINT_MAX) |
| 3323 |
# else |
| 3324 |
# ifdef MAXUINT |
| 3325 |
# define PERL_UINT_MAX ((unsigned int)MAXUINT) |
| 3326 |
# else |
| 3327 |
# define PERL_UINT_MAX (~(unsigned int)0) |
| 3328 |
# endif |
| 3329 |
# endif |
| 3330 |
#endif |
| 3331 |
|
| 3332 |
#ifndef PERL_UINT_MIN |
| 3333 |
# define PERL_UINT_MIN ((unsigned int)0) |
| 3334 |
#endif |
| 3335 |
|
| 3336 |
#ifndef PERL_INT_MAX |
| 3337 |
# ifdef INT_MAX |
| 3338 |
# define PERL_INT_MAX ((int)INT_MAX) |
| 3339 |
# else |
| 3340 |
# ifdef MAXINT |
| 3341 |
# define PERL_INT_MAX ((int)MAXINT) |
| 3342 |
# else |
| 3343 |
# define PERL_INT_MAX ((int)(PERL_UINT_MAX >> 1)) |
| 3344 |
# endif |
| 3345 |
# endif |
| 3346 |
#endif |
| 3347 |
|
| 3348 |
#ifndef PERL_INT_MIN |
| 3349 |
# ifdef INT_MIN |
| 3350 |
# define PERL_INT_MIN ((int)INT_MIN) |
| 3351 |
# else |
| 3352 |
# ifdef MININT |
| 3353 |
# define PERL_INT_MIN ((int)MININT) |
| 3354 |
# else |
| 3355 |
# define PERL_INT_MIN (-PERL_INT_MAX - ((3 & -1) == 3)) |
| 3356 |
# endif |
| 3357 |
# endif |
| 3358 |
#endif |
| 3359 |
|
| 3360 |
#ifndef PERL_ULONG_MAX |
| 3361 |
# ifdef ULONG_MAX |
| 3362 |
# define PERL_ULONG_MAX ((unsigned long)ULONG_MAX) |
| 3363 |
# else |
| 3364 |
# ifdef MAXULONG |
| 3365 |
# define PERL_ULONG_MAX ((unsigned long)MAXULONG) |
| 3366 |
# else |
| 3367 |
# define PERL_ULONG_MAX (~(unsigned long)0) |
| 3368 |
# endif |
| 3369 |
# endif |
| 3370 |
#endif |
| 3371 |
|
| 3372 |
#ifndef PERL_ULONG_MIN |
| 3373 |
# define PERL_ULONG_MIN ((unsigned long)0L) |
| 3374 |
#endif |
| 3375 |
|
| 3376 |
#ifndef PERL_LONG_MAX |
| 3377 |
# ifdef LONG_MAX |
| 3378 |
# define PERL_LONG_MAX ((long)LONG_MAX) |
| 3379 |
# else |
| 3380 |
# ifdef MAXLONG |
| 3381 |
# define PERL_LONG_MAX ((long)MAXLONG) |
| 3382 |
# else |
| 3383 |
# define PERL_LONG_MAX ((long) (PERL_ULONG_MAX >> 1)) |
| 3384 |
# endif |
| 3385 |
# endif |
| 3386 |
#endif |
| 3387 |
|
| 3388 |
#ifndef PERL_LONG_MIN |
| 3389 |
# ifdef LONG_MIN |
| 3390 |
# define PERL_LONG_MIN ((long)LONG_MIN) |
| 3391 |
# else |
| 3392 |
# ifdef MINLONG |
| 3393 |
# define PERL_LONG_MIN ((long)MINLONG) |
| 3394 |
# else |
| 3395 |
# define PERL_LONG_MIN (-PERL_LONG_MAX - ((3 & -1) == 3)) |
| 3396 |
# endif |
| 3397 |
# endif |
| 3398 |
#endif |
| 3399 |
|
| 3400 |
#if defined(HAS_QUAD) && (defined(convex) || defined(uts)) |
| 3401 |
# ifndef PERL_UQUAD_MAX |
| 3402 |
# ifdef ULONGLONG_MAX |
| 3403 |
# define PERL_UQUAD_MAX ((unsigned long long)ULONGLONG_MAX) |
| 3404 |
# else |
| 3405 |
# ifdef MAXULONGLONG |
| 3406 |
# define PERL_UQUAD_MAX ((unsigned long long)MAXULONGLONG) |
| 3407 |
# else |
| 3408 |
# define PERL_UQUAD_MAX (~(unsigned long long)0) |
| 3409 |
# endif |
| 3410 |
# endif |
| 3411 |
# endif |
| 3412 |
|
| 3413 |
# ifndef PERL_UQUAD_MIN |
| 3414 |
# define PERL_UQUAD_MIN ((unsigned long long)0L) |
| 3415 |
# endif |
| 3416 |
|
| 3417 |
# ifndef PERL_QUAD_MAX |
| 3418 |
# ifdef LONGLONG_MAX |
| 3419 |
# define PERL_QUAD_MAX ((long long)LONGLONG_MAX) |
| 3420 |
# else |
| 3421 |
# ifdef MAXLONGLONG |
| 3422 |
# define PERL_QUAD_MAX ((long long)MAXLONGLONG) |
| 3423 |
# else |
| 3424 |
# define PERL_QUAD_MAX ((long long) (PERL_UQUAD_MAX >> 1)) |
| 3425 |
# endif |
| 3426 |
# endif |
| 3427 |
# endif |
| 3428 |
|
| 3429 |
# ifndef PERL_QUAD_MIN |
| 3430 |
# ifdef LONGLONG_MIN |
| 3431 |
# define PERL_QUAD_MIN ((long long)LONGLONG_MIN) |
| 3432 |
# else |
| 3433 |
# ifdef MINLONGLONG |
| 3434 |
# define PERL_QUAD_MIN ((long long)MINLONGLONG) |
| 3435 |
# else |
| 3436 |
# define PERL_QUAD_MIN (-PERL_QUAD_MAX - ((3 & -1) == 3)) |
| 3437 |
# endif |
| 3438 |
# endif |
| 3439 |
# endif |
| 3440 |
#endif |
| 3441 |
|
| 3442 |
|
| 3443 |
#ifdef HAS_QUAD |
| 3444 |
# ifdef cray |
| 3445 |
#ifndef IVTYPE |
| 3446 |
# define IVTYPE int |
| 3447 |
#endif |
| 3448 |
|
| 3449 |
#ifndef IV_MIN |
| 3450 |
# define IV_MIN PERL_INT_MIN |
| 3451 |
#endif |
| 3452 |
|
| 3453 |
#ifndef IV_MAX |
| 3454 |
# define IV_MAX PERL_INT_MAX |
| 3455 |
#endif |
| 3456 |
|
| 3457 |
#ifndef UV_MIN |
| 3458 |
# define UV_MIN PERL_UINT_MIN |
| 3459 |
#endif |
| 3460 |
|
| 3461 |
#ifndef UV_MAX |
| 3462 |
# define UV_MAX PERL_UINT_MAX |
| 3463 |
#endif |
| 3464 |
|
| 3465 |
# ifdef INTSIZE |
| 3466 |
#ifndef IVSIZE |
| 3467 |
# define IVSIZE INTSIZE |
| 3468 |
#endif |
| 3469 |
|
| 3470 |
# endif |
| 3471 |
# else |
| 3472 |
# if defined(convex) || defined(uts) |
| 3473 |
#ifndef IVTYPE |
| 3474 |
# define IVTYPE long long |
| 3475 |
#endif |
| 3476 |
|
| 3477 |
#ifndef IV_MIN |
| 3478 |
# define IV_MIN PERL_QUAD_MIN |
| 3479 |
#endif |
| 3480 |
|
| 3481 |
#ifndef IV_MAX |
| 3482 |
# define IV_MAX PERL_QUAD_MAX |
| 3483 |
#endif |
| 3484 |
|
| 3485 |
#ifndef UV_MIN |
| 3486 |
# define UV_MIN PERL_UQUAD_MIN |
| 3487 |
#endif |
| 3488 |
|
| 3489 |
#ifndef UV_MAX |
| 3490 |
# define UV_MAX PERL_UQUAD_MAX |
| 3491 |
#endif |
| 3492 |
|
| 3493 |
# ifdef LONGLONGSIZE |
| 3494 |
#ifndef IVSIZE |
| 3495 |
# define IVSIZE LONGLONGSIZE |
| 3496 |
#endif |
| 3497 |
|
| 3498 |
# endif |
| 3499 |
# else |
| 3500 |
#ifndef IVTYPE |
| 3501 |
# define IVTYPE long |
| 3502 |
#endif |
| 3503 |
|
| 3504 |
#ifndef IV_MIN |
| 3505 |
# define IV_MIN PERL_LONG_MIN |
| 3506 |
#endif |
| 3507 |
|
| 3508 |
#ifndef IV_MAX |
| 3509 |
# define IV_MAX PERL_LONG_MAX |
| 3510 |
#endif |
| 3511 |
|
| 3512 |
#ifndef UV_MIN |
| 3513 |
# define UV_MIN PERL_ULONG_MIN |
| 3514 |
#endif |
| 3515 |
|
| 3516 |
#ifndef UV_MAX |
| 3517 |
# define UV_MAX PERL_ULONG_MAX |
| 3518 |
#endif |
| 3519 |
|
| 3520 |
# ifdef LONGSIZE |
| 3521 |
#ifndef IVSIZE |
| 3522 |
# define IVSIZE LONGSIZE |
| 3523 |
#endif |
| 3524 |
|
| 3525 |
# endif |
| 3526 |
# endif |
| 3527 |
# endif |
| 3528 |
#ifndef IVSIZE |
| 3529 |
# define IVSIZE 8 |
| 3530 |
#endif |
| 3531 |
|
| 3532 |
#ifndef PERL_QUAD_MIN |
| 3533 |
# define PERL_QUAD_MIN IV_MIN |
| 3534 |
#endif |
| 3535 |
|
| 3536 |
#ifndef PERL_QUAD_MAX |
| 3537 |
# define PERL_QUAD_MAX IV_MAX |
| 3538 |
#endif |
| 3539 |
|
| 3540 |
#ifndef PERL_UQUAD_MIN |
| 3541 |
# define PERL_UQUAD_MIN UV_MIN |
| 3542 |
#endif |
| 3543 |
|
| 3544 |
#ifndef PERL_UQUAD_MAX |
| 3545 |
# define PERL_UQUAD_MAX UV_MAX |
| 3546 |
#endif |
| 3547 |
|
| 3548 |
#else |
| 3549 |
#ifndef IVTYPE |
| 3550 |
# define IVTYPE long |
| 3551 |
#endif |
| 3552 |
|
| 3553 |
#ifndef IV_MIN |
| 3554 |
# define IV_MIN PERL_LONG_MIN |
| 3555 |
#endif |
| 3556 |
|
| 3557 |
#ifndef IV_MAX |
| 3558 |
# define IV_MAX PERL_LONG_MAX |
| 3559 |
#endif |
| 3560 |
|
| 3561 |
#ifndef UV_MIN |
| 3562 |
# define UV_MIN PERL_ULONG_MIN |
| 3563 |
#endif |
| 3564 |
|
| 3565 |
#ifndef UV_MAX |
| 3566 |
# define UV_MAX PERL_ULONG_MAX |
| 3567 |
#endif |
| 3568 |
|
| 3569 |
#endif |
| 3570 |
|
| 3571 |
#ifndef IVSIZE |
| 3572 |
# ifdef LONGSIZE |
| 3573 |
# define IVSIZE LONGSIZE |
| 3574 |
# else |
| 3575 |
# define IVSIZE 4 |
| 3576 |
# endif |
| 3577 |
#endif |
| 3578 |
#ifndef UVTYPE |
| 3579 |
# define UVTYPE unsigned IVTYPE |
| 3580 |
#endif |
| 3581 |
|
| 3582 |
#ifndef UVSIZE |
| 3583 |
# define UVSIZE IVSIZE |
| 3584 |
#endif |
| 3585 |
#ifndef sv_setuv |
| 3586 |
# define sv_setuv(sv, uv) \ |
| 3587 |
STMT_START { \ |
| 3588 |
UV TeMpUv = uv; \ |
| 3589 |
if (TeMpUv <= IV_MAX) \ |
| 3590 |
sv_setiv(sv, TeMpUv); \ |
| 3591 |
else \ |
| 3592 |
sv_setnv(sv, (double)TeMpUv); \ |
| 3593 |
} STMT_END |
| 3594 |
#endif |
| 3595 |
#ifndef newSVuv |
| 3596 |
# define newSVuv(uv) ((uv) <= IV_MAX ? newSViv((IV)uv) : newSVnv((NV)uv)) |
| 3597 |
#endif |
| 3598 |
#ifndef sv_2uv |
| 3599 |
# define sv_2uv(sv) ((PL_Sv = (sv)), (UV) (SvNOK(PL_Sv) ? SvNV(PL_Sv) : sv_2nv(PL_Sv))) |
| 3600 |
#endif |
| 3601 |
|
| 3602 |
#ifndef SvUVX |
| 3603 |
# define SvUVX(sv) ((UV)SvIVX(sv)) |
| 3604 |
#endif |
| 3605 |
|
| 3606 |
#ifndef SvUVXx |
| 3607 |
# define SvUVXx(sv) SvUVX(sv) |
| 3608 |
#endif |
| 3609 |
|
| 3610 |
#ifndef SvUV |
| 3611 |
# define SvUV(sv) (SvIOK(sv) ? SvUVX(sv) : sv_2uv(sv)) |
| 3612 |
#endif |
| 3613 |
|
| 3614 |
#ifndef SvUVx |
| 3615 |
# define SvUVx(sv) ((PL_Sv = (sv)), SvUV(PL_Sv)) |
| 3616 |
#endif |
| 3617 |
|
| 3618 |
|
| 3619 |
|
| 3620 |
|
| 3621 |
#ifndef sv_uv |
| 3622 |
# define sv_uv(sv) SvUVx(sv) |
| 3623 |
#endif |
| 3624 |
|
| 3625 |
#if !defined(SvUOK) && defined(SvIOK_UV) |
| 3626 |
# define SvUOK(sv) SvIOK_UV(sv) |
| 3627 |
#endif |
| 3628 |
#ifndef XST_mUV |
| 3629 |
# define XST_mUV(i,v) (ST(i) = sv_2mortal(newSVuv(v)) ) |
| 3630 |
#endif |
| 3631 |
|
| 3632 |
#ifndef XSRETURN_UV |
| 3633 |
# define XSRETURN_UV(v) STMT_START { XST_mUV(0,v); XSRETURN(1); } STMT_END |
| 3634 |
#endif |
| 3635 |
#ifndef PUSHu |
| 3636 |
# define PUSHu(u) STMT_START { sv_setuv(TARG, (UV)(u)); PUSHTARG; } STMT_END |
| 3637 |
#endif |
| 3638 |
|
| 3639 |
#ifndef XPUSHu |
| 3640 |
# define XPUSHu(u) STMT_START { sv_setuv(TARG, (UV)(u)); XPUSHTARG; } STMT_END |
| 3641 |
#endif |
| 3642 |
|
| 3643 |
#ifdef HAS_MEMCMP |
| 3644 |
#ifndef memNE |
| 3645 |
# define memNE(s1,s2,l) (memcmp(s1,s2,l)) |
| 3646 |
#endif |
| 3647 |
|
| 3648 |
#ifndef memEQ |
| 3649 |
# define memEQ(s1,s2,l) (!memcmp(s1,s2,l)) |
| 3650 |
#endif |
| 3651 |
|
| 3652 |
#else |
| 3653 |
#ifndef memNE |
| 3654 |
# define memNE(s1,s2,l) (bcmp(s1,s2,l)) |
| 3655 |
#endif |
| 3656 |
|
| 3657 |
#ifndef memEQ |
| 3658 |
# define memEQ(s1,s2,l) (!bcmp(s1,s2,l)) |
| 3659 |
#endif |
| 3660 |
|
| 3661 |
#endif |
| 3662 |
#ifndef MoveD |
| 3663 |
# define MoveD(s,d,n,t) memmove((char*)(d),(char*)(s), (n) * sizeof(t)) |
| 3664 |
#endif |
| 3665 |
|
| 3666 |
#ifndef CopyD |
| 3667 |
# define CopyD(s,d,n,t) memcpy((char*)(d),(char*)(s), (n) * sizeof(t)) |
| 3668 |
#endif |
| 3669 |
|
| 3670 |
#ifdef HAS_MEMSET |
| 3671 |
#ifndef ZeroD |
| 3672 |
# define ZeroD(d,n,t) memzero((char*)(d), (n) * sizeof(t)) |
| 3673 |
#endif |
| 3674 |
|
| 3675 |
#else |
| 3676 |
#ifndef ZeroD |
| 3677 |
# define ZeroD(d,n,t) ((void)memzero((char*)(d), (n) * sizeof(t)), d) |
| 3678 |
#endif |
| 3679 |
|
| 3680 |
#endif |
| 3681 |
#ifndef PoisonWith |
| 3682 |
# define PoisonWith(d,n,t,b) (void)memset((char*)(d), (U8)(b), (n) * sizeof(t)) |
| 3683 |
#endif |
| 3684 |
|
| 3685 |
#ifndef PoisonNew |
| 3686 |
# define PoisonNew(d,n,t) PoisonWith(d,n,t,0xAB) |
| 3687 |
#endif |
| 3688 |
|
| 3689 |
#ifndef PoisonFree |
| 3690 |
# define PoisonFree(d,n,t) PoisonWith(d,n,t,0xEF) |
| 3691 |
#endif |
| 3692 |
|
| 3693 |
#ifndef Poison |
| 3694 |
# define Poison(d,n,t) PoisonFree(d,n,t) |
| 3695 |
#endif |
| 3696 |
#ifndef Newx |
| 3697 |
# define Newx(v,n,t) New(0,v,n,t) |
| 3698 |
#endif |
| 3699 |
|
| 3700 |
#ifndef Newxc |
| 3701 |
# define Newxc(v,n,t,c) Newc(0,v,n,t,c) |
| 3702 |
#endif |
| 3703 |
|
| 3704 |
#ifndef Newxz |
| 3705 |
# define Newxz(v,n,t) Newz(0,v,n,t) |
| 3706 |
#endif |
| 3707 |
|
| 3708 |
#ifndef PERL_UNUSED_DECL |
| 3709 |
# ifdef HASATTRIBUTE |
| 3710 |
# if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER) |
| 3711 |
# define PERL_UNUSED_DECL |
| 3712 |
# else |
| 3713 |
# define PERL_UNUSED_DECL __attribute__((unused)) |
| 3714 |
# endif |
| 3715 |
# else |
| 3716 |
# define PERL_UNUSED_DECL |
| 3717 |
# endif |
| 3718 |
#endif |
| 3719 |
|
| 3720 |
#ifndef PERL_UNUSED_ARG |
| 3721 |
# if defined(lint) && defined(S_SPLINT_S) |
| 3722 |
# include <note.h> |
| 3723 |
# define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x)) |
| 3724 |
# else |
| 3725 |
# define PERL_UNUSED_ARG(x) ((void)x) |
| 3726 |
# endif |
| 3727 |
#endif |
| 3728 |
|
| 3729 |
#ifndef PERL_UNUSED_VAR |
| 3730 |
# define PERL_UNUSED_VAR(x) ((void)x) |
| 3731 |
#endif |
| 3732 |
|
| 3733 |
#ifndef PERL_UNUSED_CONTEXT |
| 3734 |
# ifdef USE_ITHREADS |
| 3735 |
# define PERL_UNUSED_CONTEXT PERL_UNUSED_ARG(my_perl) |
| 3736 |
# else |
| 3737 |
# define PERL_UNUSED_CONTEXT |
| 3738 |
# endif |
| 3739 |
#endif |
| 3740 |
#ifndef NOOP |
| 3741 |
# define NOOP (void)0 |
| 3742 |
#endif |
| 3743 |
|
| 3744 |
#ifndef dNOOP |
| 3745 |
# define dNOOP extern int Perl___notused PERL_UNUSED_DECL |
| 3746 |
#endif |
| 3747 |
|
| 3748 |
#ifndef NVTYPE |
| 3749 |
# if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) |
| 3750 |
# define NVTYPE long double |
| 3751 |
# else |
| 3752 |
# define NVTYPE double |
| 3753 |
# endif |
| 3754 |
typedef NVTYPE NV; |
| 3755 |
#endif |
| 3756 |
|
| 3757 |
#ifndef INT2PTR |
| 3758 |
# if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) |
| 3759 |
# define PTRV UV |
| 3760 |
# define INT2PTR(any,d) (any)(d) |
| 3761 |
# else |
| 3762 |
# if PTRSIZE == LONGSIZE |
| 3763 |
# define PTRV unsigned long |
| 3764 |
# else |
| 3765 |
# define PTRV unsigned |
| 3766 |
# endif |
| 3767 |
# define INT2PTR(any,d) (any)(PTRV)(d) |
| 3768 |
# endif |
| 3769 |
#endif |
| 3770 |
|
| 3771 |
#ifndef PTR2ul |
| 3772 |
# if PTRSIZE == LONGSIZE |
| 3773 |
# define PTR2ul(p) (unsigned long)(p) |
| 3774 |
# else |
| 3775 |
# define PTR2ul(p) INT2PTR(unsigned long,p) |
| 3776 |
# endif |
| 3777 |
#endif |
| 3778 |
#ifndef PTR2nat |
| 3779 |
# define PTR2nat(p) (PTRV)(p) |
| 3780 |
#endif |
| 3781 |
|
| 3782 |
#ifndef NUM2PTR |
| 3783 |
# define NUM2PTR(any,d) (any)PTR2nat(d) |
| 3784 |
#endif |
| 3785 |
|
| 3786 |
#ifndef PTR2IV |
| 3787 |
# define PTR2IV(p) INT2PTR(IV,p) |
| 3788 |
#endif |
| 3789 |
|
| 3790 |
#ifndef PTR2UV |
| 3791 |
# define PTR2UV(p) INT2PTR(UV,p) |
| 3792 |
#endif |
| 3793 |
|
| 3794 |
#ifndef PTR2NV |
| 3795 |
# define PTR2NV(p) NUM2PTR(NV,p) |
| 3796 |
#endif |
| 3797 |
|
| 3798 |
#undef START_EXTERN_C |
| 3799 |
#undef END_EXTERN_C |
| 3800 |
#undef EXTERN_C |
| 3801 |
#ifdef __cplusplus |
| 3802 |
# define START_EXTERN_C extern "C" { |
| 3803 |
# define END_EXTERN_C } |
| 3804 |
# define EXTERN_C extern "C" |
| 3805 |
#else |
| 3806 |
# define START_EXTERN_C |
| 3807 |
# define END_EXTERN_C |
| 3808 |
# define EXTERN_C extern |
| 3809 |
#endif |
| 3810 |
|
| 3811 |
#if defined(PERL_GCC_PEDANTIC) |
| 3812 |
# ifndef PERL_GCC_BRACE_GROUPS_FORBIDDEN |
| 3813 |
# define PERL_GCC_BRACE_GROUPS_FORBIDDEN |
| 3814 |
# endif |
| 3815 |
#endif |
| 3816 |
|
| 3817 |
#if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) && !defined(__cplusplus) |
| 3818 |
# ifndef PERL_USE_GCC_BRACE_GROUPS |
| 3819 |
# define PERL_USE_GCC_BRACE_GROUPS |
| 3820 |
# endif |
| 3821 |
#endif |
| 3822 |
|
| 3823 |
#undef STMT_START |
| 3824 |
#undef STMT_END |
| 3825 |
#ifdef PERL_USE_GCC_BRACE_GROUPS |
| 3826 |
# define STMT_START (void)( |
| 3827 |
# define STMT_END ) |
| 3828 |
#else |
| 3829 |
# if defined(VOIDFLAGS) && (VOIDFLAGS) && (defined(sun) || defined(__sun__)) && !defined(__GNUC__) |
| 3830 |
# define STMT_START if (1) |
| 3831 |
# define STMT_END else (void)0 |
| 3832 |
# else |
| 3833 |
# define STMT_START do |
| 3834 |
# define STMT_END while (0) |
| 3835 |
# endif |
| 3836 |
#endif |
| 3837 |
#ifndef boolSV |
| 3838 |
# define boolSV(b) ((b) ? &PL_sv_yes : &PL_sv_no) |
| 3839 |
#endif |
| 3840 |
|
| 3841 |
|
| 3842 |
#ifndef DEFSV |
| 3843 |
# define DEFSV GvSV(PL_defgv) |
| 3844 |
#endif |
| 3845 |
|
| 3846 |
#ifndef SAVE_DEFSV |
| 3847 |
# define SAVE_DEFSV SAVESPTR(GvSV(PL_defgv)) |
| 3848 |
#endif |
| 3849 |
|
| 3850 |
#ifndef DEFSV_set |
| 3851 |
# define DEFSV_set(sv) (DEFSV = (sv)) |
| 3852 |
#endif |
| 3853 |
|
| 3854 |
|
| 3855 |
#ifndef AvFILLp |
| 3856 |
# define AvFILLp AvFILL |
| 3857 |
#endif |
| 3858 |
#ifndef ERRSV |
| 3859 |
# define ERRSV get_sv("@",FALSE) |
| 3860 |
#endif |
| 3861 |
|
| 3862 |
|
| 3863 |
|
| 3864 |
|
| 3865 |
|
| 3866 |
|
| 3867 |
|
| 3868 |
#ifndef gv_stashpvn |
| 3869 |
# define gv_stashpvn(str,len,create) gv_stashpv(str,create) |
| 3870 |
#endif |
| 3871 |
|
| 3872 |
|
| 3873 |
#ifndef get_cv |
| 3874 |
# define get_cv perl_get_cv |
| 3875 |
#endif |
| 3876 |
|
| 3877 |
#ifndef get_sv |
| 3878 |
# define get_sv perl_get_sv |
| 3879 |
#endif |
| 3880 |
|
| 3881 |
#ifndef get_av |
| 3882 |
# define get_av perl_get_av |
| 3883 |
#endif |
| 3884 |
|
| 3885 |
#ifndef get_hv |
| 3886 |
# define get_hv perl_get_hv |
| 3887 |
#endif |
| 3888 |
|
| 3889 |
|
| 3890 |
#ifndef dUNDERBAR |
| 3891 |
# define dUNDERBAR dNOOP |
| 3892 |
#endif |
| 3893 |
|
| 3894 |
#ifndef UNDERBAR |
| 3895 |
# define UNDERBAR DEFSV |
| 3896 |
#endif |
| 3897 |
#ifndef dAX |
| 3898 |
# define dAX I32 ax = MARK - PL_stack_base + 1 |
| 3899 |
#endif |
| 3900 |
|
| 3901 |
#ifndef dITEMS |
| 3902 |
# define dITEMS I32 items = SP - MARK |
| 3903 |
#endif |
| 3904 |
#ifndef dXSTARG |
| 3905 |
# define dXSTARG SV * targ = sv_newmortal() |
| 3906 |
#endif |
| 3907 |
#ifndef dAXMARK |
| 3908 |
# define dAXMARK I32 ax = POPMARK; \ |
| 3909 |
register SV ** const mark = PL_stack_base + ax++ |
| 3910 |
#endif |
| 3911 |
#ifndef XSprePUSH |
| 3912 |
# define XSprePUSH (sp = PL_stack_base + ax - 1) |
| 3913 |
#endif |
| 3914 |
|
| 3915 |
#if (PERL_BCDVERSION < 0x5005000) |
| 3916 |
# undef XSRETURN |
| 3917 |
# define XSRETURN(off) \ |
| 3918 |
STMT_START { \ |
| 3919 |
PL_stack_sp = PL_stack_base + ax + ((off) - 1); \ |
| 3920 |
return; \ |
| 3921 |
} STMT_END |
| 3922 |
#endif |
| 3923 |
#ifndef XSPROTO |
| 3924 |
# define XSPROTO(name) void name(pTHX_ CV* cv) |
| 3925 |
#endif |
| 3926 |
|
| 3927 |
#ifndef SVfARG |
| 3928 |
# define SVfARG(p) ((void*)(p)) |
| 3929 |
#endif |
| 3930 |
#ifndef PERL_ABS |
| 3931 |
# define PERL_ABS(x) ((x) < 0 ? -(x) : (x)) |
| 3932 |
#endif |
| 3933 |
#ifndef dVAR |
| 3934 |
# define dVAR dNOOP |
| 3935 |
#endif |
| 3936 |
#ifndef SVf |
| 3937 |
# define SVf "_" |
| 3938 |
#endif |
| 3939 |
#ifndef UTF8_MAXBYTES |
| 3940 |
# define UTF8_MAXBYTES UTF8_MAXLEN |
| 3941 |
#endif |
| 3942 |
#ifndef CPERLscope |
| 3943 |
# define CPERLscope(x) x |
| 3944 |
#endif |
| 3945 |
#ifndef PERL_HASH |
| 3946 |
# define PERL_HASH(hash,str,len) \ |
| 3947 |
STMT_START { \ |
| 3948 |
const char *s_PeRlHaSh = str; \ |
| 3949 |
I32 i_PeRlHaSh = len; \ |
| 3950 |
U32 hash_PeRlHaSh = 0; \ |
| 3951 |
while (i_PeRlHaSh--) \ |
| 3952 |
hash_PeRlHaSh = hash_PeRlHaSh * 33 + *s_PeRlHaSh++; \ |
| 3953 |
(hash) = hash_PeRlHaSh; \ |
| 3954 |
} STMT_END |
| 3955 |
#endif |
| 3956 |
|
| 3957 |
#ifndef PERLIO_FUNCS_DECL |
| 3958 |
# ifdef PERLIO_FUNCS_CONST |
| 3959 |
# define PERLIO_FUNCS_DECL(funcs) const PerlIO_funcs funcs |
| 3960 |
# define PERLIO_FUNCS_CAST(funcs) (PerlIO_funcs*)(funcs) |
| 3961 |
# else |
| 3962 |
# define PERLIO_FUNCS_DECL(funcs) PerlIO_funcs funcs |
| 3963 |
# define PERLIO_FUNCS_CAST(funcs) (funcs) |
| 3964 |
# endif |
| 3965 |
#endif |
| 3966 |
|
| 3967 |
|
| 3968 |
#if (PERL_BCDVERSION < 0x5009003) |
| 3969 |
|
| 3970 |
# ifdef ARGSproto |
| 3971 |
typedef OP* (CPERLscope(*Perl_ppaddr_t))(ARGSproto); |
| 3972 |
# else |
| 3973 |
typedef OP* (CPERLscope(*Perl_ppaddr_t))(pTHX); |
| 3974 |
# endif |
| 3975 |
|
| 3976 |
typedef OP* (CPERLscope(*Perl_check_t)) (pTHX_ OP*); |
| 3977 |
|
| 3978 |
#endif |
| 3979 |
#ifndef isPSXSPC |
| 3980 |
# define isPSXSPC(c) (isSPACE(c) || (c) == '\v') |
| 3981 |
#endif |
| 3982 |
|
| 3983 |
#ifndef isBLANK |
| 3984 |
# define isBLANK(c) ((c) == ' ' || (c) == '\t') |
| 3985 |
#endif |
| 3986 |
|
| 3987 |
#ifdef EBCDIC |
| 3988 |
#ifndef isALNUMC |
| 3989 |
# define isALNUMC(c) isalnum(c) |
| 3990 |
#endif |
| 3991 |
|
| 3992 |
#ifndef isASCII |
| 3993 |
# define isASCII(c) isascii(c) |
| 3994 |
#endif |
| 3995 |
|
| 3996 |
#ifndef isCNTRL |
| 3997 |
# define isCNTRL(c) iscntrl(c) |
| 3998 |
#endif |
| 3999 |
|
| 4000 |
#ifndef isGRAPH |
| 4001 |
# define isGRAPH(c) isgraph(c) |
| 4002 |
#endif |
| 4003 |
|
| 4004 |
#ifndef isPRINT |
| 4005 |
# define isPRINT(c) isprint(c) |
| 4006 |
#endif |
| 4007 |
|
| 4008 |
#ifndef isPUNCT |
| 4009 |
# define isPUNCT(c) ispunct(c) |
| 4010 |
#endif |
| 4011 |
|
| 4012 |
#ifndef isXDIGIT |
| 4013 |
# define isXDIGIT(c) isxdigit(c) |
| 4014 |
#endif |
| 4015 |
|
| 4016 |
#else |
| 4017 |
# if (PERL_BCDVERSION < 0x5010000) |
| 4018 |
|
| 4019 |
|
| 4020 |
|
| 4021 |
|
| 4022 |
|
| 4023 |
# undef isPRINT |
| 4024 |
# endif |
| 4025 |
#ifndef isALNUMC |
| 4026 |
# define isALNUMC(c) (isALPHA(c) || isDIGIT(c)) |
| 4027 |
#endif |
| 4028 |
|
| 4029 |
#ifndef isASCII |
| 4030 |
# define isASCII(c) ((c) <= 127) |
| 4031 |
#endif |
| 4032 |
|
| 4033 |
#ifndef isCNTRL |
| 4034 |
# define isCNTRL(c) ((c) < ' ' || (c) == 127) |
| 4035 |
#endif |
| 4036 |
|
| 4037 |
#ifndef isGRAPH |
| 4038 |
# define isGRAPH(c) (isALNUM(c) || isPUNCT(c)) |
| 4039 |
#endif |
| 4040 |
|
| 4041 |
#ifndef isPRINT |
| 4042 |
# define isPRINT(c) (((c) >= 32 && (c) < 127)) |
| 4043 |
#endif |
| 4044 |
|
| 4045 |
#ifndef isPUNCT |
| 4046 |
# define isPUNCT(c) (((c) >= 33 && (c) <= 47) || ((c) >= 58 && (c) <= 64) || ((c) >= 91 && (c) <= 96) || ((c) >= 123 && (c) <= 126)) |
| 4047 |
#endif |
| 4048 |
|
| 4049 |
#ifndef isXDIGIT |
| 4050 |
# define isXDIGIT(c) (isDIGIT(c) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F')) |
| 4051 |
#endif |
| 4052 |
|
| 4053 |
#endif |
| 4054 |
|
| 4055 |
#ifndef PERL_SIGNALS_UNSAFE_FLAG |
| 4056 |
|
| 4057 |
#define PERL_SIGNALS_UNSAFE_FLAG 0x0001 |
| 4058 |
|
| 4059 |
#if (PERL_BCDVERSION < 0x5008000) |
| 4060 |
# define D_PPP_PERL_SIGNALS_INIT PERL_SIGNALS_UNSAFE_FLAG |
| 4061 |
#else |
| 4062 |
# define D_PPP_PERL_SIGNALS_INIT 0 |
| 4063 |
#endif |
| 4064 |
|
| 4065 |
#if defined(NEED_PL_signals) |
| 4066 |
static U32 DPPP_(my_PL_signals) = D_PPP_PERL_SIGNALS_INIT; |
| 4067 |
#elif defined(NEED_PL_signals_GLOBAL) |
| 4068 |
U32 DPPP_(my_PL_signals) = D_PPP_PERL_SIGNALS_INIT; |
| 4069 |
#else |
| 4070 |
extern U32 DPPP_(my_PL_signals); |
| 4071 |
#endif |
| 4072 |
#define PL_signals DPPP_(my_PL_signals) |
| 4073 |
|
| 4074 |
#endif |
| 4075 |
|
| 4076 |
|
| 4077 |
|
| 4078 |
|
| 4079 |
|
| 4080 |
|
| 4081 |
|
| 4082 |
|
| 4083 |
#if (PERL_BCDVERSION <= 0x5005005) |
| 4084 |
|
| 4085 |
# define PL_ppaddr ppaddr |
| 4086 |
# define PL_no_modify no_modify |
| 4087 |
|
| 4088 |
#endif |
| 4089 |
|
| 4090 |
#if (PERL_BCDVERSION <= 0x5004005) |
| 4091 |
|
| 4092 |
# define PL_DBsignal DBsignal |
| 4093 |
# define PL_DBsingle DBsingle |
| 4094 |
# define PL_DBsub DBsub |
| 4095 |
# define PL_DBtrace DBtrace |
| 4096 |
# define PL_Sv Sv |
| 4097 |
# define PL_bufend bufend |
| 4098 |
# define PL_bufptr bufptr |
| 4099 |
# define PL_compiling compiling |
| 4100 |
# define PL_copline copline |
| 4101 |
# define PL_curcop curcop |
| 4102 |
# define PL_curstash curstash |
| 4103 |
# define PL_debstash debstash |
| 4104 |
# define PL_defgv defgv |
| 4105 |
# define PL_diehook diehook |
| 4106 |
# define PL_dirty dirty |
| 4107 |
# define PL_dowarn dowarn |
| 4108 |
# define PL_errgv errgv |
| 4109 |
# define PL_error_count error_count |
| 4110 |
# define PL_expect expect |
| 4111 |
# define PL_hexdigit hexdigit |
| 4112 |
# define PL_hints hints |
| 4113 |
# define PL_in_my in_my |
| 4114 |
# define PL_laststatval laststatval |
| 4115 |
# define PL_lex_state lex_state |
| 4116 |
# define PL_lex_stuff lex_stuff |
| 4117 |
# define PL_linestr linestr |
| 4118 |
# define PL_na na |
| 4119 |
# define PL_perl_destruct_level perl_destruct_level |
| 4120 |
# define PL_perldb perldb |
| 4121 |
# define PL_rsfp_filters rsfp_filters |
| 4122 |
# define PL_rsfp rsfp |
| 4123 |
# define PL_stack_base stack_base |
| 4124 |
# define PL_stack_sp stack_sp |
| 4125 |
# define PL_statcache statcache |
| 4126 |
# define PL_stdingv stdingv |
| 4127 |
# define PL_sv_arenaroot sv_arenaroot |
| 4128 |
# define PL_sv_no sv_no |
| 4129 |
# define PL_sv_undef sv_undef |
| 4130 |
# define PL_sv_yes sv_yes |
| 4131 |
# define PL_tainted tainted |
| 4132 |
# define PL_tainting tainting |
| 4133 |
# define PL_tokenbuf tokenbuf |
| 4134 |
|
| 4135 |
#endif |
| 4136 |
|
| 4137 |
|
| 4138 |
|
| 4139 |
|
| 4140 |
|
| 4141 |
|
| 4142 |
|
| 4143 |
|
| 4144 |
|
| 4145 |
|
| 4146 |
|
| 4147 |
#if (PERL_BCDVERSION >= 0x5009005) |
| 4148 |
# ifdef DPPP_PL_parser_NO_DUMMY |
| 4149 |
# define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \ |
| 4150 |
(croak("panic: PL_parser == NULL in %s:%d", \ |
| 4151 |
__FILE__, __LINE__), (yy_parser *) NULL))->var) |
| 4152 |
# else |
| 4153 |
# ifdef DPPP_PL_parser_NO_DUMMY_WARNING |
| 4154 |
# define D_PPP_parser_dummy_warning(var) |
| 4155 |
# else |
| 4156 |
# define D_PPP_parser_dummy_warning(var) \ |
| 4157 |
warn("warning: dummy PL_" #var " used in %s:%d", __FILE__, __LINE__), |
| 4158 |
# endif |
| 4159 |
# define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \ |
| 4160 |
(D_PPP_parser_dummy_warning(var) &DPPP_(dummy_PL_parser)))->var) |
| 4161 |
#if defined(NEED_PL_parser) |
| 4162 |
static yy_parser DPPP_(dummy_PL_parser); |
| 4163 |
#elif defined(NEED_PL_parser_GLOBAL) |
| 4164 |
yy_parser DPPP_(dummy_PL_parser); |
| 4165 |
#else |
| 4166 |
extern yy_parser DPPP_(dummy_PL_parser); |
| 4167 |
#endif |
| 4168 |
|
| 4169 |
# endif |
| 4170 |
|
| 4171 |
|
| 4172 |
|
| 4173 |
|
| 4174 |
|
| 4175 |
|
| 4176 |
|
| 4177 |
|
| 4178 |
|
| 4179 |
|
| 4180 |
|
| 4181 |
|
| 4182 |
|
| 4183 |
|
| 4184 |
|
| 4185 |
|
| 4186 |
# define PL_expect D_PPP_my_PL_parser_var(expect) |
| 4187 |
# define PL_copline D_PPP_my_PL_parser_var(copline) |
| 4188 |
# define PL_rsfp D_PPP_my_PL_parser_var(rsfp) |
| 4189 |
# define PL_rsfp_filters D_PPP_my_PL_parser_var(rsfp_filters) |
| 4190 |
# define PL_linestr D_PPP_my_PL_parser_var(linestr) |
| 4191 |
# define PL_bufptr D_PPP_my_PL_parser_var(bufptr) |
| 4192 |
# define PL_bufend D_PPP_my_PL_parser_var(bufend) |
| 4193 |
# define PL_lex_state D_PPP_my_PL_parser_var(lex_state) |
| 4194 |
# define PL_lex_stuff D_PPP_my_PL_parser_var(lex_stuff) |
| 4195 |
# define PL_tokenbuf D_PPP_my_PL_parser_var(tokenbuf) |
| 4196 |
# define PL_in_my D_PPP_my_PL_parser_var(in_my) |
| 4197 |
# define PL_in_my_stash D_PPP_my_PL_parser_var(in_my_stash) |
| 4198 |
# define PL_error_count D_PPP_my_PL_parser_var(error_count) |
| 4199 |
|
| 4200 |
|
| 4201 |
#else |
| 4202 |
|
| 4203 |
|
| 4204 |
# define PL_parser ((void *) 1) |
| 4205 |
|
| 4206 |
#endif |
| 4207 |
#ifndef mPUSHs |
| 4208 |
# define mPUSHs(s) PUSHs(sv_2mortal(s)) |
| 4209 |
#endif |
| 4210 |
|
| 4211 |
#ifndef PUSHmortal |
| 4212 |
# define PUSHmortal PUSHs(sv_newmortal()) |
| 4213 |
#endif |
| 4214 |
|
| 4215 |
#ifndef mPUSHp |
| 4216 |
# define mPUSHp(p,l) sv_setpvn(PUSHmortal, (p), (l)) |
| 4217 |
#endif |
| 4218 |
|
| 4219 |
#ifndef mPUSHn |
| 4220 |
# define mPUSHn(n) sv_setnv(PUSHmortal, (NV)(n)) |
| 4221 |
#endif |
| 4222 |
|
| 4223 |
#ifndef mPUSHi |
| 4224 |
# define mPUSHi(i) sv_setiv(PUSHmortal, (IV)(i)) |
| 4225 |
#endif |
| 4226 |
|
| 4227 |
#ifndef mPUSHu |
| 4228 |
# define mPUSHu(u) sv_setuv(PUSHmortal, (UV)(u)) |
| 4229 |
#endif |
| 4230 |
#ifndef mXPUSHs |
| 4231 |
# define mXPUSHs(s) XPUSHs(sv_2mortal(s)) |
| 4232 |
#endif |
| 4233 |
|
| 4234 |
#ifndef XPUSHmortal |
| 4235 |
# define XPUSHmortal XPUSHs(sv_newmortal()) |
| 4236 |
#endif |
| 4237 |
|
| 4238 |
#ifndef mXPUSHp |
| 4239 |
# define mXPUSHp(p,l) STMT_START { EXTEND(sp,1); sv_setpvn(PUSHmortal, (p), (l)); } STMT_END |
| 4240 |
#endif |
| 4241 |
|
| 4242 |
#ifndef mXPUSHn |
| 4243 |
# define mXPUSHn(n) STMT_START { EXTEND(sp,1); sv_setnv(PUSHmortal, (NV)(n)); } STMT_END |
| 4244 |
#endif |
| 4245 |
|
| 4246 |
#ifndef mXPUSHi |
| 4247 |
# define mXPUSHi(i) STMT_START { EXTEND(sp,1); sv_setiv(PUSHmortal, (IV)(i)); } STMT_END |
| 4248 |
#endif |
| 4249 |
|
| 4250 |
#ifndef mXPUSHu |
| 4251 |
# define mXPUSHu(u) STMT_START { EXTEND(sp,1); sv_setuv(PUSHmortal, (UV)(u)); } STMT_END |
| 4252 |
#endif |
| 4253 |
|
| 4254 |
|
| 4255 |
#ifndef call_sv |
| 4256 |
# define call_sv perl_call_sv |
| 4257 |
#endif |
| 4258 |
|
| 4259 |
#ifndef call_pv |
| 4260 |
# define call_pv perl_call_pv |
| 4261 |
#endif |
| 4262 |
|
| 4263 |
#ifndef call_argv |
| 4264 |
# define call_argv perl_call_argv |
| 4265 |
#endif |
| 4266 |
|
| 4267 |
#ifndef call_method |
| 4268 |
# define call_method perl_call_method |
| 4269 |
#endif |
| 4270 |
#ifndef eval_sv |
| 4271 |
# define eval_sv perl_eval_sv |
| 4272 |
#endif |
| 4273 |
|
| 4274 |
|
| 4275 |
#ifndef PERL_LOADMOD_DENY |
| 4276 |
# define PERL_LOADMOD_DENY 0x1 |
| 4277 |
#endif |
| 4278 |
|
| 4279 |
#ifndef PERL_LOADMOD_NOIMPORT |
| 4280 |
# define PERL_LOADMOD_NOIMPORT 0x2 |
| 4281 |
#endif |
| 4282 |
|
| 4283 |
#ifndef PERL_LOADMOD_IMPORT_OPS |
| 4284 |
# define PERL_LOADMOD_IMPORT_OPS 0x4 |
| 4285 |
#endif |
| 4286 |
|
| 4287 |
#ifndef G_METHOD |
| 4288 |
# define G_METHOD 64 |
| 4289 |
# ifdef call_sv |
| 4290 |
# undef call_sv |
| 4291 |
# endif |
| 4292 |
# if (PERL_BCDVERSION < 0x5006000) |
| 4293 |
# define call_sv(sv, flags) ((flags) & G_METHOD ? perl_call_method((char *) SvPV_nolen_const(sv), \ |
| 4294 |
(flags) & ~G_METHOD) : perl_call_sv(sv, flags)) |
| 4295 |
# else |
| 4296 |
# define call_sv(sv, flags) ((flags) & G_METHOD ? Perl_call_method(aTHX_ (char *) SvPV_nolen_const(sv), \ |
| 4297 |
(flags) & ~G_METHOD) : Perl_call_sv(aTHX_ sv, flags)) |
| 4298 |
# endif |
| 4299 |
#endif |
| 4300 |
|
| 4301 |
|
| 4302 |
|
| 4303 |
#ifndef eval_pv |
| 4304 |
#if defined(NEED_eval_pv) |
| 4305 |
static SV* DPPP_(my_eval_pv)(char *p, I32 croak_on_error); |
| 4306 |
static |
| 4307 |
#else |
| 4308 |
extern SV* DPPP_(my_eval_pv)(char *p, I32 croak_on_error); |
| 4309 |
#endif |
| 4310 |
|
| 4311 |
#ifdef eval_pv |
| 4312 |
# undef eval_pv |
| 4313 |
#endif |
| 4314 |
#define eval_pv(a,b) DPPP_(my_eval_pv)(aTHX_ a,b) |
| 4315 |
#define Perl_eval_pv DPPP_(my_eval_pv) |
| 4316 |
|
| 4317 |
#if defined(NEED_eval_pv) || defined(NEED_eval_pv_GLOBAL) |
| 4318 |
|
| 4319 |
SV* |
| 4320 |
DPPP_(my_eval_pv)(char *p, I32 croak_on_error) |
| 4321 |
{ |
| 4322 |
dSP; |
| 4323 |
SV* sv = newSVpv(p, 0); |
| 4324 |
|
| 4325 |
PUSHMARK(sp); |
| 4326 |
eval_sv(sv, G_SCALAR); |
| 4327 |
SvREFCNT_dec(sv); |
| 4328 |
|
| 4329 |
SPAGAIN; |
| 4330 |
sv = POPs; |
| 4331 |
PUTBACK; |
| 4332 |
|
| 4333 |
if (croak_on_error && SvTRUE(GvSV(errgv))) |
| 4334 |
croak(SvPVx(GvSV(errgv), na)); |
| 4335 |
|
| 4336 |
return sv; |
| 4337 |
} |
| 4338 |
|
| 4339 |
#endif |
| 4340 |
#endif |
| 4341 |
|
| 4342 |
#ifndef vload_module |
| 4343 |
#if defined(NEED_vload_module) |
| 4344 |
static void DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args); |
| 4345 |
static |
| 4346 |
#else |
| 4347 |
extern void DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args); |
| 4348 |
#endif |
| 4349 |
|
| 4350 |
#ifdef vload_module |
| 4351 |
# undef vload_module |
| 4352 |
#endif |
| 4353 |
#define vload_module(a,b,c,d) DPPP_(my_vload_module)(aTHX_ a,b,c,d) |
| 4354 |
#define Perl_vload_module DPPP_(my_vload_module) |
| 4355 |
|
| 4356 |
#if defined(NEED_vload_module) || defined(NEED_vload_module_GLOBAL) |
| 4357 |
|
| 4358 |
void |
| 4359 |
DPPP_(my_vload_module)(U32 flags, SV *name, SV *ver, va_list *args) |
| 4360 |
{ |
| 4361 |
dTHR; |
| 4362 |
dVAR; |
| 4363 |
OP *veop, *imop; |
| 4364 |
|
| 4365 |
OP * const modname = newSVOP(OP_CONST, 0, name); |
| 4366 |
|
| 4367 |
|
| 4368 |
|
| 4369 |
|
| 4370 |
|
| 4371 |
SvREADONLY_off(((SVOP*)modname)->op_sv); |
| 4372 |
modname->op_private |= OPpCONST_BARE; |
| 4373 |
if (ver) { |
| 4374 |
veop = newSVOP(OP_CONST, 0, ver); |
| 4375 |
} |
| 4376 |
else |
| 4377 |
veop = NULL; |
| 4378 |
if (flags & PERL_LOADMOD_NOIMPORT) { |
| 4379 |
imop = sawparens(newNULLLIST()); |
| 4380 |
} |
| 4381 |
else if (flags & PERL_LOADMOD_IMPORT_OPS) { |
| 4382 |
imop = va_arg(*args, OP*); |
| 4383 |
} |
| 4384 |
else { |
| 4385 |
SV *sv; |
| 4386 |
imop = NULL; |
| 4387 |
sv = va_arg(*args, SV*); |
| 4388 |
while (sv) { |
| 4389 |
imop = append_elem(OP_LIST, imop, newSVOP(OP_CONST, 0, sv)); |
| 4390 |
sv = va_arg(*args, SV*); |
| 4391 |
} |
| 4392 |
} |
| 4393 |
{ |
| 4394 |
const line_t ocopline = PL_copline; |
| 4395 |
COP * const ocurcop = PL_curcop; |
| 4396 |
const int oexpect = PL_expect; |
| 4397 |
|
| 4398 |
#if (PERL_BCDVERSION >= 0x5004000) |
| 4399 |
utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(FALSE, 0), |
| 4400 |
veop, modname, imop); |
| 4401 |
#else |
| 4402 |
utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(), |
| 4403 |
modname, imop); |
| 4404 |
#endif |
| 4405 |
PL_expect = oexpect; |
| 4406 |
PL_copline = ocopline; |
| 4407 |
PL_curcop = ocurcop; |
| 4408 |
} |
| 4409 |
} |
| 4410 |
|
| 4411 |
#endif |
| 4412 |
#endif |
| 4413 |
|
| 4414 |
#ifndef load_module |
| 4415 |
#if defined(NEED_load_module) |
| 4416 |
static void DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...); |
| 4417 |
static |
| 4418 |
#else |
| 4419 |
extern void DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...); |
| 4420 |
#endif |
| 4421 |
|
| 4422 |
#ifdef load_module |
| 4423 |
# undef load_module |
| 4424 |
#endif |
| 4425 |
#define load_module DPPP_(my_load_module) |
| 4426 |
#define Perl_load_module DPPP_(my_load_module) |
| 4427 |
|
| 4428 |
#if defined(NEED_load_module) || defined(NEED_load_module_GLOBAL) |
| 4429 |
|
| 4430 |
void |
| 4431 |
DPPP_(my_load_module)(U32 flags, SV *name, SV *ver, ...) |
| 4432 |
{ |
| 4433 |
va_list args; |
| 4434 |
va_start(args, ver); |
| 4435 |
vload_module(flags, name, ver, &args); |
| 4436 |
va_end(args); |
| 4437 |
} |
| 4438 |
|
| 4439 |
#endif |
| 4440 |
#endif |
| 4441 |
#ifndef newRV_inc |
| 4442 |
# define newRV_inc(sv) newRV(sv) |
| 4443 |
#endif |
| 4444 |
|
| 4445 |
#ifndef newRV_noinc |
| 4446 |
#if defined(NEED_newRV_noinc) |
| 4447 |
static SV * DPPP_(my_newRV_noinc)(SV *sv); |
| 4448 |
static |
| 4449 |
#else |
| 4450 |
extern SV * DPPP_(my_newRV_noinc)(SV *sv); |
| 4451 |
#endif |
| 4452 |
|
| 4453 |
#ifdef newRV_noinc |
| 4454 |
# undef newRV_noinc |
| 4455 |
#endif |
| 4456 |
#define newRV_noinc(a) DPPP_(my_newRV_noinc)(aTHX_ a) |
| 4457 |
#define Perl_newRV_noinc DPPP_(my_newRV_noinc) |
| 4458 |
|
| 4459 |
#if defined(NEED_newRV_noinc) || defined(NEED_newRV_noinc_GLOBAL) |
| 4460 |
SV * |
| 4461 |
DPPP_(my_newRV_noinc)(SV *sv) |
| 4462 |
{ |
| 4463 |
SV *rv = (SV *)newRV(sv); |
| 4464 |
SvREFCNT_dec(sv); |
| 4465 |
return rv; |
| 4466 |
} |
| 4467 |
#endif |
| 4468 |
#endif |
| 4469 |
|
| 4470 |
|
| 4471 |
|
| 4472 |
|
| 4473 |
|
| 4474 |
|
| 4475 |
|
| 4476 |
#if (PERL_BCDVERSION < 0x5004063) && (PERL_BCDVERSION != 0x5004005) |
| 4477 |
#if defined(NEED_newCONSTSUB) |
| 4478 |
static void DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv); |
| 4479 |
static |
| 4480 |
#else |
| 4481 |
extern void DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv); |
| 4482 |
#endif |
| 4483 |
|
| 4484 |
#ifdef newCONSTSUB |
| 4485 |
# undef newCONSTSUB |
| 4486 |
#endif |
| 4487 |
#define newCONSTSUB(a,b,c) DPPP_(my_newCONSTSUB)(aTHX_ a,b,c) |
| 4488 |
#define Perl_newCONSTSUB DPPP_(my_newCONSTSUB) |
| 4489 |
|
| 4490 |
#if defined(NEED_newCONSTSUB) || defined(NEED_newCONSTSUB_GLOBAL) |
| 4491 |
|
| 4492 |
|
| 4493 |
|
| 4494 |
#define D_PPP_PL_copline PL_copline |
| 4495 |
|
| 4496 |
void |
| 4497 |
DPPP_(my_newCONSTSUB)(HV *stash, const char *name, SV *sv) |
| 4498 |
{ |
| 4499 |
U32 oldhints = PL_hints; |
| 4500 |
HV *old_cop_stash = PL_curcop->cop_stash; |
| 4501 |
HV *old_curstash = PL_curstash; |
| 4502 |
line_t oldline = PL_curcop->cop_line; |
| 4503 |
PL_curcop->cop_line = D_PPP_PL_copline; |
| 4504 |
|
| 4505 |
PL_hints &= ~HINT_BLOCK_SCOPE; |
| 4506 |
if (stash) |
| 4507 |
PL_curstash = PL_curcop->cop_stash = stash; |
| 4508 |
|
| 4509 |
newSUB( |
| 4510 |
|
| 4511 |
#if (PERL_BCDVERSION < 0x5003022) |
| 4512 |
start_subparse(), |
| 4513 |
#elif (PERL_BCDVERSION == 0x5003022) |
| 4514 |
start_subparse(0), |
| 4515 |
#else |
| 4516 |
start_subparse(FALSE, 0), |
| 4517 |
#endif |
| 4518 |
|
| 4519 |
newSVOP(OP_CONST, 0, newSVpv((char *) name, 0)), |
| 4520 |
newSVOP(OP_CONST, 0, &PL_sv_no), |
| 4521 |
newSTATEOP(0, Nullch, newSVOP(OP_CONST, 0, sv)) |
| 4522 |
); |
| 4523 |
|
| 4524 |
PL_hints = oldhints; |
| 4525 |
PL_curcop->cop_stash = old_cop_stash; |
| 4526 |
PL_curstash = old_curstash; |
| 4527 |
PL_curcop->cop_line = oldline; |
| 4528 |
} |
| 4529 |
#endif |
| 4530 |
#endif |
| 4531 |
|
| 4532 |
|
| 4533 |
|
| 4534 |
|
| 4535 |
|
| 4536 |
|
| 4537 |
|
| 4538 |
|
| 4539 |
|
| 4540 |
|
| 4541 |
|
| 4542 |
|
| 4543 |
|
| 4544 |
|
| 4545 |
|
| 4546 |
|
| 4547 |
|
| 4548 |
|
| 4549 |
|
| 4550 |
|
| 4551 |
#if defined(MULTIPLICITY) || defined(PERL_OBJECT) || \ |
| 4552 |
defined(PERL_CAPI) || defined(PERL_IMPLICIT_CONTEXT) |
| 4553 |
|
| 4554 |
#ifndef START_MY_CXT |
| 4555 |
|
| 4556 |
|
| 4557 |
|
| 4558 |
|
| 4559 |
#define START_MY_CXT |
| 4560 |
|
| 4561 |
#if (PERL_BCDVERSION < 0x5004068) |
| 4562 |
|
| 4563 |
#define dMY_CXT_SV \ |
| 4564 |
SV *my_cxt_sv = get_sv(MY_CXT_KEY, FALSE) |
| 4565 |
#else |
| 4566 |
#define dMY_CXT_SV \ |
| 4567 |
SV *my_cxt_sv = *hv_fetch(PL_modglobal, MY_CXT_KEY, \ |
| 4568 |
sizeof(MY_CXT_KEY)-1, TRUE) |
| 4569 |
#endif |
| 4570 |
|
| 4571 |
|
| 4572 |
|
| 4573 |
#define dMY_CXT \ |
| 4574 |
dMY_CXT_SV; \ |
| 4575 |
my_cxt_t *my_cxtp = INT2PTR(my_cxt_t*,SvUV(my_cxt_sv)) |
| 4576 |
|
| 4577 |
|
| 4578 |
|
| 4579 |
|
| 4580 |
#define MY_CXT_INIT \ |
| 4581 |
dMY_CXT_SV; \ |
| 4582 |
\ |
| 4583 |
my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\ |
| 4584 |
Zero(my_cxtp, 1, my_cxt_t); \ |
| 4585 |
sv_setuv(my_cxt_sv, PTR2UV(my_cxtp)) |
| 4586 |
|
| 4587 |
|
| 4588 |
|
| 4589 |
#define MY_CXT (*my_cxtp) |
| 4590 |
|
| 4591 |
|
| 4592 |
|
| 4593 |
#define pMY_CXT my_cxt_t *my_cxtp |
| 4594 |
#define pMY_CXT_ pMY_CXT, |
| 4595 |
#define _pMY_CXT ,pMY_CXT |
| 4596 |
#define aMY_CXT my_cxtp |
| 4597 |
#define aMY_CXT_ aMY_CXT, |
| 4598 |
#define _aMY_CXT ,aMY_CXT |
| 4599 |
|
| 4600 |
#endif |
| 4601 |
|
| 4602 |
#ifndef MY_CXT_CLONE |
| 4603 |
|
| 4604 |
#define MY_CXT_CLONE \ |
| 4605 |
dMY_CXT_SV; \ |
| 4606 |
my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\ |
| 4607 |
Copy(INT2PTR(my_cxt_t*, SvUV(my_cxt_sv)), my_cxtp, 1, my_cxt_t);\ |
| 4608 |
sv_setuv(my_cxt_sv, PTR2UV(my_cxtp)) |
| 4609 |
#endif |
| 4610 |
|
| 4611 |
#else |
| 4612 |
|
| 4613 |
#ifndef START_MY_CXT |
| 4614 |
|
| 4615 |
#define START_MY_CXT static my_cxt_t my_cxt; |
| 4616 |
#define dMY_CXT_SV dNOOP |
| 4617 |
#define dMY_CXT dNOOP |
| 4618 |
#define MY_CXT_INIT NOOP |
| 4619 |
#define MY_CXT my_cxt |
| 4620 |
|
| 4621 |
#define pMY_CXT void |
| 4622 |
#define pMY_CXT_ |
| 4623 |
#define _pMY_CXT |
| 4624 |
#define aMY_CXT |
| 4625 |
#define aMY_CXT_ |
| 4626 |
#define _aMY_CXT |
| 4627 |
|
| 4628 |
#endif |
| 4629 |
|
| 4630 |
#ifndef MY_CXT_CLONE |
| 4631 |
#define MY_CXT_CLONE NOOP |
| 4632 |
#endif |
| 4633 |
|
| 4634 |
#endif |
| 4635 |
|
| 4636 |
#ifndef IVdf |
| 4637 |
# if IVSIZE == LONGSIZE |
| 4638 |
# define IVdf "ld" |
| 4639 |
# define UVuf "lu" |
| 4640 |
# define UVof "lo" |
| 4641 |
# define UVxf "lx" |
| 4642 |
# define UVXf "lX" |
| 4643 |
# else |
| 4644 |
# if IVSIZE == INTSIZE |
| 4645 |
# define IVdf "d" |
| 4646 |
# define UVuf "u" |
| 4647 |
# define UVof "o" |
| 4648 |
# define UVxf "x" |
| 4649 |
# define UVXf "X" |
| 4650 |
# endif |
| 4651 |
# endif |
| 4652 |
#endif |
| 4653 |
|
| 4654 |
#ifndef NVef |
| 4655 |
# if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) && \ |
| 4656 |
defined(PERL_PRIfldbl) && (PERL_BCDVERSION != 0x5006000) |
| 4657 |
|
| 4658 |
# define NVef PERL_PRIeldbl |
| 4659 |
# define NVff PERL_PRIfldbl |
| 4660 |
# define NVgf PERL_PRIgldbl |
| 4661 |
# else |
| 4662 |
# define NVef "e" |
| 4663 |
# define NVff "f" |
| 4664 |
# define NVgf "g" |
| 4665 |
# endif |
| 4666 |
#endif |
| 4667 |
|
| 4668 |
#ifndef SvREFCNT_inc |
| 4669 |
# ifdef PERL_USE_GCC_BRACE_GROUPS |
| 4670 |
# define SvREFCNT_inc(sv) \ |
| 4671 |
({ \ |
| 4672 |
SV * const _sv = (SV*)(sv); \ |
| 4673 |
if (_sv) \ |
| 4674 |
(SvREFCNT(_sv))++; \ |
| 4675 |
_sv; \ |
| 4676 |
}) |
| 4677 |
# else |
| 4678 |
# define SvREFCNT_inc(sv) \ |
| 4679 |
((PL_Sv=(SV*)(sv)) ? (++(SvREFCNT(PL_Sv)),PL_Sv) : NULL) |
| 4680 |
# endif |
| 4681 |
#endif |
| 4682 |
|
| 4683 |
#ifndef SvREFCNT_inc_simple |
| 4684 |
# ifdef PERL_USE_GCC_BRACE_GROUPS |
| 4685 |
# define SvREFCNT_inc_simple(sv) \ |
| 4686 |
({ \ |
| 4687 |
if (sv) \ |
| 4688 |
(SvREFCNT(sv))++; \ |
| 4689 |
(SV *)(sv); \ |
| 4690 |
}) |
| 4691 |
# else |
| 4692 |
# define SvREFCNT_inc_simple(sv) \ |
| 4693 |
((sv) ? (SvREFCNT(sv)++,(SV*)(sv)) : NULL) |
| 4694 |
# endif |
| 4695 |
#endif |
| 4696 |
|
| 4697 |
#ifndef SvREFCNT_inc_NN |
| 4698 |
# ifdef PERL_USE_GCC_BRACE_GROUPS |
| 4699 |
# define SvREFCNT_inc_NN(sv) \ |
| 4700 |
({ \ |
| 4701 |
SV * const _sv = (SV*)(sv); \ |
| 4702 |
SvREFCNT(_sv)++; \ |
| 4703 |
_sv; \ |
| 4704 |
}) |
| 4705 |
# else |
| 4706 |
# define SvREFCNT_inc_NN(sv) \ |
| 4707 |
(PL_Sv=(SV*)(sv),++(SvREFCNT(PL_Sv)),PL_Sv) |
| 4708 |
# endif |
| 4709 |
#endif |
| 4710 |
|
| 4711 |
#ifndef SvREFCNT_inc_void |
| 4712 |
# ifdef PERL_USE_GCC_BRACE_GROUPS |
| 4713 |
# define SvREFCNT_inc_void(sv) \ |
| 4714 |
({ \ |
| 4715 |
SV * const _sv = (SV*)(sv); \ |
| 4716 |
if (_sv) \ |
| 4717 |
(void)(SvREFCNT(_sv)++); \ |
| 4718 |
}) |
| 4719 |
# else |
| 4720 |
# define SvREFCNT_inc_void(sv) \ |
| 4721 |
(void)((PL_Sv=(SV*)(sv)) ? ++(SvREFCNT(PL_Sv)) : 0) |
| 4722 |
# endif |
| 4723 |
#endif |
| 4724 |
#ifndef SvREFCNT_inc_simple_void |
| 4725 |
# define SvREFCNT_inc_simple_void(sv) STMT_START { if (sv) SvREFCNT(sv)++; } STMT_END |
| 4726 |
#endif |
| 4727 |
|
| 4728 |
#ifndef SvREFCNT_inc_simple_NN |
| 4729 |
# define SvREFCNT_inc_simple_NN(sv) (++SvREFCNT(sv), (SV*)(sv)) |
| 4730 |
#endif |
| 4731 |
|
| 4732 |
#ifndef SvREFCNT_inc_void_NN |
| 4733 |
# define SvREFCNT_inc_void_NN(sv) (void)(++SvREFCNT((SV*)(sv))) |
| 4734 |
#endif |
| 4735 |
|
| 4736 |
#ifndef SvREFCNT_inc_simple_void_NN |
| 4737 |
# define SvREFCNT_inc_simple_void_NN(sv) (void)(++SvREFCNT((SV*)(sv))) |
| 4738 |
#endif |
| 4739 |
|
| 4740 |
#ifndef newSV_type |
| 4741 |
|
| 4742 |
#if defined(NEED_newSV_type) |
| 4743 |
static SV* DPPP_(my_newSV_type)(pTHX_ svtype const t); |
| 4744 |
static |
| 4745 |
#else |
| 4746 |
extern SV* DPPP_(my_newSV_type)(pTHX_ svtype const t); |
| 4747 |
#endif |
| 4748 |
|
| 4749 |
#ifdef newSV_type |
| 4750 |
# undef newSV_type |
| 4751 |
#endif |
| 4752 |
#define newSV_type(a) DPPP_(my_newSV_type)(aTHX_ a) |
| 4753 |
#define Perl_newSV_type DPPP_(my_newSV_type) |
| 4754 |
|
| 4755 |
#if defined(NEED_newSV_type) || defined(NEED_newSV_type_GLOBAL) |
| 4756 |
|
| 4757 |
SV* |
| 4758 |
DPPP_(my_newSV_type)(pTHX_ svtype const t) |
| 4759 |
{ |
| 4760 |
SV* const sv = newSV(0); |
| 4761 |
sv_upgrade(sv, t); |
| 4762 |
return sv; |
| 4763 |
} |
| 4764 |
|
| 4765 |
#endif |
| 4766 |
|
| 4767 |
#endif |
| 4768 |
|
| 4769 |
#if (PERL_BCDVERSION < 0x5006000) |
| 4770 |
# define D_PPP_CONSTPV_ARG(x) ((char *) (x)) |
| 4771 |
#else |
| 4772 |
# define D_PPP_CONSTPV_ARG(x) (x) |
| 4773 |
#endif |
| 4774 |
#ifndef newSVpvn |
| 4775 |
# define newSVpvn(data,len) ((data) \ |
| 4776 |
? ((len) ? newSVpv((data), (len)) : newSVpv("", 0)) \ |
| 4777 |
: newSV(0)) |
| 4778 |
#endif |
| 4779 |
#ifndef newSVpvn_utf8 |
| 4780 |
# define newSVpvn_utf8(s, len, u) newSVpvn_flags((s), (len), (u) ? SVf_UTF8 : 0) |
| 4781 |
#endif |
| 4782 |
#ifndef SVf_UTF8 |
| 4783 |
# define SVf_UTF8 0 |
| 4784 |
#endif |
| 4785 |
|
| 4786 |
#ifndef newSVpvn_flags |
| 4787 |
|
| 4788 |
#if defined(NEED_newSVpvn_flags) |
| 4789 |
static SV * DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags); |
| 4790 |
static |
| 4791 |
#else |
| 4792 |
extern SV * DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags); |
| 4793 |
#endif |
| 4794 |
|
| 4795 |
#ifdef newSVpvn_flags |
| 4796 |
# undef newSVpvn_flags |
| 4797 |
#endif |
| 4798 |
#define newSVpvn_flags(a,b,c) DPPP_(my_newSVpvn_flags)(aTHX_ a,b,c) |
| 4799 |
#define Perl_newSVpvn_flags DPPP_(my_newSVpvn_flags) |
| 4800 |
|
| 4801 |
#if defined(NEED_newSVpvn_flags) || defined(NEED_newSVpvn_flags_GLOBAL) |
| 4802 |
|
| 4803 |
SV * |
| 4804 |
DPPP_(my_newSVpvn_flags)(pTHX_ const char *s, STRLEN len, U32 flags) |
| 4805 |
{ |
| 4806 |
SV *sv = newSVpvn(D_PPP_CONSTPV_ARG(s), len); |
| 4807 |
SvFLAGS(sv) |= (flags & SVf_UTF8); |
| 4808 |
return (flags & SVs_TEMP) ? sv_2mortal(sv) : sv; |
| 4809 |
} |
| 4810 |
|
| 4811 |
#endif |
| 4812 |
|
| 4813 |
#endif |
| 4814 |
|
| 4815 |
|
| 4816 |
#if !defined(NEED_sv_2pv_flags) && defined(NEED_sv_2pv_nolen) |
| 4817 |
# define NEED_sv_2pv_flags |
| 4818 |
#endif |
| 4819 |
#if !defined(NEED_sv_2pv_flags_GLOBAL) && defined(NEED_sv_2pv_nolen_GLOBAL) |
| 4820 |
# define NEED_sv_2pv_flags_GLOBAL |
| 4821 |
#endif |
| 4822 |
|
| 4823 |
|
| 4824 |
|
| 4825 |
|
| 4826 |
#ifndef sv_2pv_nolen |
| 4827 |
# define sv_2pv_nolen(sv) SvPV_nolen(sv) |
| 4828 |
#endif |
| 4829 |
|
| 4830 |
#ifdef SvPVbyte |
| 4831 |
|
| 4832 |
|
| 4833 |
|
| 4834 |
|
| 4835 |
|
| 4836 |
|
| 4837 |
#if (PERL_BCDVERSION < 0x5007000) |
| 4838 |
|
| 4839 |
#if defined(NEED_sv_2pvbyte) |
| 4840 |
static char * DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp); |
| 4841 |
static |
| 4842 |
#else |
| 4843 |
extern char * DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp); |
| 4844 |
#endif |
| 4845 |
|
| 4846 |
#ifdef sv_2pvbyte |
| 4847 |
# undef sv_2pvbyte |
| 4848 |
#endif |
| 4849 |
#define sv_2pvbyte(a,b) DPPP_(my_sv_2pvbyte)(aTHX_ a,b) |
| 4850 |
#define Perl_sv_2pvbyte DPPP_(my_sv_2pvbyte) |
| 4851 |
|
| 4852 |
#if defined(NEED_sv_2pvbyte) || defined(NEED_sv_2pvbyte_GLOBAL) |
| 4853 |
|
| 4854 |
char * |
| 4855 |
DPPP_(my_sv_2pvbyte)(pTHX_ SV *sv, STRLEN *lp) |
| 4856 |
{ |
| 4857 |
sv_utf8_downgrade(sv,0); |
| 4858 |
return SvPV(sv,*lp); |
| 4859 |
} |
| 4860 |
|
| 4861 |
#endif |
| 4862 |
|
| 4863 |
|
| 4864 |
|
| 4865 |
|
| 4866 |
|
| 4867 |
#undef SvPVbyte |
| 4868 |
|
| 4869 |
#define SvPVbyte(sv, lp) \ |
| 4870 |
((SvFLAGS(sv) & (SVf_POK|SVf_UTF8)) == (SVf_POK) \ |
| 4871 |
? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pvbyte(sv, &lp)) |
| 4872 |
|
| 4873 |
#endif |
| 4874 |
|
| 4875 |
#else |
| 4876 |
|
| 4877 |
# define SvPVbyte SvPV |
| 4878 |
# define sv_2pvbyte sv_2pv |
| 4879 |
|
| 4880 |
#endif |
| 4881 |
#ifndef sv_2pvbyte_nolen |
| 4882 |
# define sv_2pvbyte_nolen(sv) sv_2pv_nolen(sv) |
| 4883 |
#endif |
| 4884 |
|
| 4885 |
|
| 4886 |
|
| 4887 |
|
| 4888 |
|
| 4889 |
|
| 4890 |
|
| 4891 |
|
| 4892 |
|
| 4893 |
|
| 4894 |
#ifndef SV_IMMEDIATE_UNREF |
| 4895 |
# define SV_IMMEDIATE_UNREF 0 |
| 4896 |
#endif |
| 4897 |
|
| 4898 |
#ifndef SV_GMAGIC |
| 4899 |
# define SV_GMAGIC 0 |
| 4900 |
#endif |
| 4901 |
|
| 4902 |
#ifndef SV_COW_DROP_PV |
| 4903 |
# define SV_COW_DROP_PV 0 |
| 4904 |
#endif |
| 4905 |
|
| 4906 |
#ifndef SV_UTF8_NO_ENCODING |
| 4907 |
# define SV_UTF8_NO_ENCODING 0 |
| 4908 |
#endif |
| 4909 |
|
| 4910 |
#ifndef SV_NOSTEAL |
| 4911 |
# define SV_NOSTEAL 0 |
| 4912 |
#endif |
| 4913 |
|
| 4914 |
#ifndef SV_CONST_RETURN |
| 4915 |
# define SV_CONST_RETURN 0 |
| 4916 |
#endif |
| 4917 |
|
| 4918 |
#ifndef SV_MUTABLE_RETURN |
| 4919 |
# define SV_MUTABLE_RETURN 0 |
| 4920 |
#endif |
| 4921 |
|
| 4922 |
#ifndef SV_SMAGIC |
| 4923 |
# define SV_SMAGIC 0 |
| 4924 |
#endif |
| 4925 |
|
| 4926 |
#ifndef SV_HAS_TRAILING_NUL |
| 4927 |
# define SV_HAS_TRAILING_NUL 0 |
| 4928 |
#endif |
| 4929 |
|
| 4930 |
#ifndef SV_COW_SHARED_HASH_KEYS |
| 4931 |
# define SV_COW_SHARED_HASH_KEYS 0 |
| 4932 |
#endif |
| 4933 |
|
| 4934 |
#if (PERL_BCDVERSION < 0x5007002) |
| 4935 |
|
| 4936 |
#if defined(NEED_sv_2pv_flags) |
| 4937 |
static char * DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags); |
| 4938 |
static |
| 4939 |
#else |
| 4940 |
extern char * DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags); |
| 4941 |
#endif |
| 4942 |
|
| 4943 |
#ifdef sv_2pv_flags |
| 4944 |
# undef sv_2pv_flags |
| 4945 |
#endif |
| 4946 |
#define sv_2pv_flags(a,b,c) DPPP_(my_sv_2pv_flags)(aTHX_ a,b,c) |
| 4947 |
#define Perl_sv_2pv_flags DPPP_(my_sv_2pv_flags) |
| 4948 |
|
| 4949 |
#if defined(NEED_sv_2pv_flags) || defined(NEED_sv_2pv_flags_GLOBAL) |
| 4950 |
|
| 4951 |
char * |
| 4952 |
DPPP_(my_sv_2pv_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags) |
| 4953 |
{ |
| 4954 |
STRLEN n_a = (STRLEN) flags; |
| 4955 |
return sv_2pv(sv, lp ? lp : &n_a); |
| 4956 |
} |
| 4957 |
|
| 4958 |
#endif |
| 4959 |
|
| 4960 |
#if defined(NEED_sv_pvn_force_flags) |
| 4961 |
static char * DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags); |
| 4962 |
static |
| 4963 |
#else |
| 4964 |
extern char * DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags); |
| 4965 |
#endif |
| 4966 |
|
| 4967 |
#ifdef sv_pvn_force_flags |
| 4968 |
# undef sv_pvn_force_flags |
| 4969 |
#endif |
| 4970 |
#define sv_pvn_force_flags(a,b,c) DPPP_(my_sv_pvn_force_flags)(aTHX_ a,b,c) |
| 4971 |
#define Perl_sv_pvn_force_flags DPPP_(my_sv_pvn_force_flags) |
| 4972 |
|
| 4973 |
#if defined(NEED_sv_pvn_force_flags) || defined(NEED_sv_pvn_force_flags_GLOBAL) |
| 4974 |
|
| 4975 |
char * |
| 4976 |
DPPP_(my_sv_pvn_force_flags)(pTHX_ SV *sv, STRLEN *lp, I32 flags) |
| 4977 |
{ |
| 4978 |
STRLEN n_a = (STRLEN) flags; |
| 4979 |
return sv_pvn_force(sv, lp ? lp : &n_a); |
| 4980 |
} |
| 4981 |
|
| 4982 |
#endif |
| 4983 |
|
| 4984 |
#endif |
| 4985 |
|
| 4986 |
#if (PERL_BCDVERSION < 0x5008008) || ( (PERL_BCDVERSION >= 0x5009000) && (PERL_BCDVERSION < 0x5009003) ) |
| 4987 |
# define DPPP_SVPV_NOLEN_LP_ARG &PL_na |
| 4988 |
#else |
| 4989 |
# define DPPP_SVPV_NOLEN_LP_ARG 0 |
| 4990 |
#endif |
| 4991 |
#ifndef SvPV_const |
| 4992 |
# define SvPV_const(sv, lp) SvPV_flags_const(sv, lp, SV_GMAGIC) |
| 4993 |
#endif |
| 4994 |
|
| 4995 |
#ifndef SvPV_mutable |
| 4996 |
# define SvPV_mutable(sv, lp) SvPV_flags_mutable(sv, lp, SV_GMAGIC) |
| 4997 |
#endif |
| 4998 |
#ifndef SvPV_flags |
| 4999 |
# define SvPV_flags(sv, lp, flags) \ |
| 5000 |
((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \ |
| 5001 |
? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags)) |
| 5002 |
#endif |
| 5003 |
#ifndef SvPV_flags_const |
| 5004 |
# define SvPV_flags_const(sv, lp, flags) \ |
| 5005 |
((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \ |
| 5006 |
? ((lp = SvCUR(sv)), SvPVX_const(sv)) : \ |
| 5007 |
(const char*) sv_2pv_flags(sv, &lp, flags|SV_CONST_RETURN)) |
| 5008 |
#endif |
| 5009 |
#ifndef SvPV_flags_const_nolen |
| 5010 |
# define SvPV_flags_const_nolen(sv, flags) \ |
| 5011 |
((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \ |
| 5012 |
? SvPVX_const(sv) : \ |
| 5013 |
(const char*) sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags|SV_CONST_RETURN)) |
| 5014 |
#endif |
| 5015 |
#ifndef SvPV_flags_mutable |
| 5016 |
# define SvPV_flags_mutable(sv, lp, flags) \ |
| 5017 |
((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \ |
| 5018 |
? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) : \ |
| 5019 |
sv_2pv_flags(sv, &lp, flags|SV_MUTABLE_RETURN)) |
| 5020 |
#endif |
| 5021 |
#ifndef SvPV_force |
| 5022 |
# define SvPV_force(sv, lp) SvPV_force_flags(sv, lp, SV_GMAGIC) |
| 5023 |
#endif |
| 5024 |
|
| 5025 |
#ifndef SvPV_force_nolen |
| 5026 |
# define SvPV_force_nolen(sv) SvPV_force_flags_nolen(sv, SV_GMAGIC) |
| 5027 |
#endif |
| 5028 |
|
| 5029 |
#ifndef SvPV_force_mutable |
| 5030 |
# define SvPV_force_mutable(sv, lp) SvPV_force_flags_mutable(sv, lp, SV_GMAGIC) |
| 5031 |
#endif |
| 5032 |
|
| 5033 |
#ifndef SvPV_force_nomg |
| 5034 |
# define SvPV_force_nomg(sv, lp) SvPV_force_flags(sv, lp, 0) |
| 5035 |
#endif |
| 5036 |
|
| 5037 |
#ifndef SvPV_force_nomg_nolen |
| 5038 |
# define SvPV_force_nomg_nolen(sv) SvPV_force_flags_nolen(sv, 0) |
| 5039 |
#endif |
| 5040 |
#ifndef SvPV_force_flags |
| 5041 |
# define SvPV_force_flags(sv, lp, flags) \ |
| 5042 |
((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \ |
| 5043 |
? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_pvn_force_flags(sv, &lp, flags)) |
| 5044 |
#endif |
| 5045 |
#ifndef SvPV_force_flags_nolen |
| 5046 |
# define SvPV_force_flags_nolen(sv, flags) \ |
| 5047 |
((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \ |
| 5048 |
? SvPVX(sv) : sv_pvn_force_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags)) |
| 5049 |
#endif |
| 5050 |
#ifndef SvPV_force_flags_mutable |
| 5051 |
# define SvPV_force_flags_mutable(sv, lp, flags) \ |
| 5052 |
((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \ |
| 5053 |
? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) \ |
| 5054 |
: sv_pvn_force_flags(sv, &lp, flags|SV_MUTABLE_RETURN)) |
| 5055 |
#endif |
| 5056 |
#ifndef SvPV_nolen |
| 5057 |
# define SvPV_nolen(sv) \ |
| 5058 |
((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \ |
| 5059 |
? SvPVX(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC)) |
| 5060 |
#endif |
| 5061 |
#ifndef SvPV_nolen_const |
| 5062 |
# define SvPV_nolen_const(sv) \ |
| 5063 |
((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \ |
| 5064 |
? SvPVX_const(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC|SV_CONST_RETURN)) |
| 5065 |
#endif |
| 5066 |
#ifndef SvPV_nomg |
| 5067 |
# define SvPV_nomg(sv, lp) SvPV_flags(sv, lp, 0) |
| 5068 |
#endif |
| 5069 |
|
| 5070 |
#ifndef SvPV_nomg_const |
| 5071 |
# define SvPV_nomg_const(sv, lp) SvPV_flags_const(sv, lp, 0) |
| 5072 |
#endif |
| 5073 |
|
| 5074 |
#ifndef SvPV_nomg_const_nolen |
| 5075 |
# define SvPV_nomg_const_nolen(sv) SvPV_flags_const_nolen(sv, 0) |
| 5076 |
#endif |
| 5077 |
#ifndef SvPV_renew |
| 5078 |
# define SvPV_renew(sv,n) STMT_START { SvLEN_set(sv, n); \ |
| 5079 |
SvPV_set((sv), (char *) saferealloc( \ |
| 5080 |
(Malloc_t)SvPVX(sv), (MEM_SIZE)((n)))); \ |
| 5081 |
} STMT_END |
| 5082 |
#endif |
| 5083 |
#ifndef SvMAGIC_set |
| 5084 |
# define SvMAGIC_set(sv, val) \ |
| 5085 |
STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \ |
| 5086 |
(((XPVMG*) SvANY(sv))->xmg_magic = (val)); } STMT_END |
| 5087 |
#endif |
| 5088 |
|
| 5089 |
#if (PERL_BCDVERSION < 0x5009003) |
| 5090 |
#ifndef SvPVX_const |
| 5091 |
# define SvPVX_const(sv) ((const char*) (0 + SvPVX(sv))) |
| 5092 |
#endif |
| 5093 |
|
| 5094 |
#ifndef SvPVX_mutable |
| 5095 |
# define SvPVX_mutable(sv) (0 + SvPVX(sv)) |
| 5096 |
#endif |
| 5097 |
#ifndef SvRV_set |
| 5098 |
# define SvRV_set(sv, val) \ |
| 5099 |
STMT_START { assert(SvTYPE(sv) >= SVt_RV); \ |
| 5100 |
(((XRV*) SvANY(sv))->xrv_rv = (val)); } STMT_END |
| 5101 |
#endif |
| 5102 |
|
| 5103 |
#else |
| 5104 |
#ifndef SvPVX_const |
| 5105 |
# define SvPVX_const(sv) ((const char*)((sv)->sv_u.svu_pv)) |
| 5106 |
#endif |
| 5107 |
|
| 5108 |
#ifndef SvPVX_mutable |
| 5109 |
# define SvPVX_mutable(sv) ((sv)->sv_u.svu_pv) |
| 5110 |
#endif |
| 5111 |
#ifndef SvRV_set |
| 5112 |
# define SvRV_set(sv, val) \ |
| 5113 |
STMT_START { assert(SvTYPE(sv) >= SVt_RV); \ |
| 5114 |
((sv)->sv_u.svu_rv = (val)); } STMT_END |
| 5115 |
#endif |
| 5116 |
|
| 5117 |
#endif |
| 5118 |
#ifndef SvSTASH_set |
| 5119 |
# define SvSTASH_set(sv, val) \ |
| 5120 |
STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \ |
| 5121 |
(((XPVMG*) SvANY(sv))->xmg_stash = (val)); } STMT_END |
| 5122 |
#endif |
| 5123 |
|
| 5124 |
#if (PERL_BCDVERSION < 0x5004000) |
| 5125 |
#ifndef SvUV_set |
| 5126 |
# define SvUV_set(sv, val) \ |
| 5127 |
STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \ |
| 5128 |
(((XPVIV*) SvANY(sv))->xiv_iv = (IV) (val)); } STMT_END |
| 5129 |
#endif |
| 5130 |
|
| 5131 |
#else |
| 5132 |
#ifndef SvUV_set |
| 5133 |
# define SvUV_set(sv, val) \ |
| 5134 |
STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \ |
| 5135 |
(((XPVUV*) SvANY(sv))->xuv_uv = (val)); } STMT_END |
| 5136 |
#endif |
| 5137 |
|
| 5138 |
#endif |
| 5139 |
|
| 5140 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(vnewSVpvf) |
| 5141 |
#if defined(NEED_vnewSVpvf) |
| 5142 |
static SV * DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args); |
| 5143 |
static |
| 5144 |
#else |
| 5145 |
extern SV * DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args); |
| 5146 |
#endif |
| 5147 |
|
| 5148 |
#ifdef vnewSVpvf |
| 5149 |
# undef vnewSVpvf |
| 5150 |
#endif |
| 5151 |
#define vnewSVpvf(a,b) DPPP_(my_vnewSVpvf)(aTHX_ a,b) |
| 5152 |
#define Perl_vnewSVpvf DPPP_(my_vnewSVpvf) |
| 5153 |
|
| 5154 |
#if defined(NEED_vnewSVpvf) || defined(NEED_vnewSVpvf_GLOBAL) |
| 5155 |
|
| 5156 |
SV * |
| 5157 |
DPPP_(my_vnewSVpvf)(pTHX_ const char *pat, va_list *args) |
| 5158 |
{ |
| 5159 |
register SV *sv = newSV(0); |
| 5160 |
sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); |
| 5161 |
return sv; |
| 5162 |
} |
| 5163 |
|
| 5164 |
#endif |
| 5165 |
#endif |
| 5166 |
|
| 5167 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf) |
| 5168 |
# define sv_vcatpvf(sv, pat, args) sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) |
| 5169 |
#endif |
| 5170 |
|
| 5171 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf) |
| 5172 |
# define sv_vsetpvf(sv, pat, args) sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) |
| 5173 |
#endif |
| 5174 |
|
| 5175 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg) |
| 5176 |
#if defined(NEED_sv_catpvf_mg) |
| 5177 |
static void DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...); |
| 5178 |
static |
| 5179 |
#else |
| 5180 |
extern void DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...); |
| 5181 |
#endif |
| 5182 |
|
| 5183 |
#define Perl_sv_catpvf_mg DPPP_(my_sv_catpvf_mg) |
| 5184 |
|
| 5185 |
#if defined(NEED_sv_catpvf_mg) || defined(NEED_sv_catpvf_mg_GLOBAL) |
| 5186 |
|
| 5187 |
void |
| 5188 |
DPPP_(my_sv_catpvf_mg)(pTHX_ SV *sv, const char *pat, ...) |
| 5189 |
{ |
| 5190 |
va_list args; |
| 5191 |
va_start(args, pat); |
| 5192 |
sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); |
| 5193 |
SvSETMAGIC(sv); |
| 5194 |
va_end(args); |
| 5195 |
} |
| 5196 |
|
| 5197 |
#endif |
| 5198 |
#endif |
| 5199 |
|
| 5200 |
#ifdef PERL_IMPLICIT_CONTEXT |
| 5201 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg_nocontext) |
| 5202 |
#if defined(NEED_sv_catpvf_mg_nocontext) |
| 5203 |
static void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...); |
| 5204 |
static |
| 5205 |
#else |
| 5206 |
extern void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...); |
| 5207 |
#endif |
| 5208 |
|
| 5209 |
#define sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext) |
| 5210 |
#define Perl_sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext) |
| 5211 |
|
| 5212 |
#if defined(NEED_sv_catpvf_mg_nocontext) || defined(NEED_sv_catpvf_mg_nocontext_GLOBAL) |
| 5213 |
|
| 5214 |
void |
| 5215 |
DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv, const char *pat, ...) |
| 5216 |
{ |
| 5217 |
dTHX; |
| 5218 |
va_list args; |
| 5219 |
va_start(args, pat); |
| 5220 |
sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); |
| 5221 |
SvSETMAGIC(sv); |
| 5222 |
va_end(args); |
| 5223 |
} |
| 5224 |
|
| 5225 |
#endif |
| 5226 |
#endif |
| 5227 |
#endif |
| 5228 |
|
| 5229 |
|
| 5230 |
#ifndef sv_catpvf_mg |
| 5231 |
# ifdef PERL_IMPLICIT_CONTEXT |
| 5232 |
# define sv_catpvf_mg Perl_sv_catpvf_mg_nocontext |
| 5233 |
# else |
| 5234 |
# define sv_catpvf_mg Perl_sv_catpvf_mg |
| 5235 |
# endif |
| 5236 |
#endif |
| 5237 |
|
| 5238 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf_mg) |
| 5239 |
# define sv_vcatpvf_mg(sv, pat, args) \ |
| 5240 |
STMT_START { \ |
| 5241 |
sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ |
| 5242 |
SvSETMAGIC(sv); \ |
| 5243 |
} STMT_END |
| 5244 |
#endif |
| 5245 |
|
| 5246 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg) |
| 5247 |
#if defined(NEED_sv_setpvf_mg) |
| 5248 |
static void DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...); |
| 5249 |
static |
| 5250 |
#else |
| 5251 |
extern void DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...); |
| 5252 |
#endif |
| 5253 |
|
| 5254 |
#define Perl_sv_setpvf_mg DPPP_(my_sv_setpvf_mg) |
| 5255 |
|
| 5256 |
#if defined(NEED_sv_setpvf_mg) || defined(NEED_sv_setpvf_mg_GLOBAL) |
| 5257 |
|
| 5258 |
void |
| 5259 |
DPPP_(my_sv_setpvf_mg)(pTHX_ SV *sv, const char *pat, ...) |
| 5260 |
{ |
| 5261 |
va_list args; |
| 5262 |
va_start(args, pat); |
| 5263 |
sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); |
| 5264 |
SvSETMAGIC(sv); |
| 5265 |
va_end(args); |
| 5266 |
} |
| 5267 |
|
| 5268 |
#endif |
| 5269 |
#endif |
| 5270 |
|
| 5271 |
#ifdef PERL_IMPLICIT_CONTEXT |
| 5272 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg_nocontext) |
| 5273 |
#if defined(NEED_sv_setpvf_mg_nocontext) |
| 5274 |
static void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...); |
| 5275 |
static |
| 5276 |
#else |
| 5277 |
extern void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...); |
| 5278 |
#endif |
| 5279 |
|
| 5280 |
#define sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext) |
| 5281 |
#define Perl_sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext) |
| 5282 |
|
| 5283 |
#if defined(NEED_sv_setpvf_mg_nocontext) || defined(NEED_sv_setpvf_mg_nocontext_GLOBAL) |
| 5284 |
|
| 5285 |
void |
| 5286 |
DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv, const char *pat, ...) |
| 5287 |
{ |
| 5288 |
dTHX; |
| 5289 |
va_list args; |
| 5290 |
va_start(args, pat); |
| 5291 |
sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); |
| 5292 |
SvSETMAGIC(sv); |
| 5293 |
va_end(args); |
| 5294 |
} |
| 5295 |
|
| 5296 |
#endif |
| 5297 |
#endif |
| 5298 |
#endif |
| 5299 |
|
| 5300 |
|
| 5301 |
#ifndef sv_setpvf_mg |
| 5302 |
# ifdef PERL_IMPLICIT_CONTEXT |
| 5303 |
# define sv_setpvf_mg Perl_sv_setpvf_mg_nocontext |
| 5304 |
# else |
| 5305 |
# define sv_setpvf_mg Perl_sv_setpvf_mg |
| 5306 |
# endif |
| 5307 |
#endif |
| 5308 |
|
| 5309 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf_mg) |
| 5310 |
# define sv_vsetpvf_mg(sv, pat, args) \ |
| 5311 |
STMT_START { \ |
| 5312 |
sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ |
| 5313 |
SvSETMAGIC(sv); \ |
| 5314 |
} STMT_END |
| 5315 |
#endif |
| 5316 |
|
| 5317 |
#ifndef newSVpvn_share |
| 5318 |
|
| 5319 |
#if defined(NEED_newSVpvn_share) |
| 5320 |
static SV * DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash); |
| 5321 |
static |
| 5322 |
#else |
| 5323 |
extern SV * DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash); |
| 5324 |
#endif |
| 5325 |
|
| 5326 |
#ifdef newSVpvn_share |
| 5327 |
# undef newSVpvn_share |
| 5328 |
#endif |
| 5329 |
#define newSVpvn_share(a,b,c) DPPP_(my_newSVpvn_share)(aTHX_ a,b,c) |
| 5330 |
#define Perl_newSVpvn_share DPPP_(my_newSVpvn_share) |
| 5331 |
|
| 5332 |
#if defined(NEED_newSVpvn_share) || defined(NEED_newSVpvn_share_GLOBAL) |
| 5333 |
|
| 5334 |
SV * |
| 5335 |
DPPP_(my_newSVpvn_share)(pTHX_ const char *src, I32 len, U32 hash) |
| 5336 |
{ |
| 5337 |
SV *sv; |
| 5338 |
if (len < 0) |
| 5339 |
len = -len; |
| 5340 |
if (!hash) |
| 5341 |
PERL_HASH(hash, (char*) src, len); |
| 5342 |
sv = newSVpvn((char *) src, len); |
| 5343 |
sv_upgrade(sv, SVt_PVIV); |
| 5344 |
SvIVX(sv) = hash; |
| 5345 |
SvREADONLY_on(sv); |
| 5346 |
SvPOK_on(sv); |
| 5347 |
return sv; |
| 5348 |
} |
| 5349 |
|
| 5350 |
#endif |
| 5351 |
|
| 5352 |
#endif |
| 5353 |
#ifndef SvSHARED_HASH |
| 5354 |
# define SvSHARED_HASH(sv) (0 + SvUVX(sv)) |
| 5355 |
#endif |
| 5356 |
#ifndef HvNAME_get |
| 5357 |
# define HvNAME_get(hv) HvNAME(hv) |
| 5358 |
#endif |
| 5359 |
#ifndef HvNAMELEN_get |
| 5360 |
# define HvNAMELEN_get(hv) (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0) |
| 5361 |
#endif |
| 5362 |
#ifndef GvSVn |
| 5363 |
# define GvSVn(gv) GvSV(gv) |
| 5364 |
#endif |
| 5365 |
|
| 5366 |
#ifndef isGV_with_GP |
| 5367 |
# define isGV_with_GP(gv) isGV(gv) |
| 5368 |
#endif |
| 5369 |
#ifndef WARN_ALL |
| 5370 |
# define WARN_ALL 0 |
| 5371 |
#endif |
| 5372 |
|
| 5373 |
#ifndef WARN_CLOSURE |
| 5374 |
# define WARN_CLOSURE 1 |
| 5375 |
#endif |
| 5376 |
|
| 5377 |
#ifndef WARN_DEPRECATED |
| 5378 |
# define WARN_DEPRECATED 2 |
| 5379 |
#endif |
| 5380 |
|
| 5381 |
#ifndef WARN_EXITING |
| 5382 |
# define WARN_EXITING 3 |
| 5383 |
#endif |
| 5384 |
|
| 5385 |
#ifndef WARN_GLOB |
| 5386 |
# define WARN_GLOB 4 |
| 5387 |
#endif |
| 5388 |
|
| 5389 |
#ifndef WARN_IO |
| 5390 |
# define WARN_IO 5 |
| 5391 |
#endif |
| 5392 |
|
| 5393 |
#ifndef WARN_CLOSED |
| 5394 |
# define WARN_CLOSED 6 |
| 5395 |
#endif |
| 5396 |
|
| 5397 |
#ifndef WARN_EXEC |
| 5398 |
# define WARN_EXEC 7 |
| 5399 |
#endif |
| 5400 |
|
| 5401 |
#ifndef WARN_LAYER |
| 5402 |
# define WARN_LAYER 8 |
| 5403 |
#endif |
| 5404 |
|
| 5405 |
#ifndef WARN_NEWLINE |
| 5406 |
# define WARN_NEWLINE 9 |
| 5407 |
#endif |
| 5408 |
|
| 5409 |
#ifndef WARN_PIPE |
| 5410 |
# define WARN_PIPE 10 |
| 5411 |
#endif |
| 5412 |
|
| 5413 |
#ifndef WARN_UNOPENED |
| 5414 |
# define WARN_UNOPENED 11 |
| 5415 |
#endif |
| 5416 |
|
| 5417 |
#ifndef WARN_MISC |
| 5418 |
# define WARN_MISC 12 |
| 5419 |
#endif |
| 5420 |
|
| 5421 |
#ifndef WARN_NUMERIC |
| 5422 |
# define WARN_NUMERIC 13 |
| 5423 |
#endif |
| 5424 |
|
| 5425 |
#ifndef WARN_ONCE |
| 5426 |
# define WARN_ONCE 14 |
| 5427 |
#endif |
| 5428 |
|
| 5429 |
#ifndef WARN_OVERFLOW |
| 5430 |
# define WARN_OVERFLOW 15 |
| 5431 |
#endif |
| 5432 |
|
| 5433 |
#ifndef WARN_PACK |
| 5434 |
# define WARN_PACK 16 |
| 5435 |
#endif |
| 5436 |
|
| 5437 |
#ifndef WARN_PORTABLE |
| 5438 |
# define WARN_PORTABLE 17 |
| 5439 |
#endif |
| 5440 |
|
| 5441 |
#ifndef WARN_RECURSION |
| 5442 |
# define WARN_RECURSION 18 |
| 5443 |
#endif |
| 5444 |
|
| 5445 |
#ifndef WARN_REDEFINE |
| 5446 |
# define WARN_REDEFINE 19 |
| 5447 |
#endif |
| 5448 |
|
| 5449 |
#ifndef WARN_REGEXP |
| 5450 |
# define WARN_REGEXP 20 |
| 5451 |
#endif |
| 5452 |
|
| 5453 |
#ifndef WARN_SEVERE |
| 5454 |
# define WARN_SEVERE 21 |
| 5455 |
#endif |
| 5456 |
|
| 5457 |
#ifndef WARN_DEBUGGING |
| 5458 |
# define WARN_DEBUGGING 22 |
| 5459 |
#endif |
| 5460 |
|
| 5461 |
#ifndef WARN_INPLACE |
| 5462 |
# define WARN_INPLACE 23 |
| 5463 |
#endif |
| 5464 |
|
| 5465 |
#ifndef WARN_INTERNAL |
| 5466 |
# define WARN_INTERNAL 24 |
| 5467 |
#endif |
| 5468 |
|
| 5469 |
#ifndef WARN_MALLOC |
| 5470 |
# define WARN_MALLOC 25 |
| 5471 |
#endif |
| 5472 |
|
| 5473 |
#ifndef WARN_SIGNAL |
| 5474 |
# define WARN_SIGNAL 26 |
| 5475 |
#endif |
| 5476 |
|
| 5477 |
#ifndef WARN_SUBSTR |
| 5478 |
# define WARN_SUBSTR 27 |
| 5479 |
#endif |
| 5480 |
|
| 5481 |
#ifndef WARN_SYNTAX |
| 5482 |
# define WARN_SYNTAX 28 |
| 5483 |
#endif |
| 5484 |
|
| 5485 |
#ifndef WARN_AMBIGUOUS |
| 5486 |
# define WARN_AMBIGUOUS 29 |
| 5487 |
#endif |
| 5488 |
|
| 5489 |
#ifndef WARN_BAREWORD |
| 5490 |
# define WARN_BAREWORD 30 |
| 5491 |
#endif |
| 5492 |
|
| 5493 |
#ifndef WARN_DIGIT |
| 5494 |
# define WARN_DIGIT 31 |
| 5495 |
#endif |
| 5496 |
|
| 5497 |
#ifndef WARN_PARENTHESIS |
| 5498 |
# define WARN_PARENTHESIS 32 |
| 5499 |
#endif |
| 5500 |
|
| 5501 |
#ifndef WARN_PRECEDENCE |
| 5502 |
# define WARN_PRECEDENCE 33 |
| 5503 |
#endif |
| 5504 |
|
| 5505 |
#ifndef WARN_PRINTF |
| 5506 |
# define WARN_PRINTF 34 |
| 5507 |
#endif |
| 5508 |
|
| 5509 |
#ifndef WARN_PROTOTYPE |
| 5510 |
# define WARN_PROTOTYPE 35 |
| 5511 |
#endif |
| 5512 |
|
| 5513 |
#ifndef WARN_QW |
| 5514 |
# define WARN_QW 36 |
| 5515 |
#endif |
| 5516 |
|
| 5517 |
#ifndef WARN_RESERVED |
| 5518 |
# define WARN_RESERVED 37 |
| 5519 |
#endif |
| 5520 |
|
| 5521 |
#ifndef WARN_SEMICOLON |
| 5522 |
# define WARN_SEMICOLON 38 |
| 5523 |
#endif |
| 5524 |
|
| 5525 |
#ifndef WARN_TAINT |
| 5526 |
# define WARN_TAINT 39 |
| 5527 |
#endif |
| 5528 |
|
| 5529 |
#ifndef WARN_THREADS |
| 5530 |
# define WARN_THREADS 40 |
| 5531 |
#endif |
| 5532 |
|
| 5533 |
#ifndef WARN_UNINITIALIZED |
| 5534 |
# define WARN_UNINITIALIZED 41 |
| 5535 |
#endif |
| 5536 |
|
| 5537 |
#ifndef WARN_UNPACK |
| 5538 |
# define WARN_UNPACK 42 |
| 5539 |
#endif |
| 5540 |
|
| 5541 |
#ifndef WARN_UNTIE |
| 5542 |
# define WARN_UNTIE 43 |
| 5543 |
#endif |
| 5544 |
|
| 5545 |
#ifndef WARN_UTF8 |
| 5546 |
# define WARN_UTF8 44 |
| 5547 |
#endif |
| 5548 |
|
| 5549 |
#ifndef WARN_VOID |
| 5550 |
# define WARN_VOID 45 |
| 5551 |
#endif |
| 5552 |
|
| 5553 |
#ifndef WARN_ASSERTIONS |
| 5554 |
# define WARN_ASSERTIONS 46 |
| 5555 |
#endif |
| 5556 |
#ifndef packWARN |
| 5557 |
# define packWARN(a) (a) |
| 5558 |
#endif |
| 5559 |
|
| 5560 |
#ifndef ckWARN |
| 5561 |
# ifdef G_WARN_ON |
| 5562 |
# define ckWARN(a) (PL_dowarn & G_WARN_ON) |
| 5563 |
# else |
| 5564 |
# define ckWARN(a) PL_dowarn |
| 5565 |
# endif |
| 5566 |
#endif |
| 5567 |
|
| 5568 |
#if (PERL_BCDVERSION >= 0x5004000) && !defined(warner) |
| 5569 |
#if defined(NEED_warner) |
| 5570 |
static void DPPP_(my_warner)(U32 err, const char *pat, ...); |
| 5571 |
static |
| 5572 |
#else |
| 5573 |
extern void DPPP_(my_warner)(U32 err, const char *pat, ...); |
| 5574 |
#endif |
| 5575 |
|
| 5576 |
#define Perl_warner DPPP_(my_warner) |
| 5577 |
|
| 5578 |
#if defined(NEED_warner) || defined(NEED_warner_GLOBAL) |
| 5579 |
|
| 5580 |
void |
| 5581 |
DPPP_(my_warner)(U32 err, const char *pat, ...) |
| 5582 |
{ |
| 5583 |
SV *sv; |
| 5584 |
va_list args; |
| 5585 |
|
| 5586 |
PERL_UNUSED_ARG(err); |
| 5587 |
|
| 5588 |
va_start(args, pat); |
| 5589 |
sv = vnewSVpvf(pat, &args); |
| 5590 |
va_end(args); |
| 5591 |
sv_2mortal(sv); |
| 5592 |
warn("%s", SvPV_nolen(sv)); |
| 5593 |
} |
| 5594 |
|
| 5595 |
#define warner Perl_warner |
| 5596 |
|
| 5597 |
#define Perl_warner_nocontext Perl_warner |
| 5598 |
|
| 5599 |
#endif |
| 5600 |
#endif |
| 5601 |
|
| 5602 |
|
| 5603 |
|
| 5604 |
|
| 5605 |
|
| 5606 |
#ifndef STR_WITH_LEN |
| 5607 |
# define STR_WITH_LEN(s) (s ""), (sizeof(s)-1) |
| 5608 |
#endif |
| 5609 |
#ifndef newSVpvs |
| 5610 |
# define newSVpvs(str) newSVpvn(str "", sizeof(str) - 1) |
| 5611 |
#endif |
| 5612 |
|
| 5613 |
#ifndef newSVpvs_flags |
| 5614 |
# define newSVpvs_flags(str, flags) newSVpvn_flags(str "", sizeof(str) - 1, flags) |
| 5615 |
#endif |
| 5616 |
|
| 5617 |
#ifndef sv_catpvs |
| 5618 |
# define sv_catpvs(sv, str) sv_catpvn(sv, str "", sizeof(str) - 1) |
| 5619 |
#endif |
| 5620 |
|
| 5621 |
#ifndef sv_setpvs |
| 5622 |
# define sv_setpvs(sv, str) sv_setpvn(sv, str "", sizeof(str) - 1) |
| 5623 |
#endif |
| 5624 |
|
| 5625 |
#ifndef hv_fetchs |
| 5626 |
# define hv_fetchs(hv, key, lval) hv_fetch(hv, key "", sizeof(key) - 1, lval) |
| 5627 |
#endif |
| 5628 |
|
| 5629 |
#ifndef hv_stores |
| 5630 |
# define hv_stores(hv, key, val) hv_store(hv, key "", sizeof(key) - 1, val, 0) |
| 5631 |
#endif |
| 5632 |
#ifndef gv_fetchpvn_flags |
| 5633 |
# define gv_fetchpvn_flags(name, len, flags, svt) gv_fetchpv(name, flags, svt) |
| 5634 |
#endif |
| 5635 |
|
| 5636 |
#ifndef gv_fetchpvs |
| 5637 |
# define gv_fetchpvs(name, flags, svt) gv_fetchpvn_flags(name "", sizeof(name) - 1, flags, svt) |
| 5638 |
#endif |
| 5639 |
|
| 5640 |
#ifndef gv_stashpvs |
| 5641 |
# define gv_stashpvs(name, flags) gv_stashpvn(name "", sizeof(name) - 1, flags) |
| 5642 |
#endif |
| 5643 |
#ifndef SvGETMAGIC |
| 5644 |
# define SvGETMAGIC(x) STMT_START { if (SvGMAGICAL(x)) mg_get(x); } STMT_END |
| 5645 |
#endif |
| 5646 |
#ifndef PERL_MAGIC_sv |
| 5647 |
# define PERL_MAGIC_sv '\0' |
| 5648 |
#endif |
| 5649 |
|
| 5650 |
#ifndef PERL_MAGIC_overload |
| 5651 |
# define PERL_MAGIC_overload 'A' |
| 5652 |
#endif |
| 5653 |
|
| 5654 |
#ifndef PERL_MAGIC_overload_elem |
| 5655 |
# define PERL_MAGIC_overload_elem 'a' |
| 5656 |
#endif |
| 5657 |
|
| 5658 |
#ifndef PERL_MAGIC_overload_table |
| 5659 |
# define PERL_MAGIC_overload_table 'c' |
| 5660 |
#endif |
| 5661 |
|
| 5662 |
#ifndef PERL_MAGIC_bm |
| 5663 |
# define PERL_MAGIC_bm 'B' |
| 5664 |
#endif |
| 5665 |
|
| 5666 |
#ifndef PERL_MAGIC_regdata |
| 5667 |
# define PERL_MAGIC_regdata 'D' |
| 5668 |
#endif |
| 5669 |
|
| 5670 |
#ifndef PERL_MAGIC_regdatum |
| 5671 |
# define PERL_MAGIC_regdatum 'd' |
| 5672 |
#endif |
| 5673 |
|
| 5674 |
#ifndef PERL_MAGIC_env |
| 5675 |
# define PERL_MAGIC_env 'E' |
| 5676 |
#endif |
| 5677 |
|
| 5678 |
#ifndef PERL_MAGIC_envelem |
| 5679 |
# define PERL_MAGIC_envelem 'e' |
| 5680 |
#endif |
| 5681 |
|
| 5682 |
#ifndef PERL_MAGIC_fm |
| 5683 |
# define PERL_MAGIC_fm 'f' |
| 5684 |
#endif |
| 5685 |
|
| 5686 |
#ifndef PERL_MAGIC_regex_global |
| 5687 |
# define PERL_MAGIC_regex_global 'g' |
| 5688 |
#endif |
| 5689 |
|
| 5690 |
#ifndef PERL_MAGIC_isa |
| 5691 |
# define PERL_MAGIC_isa 'I' |
| 5692 |
#endif |
| 5693 |
|
| 5694 |
#ifndef PERL_MAGIC_isaelem |
| 5695 |
# define PERL_MAGIC_isaelem 'i' |
| 5696 |
#endif |
| 5697 |
|
| 5698 |
#ifndef PERL_MAGIC_nkeys |
| 5699 |
# define PERL_MAGIC_nkeys 'k' |
| 5700 |
#endif |
| 5701 |
|
| 5702 |
#ifndef PERL_MAGIC_dbfile |
| 5703 |
# define PERL_MAGIC_dbfile 'L' |
| 5704 |
#endif |
| 5705 |
|
| 5706 |
#ifndef PERL_MAGIC_dbline |
| 5707 |
# define PERL_MAGIC_dbline 'l' |
| 5708 |
#endif |
| 5709 |
|
| 5710 |
#ifndef PERL_MAGIC_mutex |
| 5711 |
# define PERL_MAGIC_mutex 'm' |
| 5712 |
#endif |
| 5713 |
|
| 5714 |
#ifndef PERL_MAGIC_shared |
| 5715 |
# define PERL_MAGIC_shared 'N' |
| 5716 |
#endif |
| 5717 |
|
| 5718 |
#ifndef PERL_MAGIC_shared_scalar |
| 5719 |
# define PERL_MAGIC_shared_scalar 'n' |
| 5720 |
#endif |
| 5721 |
|
| 5722 |
#ifndef PERL_MAGIC_collxfrm |
| 5723 |
# define PERL_MAGIC_collxfrm 'o' |
| 5724 |
#endif |
| 5725 |
|
| 5726 |
#ifndef PERL_MAGIC_tied |
| 5727 |
# define PERL_MAGIC_tied 'P' |
| 5728 |
#endif |
| 5729 |
|
| 5730 |
#ifndef PERL_MAGIC_tiedelem |
| 5731 |
# define PERL_MAGIC_tiedelem 'p' |
| 5732 |
#endif |
| 5733 |
|
| 5734 |
#ifndef PERL_MAGIC_tiedscalar |
| 5735 |
# define PERL_MAGIC_tiedscalar 'q' |
| 5736 |
#endif |
| 5737 |
|
| 5738 |
#ifndef PERL_MAGIC_qr |
| 5739 |
# define PERL_MAGIC_qr 'r' |
| 5740 |
#endif |
| 5741 |
|
| 5742 |
#ifndef PERL_MAGIC_sig |
| 5743 |
# define PERL_MAGIC_sig 'S' |
| 5744 |
#endif |
| 5745 |
|
| 5746 |
#ifndef PERL_MAGIC_sigelem |
| 5747 |
# define PERL_MAGIC_sigelem 's' |
| 5748 |
#endif |
| 5749 |
|
| 5750 |
#ifndef PERL_MAGIC_taint |
| 5751 |
# define PERL_MAGIC_taint 't' |
| 5752 |
#endif |
| 5753 |
|
| 5754 |
#ifndef PERL_MAGIC_uvar |
| 5755 |
# define PERL_MAGIC_uvar 'U' |
| 5756 |
#endif |
| 5757 |
|
| 5758 |
#ifndef PERL_MAGIC_uvar_elem |
| 5759 |
# define PERL_MAGIC_uvar_elem 'u' |
| 5760 |
#endif |
| 5761 |
|
| 5762 |
#ifndef PERL_MAGIC_vstring |
| 5763 |
# define PERL_MAGIC_vstring 'V' |
| 5764 |
#endif |
| 5765 |
|
| 5766 |
#ifndef PERL_MAGIC_vec |
| 5767 |
# define PERL_MAGIC_vec 'v' |
| 5768 |
#endif |
| 5769 |
|
| 5770 |
#ifndef PERL_MAGIC_utf8 |
| 5771 |
# define PERL_MAGIC_utf8 'w' |
| 5772 |
#endif |
| 5773 |
|
| 5774 |
#ifndef PERL_MAGIC_substr |
| 5775 |
# define PERL_MAGIC_substr 'x' |
| 5776 |
#endif |
| 5777 |
|
| 5778 |
#ifndef PERL_MAGIC_defelem |
| 5779 |
# define PERL_MAGIC_defelem 'y' |
| 5780 |
#endif |
| 5781 |
|
| 5782 |
#ifndef PERL_MAGIC_glob |
| 5783 |
# define PERL_MAGIC_glob '*' |
| 5784 |
#endif |
| 5785 |
|
| 5786 |
#ifndef PERL_MAGIC_arylen |
| 5787 |
# define PERL_MAGIC_arylen '#' |
| 5788 |
#endif |
| 5789 |
|
| 5790 |
#ifndef PERL_MAGIC_pos |
| 5791 |
# define PERL_MAGIC_pos '.' |
| 5792 |
#endif |
| 5793 |
|
| 5794 |
#ifndef PERL_MAGIC_backref |
| 5795 |
# define PERL_MAGIC_backref '<' |
| 5796 |
#endif |
| 5797 |
|
| 5798 |
#ifndef PERL_MAGIC_ext |
| 5799 |
# define PERL_MAGIC_ext '~' |
| 5800 |
#endif |
| 5801 |
|
| 5802 |
|
| 5803 |
#ifndef sv_catpvn_nomg |
| 5804 |
# define sv_catpvn_nomg sv_catpvn |
| 5805 |
#endif |
| 5806 |
|
| 5807 |
#ifndef sv_catsv_nomg |
| 5808 |
# define sv_catsv_nomg sv_catsv |
| 5809 |
#endif |
| 5810 |
|
| 5811 |
#ifndef sv_setsv_nomg |
| 5812 |
# define sv_setsv_nomg sv_setsv |
| 5813 |
#endif |
| 5814 |
|
| 5815 |
#ifndef sv_pvn_nomg |
| 5816 |
# define sv_pvn_nomg sv_pvn |
| 5817 |
#endif |
| 5818 |
|
| 5819 |
#ifndef SvIV_nomg |
| 5820 |
# define SvIV_nomg SvIV |
| 5821 |
#endif |
| 5822 |
|
| 5823 |
#ifndef SvUV_nomg |
| 5824 |
# define SvUV_nomg SvUV |
| 5825 |
#endif |
| 5826 |
|
| 5827 |
#ifndef sv_catpv_mg |
| 5828 |
# define sv_catpv_mg(sv, ptr) \ |
| 5829 |
STMT_START { \ |
| 5830 |
SV *TeMpSv = sv; \ |
| 5831 |
sv_catpv(TeMpSv,ptr); \ |
| 5832 |
SvSETMAGIC(TeMpSv); \ |
| 5833 |
} STMT_END |
| 5834 |
#endif |
| 5835 |
|
| 5836 |
#ifndef sv_catpvn_mg |
| 5837 |
# define sv_catpvn_mg(sv, ptr, len) \ |
| 5838 |
STMT_START { \ |
| 5839 |
SV *TeMpSv = sv; \ |
| 5840 |
sv_catpvn(TeMpSv,ptr,len); \ |
| 5841 |
SvSETMAGIC(TeMpSv); \ |
| 5842 |
} STMT_END |
| 5843 |
#endif |
| 5844 |
|
| 5845 |
#ifndef sv_catsv_mg |
| 5846 |
# define sv_catsv_mg(dsv, ssv) \ |
| 5847 |
STMT_START { \ |
| 5848 |
SV *TeMpSv = dsv; \ |
| 5849 |
sv_catsv(TeMpSv,ssv); \ |
| 5850 |
SvSETMAGIC(TeMpSv); \ |
| 5851 |
} STMT_END |
| 5852 |
#endif |
| 5853 |
|
| 5854 |
#ifndef sv_setiv_mg |
| 5855 |
# define sv_setiv_mg(sv, i) \ |
| 5856 |
STMT_START { \ |
| 5857 |
SV *TeMpSv = sv; \ |
| 5858 |
sv_setiv(TeMpSv,i); \ |
| 5859 |
SvSETMAGIC(TeMpSv); \ |
| 5860 |
} STMT_END |
| 5861 |
#endif |
| 5862 |
|
| 5863 |
#ifndef sv_setnv_mg |
| 5864 |
# define sv_setnv_mg(sv, num) \ |
| 5865 |
STMT_START { \ |
| 5866 |
SV *TeMpSv = sv; \ |
| 5867 |
sv_setnv(TeMpSv,num); \ |
| 5868 |
SvSETMAGIC(TeMpSv); \ |
| 5869 |
} STMT_END |
| 5870 |
#endif |
| 5871 |
|
| 5872 |
#ifndef sv_setpv_mg |
| 5873 |
# define sv_setpv_mg(sv, ptr) \ |
| 5874 |
STMT_START { \ |
| 5875 |
SV *TeMpSv = sv; \ |
| 5876 |
sv_setpv(TeMpSv,ptr); \ |
| 5877 |
SvSETMAGIC(TeMpSv); \ |
| 5878 |
} STMT_END |
| 5879 |
#endif |
| 5880 |
|
| 5881 |
#ifndef sv_setpvn_mg |
| 5882 |
# define sv_setpvn_mg(sv, ptr, len) \ |
| 5883 |
STMT_START { \ |
| 5884 |
SV *TeMpSv = sv; \ |
| 5885 |
sv_setpvn(TeMpSv,ptr,len); \ |
| 5886 |
SvSETMAGIC(TeMpSv); \ |
| 5887 |
} STMT_END |
| 5888 |
#endif |
| 5889 |
|
| 5890 |
#ifndef sv_setsv_mg |
| 5891 |
# define sv_setsv_mg(dsv, ssv) \ |
| 5892 |
STMT_START { \ |
| 5893 |
SV *TeMpSv = dsv; \ |
| 5894 |
sv_setsv(TeMpSv,ssv); \ |
| 5895 |
SvSETMAGIC(TeMpSv); \ |
| 5896 |
} STMT_END |
| 5897 |
#endif |
| 5898 |
|
| 5899 |
#ifndef sv_setuv_mg |
| 5900 |
# define sv_setuv_mg(sv, i) \ |
| 5901 |
STMT_START { \ |
| 5902 |
SV *TeMpSv = sv; \ |
| 5903 |
sv_setuv(TeMpSv,i); \ |
| 5904 |
SvSETMAGIC(TeMpSv); \ |
| 5905 |
} STMT_END |
| 5906 |
#endif |
| 5907 |
|
| 5908 |
#ifndef sv_usepvn_mg |
| 5909 |
# define sv_usepvn_mg(sv, ptr, len) \ |
| 5910 |
STMT_START { \ |
| 5911 |
SV *TeMpSv = sv; \ |
| 5912 |
sv_usepvn(TeMpSv,ptr,len); \ |
| 5913 |
SvSETMAGIC(TeMpSv); \ |
| 5914 |
} STMT_END |
| 5915 |
#endif |
| 5916 |
#ifndef SvVSTRING_mg |
| 5917 |
# define SvVSTRING_mg(sv) (SvMAGICAL(sv) ? mg_find(sv, PERL_MAGIC_vstring) : NULL) |
| 5918 |
#endif |
| 5919 |
|
| 5920 |
|
| 5921 |
|
| 5922 |
|
| 5923 |
|
| 5924 |
|
| 5925 |
|
| 5926 |
|
| 5927 |
|
| 5928 |
|
| 5929 |
|
| 5930 |
#if (PERL_BCDVERSION < 0x5004000) |
| 5931 |
|
| 5932 |
|
| 5933 |
|
| 5934 |
#elif (PERL_BCDVERSION < 0x5008000) |
| 5935 |
|
| 5936 |
# define sv_magic_portable(sv, obj, how, name, namlen) \ |
| 5937 |
STMT_START { \ |
| 5938 |
SV *SvMp_sv = (sv); \ |
| 5939 |
char *SvMp_name = (char *) (name); \ |
| 5940 |
I32 SvMp_namlen = (namlen); \ |
| 5941 |
if (SvMp_name && SvMp_namlen == 0) \ |
| 5942 |
{ \ |
| 5943 |
MAGIC *mg; \ |
| 5944 |
sv_magic(SvMp_sv, obj, how, 0, 0); \ |
| 5945 |
mg = SvMAGIC(SvMp_sv); \ |
| 5946 |
mg->mg_len = -42; \ |
| 5947 |
mg->mg_ptr = SvMp_name; \ |
| 5948 |
} \ |
| 5949 |
else \ |
| 5950 |
{ \ |
| 5951 |
sv_magic(SvMp_sv, obj, how, SvMp_name, SvMp_namlen); \ |
| 5952 |
} \ |
| 5953 |
} STMT_END |
| 5954 |
|
| 5955 |
#else |
| 5956 |
|
| 5957 |
# define sv_magic_portable(a, b, c, d, e) sv_magic(a, b, c, d, e) |
| 5958 |
|
| 5959 |
#endif |
| 5960 |
|
| 5961 |
#ifdef USE_ITHREADS |
| 5962 |
#ifndef CopFILE |
| 5963 |
# define CopFILE(c) ((c)->cop_file) |
| 5964 |
#endif |
| 5965 |
|
| 5966 |
#ifndef CopFILEGV |
| 5967 |
# define CopFILEGV(c) (CopFILE(c) ? gv_fetchfile(CopFILE(c)) : Nullgv) |
| 5968 |
#endif |
| 5969 |
|
| 5970 |
#ifndef CopFILE_set |
| 5971 |
# define CopFILE_set(c,pv) ((c)->cop_file = savepv(pv)) |
| 5972 |
#endif |
| 5973 |
|
| 5974 |
#ifndef CopFILESV |
| 5975 |
# define CopFILESV(c) (CopFILE(c) ? GvSV(gv_fetchfile(CopFILE(c))) : Nullsv) |
| 5976 |
#endif |
| 5977 |
|
| 5978 |
#ifndef CopFILEAV |
| 5979 |
# define CopFILEAV(c) (CopFILE(c) ? GvAV(gv_fetchfile(CopFILE(c))) : Nullav) |
| 5980 |
#endif |
| 5981 |
|
| 5982 |
#ifndef CopSTASHPV |
| 5983 |
# define CopSTASHPV(c) ((c)->cop_stashpv) |
| 5984 |
#endif |
| 5985 |
|
| 5986 |
#ifndef CopSTASHPV_set |
| 5987 |
# define CopSTASHPV_set(c,pv) ((c)->cop_stashpv = ((pv) ? savepv(pv) : Nullch)) |
| 5988 |
#endif |
| 5989 |
|
| 5990 |
#ifndef CopSTASH |
| 5991 |
# define CopSTASH(c) (CopSTASHPV(c) ? gv_stashpv(CopSTASHPV(c),GV_ADD) : Nullhv) |
| 5992 |
#endif |
| 5993 |
|
| 5994 |
#ifndef CopSTASH_set |
| 5995 |
# define CopSTASH_set(c,hv) CopSTASHPV_set(c, (hv) ? HvNAME(hv) : Nullch) |
| 5996 |
#endif |
| 5997 |
|
| 5998 |
#ifndef CopSTASH_eq |
| 5999 |
# define CopSTASH_eq(c,hv) ((hv) && (CopSTASHPV(c) == HvNAME(hv) \ |
| 6000 |
|| (CopSTASHPV(c) && HvNAME(hv) \ |
| 6001 |
&& strEQ(CopSTASHPV(c), HvNAME(hv))))) |
| 6002 |
#endif |
| 6003 |
|
| 6004 |
#else |
| 6005 |
#ifndef CopFILEGV |
| 6006 |
# define CopFILEGV(c) ((c)->cop_filegv) |
| 6007 |
#endif |
| 6008 |
|
| 6009 |
#ifndef CopFILEGV_set |
| 6010 |
# define CopFILEGV_set(c,gv) ((c)->cop_filegv = (GV*)SvREFCNT_inc(gv)) |
| 6011 |
#endif |
| 6012 |
|
| 6013 |
#ifndef CopFILE_set |
| 6014 |
# define CopFILE_set(c,pv) CopFILEGV_set((c), gv_fetchfile(pv)) |
| 6015 |
#endif |
| 6016 |
|
| 6017 |
#ifndef CopFILESV |
| 6018 |
# define CopFILESV(c) (CopFILEGV(c) ? GvSV(CopFILEGV(c)) : Nullsv) |
| 6019 |
#endif |
| 6020 |
|
| 6021 |
#ifndef CopFILEAV |
| 6022 |
# define CopFILEAV(c) (CopFILEGV(c) ? GvAV(CopFILEGV(c)) : Nullav) |
| 6023 |
#endif |
| 6024 |
|
| 6025 |
#ifndef CopFILE |
| 6026 |
# define CopFILE(c) (CopFILESV(c) ? SvPVX(CopFILESV(c)) : Nullch) |
| 6027 |
#endif |
| 6028 |
|
| 6029 |
#ifndef CopSTASH |
| 6030 |
# define CopSTASH(c) ((c)->cop_stash) |
| 6031 |
#endif |
| 6032 |
|
| 6033 |
#ifndef CopSTASH_set |
| 6034 |
# define CopSTASH_set(c,hv) ((c)->cop_stash = (hv)) |
| 6035 |
#endif |
| 6036 |
|
| 6037 |
#ifndef CopSTASHPV |
| 6038 |
# define CopSTASHPV(c) (CopSTASH(c) ? HvNAME(CopSTASH(c)) : Nullch) |
| 6039 |
#endif |
| 6040 |
|
| 6041 |
#ifndef CopSTASHPV_set |
| 6042 |
# define CopSTASHPV_set(c,pv) CopSTASH_set((c), gv_stashpv(pv,GV_ADD)) |
| 6043 |
#endif |
| 6044 |
|
| 6045 |
#ifndef CopSTASH_eq |
| 6046 |
# define CopSTASH_eq(c,hv) (CopSTASH(c) == (hv)) |
| 6047 |
#endif |
| 6048 |
|
| 6049 |
#endif |
| 6050 |
#ifndef IN_PERL_COMPILETIME |
| 6051 |
# define IN_PERL_COMPILETIME (PL_curcop == &PL_compiling) |
| 6052 |
#endif |
| 6053 |
|
| 6054 |
#ifndef IN_LOCALE_RUNTIME |
| 6055 |
# define IN_LOCALE_RUNTIME (PL_curcop->op_private & HINT_LOCALE) |
| 6056 |
#endif |
| 6057 |
|
| 6058 |
#ifndef IN_LOCALE_COMPILETIME |
| 6059 |
# define IN_LOCALE_COMPILETIME (PL_hints & HINT_LOCALE) |
| 6060 |
#endif |
| 6061 |
|
| 6062 |
#ifndef IN_LOCALE |
| 6063 |
# define IN_LOCALE (IN_PERL_COMPILETIME ? IN_LOCALE_COMPILETIME : IN_LOCALE_RUNTIME) |
| 6064 |
#endif |
| 6065 |
#ifndef IS_NUMBER_IN_UV |
| 6066 |
# define IS_NUMBER_IN_UV 0x01 |
| 6067 |
#endif |
| 6068 |
|
| 6069 |
#ifndef IS_NUMBER_GREATER_THAN_UV_MAX |
| 6070 |
# define IS_NUMBER_GREATER_THAN_UV_MAX 0x02 |
| 6071 |
#endif |
| 6072 |
|
| 6073 |
#ifndef IS_NUMBER_NOT_INT |
| 6074 |
# define IS_NUMBER_NOT_INT 0x04 |
| 6075 |
#endif |
| 6076 |
|
| 6077 |
#ifndef IS_NUMBER_NEG |
| 6078 |
# define IS_NUMBER_NEG 0x08 |
| 6079 |
#endif |
| 6080 |
|
| 6081 |
#ifndef IS_NUMBER_INFINITY |
| 6082 |
# define IS_NUMBER_INFINITY 0x10 |
| 6083 |
#endif |
| 6084 |
|
| 6085 |
#ifndef IS_NUMBER_NAN |
| 6086 |
# define IS_NUMBER_NAN 0x20 |
| 6087 |
#endif |
| 6088 |
#ifndef GROK_NUMERIC_RADIX |
| 6089 |
# define GROK_NUMERIC_RADIX(sp, send) grok_numeric_radix(sp, send) |
| 6090 |
#endif |
| 6091 |
#ifndef PERL_SCAN_GREATER_THAN_UV_MAX |
| 6092 |
# define PERL_SCAN_GREATER_THAN_UV_MAX 0x02 |
| 6093 |
#endif |
| 6094 |
|
| 6095 |
#ifndef PERL_SCAN_SILENT_ILLDIGIT |
| 6096 |
# define PERL_SCAN_SILENT_ILLDIGIT 0x04 |
| 6097 |
#endif |
| 6098 |
|
| 6099 |
#ifndef PERL_SCAN_ALLOW_UNDERSCORES |
| 6100 |
# define PERL_SCAN_ALLOW_UNDERSCORES 0x01 |
| 6101 |
#endif |
| 6102 |
|
| 6103 |
#ifndef PERL_SCAN_DISALLOW_PREFIX |
| 6104 |
# define PERL_SCAN_DISALLOW_PREFIX 0x02 |
| 6105 |
#endif |
| 6106 |
|
| 6107 |
#ifndef grok_numeric_radix |
| 6108 |
#if defined(NEED_grok_numeric_radix) |
| 6109 |
static bool DPPP_(my_grok_numeric_radix)(pTHX_ const char ** sp, const char * send); |
| 6110 |
static |
| 6111 |
#else |
| 6112 |
extern bool DPPP_(my_grok_numeric_radix)(pTHX_ const char ** sp, const char * send); |
| 6113 |
#endif |
| 6114 |
|
| 6115 |
#ifdef grok_numeric_radix |
| 6116 |
# undef grok_numeric_radix |
| 6117 |
#endif |
| 6118 |
#define grok_numeric_radix(a,b) DPPP_(my_grok_numeric_radix)(aTHX_ a,b) |
| 6119 |
#define Perl_grok_numeric_radix DPPP_(my_grok_numeric_radix) |
| 6120 |
|
| 6121 |
#if defined(NEED_grok_numeric_radix) || defined(NEED_grok_numeric_radix_GLOBAL) |
| 6122 |
bool |
| 6123 |
DPPP_(my_grok_numeric_radix)(pTHX_ const char **sp, const char *send) |
| 6124 |
{ |
| 6125 |
#ifdef USE_LOCALE_NUMERIC |
| 6126 |
#ifdef PL_numeric_radix_sv |
| 6127 |
if (PL_numeric_radix_sv && IN_LOCALE) { |
| 6128 |
STRLEN len; |
| 6129 |
char* radix = SvPV(PL_numeric_radix_sv, len); |
| 6130 |
if (*sp + len <= send && memEQ(*sp, radix, len)) { |
| 6131 |
*sp += len; |
| 6132 |
return TRUE; |
| 6133 |
} |
| 6134 |
} |
| 6135 |
#else |
| 6136 |
|
| 6137 |
|
| 6138 |
|
| 6139 |
#include <locale.h> |
| 6140 |
dTHR; |
| 6141 |
struct lconv *lc = localeconv(); |
| 6142 |
char *radix = lc->decimal_point; |
| 6143 |
if (radix && IN_LOCALE) { |
| 6144 |
STRLEN len = strlen(radix); |
| 6145 |
if (*sp + len <= send && memEQ(*sp, radix, len)) { |
| 6146 |
*sp += len; |
| 6147 |
return TRUE; |
| 6148 |
} |
| 6149 |
} |
| 6150 |
#endif |
| 6151 |
#endif |
| 6152 |
|
| 6153 |
|
| 6154 |
if (*sp < send && **sp == '.') { |
| 6155 |
++*sp; |
| 6156 |
return TRUE; |
| 6157 |
} |
| 6158 |
return FALSE; |
| 6159 |
} |
| 6160 |
#endif |
| 6161 |
#endif |
| 6162 |
|
| 6163 |
#ifndef grok_number |
| 6164 |
#if defined(NEED_grok_number) |
| 6165 |
static int DPPP_(my_grok_number)(pTHX_ const char * pv, STRLEN len, UV * valuep); |
| 6166 |
static |
| 6167 |
#else |
| 6168 |
extern int DPPP_(my_grok_number)(pTHX_ const char * pv, STRLEN len, UV * valuep); |
| 6169 |
#endif |
| 6170 |
|
| 6171 |
#ifdef grok_number |
| 6172 |
# undef grok_number |
| 6173 |
#endif |
| 6174 |
#define grok_number(a,b,c) DPPP_(my_grok_number)(aTHX_ a,b,c) |
| 6175 |
#define Perl_grok_number DPPP_(my_grok_number) |
| 6176 |
|
| 6177 |
#if defined(NEED_grok_number) || defined(NEED_grok_number_GLOBAL) |
| 6178 |
int |
| 6179 |
DPPP_(my_grok_number)(pTHX_ const char *pv, STRLEN len, UV *valuep) |
| 6180 |
{ |
| 6181 |
const char *s = pv; |
| 6182 |
const char *send = pv + len; |
| 6183 |
const UV max_div_10 = UV_MAX / 10; |
| 6184 |
const char max_mod_10 = UV_MAX % 10; |
| 6185 |
int numtype = 0; |
| 6186 |
int sawinf = 0; |
| 6187 |
int sawnan = 0; |
| 6188 |
|
| 6189 |
while (s < send && isSPACE(*s)) |
| 6190 |
s++; |
| 6191 |
if (s == send) { |
| 6192 |
return 0; |
| 6193 |
} else if (*s == '-') { |
| 6194 |
s++; |
| 6195 |
numtype = IS_NUMBER_NEG; |
| 6196 |
} |
| 6197 |
else if (*s == '+') |
| 6198 |
s++; |
| 6199 |
|
| 6200 |
if (s == send) |
| 6201 |
return 0; |
| 6202 |
|
| 6203 |
|
| 6204 |
if (isDIGIT(*s)) { |
| 6205 |
|
| 6206 |
|
| 6207 |
UV value = *s - '0'; |
| 6208 |
|
| 6209 |
|
| 6210 |
|
| 6211 |
|
| 6212 |
|
| 6213 |
if (++s < send) { |
| 6214 |
int digit = *s - '0'; |
| 6215 |
if (digit >= 0 && digit <= 9) { |
| 6216 |
value = value * 10 + digit; |
| 6217 |
if (++s < send) { |
| 6218 |
digit = *s - '0'; |
| 6219 |
if (digit >= 0 && digit <= 9) { |
| 6220 |
value = value * 10 + digit; |
| 6221 |
if (++s < send) { |
| 6222 |
digit = *s - '0'; |
| 6223 |
if (digit >= 0 && digit <= 9) { |
| 6224 |
value = value * 10 + digit; |
| 6225 |
if (++s < send) { |
| 6226 |
digit = *s - '0'; |
| 6227 |
if (digit >= 0 && digit <= 9) { |
| 6228 |
value = value * 10 + digit; |
| 6229 |
if (++s < send) { |
| 6230 |
digit = *s - '0'; |
| 6231 |
if (digit >= 0 && digit <= 9) { |
| 6232 |
value = value * 10 + digit; |
| 6233 |
if (++s < send) { |
| 6234 |
digit = *s - '0'; |
| 6235 |
if (digit >= 0 && digit <= 9) { |
| 6236 |
value = value * 10 + digit; |
| 6237 |
if (++s < send) { |
| 6238 |
digit = *s - '0'; |
| 6239 |
if (digit >= 0 && digit <= 9) { |
| 6240 |
value = value * 10 + digit; |
| 6241 |
if (++s < send) { |
| 6242 |
digit = *s - '0'; |
| 6243 |
if (digit >= 0 && digit <= 9) { |
| 6244 |
value = value * 10 + digit; |
| 6245 |
if (++s < send) { |
| 6246 |
|
| 6247 |
|
| 6248 |
digit = *s - '0'; |
| 6249 |
while (digit >= 0 && digit <= 9 |
| 6250 |
&& (value < max_div_10 |
| 6251 |
|| (value == max_div_10 |
| 6252 |
&& digit <= max_mod_10))) { |
| 6253 |
value = value * 10 + digit; |
| 6254 |
if (++s < send) |
| 6255 |
digit = *s - '0'; |
| 6256 |
else |
| 6257 |
break; |
| 6258 |
} |
| 6259 |
if (digit >= 0 && digit <= 9 |
| 6260 |
&& (s < send)) { |
| 6261 |
|
| 6262 |
|
| 6263 |
|
| 6264 |
do { |
| 6265 |
s++; |
| 6266 |
} while (s < send && isDIGIT(*s)); |
| 6267 |
numtype |= |
| 6268 |
IS_NUMBER_GREATER_THAN_UV_MAX; |
| 6269 |
goto skip_value; |
| 6270 |
} |
| 6271 |
} |
| 6272 |
} |
| 6273 |
} |
| 6274 |
} |
| 6275 |
} |
| 6276 |
} |
| 6277 |
} |
| 6278 |
} |
| 6279 |
} |
| 6280 |
} |
| 6281 |
} |
| 6282 |
} |
| 6283 |
} |
| 6284 |
} |
| 6285 |
} |
| 6286 |
} |
| 6287 |
} |
| 6288 |
numtype |= IS_NUMBER_IN_UV; |
| 6289 |
if (valuep) |
| 6290 |
*valuep = value; |
| 6291 |
|
| 6292 |
skip_value: |
| 6293 |
if (GROK_NUMERIC_RADIX(&s, send)) { |
| 6294 |
numtype |= IS_NUMBER_NOT_INT; |
| 6295 |
while (s < send && isDIGIT(*s)) |
| 6296 |
s++; |
| 6297 |
} |
| 6298 |
} |
| 6299 |
else if (GROK_NUMERIC_RADIX(&s, send)) { |
| 6300 |
numtype |= IS_NUMBER_NOT_INT | IS_NUMBER_IN_UV; |
| 6301 |
|
| 6302 |
if (s < send && isDIGIT(*s)) { |
| 6303 |
do { |
| 6304 |
s++; |
| 6305 |
} while (s < send && isDIGIT(*s)); |
| 6306 |
if (valuep) { |
| 6307 |
|
| 6308 |
*valuep = 0; |
| 6309 |
} |
| 6310 |
} |
| 6311 |
else |
| 6312 |
return 0; |
| 6313 |
} else if (*s == 'I' || *s == 'i') { |
| 6314 |
s++; if (s == send || (*s != 'N' && *s != 'n')) return 0; |
| 6315 |
s++; if (s == send || (*s != 'F' && *s != 'f')) return 0; |
| 6316 |
s++; if (s < send && (*s == 'I' || *s == 'i')) { |
| 6317 |
s++; if (s == send || (*s != 'N' && *s != 'n')) return 0; |
| 6318 |
s++; if (s == send || (*s != 'I' && *s != 'i')) return 0; |
| 6319 |
s++; if (s == send || (*s != 'T' && *s != 't')) return 0; |
| 6320 |
s++; if (s == send || (*s != 'Y' && *s != 'y')) return 0; |
| 6321 |
s++; |
| 6322 |
} |
| 6323 |
sawinf = 1; |
| 6324 |
} else if (*s == 'N' || *s == 'n') { |
| 6325 |
|
| 6326 |
s++; if (s == send || (*s != 'A' && *s != 'a')) return 0; |
| 6327 |
s++; if (s == send || (*s != 'N' && *s != 'n')) return 0; |
| 6328 |
s++; |
| 6329 |
sawnan = 1; |
| 6330 |
} else |
| 6331 |
return 0; |
| 6332 |
|
| 6333 |
if (sawinf) { |
| 6334 |
numtype &= IS_NUMBER_NEG; |
| 6335 |
numtype |= IS_NUMBER_INFINITY | IS_NUMBER_NOT_INT; |
| 6336 |
} else if (sawnan) { |
| 6337 |
numtype &= IS_NUMBER_NEG; |
| 6338 |
numtype |= IS_NUMBER_NAN | IS_NUMBER_NOT_INT; |
| 6339 |
} else if (s < send) { |
| 6340 |
|
| 6341 |
if (*s == 'e' || *s == 'E') { |
| 6342 |
|
| 6343 |
numtype &= IS_NUMBER_NEG; |
| 6344 |
numtype |= IS_NUMBER_NOT_INT; |
| 6345 |
s++; |
| 6346 |
if (s < send && (*s == '-' || *s == '+')) |
| 6347 |
s++; |
| 6348 |
if (s < send && isDIGIT(*s)) { |
| 6349 |
do { |
| 6350 |
s++; |
| 6351 |
} while (s < send && isDIGIT(*s)); |
| 6352 |
} |
| 6353 |
else |
| 6354 |
return 0; |
| 6355 |
} |
| 6356 |
} |
| 6357 |
while (s < send && isSPACE(*s)) |
| 6358 |
s++; |
| 6359 |
if (s >= send) |
| 6360 |
return numtype; |
| 6361 |
if (len == 10 && memEQ(pv, "0 but true", 10)) { |
| 6362 |
if (valuep) |
| 6363 |
*valuep = 0; |
| 6364 |
return IS_NUMBER_IN_UV; |
| 6365 |
} |
| 6366 |
return 0; |
| 6367 |
} |
| 6368 |
#endif |
| 6369 |
#endif |
| 6370 |
|
| 6371 |
|
| 6372 |
|
| 6373 |
|
| 6374 |
|
| 6375 |
|
| 6376 |
|
| 6377 |
#ifndef grok_bin |
| 6378 |
#if defined(NEED_grok_bin) |
| 6379 |
static UV DPPP_(my_grok_bin)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result); |
| 6380 |
static |
| 6381 |
#else |
| 6382 |
extern UV DPPP_(my_grok_bin)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result); |
| 6383 |
#endif |
| 6384 |
|
| 6385 |
#ifdef grok_bin |
| 6386 |
# undef grok_bin |
| 6387 |
#endif |
| 6388 |
#define grok_bin(a,b,c,d) DPPP_(my_grok_bin)(aTHX_ a,b,c,d) |
| 6389 |
#define Perl_grok_bin DPPP_(my_grok_bin) |
| 6390 |
|
| 6391 |
#if defined(NEED_grok_bin) || defined(NEED_grok_bin_GLOBAL) |
| 6392 |
UV |
| 6393 |
DPPP_(my_grok_bin)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result) |
| 6394 |
{ |
| 6395 |
const char *s = start; |
| 6396 |
STRLEN len = *len_p; |
| 6397 |
UV value = 0; |
| 6398 |
NV value_nv = 0; |
| 6399 |
|
| 6400 |
const UV max_div_2 = UV_MAX / 2; |
| 6401 |
bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES; |
| 6402 |
bool overflowed = FALSE; |
| 6403 |
|
| 6404 |
if (!(*flags & PERL_SCAN_DISALLOW_PREFIX)) { |
| 6405 |
|
| 6406 |
|
| 6407 |
|
| 6408 |
if (len >= 1) { |
| 6409 |
if (s[0] == 'b') { |
| 6410 |
s++; |
| 6411 |
len--; |
| 6412 |
} |
| 6413 |
else if (len >= 2 && s[0] == '0' && s[1] == 'b') { |
| 6414 |
s+=2; |
| 6415 |
len-=2; |
| 6416 |
} |
| 6417 |
} |
| 6418 |
} |
| 6419 |
|
| 6420 |
for (; len-- && *s; s++) { |
| 6421 |
char bit = *s; |
| 6422 |
if (bit == '0' || bit == '1') { |
| 6423 |
|
| 6424 |
|
| 6425 |
|
| 6426 |
redo: |
| 6427 |
if (!overflowed) { |
| 6428 |
if (value <= max_div_2) { |
| 6429 |
value = (value << 1) | (bit - '0'); |
| 6430 |
continue; |
| 6431 |
} |
| 6432 |
|
| 6433 |
warn("Integer overflow in binary number"); |
| 6434 |
overflowed = TRUE; |
| 6435 |
value_nv = (NV) value; |
| 6436 |
} |
| 6437 |
value_nv *= 2.0; |
| 6438 |
|
| 6439 |
|
| 6440 |
|
| 6441 |
|
| 6442 |
|
| 6443 |
|
| 6444 |
value_nv += (NV)(bit - '0'); |
| 6445 |
continue; |
| 6446 |
} |
| 6447 |
if (bit == '_' && len && allow_underscores && (bit = s[1]) |
| 6448 |
&& (bit == '0' || bit == '1')) |
| 6449 |
{ |
| 6450 |
--len; |
| 6451 |
++s; |
| 6452 |
goto redo; |
| 6453 |
} |
| 6454 |
if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT)) |
| 6455 |
warn("Illegal binary digit '%c' ignored", *s); |
| 6456 |
break; |
| 6457 |
} |
| 6458 |
|
| 6459 |
if ( ( overflowed && value_nv > 4294967295.0) |
| 6460 |
#if UVSIZE > 4 |
| 6461 |
|| (!overflowed && value > 0xffffffff ) |
| 6462 |
#endif |
| 6463 |
) { |
| 6464 |
warn("Binary number > 0b11111111111111111111111111111111 non-portable"); |
| 6465 |
} |
| 6466 |
*len_p = s - start; |
| 6467 |
if (!overflowed) { |
| 6468 |
*flags = 0; |
| 6469 |
return value; |
| 6470 |
} |
| 6471 |
*flags = PERL_SCAN_GREATER_THAN_UV_MAX; |
| 6472 |
if (result) |
| 6473 |
*result = value_nv; |
| 6474 |
return UV_MAX; |
| 6475 |
} |
| 6476 |
#endif |
| 6477 |
#endif |
| 6478 |
|
| 6479 |
#ifndef grok_hex |
| 6480 |
#if defined(NEED_grok_hex) |
| 6481 |
static UV DPPP_(my_grok_hex)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result); |
| 6482 |
static |
| 6483 |
#else |
| 6484 |
extern UV DPPP_(my_grok_hex)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result); |
| 6485 |
#endif |
| 6486 |
|
| 6487 |
#ifdef grok_hex |
| 6488 |
# undef grok_hex |
| 6489 |
#endif |
| 6490 |
#define grok_hex(a,b,c,d) DPPP_(my_grok_hex)(aTHX_ a,b,c,d) |
| 6491 |
#define Perl_grok_hex DPPP_(my_grok_hex) |
| 6492 |
|
| 6493 |
#if defined(NEED_grok_hex) || defined(NEED_grok_hex_GLOBAL) |
| 6494 |
UV |
| 6495 |
DPPP_(my_grok_hex)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result) |
| 6496 |
{ |
| 6497 |
const char *s = start; |
| 6498 |
STRLEN len = *len_p; |
| 6499 |
UV value = 0; |
| 6500 |
NV value_nv = 0; |
| 6501 |
|
| 6502 |
const UV max_div_16 = UV_MAX / 16; |
| 6503 |
bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES; |
| 6504 |
bool overflowed = FALSE; |
| 6505 |
const char *xdigit; |
| 6506 |
|
| 6507 |
if (!(*flags & PERL_SCAN_DISALLOW_PREFIX)) { |
| 6508 |
|
| 6509 |
|
| 6510 |
|
| 6511 |
if (len >= 1) { |
| 6512 |
if (s[0] == 'x') { |
| 6513 |
s++; |
| 6514 |
len--; |
| 6515 |
} |
| 6516 |
else if (len >= 2 && s[0] == '0' && s[1] == 'x') { |
| 6517 |
s+=2; |
| 6518 |
len-=2; |
| 6519 |
} |
| 6520 |
} |
| 6521 |
} |
| 6522 |
|
| 6523 |
for (; len-- && *s; s++) { |
| 6524 |
xdigit = strchr((char *) PL_hexdigit, *s); |
| 6525 |
if (xdigit) { |
| 6526 |
|
| 6527 |
|
| 6528 |
|
| 6529 |
redo: |
| 6530 |
if (!overflowed) { |
| 6531 |
if (value <= max_div_16) { |
| 6532 |
value = (value << 4) | ((xdigit - PL_hexdigit) & 15); |
| 6533 |
continue; |
| 6534 |
} |
| 6535 |
warn("Integer overflow in hexadecimal number"); |
| 6536 |
overflowed = TRUE; |
| 6537 |
value_nv = (NV) value; |
| 6538 |
} |
| 6539 |
value_nv *= 16.0; |
| 6540 |
|
| 6541 |
|
| 6542 |
|
| 6543 |
|
| 6544 |
|
| 6545 |
|
| 6546 |
value_nv += (NV)((xdigit - PL_hexdigit) & 15); |
| 6547 |
continue; |
| 6548 |
} |
| 6549 |
if (*s == '_' && len && allow_underscores && s[1] |
| 6550 |
&& (xdigit = strchr((char *) PL_hexdigit, s[1]))) |
| 6551 |
{ |
| 6552 |
--len; |
| 6553 |
++s; |
| 6554 |
goto redo; |
| 6555 |
} |
| 6556 |
if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT)) |
| 6557 |
warn("Illegal hexadecimal digit '%c' ignored", *s); |
| 6558 |
break; |
| 6559 |
} |
| 6560 |
|
| 6561 |
if ( ( overflowed && value_nv > 4294967295.0) |
| 6562 |
#if UVSIZE > 4 |
| 6563 |
|| (!overflowed && value > 0xffffffff ) |
| 6564 |
#endif |
| 6565 |
) { |
| 6566 |
warn("Hexadecimal number > 0xffffffff non-portable"); |
| 6567 |
} |
| 6568 |
*len_p = s - start; |
| 6569 |
if (!overflowed) { |
| 6570 |
*flags = 0; |
| 6571 |
return value; |
| 6572 |
} |
| 6573 |
*flags = PERL_SCAN_GREATER_THAN_UV_MAX; |
| 6574 |
if (result) |
| 6575 |
*result = value_nv; |
| 6576 |
return UV_MAX; |
| 6577 |
} |
| 6578 |
#endif |
| 6579 |
#endif |
| 6580 |
|
| 6581 |
#ifndef grok_oct |
| 6582 |
#if defined(NEED_grok_oct) |
| 6583 |
static UV DPPP_(my_grok_oct)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result); |
| 6584 |
static |
| 6585 |
#else |
| 6586 |
extern UV DPPP_(my_grok_oct)(pTHX_ const char * start, STRLEN * len_p, I32 * flags, NV * result); |
| 6587 |
#endif |
| 6588 |
|
| 6589 |
#ifdef grok_oct |
| 6590 |
# undef grok_oct |
| 6591 |
#endif |
| 6592 |
#define grok_oct(a,b,c,d) DPPP_(my_grok_oct)(aTHX_ a,b,c,d) |
| 6593 |
#define Perl_grok_oct DPPP_(my_grok_oct) |
| 6594 |
|
| 6595 |
#if defined(NEED_grok_oct) || defined(NEED_grok_oct_GLOBAL) |
| 6596 |
UV |
| 6597 |
DPPP_(my_grok_oct)(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result) |
| 6598 |
{ |
| 6599 |
const char *s = start; |
| 6600 |
STRLEN len = *len_p; |
| 6601 |
UV value = 0; |
| 6602 |
NV value_nv = 0; |
| 6603 |
|
| 6604 |
const UV max_div_8 = UV_MAX / 8; |
| 6605 |
bool allow_underscores = *flags & PERL_SCAN_ALLOW_UNDERSCORES; |
| 6606 |
bool overflowed = FALSE; |
| 6607 |
|
| 6608 |
for (; len-- && *s; s++) { |
| 6609 |
|
| 6610 |
|
| 6611 |
int digit = *s - '0'; |
| 6612 |
if (digit >= 0 && digit <= 7) { |
| 6613 |
|
| 6614 |
|
| 6615 |
|
| 6616 |
redo: |
| 6617 |
if (!overflowed) { |
| 6618 |
if (value <= max_div_8) { |
| 6619 |
value = (value << 3) | digit; |
| 6620 |
continue; |
| 6621 |
} |
| 6622 |
|
| 6623 |
warn("Integer overflow in octal number"); |
| 6624 |
overflowed = TRUE; |
| 6625 |
value_nv = (NV) value; |
| 6626 |
} |
| 6627 |
value_nv *= 8.0; |
| 6628 |
|
| 6629 |
|
| 6630 |
|
| 6631 |
|
| 6632 |
|
| 6633 |
|
| 6634 |
value_nv += (NV)digit; |
| 6635 |
continue; |
| 6636 |
} |
| 6637 |
if (digit == ('_' - '0') && len && allow_underscores |
| 6638 |
&& (digit = s[1] - '0') && (digit >= 0 && digit <= 7)) |
| 6639 |
{ |
| 6640 |
--len; |
| 6641 |
++s; |
| 6642 |
goto redo; |
| 6643 |
} |
| 6644 |
|
| 6645 |
|
| 6646 |
|
| 6647 |
if (digit == 8 || digit == 9) { |
| 6648 |
if (!(*flags & PERL_SCAN_SILENT_ILLDIGIT)) |
| 6649 |
warn("Illegal octal digit '%c' ignored", *s); |
| 6650 |
} |
| 6651 |
break; |
| 6652 |
} |
| 6653 |
|
| 6654 |
if ( ( overflowed && value_nv > 4294967295.0) |
| 6655 |
#if UVSIZE > 4 |
| 6656 |
|| (!overflowed && value > 0xffffffff ) |
| 6657 |
#endif |
| 6658 |
) { |
| 6659 |
warn("Octal number > 037777777777 non-portable"); |
| 6660 |
} |
| 6661 |
*len_p = s - start; |
| 6662 |
if (!overflowed) { |
| 6663 |
*flags = 0; |
| 6664 |
return value; |
| 6665 |
} |
| 6666 |
*flags = PERL_SCAN_GREATER_THAN_UV_MAX; |
| 6667 |
if (result) |
| 6668 |
*result = value_nv; |
| 6669 |
return UV_MAX; |
| 6670 |
} |
| 6671 |
#endif |
| 6672 |
#endif |
| 6673 |
|
| 6674 |
#if !defined(my_snprintf) |
| 6675 |
#if defined(NEED_my_snprintf) |
| 6676 |
static int DPPP_(my_my_snprintf)(char * buffer, const Size_t len, const char * format, ...); |
| 6677 |
static |
| 6678 |
#else |
| 6679 |
extern int DPPP_(my_my_snprintf)(char * buffer, const Size_t len, const char * format, ...); |
| 6680 |
#endif |
| 6681 |
|
| 6682 |
#define my_snprintf DPPP_(my_my_snprintf) |
| 6683 |
#define Perl_my_snprintf DPPP_(my_my_snprintf) |
| 6684 |
|
| 6685 |
#if defined(NEED_my_snprintf) || defined(NEED_my_snprintf_GLOBAL) |
| 6686 |
|
| 6687 |
int |
| 6688 |
DPPP_(my_my_snprintf)(char *buffer, const Size_t len, const char *format, ...) |
| 6689 |
{ |
| 6690 |
dTHX; |
| 6691 |
int retval; |
| 6692 |
va_list ap; |
| 6693 |
va_start(ap, format); |
| 6694 |
#ifdef HAS_VSNPRINTF |
| 6695 |
retval = vsnprintf(buffer, len, format, ap); |
| 6696 |
#else |
| 6697 |
retval = vsprintf(buffer, format, ap); |
| 6698 |
#endif |
| 6699 |
va_end(ap); |
| 6700 |
if (retval < 0 || (len > 0 && (Size_t)retval >= len)) |
| 6701 |
Perl_croak(aTHX_ "panic: my_snprintf buffer overflow"); |
| 6702 |
return retval; |
| 6703 |
} |
| 6704 |
|
| 6705 |
#endif |
| 6706 |
#endif |
| 6707 |
|
| 6708 |
#if !defined(my_sprintf) |
| 6709 |
#if defined(NEED_my_sprintf) |
| 6710 |
static int DPPP_(my_my_sprintf)(char * buffer, const char * pat, ...); |
| 6711 |
static |
| 6712 |
#else |
| 6713 |
extern int DPPP_(my_my_sprintf)(char * buffer, const char * pat, ...); |
| 6714 |
#endif |
| 6715 |
|
| 6716 |
#define my_sprintf DPPP_(my_my_sprintf) |
| 6717 |
#define Perl_my_sprintf DPPP_(my_my_sprintf) |
| 6718 |
|
| 6719 |
#if defined(NEED_my_sprintf) || defined(NEED_my_sprintf_GLOBAL) |
| 6720 |
|
| 6721 |
int |
| 6722 |
DPPP_(my_my_sprintf)(char *buffer, const char* pat, ...) |
| 6723 |
{ |
| 6724 |
va_list args; |
| 6725 |
va_start(args, pat); |
| 6726 |
vsprintf(buffer, pat, args); |
| 6727 |
va_end(args); |
| 6728 |
return strlen(buffer); |
| 6729 |
} |
| 6730 |
|
| 6731 |
#endif |
| 6732 |
#endif |
| 6733 |
|
| 6734 |
#ifdef NO_XSLOCKS |
| 6735 |
# ifdef dJMPENV |
| 6736 |
# define dXCPT dJMPENV; int rEtV = 0 |
| 6737 |
# define XCPT_TRY_START JMPENV_PUSH(rEtV); if (rEtV == 0) |
| 6738 |
# define XCPT_TRY_END JMPENV_POP; |
| 6739 |
# define XCPT_CATCH if (rEtV != 0) |
| 6740 |
# define XCPT_RETHROW JMPENV_JUMP(rEtV) |
| 6741 |
# else |
| 6742 |
# define dXCPT Sigjmp_buf oldTOP; int rEtV = 0 |
| 6743 |
# define XCPT_TRY_START Copy(top_env, oldTOP, 1, Sigjmp_buf); rEtV = Sigsetjmp(top_env, 1); if (rEtV == 0) |
| 6744 |
# define XCPT_TRY_END Copy(oldTOP, top_env, 1, Sigjmp_buf); |
| 6745 |
# define XCPT_CATCH if (rEtV != 0) |
| 6746 |
# define XCPT_RETHROW Siglongjmp(top_env, rEtV) |
| 6747 |
# endif |
| 6748 |
#endif |
| 6749 |
|
| 6750 |
#if !defined(my_strlcat) |
| 6751 |
#if defined(NEED_my_strlcat) |
| 6752 |
static Size_t DPPP_(my_my_strlcat)(char * dst, const char * src, Size_t size); |
| 6753 |
static |
| 6754 |
#else |
| 6755 |
extern Size_t DPPP_(my_my_strlcat)(char * dst, const char * src, Size_t size); |
| 6756 |
#endif |
| 6757 |
|
| 6758 |
#define my_strlcat DPPP_(my_my_strlcat) |
| 6759 |
#define Perl_my_strlcat DPPP_(my_my_strlcat) |
| 6760 |
|
| 6761 |
#if defined(NEED_my_strlcat) || defined(NEED_my_strlcat_GLOBAL) |
| 6762 |
|
| 6763 |
Size_t |
| 6764 |
DPPP_(my_my_strlcat)(char *dst, const char *src, Size_t size) |
| 6765 |
{ |
| 6766 |
Size_t used, length, copy; |
| 6767 |
|
| 6768 |
used = strlen(dst); |
| 6769 |
length = strlen(src); |
| 6770 |
if (size > 0 && used < size - 1) { |
| 6771 |
copy = (length >= size - used) ? size - used - 1 : length; |
| 6772 |
memcpy(dst + used, src, copy); |
| 6773 |
dst[used + copy] = '\0'; |
| 6774 |
} |
| 6775 |
return used + length; |
| 6776 |
} |
| 6777 |
#endif |
| 6778 |
#endif |
| 6779 |
|
| 6780 |
#if !defined(my_strlcpy) |
| 6781 |
#if defined(NEED_my_strlcpy) |
| 6782 |
static Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size); |
| 6783 |
static |
| 6784 |
#else |
| 6785 |
extern Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size); |
| 6786 |
#endif |
| 6787 |
|
| 6788 |
#define my_strlcpy DPPP_(my_my_strlcpy) |
| 6789 |
#define Perl_my_strlcpy DPPP_(my_my_strlcpy) |
| 6790 |
|
| 6791 |
#if defined(NEED_my_strlcpy) || defined(NEED_my_strlcpy_GLOBAL) |
| 6792 |
|
| 6793 |
Size_t |
| 6794 |
DPPP_(my_my_strlcpy)(char *dst, const char *src, Size_t size) |
| 6795 |
{ |
| 6796 |
Size_t length, copy; |
| 6797 |
|
| 6798 |
length = strlen(src); |
| 6799 |
if (size > 0) { |
| 6800 |
copy = (length >= size) ? size - 1 : length; |
| 6801 |
memcpy(dst, src, copy); |
| 6802 |
dst[copy] = '\0'; |
| 6803 |
} |
| 6804 |
return length; |
| 6805 |
} |
| 6806 |
|
| 6807 |
#endif |
| 6808 |
#endif |
| 6809 |
#ifndef PERL_PV_ESCAPE_QUOTE |
| 6810 |
# define PERL_PV_ESCAPE_QUOTE 0x0001 |
| 6811 |
#endif |
| 6812 |
|
| 6813 |
#ifndef PERL_PV_PRETTY_QUOTE |
| 6814 |
# define PERL_PV_PRETTY_QUOTE PERL_PV_ESCAPE_QUOTE |
| 6815 |
#endif |
| 6816 |
|
| 6817 |
#ifndef PERL_PV_PRETTY_ELLIPSES |
| 6818 |
# define PERL_PV_PRETTY_ELLIPSES 0x0002 |
| 6819 |
#endif |
| 6820 |
|
| 6821 |
#ifndef PERL_PV_PRETTY_LTGT |
| 6822 |
# define PERL_PV_PRETTY_LTGT 0x0004 |
| 6823 |
#endif |
| 6824 |
|
| 6825 |
#ifndef PERL_PV_ESCAPE_FIRSTCHAR |
| 6826 |
# define PERL_PV_ESCAPE_FIRSTCHAR 0x0008 |
| 6827 |
#endif |
| 6828 |
|
| 6829 |
#ifndef PERL_PV_ESCAPE_UNI |
| 6830 |
# define PERL_PV_ESCAPE_UNI 0x0100 |
| 6831 |
#endif |
| 6832 |
|
| 6833 |
#ifndef PERL_PV_ESCAPE_UNI_DETECT |
| 6834 |
# define PERL_PV_ESCAPE_UNI_DETECT 0x0200 |
| 6835 |
#endif |
| 6836 |
|
| 6837 |
#ifndef PERL_PV_ESCAPE_ALL |
| 6838 |
# define PERL_PV_ESCAPE_ALL 0x1000 |
| 6839 |
#endif |
| 6840 |
|
| 6841 |
#ifndef PERL_PV_ESCAPE_NOBACKSLASH |
| 6842 |
# define PERL_PV_ESCAPE_NOBACKSLASH 0x2000 |
| 6843 |
#endif |
| 6844 |
|
| 6845 |
#ifndef PERL_PV_ESCAPE_NOCLEAR |
| 6846 |
# define PERL_PV_ESCAPE_NOCLEAR 0x4000 |
| 6847 |
#endif |
| 6848 |
|
| 6849 |
#ifndef PERL_PV_ESCAPE_RE |
| 6850 |
# define PERL_PV_ESCAPE_RE 0x8000 |
| 6851 |
#endif |
| 6852 |
|
| 6853 |
#ifndef PERL_PV_PRETTY_NOCLEAR |
| 6854 |
# define PERL_PV_PRETTY_NOCLEAR PERL_PV_ESCAPE_NOCLEAR |
| 6855 |
#endif |
| 6856 |
#ifndef PERL_PV_PRETTY_DUMP |
| 6857 |
# define PERL_PV_PRETTY_DUMP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_QUOTE |
| 6858 |
#endif |
| 6859 |
|
| 6860 |
#ifndef PERL_PV_PRETTY_REGPROP |
| 6861 |
# define PERL_PV_PRETTY_REGPROP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_LTGT|PERL_PV_ESCAPE_RE |
| 6862 |
#endif |
| 6863 |
|
| 6864 |
|
| 6865 |
|
| 6866 |
|
| 6867 |
|
| 6868 |
|
| 6869 |
|
| 6870 |
#ifndef pv_escape |
| 6871 |
#if defined(NEED_pv_escape) |
| 6872 |
static char * DPPP_(my_pv_escape)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags); |
| 6873 |
static |
| 6874 |
#else |
| 6875 |
extern char * DPPP_(my_pv_escape)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags); |
| 6876 |
#endif |
| 6877 |
|
| 6878 |
#ifdef pv_escape |
| 6879 |
# undef pv_escape |
| 6880 |
#endif |
| 6881 |
#define pv_escape(a,b,c,d,e,f) DPPP_(my_pv_escape)(aTHX_ a,b,c,d,e,f) |
| 6882 |
#define Perl_pv_escape DPPP_(my_pv_escape) |
| 6883 |
|
| 6884 |
#if defined(NEED_pv_escape) || defined(NEED_pv_escape_GLOBAL) |
| 6885 |
|
| 6886 |
char * |
| 6887 |
DPPP_(my_pv_escape)(pTHX_ SV *dsv, char const * const str, |
| 6888 |
const STRLEN count, const STRLEN max, |
| 6889 |
STRLEN * const escaped, const U32 flags) |
| 6890 |
{ |
| 6891 |
const char esc = flags & PERL_PV_ESCAPE_RE ? '%' : '\\'; |
| 6892 |
const char dq = flags & PERL_PV_ESCAPE_QUOTE ? '"' : esc; |
| 6893 |
char octbuf[32] = "%123456789ABCDF"; |
| 6894 |
STRLEN wrote = 0; |
| 6895 |
STRLEN chsize = 0; |
| 6896 |
STRLEN readsize = 1; |
| 6897 |
#if defined(is_utf8_string) && defined(utf8_to_uvchr) |
| 6898 |
bool isuni = flags & PERL_PV_ESCAPE_UNI ? 1 : 0; |
| 6899 |
#endif |
| 6900 |
const char *pv = str; |
| 6901 |
const char * const end = pv + count; |
| 6902 |
octbuf[0] = esc; |
| 6903 |
|
| 6904 |
if (!(flags & PERL_PV_ESCAPE_NOCLEAR)) |
| 6905 |
sv_setpvs(dsv, ""); |
| 6906 |
|
| 6907 |
#if defined(is_utf8_string) && defined(utf8_to_uvchr) |
| 6908 |
if ((flags & PERL_PV_ESCAPE_UNI_DETECT) && is_utf8_string((U8*)pv, count)) |
| 6909 |
isuni = 1; |
| 6910 |
#endif |
| 6911 |
|
| 6912 |
for (; pv < end && (!max || wrote < max) ; pv += readsize) { |
| 6913 |
const UV u = |
| 6914 |
#if defined(is_utf8_string) && defined(utf8_to_uvchr) |
| 6915 |
isuni ? utf8_to_uvchr((U8*)pv, &readsize) : |
| 6916 |
#endif |
| 6917 |
(U8)*pv; |
| 6918 |
const U8 c = (U8)u & 0xFF; |
| 6919 |
|
| 6920 |
if (u > 255 || (flags & PERL_PV_ESCAPE_ALL)) { |
| 6921 |
if (flags & PERL_PV_ESCAPE_FIRSTCHAR) |
| 6922 |
chsize = my_snprintf(octbuf, sizeof octbuf, |
| 6923 |
"%"UVxf, u); |
| 6924 |
else |
| 6925 |
chsize = my_snprintf(octbuf, sizeof octbuf, |
| 6926 |
"%cx{%"UVxf"}", esc, u); |
| 6927 |
} else if (flags & PERL_PV_ESCAPE_NOBACKSLASH) { |
| 6928 |
chsize = 1; |
| 6929 |
} else { |
| 6930 |
if (c == dq || c == esc || !isPRINT(c)) { |
| 6931 |
chsize = 2; |
| 6932 |
switch (c) { |
| 6933 |
case '\\' : |
| 6934 |
case '%' : if (c == esc) |
| 6935 |
octbuf[1] = esc; |
| 6936 |
else |
| 6937 |
chsize = 1; |
| 6938 |
break; |
| 6939 |
case '\v' : octbuf[1] = 'v'; break; |
| 6940 |
case '\t' : octbuf[1] = 't'; break; |
| 6941 |
case '\r' : octbuf[1] = 'r'; break; |
| 6942 |
case '\n' : octbuf[1] = 'n'; break; |
| 6943 |
case '\f' : octbuf[1] = 'f'; break; |
| 6944 |
case '"' : if (dq == '"') |
| 6945 |
octbuf[1] = '"'; |
| 6946 |
else |
| 6947 |
chsize = 1; |
| 6948 |
break; |
| 6949 |
default: chsize = my_snprintf(octbuf, sizeof octbuf, |
| 6950 |
pv < end && isDIGIT((U8)*(pv+readsize)) |
| 6951 |
? "%c%03o" : "%c%o", esc, c); |
| 6952 |
} |
| 6953 |
} else { |
| 6954 |
chsize = 1; |
| 6955 |
} |
| 6956 |
} |
| 6957 |
if (max && wrote + chsize > max) { |
| 6958 |
break; |
| 6959 |
} else if (chsize > 1) { |
| 6960 |
sv_catpvn(dsv, octbuf, chsize); |
| 6961 |
wrote += chsize; |
| 6962 |
} else { |
| 6963 |
char tmp[2]; |
| 6964 |
my_snprintf(tmp, sizeof tmp, "%c", c); |
| 6965 |
sv_catpvn(dsv, tmp, 1); |
| 6966 |
wrote++; |
| 6967 |
} |
| 6968 |
if (flags & PERL_PV_ESCAPE_FIRSTCHAR) |
| 6969 |
break; |
| 6970 |
} |
| 6971 |
if (escaped != NULL) |
| 6972 |
*escaped= pv - str; |
| 6973 |
return SvPVX(dsv); |
| 6974 |
} |
| 6975 |
|
| 6976 |
#endif |
| 6977 |
#endif |
| 6978 |
|
| 6979 |
#ifndef pv_pretty |
| 6980 |
#if defined(NEED_pv_pretty) |
| 6981 |
static char * DPPP_(my_pv_pretty)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, char const * const start_color, char const * const end_color, const U32 flags); |
| 6982 |
static |
| 6983 |
#else |
| 6984 |
extern char * DPPP_(my_pv_pretty)(pTHX_ SV * dsv, char const * const str, const STRLEN count, const STRLEN max, char const * const start_color, char const * const end_color, const U32 flags); |
| 6985 |
#endif |
| 6986 |
|
| 6987 |
#ifdef pv_pretty |
| 6988 |
# undef pv_pretty |
| 6989 |
#endif |
| 6990 |
#define pv_pretty(a,b,c,d,e,f,g) DPPP_(my_pv_pretty)(aTHX_ a,b,c,d,e,f,g) |
| 6991 |
#define Perl_pv_pretty DPPP_(my_pv_pretty) |
| 6992 |
|
| 6993 |
#if defined(NEED_pv_pretty) || defined(NEED_pv_pretty_GLOBAL) |
| 6994 |
|
| 6995 |
char * |
| 6996 |
DPPP_(my_pv_pretty)(pTHX_ SV *dsv, char const * const str, const STRLEN count, |
| 6997 |
const STRLEN max, char const * const start_color, char const * const end_color, |
| 6998 |
const U32 flags) |
| 6999 |
{ |
| 7000 |
const U8 dq = (flags & PERL_PV_PRETTY_QUOTE) ? '"' : '%'; |
| 7001 |
STRLEN escaped; |
| 7002 |
|
| 7003 |
if (!(flags & PERL_PV_PRETTY_NOCLEAR)) |
| 7004 |
sv_setpvs(dsv, ""); |
| 7005 |
|
| 7006 |
if (dq == '"') |
| 7007 |
sv_catpvs(dsv, "\""); |
| 7008 |
else if (flags & PERL_PV_PRETTY_LTGT) |
| 7009 |
sv_catpvs(dsv, "<"); |
| 7010 |
|
| 7011 |
if (start_color != NULL) |
| 7012 |
sv_catpv(dsv, D_PPP_CONSTPV_ARG(start_color)); |
| 7013 |
|
| 7014 |
pv_escape(dsv, str, count, max, &escaped, flags | PERL_PV_ESCAPE_NOCLEAR); |
| 7015 |
|
| 7016 |
if (end_color != NULL) |
| 7017 |
sv_catpv(dsv, D_PPP_CONSTPV_ARG(end_color)); |
| 7018 |
|
| 7019 |
if (dq == '"') |
| 7020 |
sv_catpvs(dsv, "\""); |
| 7021 |
else if (flags & PERL_PV_PRETTY_LTGT) |
| 7022 |
sv_catpvs(dsv, ">"); |
| 7023 |
|
| 7024 |
if ((flags & PERL_PV_PRETTY_ELLIPSES) && escaped < count) |
| 7025 |
sv_catpvs(dsv, "..."); |
| 7026 |
|
| 7027 |
return SvPVX(dsv); |
| 7028 |
} |
| 7029 |
|
| 7030 |
#endif |
| 7031 |
#endif |
| 7032 |
|
| 7033 |
#ifndef pv_display |
| 7034 |
#if defined(NEED_pv_display) |
| 7035 |
static char * DPPP_(my_pv_display)(pTHX_ SV * dsv, const char * pv, STRLEN cur, STRLEN len, STRLEN pvlim); |
| 7036 |
static |
| 7037 |
#else |
| 7038 |
extern char * DPPP_(my_pv_display)(pTHX_ SV * dsv, const char * pv, STRLEN cur, STRLEN len, STRLEN pvlim); |
| 7039 |
#endif |
| 7040 |
|
| 7041 |
#ifdef pv_display |
| 7042 |
# undef pv_display |
| 7043 |
#endif |
| 7044 |
#define pv_display(a,b,c,d,e) DPPP_(my_pv_display)(aTHX_ a,b,c,d,e) |
| 7045 |
#define Perl_pv_display DPPP_(my_pv_display) |
| 7046 |
|
| 7047 |
#if defined(NEED_pv_display) || defined(NEED_pv_display_GLOBAL) |
| 7048 |
|
| 7049 |
char * |
| 7050 |
DPPP_(my_pv_display)(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim) |
| 7051 |
{ |
| 7052 |
pv_pretty(dsv, pv, cur, pvlim, NULL, NULL, PERL_PV_PRETTY_DUMP); |
| 7053 |
if (len > cur && pv[cur] == '\0') |
| 7054 |
sv_catpvs(dsv, "\\0"); |
| 7055 |
return SvPVX(dsv); |
| 7056 |
} |
| 7057 |
|
| 7058 |
#endif |
| 7059 |
#endif |
| 7060 |
|
| 7061 |
#endif |
| 7062 |
|
| 7063 |
|