github.com/afumu/libc@v0.0.6/darwin/table.c (about) 1 # 1 "<stdin>" 2 # 1 "<built-in>" 1 3 # 1 "<built-in>" 3 4 # 390 "<built-in>" 3 5 # 1 "<command line>" 1 6 # 1 "<built-in>" 2 7 # 1 "<stdin>" 2 8 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ctype.h" 1 3 4 9 # 22 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ctype.h" 3 4 10 11 12 # 64 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ctype.h" 3 4 13 14 15 16 17 18 19 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 1 3 4 20 # 22 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 3 4 21 22 23 # 64 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 3 4 24 25 26 27 28 29 30 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 1 3 4 31 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 32 33 34 35 # 65 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 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 # 103 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 61 62 63 64 65 66 67 68 69 70 # 131 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 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 # 203 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 136 137 138 139 140 141 #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) 142 143 144 145 146 147 #define __deprecated_enum_msg(_msg) __deprecated_msg(_msg) 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 # 274 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 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 # 341 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 244 245 246 247 # 358 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 # 388 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 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 # 451 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 317 318 319 320 321 322 323 324 325 326 327 # 495 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 328 329 330 331 332 333 # 512 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 334 335 336 # 530 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 337 338 339 # 554 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 340 341 342 # 576 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 343 344 345 # 586 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 # 610 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 363 364 365 # 620 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 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 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_symbol_aliasing.h" 1 3 4 405 # 26 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_symbol_aliasing.h" 3 4 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 # 658 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 2 3 4 972 973 974 975 976 977 978 979 980 981 982 983 # 686 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 # 713 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_posix_availability.h" 1 3 4 1013 # 26 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_posix_availability.h" 3 4 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 # 724 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 2 3 4 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 # 884 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h" 3 4 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 # 70 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 2 3 4 1216 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 1 3 4 1217 # 37 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 3 4 1218 1219 1220 1221 1222 1223 1224 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 1 3 4 1225 # 22 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 3 4 1226 1227 1228 1229 1230 1231 1232 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 1 3 4 1233 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 3 4 1234 1235 1236 1237 1238 1239 1240 1241 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h" 1 3 4 1242 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h" 3 4 1243 1244 1245 1246 1247 1248 1249 1250 1251 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h" 1 3 4 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 typedef __signed char __int8_t; 1267 1268 1269 1270 typedef unsigned char __uint8_t; 1271 typedef short __int16_t; 1272 typedef unsigned short __uint16_t; 1273 typedef int __int32_t; 1274 typedef unsigned int __uint32_t; 1275 typedef long long __int64_t; 1276 typedef unsigned long long __uint64_t; 1277 1278 typedef long __darwin_intptr_t; 1279 typedef unsigned int __darwin_natural_t; 1280 1281 1282 # 46 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_types.h" 3 4 1283 1284 1285 typedef int __darwin_ct_rune_t; 1286 1287 1288 1289 1290 1291 typedef union { 1292 char __mbstate8[128]; 1293 long long _mbstateL; 1294 } __mbstate_t; 1295 1296 typedef __mbstate_t __darwin_mbstate_t; 1297 1298 1299 typedef long int __darwin_ptrdiff_t; 1300 1301 1302 1303 1304 1305 1306 1307 typedef long unsigned int __darwin_size_t; 1308 1309 1310 1311 1312 1313 typedef __builtin_va_list __darwin_va_list; 1314 1315 1316 1317 1318 1319 typedef int __darwin_wchar_t; 1320 1321 1322 1323 1324 typedef __darwin_wchar_t __darwin_rune_t; 1325 1326 1327 typedef int __darwin_wint_t; 1328 1329 1330 1331 1332 typedef unsigned long __darwin_clock_t; 1333 typedef __uint32_t __darwin_socklen_t; 1334 typedef long __darwin_ssize_t; 1335 typedef long __darwin_time_t; 1336 1337 1338 1339 1340 # 35 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h" 2 3 4 1341 1342 1343 1344 1345 1346 # 34 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 2 3 4 1347 1348 1349 1350 1351 1352 1353 1354 1355 # 54 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 3 4 1356 1357 typedef __int64_t __darwin_blkcnt_t; 1358 typedef __int32_t __darwin_blksize_t; 1359 typedef __int32_t __darwin_dev_t; 1360 typedef unsigned int __darwin_fsblkcnt_t; 1361 typedef unsigned int __darwin_fsfilcnt_t; 1362 typedef __uint32_t __darwin_gid_t; 1363 typedef __uint32_t __darwin_id_t; 1364 typedef __uint64_t __darwin_ino64_t; 1365 1366 typedef __darwin_ino64_t __darwin_ino_t; 1367 1368 1369 1370 typedef __darwin_natural_t __darwin_mach_port_name_t; 1371 typedef __darwin_mach_port_name_t __darwin_mach_port_t; 1372 typedef __uint16_t __darwin_mode_t; 1373 typedef __int64_t __darwin_off_t; 1374 typedef __int32_t __darwin_pid_t; 1375 typedef __uint32_t __darwin_sigset_t; 1376 typedef __int32_t __darwin_suseconds_t; 1377 typedef __uint32_t __darwin_uid_t; 1378 typedef __uint32_t __darwin_useconds_t; 1379 typedef unsigned char __darwin_uuid_t[16]; 1380 typedef char __darwin_uuid_string_t[37]; 1381 1382 1383 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h" 1 3 4 1384 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h" 3 4 1385 1386 1387 1388 1389 1390 1391 1392 // pthread opaque structures 1393 1394 # 56 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h" 3 4 1395 1396 struct __darwin_pthread_handler_rec { 1397 void (*__routine)(void *); // Routine to call 1398 void *__arg; // Argument to pass 1399 struct __darwin_pthread_handler_rec *__next; 1400 }; 1401 1402 struct _opaque_pthread_attr_t { 1403 long __sig; 1404 char __opaque[56]; 1405 }; 1406 1407 struct _opaque_pthread_cond_t { 1408 long __sig; 1409 char __opaque[40]; 1410 }; 1411 1412 struct _opaque_pthread_condattr_t { 1413 long __sig; 1414 char __opaque[8]; 1415 }; 1416 1417 struct _opaque_pthread_mutex_t { 1418 long __sig; 1419 char __opaque[56]; 1420 }; 1421 1422 struct _opaque_pthread_mutexattr_t { 1423 long __sig; 1424 char __opaque[8]; 1425 }; 1426 1427 struct _opaque_pthread_once_t { 1428 long __sig; 1429 char __opaque[8]; 1430 }; 1431 1432 struct _opaque_pthread_rwlock_t { 1433 long __sig; 1434 char __opaque[192]; 1435 }; 1436 1437 struct _opaque_pthread_rwlockattr_t { 1438 long __sig; 1439 char __opaque[16]; 1440 }; 1441 1442 struct _opaque_pthread_t { 1443 long __sig; 1444 struct __darwin_pthread_handler_rec *__cleanup_stack; 1445 char __opaque[8176]; 1446 }; 1447 1448 typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t; 1449 typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t; 1450 typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t; 1451 typedef unsigned long __darwin_pthread_key_t; 1452 typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t; 1453 typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t; 1454 typedef struct _opaque_pthread_once_t __darwin_pthread_once_t; 1455 typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t; 1456 typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t; 1457 typedef struct _opaque_pthread_t *__darwin_pthread_t; 1458 1459 1460 # 81 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h" 2 3 4 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 # 28 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 2 3 4 1471 1472 1473 1474 # 39 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h" 3 4 1475 1476 typedef int __darwin_nl_item; 1477 typedef int __darwin_wctrans_t; 1478 1479 typedef __uint32_t __darwin_wctype_t; 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 # 43 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 2 3 4 1507 1508 1509 1510 1511 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h" 1 3 4 1512 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h" 3 4 1513 1514 1515 1516 1517 typedef __darwin_size_t size_t; 1518 1519 # 47 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 2 3 4 1520 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_ct_rune_t.h" 1 3 4 1521 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_ct_rune_t.h" 3 4 1522 1523 1524 1525 1526 1527 typedef __darwin_ct_rune_t ct_rune_t; 1528 1529 # 48 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 2 3 4 1530 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_rune_t.h" 1 3 4 1531 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_rune_t.h" 3 4 1532 1533 1534 1535 1536 typedef __darwin_rune_t rune_t; 1537 1538 # 49 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 2 3 4 1539 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_wchar_t.h" 1 3 4 1540 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_wchar_t.h" 3 4 1541 1542 1543 1544 1545 1546 1547 1548 typedef __darwin_wchar_t wchar_t; 1549 1550 # 50 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 2 3 4 1551 # 1 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_wint_t.h" 1 3 4 1552 # 27 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_wint_t.h" 3 4 1553 1554 1555 1556 1557 1558 typedef __darwin_wint_t wint_t; 1559 1560 # 51 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/runetype.h" 2 3 4 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 typedef struct { 1571 __darwin_rune_t __min; 1572 __darwin_rune_t __max; 1573 __darwin_rune_t __map; 1574 __uint32_t *__types; 1575 } _RuneEntry; 1576 1577 typedef struct { 1578 int __nranges; 1579 _RuneEntry *__ranges; 1580 } _RuneRange; 1581 1582 typedef struct { 1583 char __name[14]; 1584 __uint32_t __mask; 1585 } _RuneCharClass; 1586 1587 typedef struct { 1588 char __magic[8]; 1589 char __encoding[32]; 1590 1591 __darwin_rune_t (*__sgetrune)(__const char *, __darwin_size_t, char __const **); 1592 int (*__sputrune)(__darwin_rune_t, char *, __darwin_size_t, char **); 1593 __darwin_rune_t __invalid_rune; 1594 1595 __uint32_t __runetype[(1 <<8 )]; 1596 __darwin_rune_t __maplower[(1 <<8 )]; 1597 __darwin_rune_t __mapupper[(1 <<8 )]; 1598 1599 1600 1601 1602 1603 1604 _RuneRange __runetype_ext; 1605 _RuneRange __maplower_ext; 1606 _RuneRange __mapupper_ext; 1607 1608 void *__variable; 1609 int __variable_len; 1610 1611 1612 1613 1614 int __ncharclasses; 1615 _RuneCharClass *__charclasses; 1616 } _RuneLocale; 1617 1618 1619 1620 1621 extern _RuneLocale _DefaultRuneLocale; 1622 extern _RuneLocale *_CurrentRuneLocale; 1623 1624 1625 1626 # 71 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 2 3 4 1627 1628 1629 # 92 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 3 4 1630 1631 1632 # 116 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 3 4 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 unsigned long ___runetype(__darwin_ct_rune_t); 1647 __darwin_ct_rune_t ___tolower(__darwin_ct_rune_t); 1648 __darwin_ct_rune_t ___toupper(__darwin_ct_rune_t); 1649 1650 1651 __inline int 1652 isascii(int _c) 1653 { 1654 return ((_c & ~0x7F) == 0); 1655 } 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 int __maskrune(__darwin_ct_rune_t, unsigned long); 1666 1667 1668 1669 __inline int 1670 __istype(__darwin_ct_rune_t _c, unsigned long _f) 1671 { 1672 1673 1674 1675 return (isascii(_c) ? !!(_DefaultRuneLocale.__runetype[_c] & _f) 1676 : !!__maskrune(_c, _f)); 1677 1678 } 1679 1680 __inline __darwin_ct_rune_t 1681 __isctype(__darwin_ct_rune_t _c, unsigned long _f) 1682 { 1683 1684 1685 1686 return (_c < 0 || _c >= (1 <<8 )) ? 0 : 1687 !!(_DefaultRuneLocale.__runetype[_c] & _f); 1688 1689 } 1690 1691 1692 # 187 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 3 4 1693 1694 __darwin_ct_rune_t __toupper(__darwin_ct_rune_t); 1695 __darwin_ct_rune_t __tolower(__darwin_ct_rune_t); 1696 1697 1698 1699 __inline int 1700 __wcwidth(__darwin_ct_rune_t _c) 1701 { 1702 unsigned int _x; 1703 1704 if (_c == 0) 1705 return (0); 1706 _x = (unsigned int)__maskrune(_c, 0xe0000000L|0x00040000L); 1707 if ((_x & 0xe0000000L) != 0) 1708 return ((_x & 0xe0000000L) >> 30); 1709 return ((_x & 0x00040000L) != 0 ? 1 : -1); 1710 } 1711 1712 1713 1714 1715 1716 1717 __inline int 1718 isalnum(int _c) 1719 { 1720 return (__istype(_c, 0x00000100L|0x00000400L)); 1721 } 1722 1723 __inline int 1724 isalpha(int _c) 1725 { 1726 return (__istype(_c, 0x00000100L)); 1727 } 1728 1729 __inline int 1730 isblank(int _c) 1731 { 1732 return (__istype(_c, 0x00020000L)); 1733 } 1734 1735 __inline int 1736 iscntrl(int _c) 1737 { 1738 return (__istype(_c, 0x00000200L)); 1739 } 1740 1741 1742 __inline int 1743 isdigit(int _c) 1744 { 1745 return (__isctype(_c, 0x00000400L)); 1746 } 1747 1748 __inline int 1749 isgraph(int _c) 1750 { 1751 return (__istype(_c, 0x00000800L)); 1752 } 1753 1754 __inline int 1755 islower(int _c) 1756 { 1757 return (__istype(_c, 0x00001000L)); 1758 } 1759 1760 __inline int 1761 isprint(int _c) 1762 { 1763 return (__istype(_c, 0x00040000L)); 1764 } 1765 1766 __inline int 1767 ispunct(int _c) 1768 { 1769 return (__istype(_c, 0x00002000L)); 1770 } 1771 1772 __inline int 1773 isspace(int _c) 1774 { 1775 return (__istype(_c, 0x00004000L)); 1776 } 1777 1778 __inline int 1779 isupper(int _c) 1780 { 1781 return (__istype(_c, 0x00008000L)); 1782 } 1783 1784 1785 __inline int 1786 isxdigit(int _c) 1787 { 1788 return (__isctype(_c, 0x00010000L)); 1789 } 1790 1791 __inline int 1792 toascii(int _c) 1793 { 1794 return (_c & 0x7F); 1795 } 1796 1797 __inline int 1798 tolower(int _c) 1799 { 1800 return (__tolower(_c)); 1801 } 1802 1803 __inline int 1804 toupper(int _c) 1805 { 1806 return (__toupper(_c)); 1807 } 1808 1809 1810 __inline int 1811 digittoint(int _c) 1812 { 1813 return (__maskrune(_c, 0x0F)); 1814 } 1815 1816 __inline int 1817 ishexnumber(int _c) 1818 { 1819 return (__istype(_c, 0x00010000L)); 1820 } 1821 1822 __inline int 1823 isideogram(int _c) 1824 { 1825 return (__istype(_c, 0x00080000L)); 1826 } 1827 1828 __inline int 1829 isnumber(int _c) 1830 { 1831 return (__istype(_c, 0x00000400L)); 1832 } 1833 1834 __inline int 1835 isphonogram(int _c) 1836 { 1837 return (__istype(_c, 0x00200000L)); 1838 } 1839 1840 __inline int 1841 isrune(int _c) 1842 { 1843 return (__istype(_c, 0xFFFFFFF0L)); 1844 } 1845 1846 __inline int 1847 isspecial(int _c) 1848 { 1849 return (__istype(_c, 0x00100000L)); 1850 } 1851 1852 1853 1854 1855 # 382 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h" 3 4 1856 1857 1858 1859 1860 1861 1862 # 70 "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ctype.h" 2 3 4 1863 1864 1865 1866 1867 1868 1869 # 2 "<stdin>" 2 1870 1871 __maskrune(__darwin_ct_rune_t _c, unsigned long _f) 1872 { 1873 return (int)_DefaultRuneLocale.__runetype[_c & 0xff] & (__uint32_t)_f; 1874 } 1875 1876 __darwin_ct_rune_t __toupper(__darwin_ct_rune_t c) { return toupper(c); } 1877 1878 __darwin_ct_rune_t __tolower(__darwin_ct_rune_t c) { return tolower(c); } 1879 _RuneLocale _DefaultRuneLocale = { 1880 .__magic = {82, 117, 110, 101, 77, 97, 103, 65, }, 1881 .__encoding = {78, 79, 78, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, 1882 .__invalid_rune = 0xfffd, 1883 .__runetype = { 1884 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x24200, 0x4200, 0x4200, 0x4200, 0x4200, 0x200, 0x200, 1885 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 0x200, 1886 0x64000, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 1887 0x50c00, 0x50c01, 0x50c02, 0x50c03, 0x50c04, 0x50c05, 0x50c06, 0x50c07, 0x50c08, 0x50c09, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 1888 0x42800, 0x5890a, 0x5890b, 0x5890c, 0x5890d, 0x5890e, 0x5890f, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 1889 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x48900, 0x42800, 0x42800, 0x42800, 0x42800, 0x42800, 1890 0x42800, 0x5190a, 0x5190b, 0x5190c, 0x5190d, 0x5190e, 0x5190f, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 1891 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x41900, 0x42800, 0x42800, 0x42800, 0x42800, 0x200, 1892 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1893 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1894 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1895 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1896 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1897 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1898 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1899 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 1900 }, 1901 .__maplower = { 1902 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf, 1903 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 1904 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 1905 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 1906 0x40, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 1907 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 1908 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 1909 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 1910 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 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 0xeb, 0xec, 0xed, 0xee, 0xef, 1935 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, 1936 }, 1937 1938 }; 1939 1940 _RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale; 1941