1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 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
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
use core::mem::{size_of};
use libc::{FILE, c_void, c_int, c_char, c_uint, c_ulong, c_uchar, c_short, c_long, c_ushort, c_float, c_double};

include!(concat!(env!("OUT_DIR"), "/version.rs"));

pub type VOID_STAR = *mut c_void;
pub type FVOID_STAR = Option<unsafe extern "C" fn() -> c_int>;
pub type SLstrlen_Type = c_uint;
pub type SLindex_Type = c_int;
pub type SLuindex_Type = c_uint;
pub type SLstr_Type = c_char;
pub type SLstr_Hash_Type = c_ulong;
pub type SLwchar_Type = u32;
pub type SLuchar_Type = c_uchar;
pub type SLtype = c_uint;
pub type SLclass_Type = c_int;
pub type SLang_MMT_Type = c_int;
pub type SLang_Ref_Type = c_int;
pub type SLtt_Char_Type = c_ulong;
pub type SLsmg_Color_Type = c_ushort;

pub const SLANG_SIZEOF_SHORT: usize = size_of::<c_short>();
pub const SLANG_SIZEOF_INT: usize = size_of::<c_int>();
pub const SLANG_SIZEOF_LONG: usize = size_of::<c_long>();
pub const SLANG_SIZEOF_FLOAT: usize = size_of::<c_float>();
pub const SLANG_SIZEOF_DOUBLE: usize = size_of::<c_double>();

pub const SLUTF8_MAX_MBLEN: u8 = 6;

pub const SLWCWIDTH_SINGLE_WIDTH: c_int = 1;
pub const SLWCWIDTH_CJK_LEGACY: c_int = 2;

pub const SLANG_LVARIABLE: c_uchar = 1;
pub const SLANG_GVARIABLE: c_uchar = 2;
pub const SLANG_IVARIABLE: c_uchar = 3;
pub const SLANG_RVARIABLE: c_uchar = 4;
pub const SLANG_INTRINSIC: c_uchar = 5;
pub const SLANG_FUNCTION: c_uchar = 6;
pub const SLANG_MATH_UNARY: c_uchar = 7;
pub const SLANG_APP_UNARY: c_uchar = 8;
pub const SLANG_ARITH_UNARY: c_uchar = 9;
pub const SLANG_ARITH_BINARY: c_uchar = 10;
pub const SLANG_ICONSTANT: c_uchar = 11;
pub const SLANG_DCONSTANT: c_uchar = 12;
pub const SLANG_FCONSTANT: c_uchar = 13;
pub const SLANG_LLCONSTANT: c_uchar = 14;
pub const SLANG_PVARIABLE: c_uchar = 15;
pub const SLANG_PFUNCTION: c_uchar = 16;
pub const SLANG_HCONSTANT: c_uchar = 17;
pub const SLANG_LCONSTANT: c_uchar = 18;

pub const SLANG_MAX_INTRIN_ARGS: usize = 7;

pub const SLANG_LOAD_FILE_VERBOSE: c_int = 1;
pub const SLANG_LOAD_MODULE_VERBOSE: c_int = 2;

pub const SLANG_CLASS_TYPE_MMT: SLclass_Type = 0;
pub const SLANG_CLASS_TYPE_SCALAR: SLclass_Type = 1;
pub const SLANG_CLASS_TYPE_VECTOR: SLclass_Type = 2;
pub const SLANG_CLASS_TYPE_PTR: SLclass_Type = 3;

pub const SLMATH_SIN: c_int = 1;
pub const SLMATH_COS: c_int = 2;
pub const SLMATH_TAN: c_int = 3;
pub const SLMATH_ATAN: c_int = 4;
pub const SLMATH_ASIN: c_int = 5;
pub const SLMATH_ACOS: c_int = 6;
pub const SLMATH_EXP: c_int = 7;
pub const SLMATH_LOG: c_int = 8;
pub const SLMATH_SQRT: c_int = 9;
pub const SLMATH_LOG10: c_int = 10;
pub const SLMATH_REAL: c_int = 11;
pub const SLMATH_IMAG: c_int = 12;
pub const SLMATH_SINH: c_int = 13;
pub const SLMATH_COSH: c_int = 14;
pub const SLMATH_TANH: c_int = 15;
pub const SLMATH_ATANH: c_int = 16;
pub const SLMATH_ASINH: c_int = 17;
pub const SLMATH_ACOSH: c_int = 18;
pub const SLMATH_TODOUBLE: c_int = 19;
pub const SLMATH_CONJ: c_int = 20;
pub const SLMATH_ISINF: c_int = 21;
pub const SLMATH_ISNAN: c_int = 22;
pub const SLMATH_FLOOR: c_int = 23;
pub const SLMATH_CEIL: c_int = 24;
pub const SLMATH_ROUND: c_int = 25;
pub const SLMATH_EXPM1: c_int = 26;
pub const SLMATH_LOG1P: c_int = 27;

pub const SLARRAY_MAX_DIMS: usize = 7;

pub const SLARR_DATA_VALUE_IS_READ_ONLY: c_uint = 1;
pub const SLARR_DATA_VALUE_IS_POINTER: c_uint = 2;
pub const SLARR_DATA_VALUE_IS_RANGE: c_uint = 4;
pub const SLARR_DATA_VALUE_IS_INTRINSIC: c_uint = 8;
pub const SLARR_DERIVED_FROM_SCALAR: c_uint = 256;

pub const SL_TB_NONE: c_int = 0;
pub const SL_TB_FULL: c_int = 1;
pub const SL_TB_OMIT_LOCALS: c_int = 2;
pub const SL_TB_PARTIAL: c_int = 4;

pub const SLANG_GETKEY_ERROR: c_uint = 65535;

pub const SLANG_MAX_KEYMAP_KEY_SEQ: usize = 14;

pub const SLKEY_F_INTERPRET: c_uchar = 1;
pub const SLKEY_F_INTRINSIC: c_uchar = 2;
pub const SLKEY_F_KEYSYM: c_uchar = 3;
pub const SLKEY_F_SLANG: c_uchar = 4;

pub const SL_RLINE_NO_ECHO: c_uint = 1;
pub const SL_RLINE_USE_ANSI: c_uint = 2;
pub const SL_RLINE_BLINK_MATCH: c_uint = 4;
pub const SL_RLINE_UTF8_MODE: c_uint = 8;
pub const SL_RLINE_USE_MULTILINE: c_uint = 16;

pub const SLTT_BOLD_MASK: SLtt_Char_Type = 16777216;
pub const SLTT_BLINK_MASK: SLtt_Char_Type = 33554432;
pub const SLTT_ULINE_MASK: SLtt_Char_Type = 67108864;
pub const SLTT_REV_MASK: SLtt_Char_Type = 134217728;
pub const SLTT_ALTC_MASK: SLtt_Char_Type = 268435456;
pub const SLTT_ITALIC_MASK: SLtt_Char_Type = 536870912;

pub const SLSMG_MAX_COLORS: SLsmg_Color_Type = 32766;
pub const SLSMG_COLOR_MASK: SLsmg_Color_Type = 32767;
pub const SLSMG_ACS_MASK: SLsmg_Color_Type = 32768;

pub const SLSMG_MAX_CHARS_PER_CELL: usize = 5;

pub const SLPREP_BLANK_LINES_OK: c_uint = 1;
pub const SLPREP_COMMENT_LINES_OK: c_uint = 2;

pub const SLSMG_NEWLINE_IGNORED: c_int = 0;
pub const SLSMG_NEWLINE_MOVES: c_int = 1;
pub const SLSMG_NEWLINE_SCROLLS: c_int = 2;
pub const SLSMG_NEWLINE_PRINTABLE: c_int = 3;

pub const SLSMG_COLOR_BLACK: SLsmg_Color_Type = 0;
pub const SLSMG_COLOR_RED: SLsmg_Color_Type = 1;
pub const SLSMG_COLOR_GREEN: SLsmg_Color_Type = 2;
pub const SLSMG_COLOR_BROWN: SLsmg_Color_Type = 3;
pub const SLSMG_COLOR_BLUE: SLsmg_Color_Type = 4;
pub const SLSMG_COLOR_MAGENTA: SLsmg_Color_Type = 5;
pub const SLSMG_COLOR_CYAN: SLsmg_Color_Type = 6;
pub const SLSMG_COLOR_LGRAY: SLsmg_Color_Type = 7;
pub const SLSMG_COLOR_GRAY: SLsmg_Color_Type = 8;
pub const SLSMG_COLOR_BRIGHT_RED: SLsmg_Color_Type = 9;
pub const SLSMG_COLOR_BRIGHT_GREEN: SLsmg_Color_Type = 10;
pub const SLSMG_COLOR_BRIGHT_BROWN: SLsmg_Color_Type = 11;
pub const SLSMG_COLOR_BRIGHT_BLUE: SLsmg_Color_Type = 12;
pub const SLSMG_COLOR_BRIGHT_MAGENTA: SLsmg_Color_Type = 13;
pub const SLSMG_COLOR_BRIGHT_CYAN: SLsmg_Color_Type = 14;
pub const SLSMG_COLOR_BRIGHT_WHITE: SLsmg_Color_Type = 15;

pub const SL_KEY_ERR: c_int = 65535;
pub const SL_KEY_UP: c_int = 257;
pub const SL_KEY_DOWN: c_int = 258;
pub const SL_KEY_LEFT: c_int = 259;
pub const SL_KEY_RIGHT: c_int = 260;
pub const SL_KEY_PPAGE: c_int = 261;
pub const SL_KEY_NPAGE: c_int = 262;
pub const SL_KEY_HOME: c_int = 263;
pub const SL_KEY_END: c_int = 264;
pub const SL_KEY_A1: c_int = 265;
pub const SL_KEY_A3: c_int = 266;
pub const SL_KEY_B2: c_int = 267;
pub const SL_KEY_C1: c_int = 268;
pub const SL_KEY_C3: c_int = 269;
pub const SL_KEY_REDO: c_int = 270;
pub const SL_KEY_UNDO: c_int = 271;
pub const SL_KEY_BACKSPACE: c_int = 272;
pub const SL_KEY_ENTER: c_int = 273;
pub const SL_KEY_IC: c_int = 274;
pub const SL_KEY_DELETE: c_int = 275;
pub const SL_KEY_F0: c_int = 512;
pub const fn SL_KEY_F(n: c_int) -> c_int { SL_KEY_F0 + n }

pub const SL_FE_DIVBYZERO: c_uint = 1;
pub const SL_FE_INVALID: c_uint = 2;
pub const SL_FE_OVERFLOW: c_uint = 4;
pub const SL_FE_UNDERFLOW: c_uint = 8;
pub const SL_FE_INEXACT: c_uint = 16;
pub const SL_FE_ALLEXCEPT: c_uint = 31;

pub const SLANG_UNDEFINED_TYPE: SLtype = 0;
pub const SLANG_VOID_TYPE: SLtype = 1;
pub const SLANG_NULL_TYPE: SLtype = 2;
pub const SLANG_ANY_TYPE: SLtype = 3;
pub const SLANG_DATATYPE_TYPE: SLtype = 4;
pub const SLANG_REF_TYPE: SLtype = 5;
pub const SLANG_STRING_TYPE: SLtype = 6;
pub const SLANG_BSTRING_TYPE: SLtype = 7;
pub const SLANG_FILE_PTR_TYPE: SLtype = 8;
pub const SLANG_FILE_FD_TYPE: SLtype = 9;
pub const SLANG_MD5_TYPE: SLtype = 10;
pub const SLANG_INTP_TYPE: SLtype = 15;
pub const SLANG_CHAR_TYPE: SLtype = 16;
pub const SLANG_UCHAR_TYPE: SLtype = 17;
pub const SLANG_SHORT_TYPE: SLtype = 18;
pub const SLANG_USHORT_TYPE: SLtype = 19;
pub const SLANG_INT_TYPE: SLtype = 20;
pub const SLANG_UINT_TYPE: SLtype = 21;
pub const SLANG_LONG_TYPE: SLtype = 22;
pub const SLANG_ULONG_TYPE: SLtype = 23;
pub const SLANG_LLONG_TYPE: SLtype = 24;
pub const SLANG_ULLONG_TYPE: SLtype = 25;
pub const SLANG_FLOAT_TYPE: SLtype = 26;
pub const SLANG_DOUBLE_TYPE: SLtype = 27;
pub const SLANG_LDOUBLE_TYPE: SLtype = 28;
pub const SLANG_COMPLEX_TYPE: SLtype = 32;
pub const SLANG_ISTRUCT_TYPE: SLtype = 42;
pub const SLANG_STRUCT_TYPE: SLtype = 43;
pub const SLANG_ASSOC_TYPE: SLtype = 44;
pub const SLANG_ARRAY_TYPE: SLtype = 45;
pub const SLANG_LIST_TYPE: SLtype = 46;
pub const SLANG_MIN_UNUSED_TYPE: SLtype = 48;

pub const VOID_TYPE: SLtype = SLANG_VOID_TYPE;
pub const INT_TYPE: SLtype = SLANG_INT_TYPE;
pub const INTP_TYPE: SLtype = SLANG_INTP_TYPE;
pub const FLOAT_TYPE: SLtype = SLANG_FLOAT_TYPE;
pub const ARRAY_TYPE: SLtype = SLANG_ARRAY_TYPE;
pub const CHAR_TYPE: SLtype = SLANG_CHAR_TYPE;
pub const STRING_TYPE: SLtype = SLANG_STRING_TYPE;

pub const SLANG_BINARY_OP_MIN: c_uint = 1;
pub const SLANG_PLUS: c_uint = 1;
pub const SLANG_MINUS: c_uint = 2;
pub const SLANG_TIMES: c_uint = 3;
pub const SLANG_DIVIDE: c_uint = 4;
pub const SLANG_EQ: c_uint = 5;
pub const SLANG_NE: c_uint = 6;
pub const SLANG_GT: c_uint = 7;
pub const SLANG_GE: c_uint = 8;
pub const SLANG_LT: c_uint = 9;
pub const SLANG_LE: c_uint = 10;
pub const SLANG_POW: c_uint = 11;
pub const SLANG_OR: c_uint = 12;
pub const SLANG_AND: c_uint = 13;
pub const SLANG_BAND: c_uint = 14;
pub const SLANG_BOR: c_uint = 15;
pub const SLANG_BXOR: c_uint = 16;
pub const SLANG_SHL: c_uint = 17;
pub const SLANG_SHR: c_uint = 18;
pub const SLANG_MOD: c_uint = 19;
pub const SLANG_BINARY_OP_MAX: c_uint = 19;
pub const SLANG_UNARY_OP_MIN: c_uint = 32;
pub const SLANG_PLUSPLUS: c_uint = 32;
pub const SLANG_MINUSMINUS: c_uint = 33;
pub const SLANG_CHS: c_uint = 34;
pub const SLANG_NOT: c_uint = 35;
pub const SLANG_BNOT: c_uint = 36;
pub const SLANG_ABS: c_uint = 37;
pub const SLANG_SIGN: c_uint = 38;
pub const SLANG_SQR: c_uint = 39;
pub const SLANG_MUL2: c_uint = 40;
pub const SLANG_ISPOS: c_uint = 41;
pub const SLANG_ISNEG: c_uint = 42;
pub const SLANG_ISNONNEG: c_uint = 43;
pub const SLANG_UNARY_OP_MAX: c_uint = 43;

pub const SLREGEXP_CASELESS: c_uint = 1;
pub const SLREGEXP_UTF8: c_uint = 16;

pub const SLREGEXP_HINT_BOL: c_uint = 1;
pub const SLREGEXP_HINT_OSEARCH: c_uint = 2;

pub const SLSEARCH_CASELESS: c_int = 1;
pub const SLSEARCH_UTF8: c_int = 2;

extern "C" {
    pub fn SLdebug_malloc(arg1: c_ulong) -> *mut c_char;
}
extern "C" {
    pub fn SLdebug_calloc(
        arg1: c_ulong,
        arg2: c_ulong,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLdebug_realloc(
        arg1: *mut c_char,
        arg2: c_ulong,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLdebug_free(arg1: *mut c_char);
}
extern "C" {
    pub fn SLmalloc_dump_statistics();
}
extern "C" {
    pub fn SLstrcpy(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLstrcmp(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLstrncpy(
        arg1: *mut c_char,
        arg2: *mut c_char,
        arg3: c_int,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLmemset(
        arg1: *mut c_char,
        arg2: c_char,
        arg3: c_int,
    );
}
extern "C" {
    pub fn SLmemchr(
        arg1: *mut c_char,
        arg2: c_char,
        arg3: c_int,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLmemcpy(
        arg1: *mut c_char,
        arg2: *mut c_char,
        arg3: c_int,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLmemcmp(
        arg1: *mut c_char,
        arg2: *mut c_char,
        arg3: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_strlen_type(arg1: *mut SLstrlen_Type) -> c_int;
}
extern "C" {
    pub fn SLang_push_strlen_type(arg1: SLstrlen_Type) -> c_int;
}
extern "C" {
    pub fn SLang_create_nslstring(
        arg1: *mut c_char,
        arg2: SLstrlen_Type,
    ) -> *mut SLstr_Type;
}
extern "C" {
    pub fn SLang_create_slstring(arg1: *mut c_char) -> *mut SLstr_Type;
}
extern "C" {
    pub fn SLang_free_slstring(arg1: *const SLstr_Type);
}
extern "C" {
    pub fn SLang_pop_slstring(arg1: *mut *mut SLstr_Type) -> c_int;
}
extern "C" {
    pub fn SLang_concat_slstrings(a: *mut SLstr_Type, b: *mut SLstr_Type) -> *mut SLstr_Type;
}
extern "C" {
    pub fn SLcompute_string_hash(arg1: *const SLstr_Type) -> SLstr_Hash_Type;
}
extern "C" {
    pub fn SLutf8_enable(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLutf8_is_utf8_mode() -> c_int;
}
extern "C" {
    pub fn SLtt_utf8_enable(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLtt_is_utf8_mode() -> c_int;
}
extern "C" {
    pub fn SLsmg_utf8_enable(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLsmg_is_utf8_mode() -> c_int;
}
extern "C" {
    pub fn SLinterp_utf8_enable(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLinterp_is_utf8_mode() -> c_int;
}
extern "C" {
    pub fn SLwchar_toupper(arg1: SLwchar_Type) -> SLwchar_Type;
}
extern "C" {
    pub fn SLwchar_tolower(arg1: SLwchar_Type) -> SLwchar_Type;
}
extern "C" {
    pub fn SLwchar_wcwidth(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isalnum(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isalpha(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isblank(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_iscntrl(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isdigit(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isgraph(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_islower(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isprint(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_ispunct(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isspace(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isupper(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_isxdigit(arg1: SLwchar_Type) -> c_int;
}
extern "C" {
    pub fn SLwchar_set_wcwidth_flags(flags: c_int) -> c_int;
}
extern "C" {
    pub fn SLutf8_skip_char(u: *mut SLuchar_Type, umax: *mut SLuchar_Type) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_bskip_char(umin: *mut SLuchar_Type, u: *mut SLuchar_Type) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_skip_chars(
        u: *mut SLuchar_Type,
        umax: *mut SLuchar_Type,
        num: SLstrlen_Type,
        dnum: *mut SLstrlen_Type,
        ignore_combining: c_int,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_bskip_chars(
        umin: *mut SLuchar_Type,
        u: *mut SLuchar_Type,
        num: SLstrlen_Type,
        dnum: *mut SLstrlen_Type,
        ignore_combining: c_int,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_strup(u: *mut SLuchar_Type, umax: *mut SLuchar_Type) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_strlo(u: *mut SLuchar_Type, umax: *mut SLuchar_Type) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_subst_wchar(
        u: *mut SLuchar_Type,
        umax: *mut SLuchar_Type,
        wch: SLwchar_Type,
        pos: SLstrlen_Type,
        ignore_combining: c_int,
    ) -> *mut SLstr_Type;
}
extern "C" {
    pub fn SLutf8_strlen(
        s: *mut SLuchar_Type,
        ignore_combining: c_int,
    ) -> SLstrlen_Type;
}
extern "C" {
    pub fn SLutf8_decode(
        u: *mut SLuchar_Type,
        umax: *mut SLuchar_Type,
        w: *mut SLwchar_Type,
        nconsumedp: *mut SLstrlen_Type,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_encode(
        w: SLwchar_Type,
        u: *mut SLuchar_Type,
        ulen: SLstrlen_Type,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_compare(
        a: *mut SLuchar_Type,
        amax: *mut SLuchar_Type,
        b: *mut SLuchar_Type,
        bmax: *mut SLuchar_Type,
        nchars: SLstrlen_Type,
        case_sensitive: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLutf8_extract_utf8_char(
        u: *mut SLuchar_Type,
        umax: *mut SLuchar_Type,
        buf: *mut SLuchar_Type,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLutf8_encode_null_terminate(
        w: SLwchar_Type,
        buf: *mut SLuchar_Type,
    ) -> *mut SLuchar_Type;
}
extern {
    pub type SLwchar_Lut_Type;
}
extern "C" {
    pub fn SLwchar_create_lut(num_entries: c_uint) -> *mut SLwchar_Lut_Type;
}
extern "C" {
    pub fn SLwchar_add_range_to_lut(
        r: *mut SLwchar_Lut_Type,
        a: SLwchar_Type,
        b: SLwchar_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLwchar_skip_range(
        r: *mut SLwchar_Lut_Type,
        p: *mut SLuchar_Type,
        pmax: *mut SLuchar_Type,
        ignore_combining: c_int,
        invert: c_int,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLwchar_strtolut(
        u: *mut SLuchar_Type,
        allow_range: c_int,
        allow_charclass: c_int,
    ) -> *mut SLwchar_Lut_Type;
}
extern "C" {
    pub fn SLwchar_free_lut(r: *mut SLwchar_Lut_Type);
}
extern "C" {
    pub fn SLwchar_bskip_range(
        r: *mut SLwchar_Lut_Type,
        pmin: *mut SLuchar_Type,
        p: *mut SLuchar_Type,
        ignore_combining: c_int,
        invert: c_int,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLwchar_in_lut(r: *mut SLwchar_Lut_Type, wch: SLwchar_Type) -> c_int;
}
extern {
    pub type SLwchar_Map_Type;
}
extern "C" {
    pub fn SLwchar_free_char_map(map: *mut SLwchar_Map_Type);
}
extern "C" {
    pub fn SLwchar_allocate_char_map(
        from: *mut SLuchar_Type,
        to: *mut SLuchar_Type,
    ) -> *mut SLwchar_Map_Type;
}
extern "C" {
    pub fn SLwchar_apply_char_map(
        map: *mut SLwchar_Map_Type,
        input: *mut SLwchar_Type,
        output: *mut SLwchar_Type,
        num: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLuchar_apply_char_map(
        map: *mut SLwchar_Map_Type,
        str_: *mut SLuchar_Type,
    ) -> *mut SLuchar_Type;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_Name_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_uchar,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_Intrin_Fun_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub i_fun: FVOID_STAR,
    pub arg_types: [SLtype; SLANG_MAX_INTRIN_ARGS],
    pub num_args: c_uchar,
    pub return_type: SLtype,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_Intrin_Var_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub addr: VOID_STAR,
    pub type_: SLtype,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_App_Unary_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub unary_op: c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_Math_Unary_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub unary_op: c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_HConstant_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub data_type: SLtype,
    pub value: c_short,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_IConstant_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub data_type: SLtype,
    pub value: c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_LConstant_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub data_type: SLtype,
    pub value: c_long,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_DConstant_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub d: f64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_FConstant_Type {
    pub name: *mut c_char,
    pub next: *mut SLang_Name_Type,
    pub name_type: c_char,
    pub f: f32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_IStruct_Field_Type {
    pub field_name: *mut c_char,
    pub offset: c_uint,
    pub type_: SLtype,
    pub read_only: c_uchar,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_CStruct_Field_Type {
    pub field_name: *mut c_char,
    pub offset: c_uint,
    pub type_: SLtype,
    pub read_only: c_uchar,
}
extern "C" {
    pub fn SLadd_intrin_fun_table(
        arg1: *mut SLang_Intrin_Fun_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_intrin_var_table(
        arg1: *mut SLang_Intrin_Var_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_app_unary_table(
        arg1: *mut SLang_App_Unary_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_math_unary_table(
        arg1: *mut SLang_Math_Unary_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_iconstant_table(
        arg1: *mut SLang_IConstant_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_lconstant_table(
        arg1: *mut SLang_LConstant_Type,
        pp: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_dconstant_table(
        arg1: *mut SLang_DConstant_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_fconstant_table(
        arg1: *mut SLang_FConstant_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_istruct_table(
        arg1: *mut SLang_IStruct_Field_Type,
        arg2: VOID_STAR,
        arg3: *mut c_char,
    ) -> c_int;
}

extern {
    pub type SLang_NameSpace_Type;
}

extern "C" {
    pub fn SLns_add_intrin_fun_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_Intrin_Fun_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_intrin_var_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_Intrin_Var_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_app_unary_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_App_Unary_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_math_unary_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_Math_Unary_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_hconstant_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_HConstant_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_iconstant_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_IConstant_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_lconstant_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_LConstant_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_dconstant_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_DConstant_Type,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_istruct_table(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut SLang_IStruct_Field_Type,
        arg3: VOID_STAR,
        arg4: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_hconstant(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut c_char,
        arg3: SLtype,
        arg4: c_short,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_iconstant(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut c_char,
        arg3: SLtype,
        arg4: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_lconstant(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut c_char,
        arg3: SLtype,
        arg4: c_long,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_fconstant(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut c_char,
        arg3: f32,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_dconstant(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut c_char,
        arg3: f64,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_create_namespace(arg1: *mut c_char) -> *mut SLang_NameSpace_Type;
}
extern "C" {
    pub fn SLns_delete_namespace(arg1: *mut SLang_NameSpace_Type);
}
extern "C" {
    pub fn SLns_load_file(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_load_string(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub static mut SLns_Load_File_Hook: Option<
        unsafe extern "C" fn(
            arg1: *mut c_char,
            arg2: *mut c_char,
        ) -> c_int,
    >;
}
extern "C" {
    pub fn SLang_load_file_verbose(arg1: c_int) -> c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_Load_Type {
    pub type_: c_int,
    pub client_data: VOID_STAR,
    pub auto_declare_globals: c_int,
    pub read: Option<
        unsafe extern "C" fn(arg1: *mut SLang_Load_Type) -> *mut c_char,
    >,
    pub line_num: c_uint,
    pub parse_level: c_int,
    pub name: *mut c_char,
    pub namespace_name: *mut c_char,
    pub reserved: [c_ulong; 3usize],
}
extern "C" {
    pub fn SLallocate_load_type(arg1: *mut c_char) -> *mut SLang_Load_Type;
}
extern "C" {
    pub fn SLdeallocate_load_type(arg1: *mut SLang_Load_Type);
}
extern "C" {
    pub fn SLns_allocate_load_type(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> *mut SLang_Load_Type;
}
extern "C" {
    pub fn SLang_load_object(arg1: *mut SLang_Load_Type) -> c_int;
}
extern "C" {
    pub static mut SLang_Load_File_Hook: Option<
        unsafe extern "C" fn(arg1: *mut c_char) -> c_int,
    >;
}
extern "C" {
    pub static mut SLang_Auto_Declare_Var_Hook: Option<
        unsafe extern "C" fn(arg1: *mut c_char) -> c_int,
    >;
}
extern "C" {
    pub fn SLang_generate_debug_info(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLang_pop_array_index(arg1: *mut SLindex_Type) -> c_int;
}
extern "C" {
    pub fn SLang_push_array_index(arg1: SLindex_Type) -> c_int;
}
extern {
    pub type SLang_Struct_Type;
}
extern "C" {
    pub fn SLang_free_struct(arg1: *mut SLang_Struct_Type);
}
extern "C" {
    pub fn SLang_push_struct(arg1: *mut SLang_Struct_Type) -> c_int;
}
extern "C" {
    pub fn SLang_pop_struct(arg1: *mut *mut SLang_Struct_Type) -> c_int;
}
extern "C" {
    pub fn SLang_create_struct(
        field_names: *mut *mut c_char,
        nfields: c_uint,
    ) -> *mut SLang_Struct_Type;
}
extern "C" {
    pub fn SLang_push_struct_field(
        s: *mut SLang_Struct_Type,
        name: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_struct_field(
        s: *mut SLang_Struct_Type,
        name: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_struct_fields(
        s: *mut SLang_Struct_Type,
        n: c_int,
    ) -> c_int;
}
extern {
    pub type SLang_Assoc_Array_Type;
}
extern "C" {
    pub fn SLang_create_assoc(
        type_: SLtype,
        has_default: c_int,
    ) -> *mut SLang_Assoc_Array_Type;
}
extern "C" {
    pub fn SLang_free_assoc(arg1: *mut SLang_Assoc_Array_Type);
}
extern "C" {
    pub fn SLang_push_assoc(
        arg1: *mut SLang_Assoc_Array_Type,
        free_flag: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_assoc(arg1: *mut *mut SLang_Assoc_Array_Type) -> c_int;
}
extern "C" {
    pub fn SLang_assoc_get(
        arg1: *mut SLang_Assoc_Array_Type,
        arg2: *mut SLstr_Type,
        arg3: *mut SLtype,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_assoc_put(
        arg1: *mut SLang_Assoc_Array_Type,
        arg2: *mut SLstr_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_assoc_key_exists(
        arg1: *mut SLang_Assoc_Array_Type,
        arg2: *mut SLstr_Type,
    ) -> c_int;
}
extern {
    pub type SLang_List_Type;
}
extern "C" {
    pub fn SLang_create_list(arg1: c_int) -> *mut SLang_List_Type;
}
extern "C" {
    pub fn SLang_list_append(
        arg1: *mut SLang_List_Type,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_list_insert(
        arg1: *mut SLang_List_Type,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_push_list(
        arg1: *mut SLang_List_Type,
        free_list: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_list(arg1: *mut *mut SLang_List_Type) -> c_int;
}
extern "C" {
    pub fn SLang_free_list(arg1: *mut SLang_List_Type);
}
extern {
    pub type SLang_Foreach_Context_Type;
    pub type SLang_Class_Type;
}
extern "C" {
    pub fn SLclass_push_double_obj(arg1: SLtype, arg2: f64) -> c_int;
}
extern "C" {
    pub fn SLclass_push_float_obj(arg1: SLtype, arg2: f32) -> c_int;
}
extern "C" {
    pub fn SLclass_push_long_obj(
        arg1: SLtype,
        arg2: c_long,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_push_int_obj(arg1: SLtype, arg2: c_int)
        -> c_int;
}
extern "C" {
    pub fn SLclass_push_short_obj(
        arg1: SLtype,
        arg2: c_short,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_push_char_obj(
        arg1: SLtype,
        arg2: c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_push_ptr_obj(arg1: SLtype, arg2: VOID_STAR) -> c_int;
}
extern "C" {
    pub fn SLclass_pop_double_obj(arg1: SLtype, arg2: *mut f64) -> c_int;
}
extern "C" {
    pub fn SLclass_pop_float_obj(arg1: SLtype, arg2: *mut f32) -> c_int;
}
extern "C" {
    pub fn SLclass_pop_long_obj(
        arg1: SLtype,
        arg2: *mut c_long,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_pop_int_obj(
        arg1: SLtype,
        arg2: *mut c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_pop_short_obj(
        arg1: SLtype,
        arg2: *mut c_short,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_pop_char_obj(
        arg1: SLtype,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_pop_ptr_obj(arg1: SLtype, arg2: *mut VOID_STAR) -> c_int;
}
extern "C" {
    pub fn SLclass_allocate_class(arg1: *mut c_char) -> *mut SLang_Class_Type;
}
extern "C" {
    pub fn SLclass_get_class_id(cl: *mut SLang_Class_Type) -> c_int;
}
extern "C" {
    pub fn SLclass_create_synonym(
        arg1: *mut c_char,
        arg2: SLtype,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_is_class_defined(arg1: SLtype) -> c_int;
}
extern "C" {
    pub fn SLclass_dup_object(
        type_: SLtype,
        from: VOID_STAR,
        to: VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_register_class(
        arg1: *mut SLang_Class_Type,
        arg2: SLtype,
        arg3: c_uint,
        arg4: SLclass_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_string_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(arg1: SLtype, arg2: VOID_STAR) -> *mut c_char,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_destroy_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<unsafe extern "C" fn(arg1: SLtype, arg2: VOID_STAR)>,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_push_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(arg1: SLtype, arg2: VOID_STAR) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_apush_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(arg1: SLtype, arg2: VOID_STAR) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_pop_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(arg1: SLtype, arg2: VOID_STAR) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_aget_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: c_uint,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_aput_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: c_uint,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_anew_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: c_uint,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_sget_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: *mut c_char,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_sput_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: *mut c_char,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_acopy_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: VOID_STAR,
                arg3: VOID_STAR,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_deref_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(arg1: SLtype, arg2: VOID_STAR) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_eqs_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: VOID_STAR,
                arg3: SLtype,
                arg4: VOID_STAR,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_length_function(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: VOID_STAR,
                arg3: *mut SLuindex_Type,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_is_container(
        arg1: *mut SLang_Class_Type,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_foreach_functions(
        arg1: *mut SLang_Class_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: c_uint,
            ) -> *mut SLang_Foreach_Context_Type,
        >,
        arg3: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: *mut SLang_Foreach_Context_Type,
            ) -> c_int,
        >,
        arg4: Option<
            unsafe extern "C" fn(arg1: SLtype, arg2: *mut SLang_Foreach_Context_Type),
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_set_aelem_init_function(
        cl: *mut SLang_Class_Type,
        f: Option<
            unsafe extern "C" fn(arg1: SLtype, arg2: VOID_STAR) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_typecast(
        arg1: SLtype,
        arg2: c_int,
        arg3: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_add_unary_op(
        arg1: SLtype,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: VOID_STAR,
                arg4: SLuindex_Type,
                arg5: VOID_STAR,
            ) -> c_int,
        >,
        arg3: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: *mut SLtype,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_add_app_unary_op(
        arg1: SLtype,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: VOID_STAR,
                arg4: SLuindex_Type,
                arg5: VOID_STAR,
            ) -> c_int,
        >,
        arg3: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: *mut SLtype,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_add_binary_op(
        arg1: SLtype,
        arg2: SLtype,
        arg3: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: VOID_STAR,
                arg4: SLuindex_Type,
                arg5: SLtype,
                arg6: VOID_STAR,
                arg7: SLuindex_Type,
                arg8: VOID_STAR,
            ) -> c_int,
        >,
        arg4: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: SLtype,
                arg4: *mut SLtype,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_add_math_op(
        arg1: SLtype,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: VOID_STAR,
                arg4: SLuindex_Type,
                arg5: VOID_STAR,
            ) -> c_int,
        >,
        arg3: Option<
            unsafe extern "C" fn(
                arg1: c_int,
                arg2: SLtype,
                arg3: *mut SLtype,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_add_typecast(
        arg1: SLtype,
        arg2: SLtype,
        arg3: Option<
            unsafe extern "C" fn(
                arg1: SLtype,
                arg2: VOID_STAR,
                arg3: SLuindex_Type,
                arg4: SLtype,
                arg5: VOID_STAR,
            ) -> c_int,
        >,
        arg4: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_get_datatype_name(arg1: SLtype) -> *mut c_char;
}
extern "C" {
    pub fn SLcomplex_abs(arg1: *mut f64) -> f64;
}
extern "C" {
    pub fn SLcomplex_times(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_divide(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_sin(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_cos(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_tan(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_asin(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_acos(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_atan(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_exp(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_log(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_log10(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_sqrt(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_sinh(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_cosh(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_tanh(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_pow(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLmath_hypot(x: f64, y: f64) -> f64;
}
extern "C" {
    pub fn SLcomplex_asinh(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_acosh(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLcomplex_atanh(arg1: *mut f64, arg2: *mut f64) -> *mut f64;
}
extern "C" {
    pub fn SLang_free_mmt(arg1: *mut SLang_MMT_Type);
}
extern "C" {
    pub fn SLang_object_from_mmt(arg1: *mut SLang_MMT_Type) -> VOID_STAR;
}
extern "C" {
    pub fn SLang_create_mmt(arg1: SLtype, arg2: VOID_STAR) -> *mut SLang_MMT_Type;
}
extern "C" {
    pub fn SLang_push_mmt(arg1: *mut SLang_MMT_Type) -> c_int;
}
extern "C" {
    pub fn SLang_pop_mmt(arg1: SLtype) -> *mut SLang_MMT_Type;
}
extern "C" {
    pub fn SLang_inc_mmt(arg1: *mut SLang_MMT_Type);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLang_Array_Type {
    pub data_type: SLtype,
    pub sizeof_type: c_uint,
    pub data: VOID_STAR,
    pub num_elements: SLuindex_Type,
    pub num_dims: c_uint,
    pub dims: [SLindex_Type; SLARRAY_MAX_DIMS],
    pub index_fun: Option<
        unsafe extern "C" fn(arg1: *mut SLang_Array_Type, arg2: *mut SLindex_Type) -> VOID_STAR,
    >,
    pub flags: c_uint,
    pub cl: *mut SLang_Class_Type,
    pub num_refs: c_uint,
    pub free_fun: Option<unsafe extern "C" fn(arg1: *mut SLang_Array_Type)>,
    pub client_data: VOID_STAR,
}
extern "C" {
    pub fn _pSLarray_convert_to_array(
        cd: VOID_STAR,
        get_type: Option<
            unsafe extern "C" fn(
                arg1: VOID_STAR,
                arg2: SLuindex_Type,
                arg3: *mut SLtype,
            ) -> c_int,
        >,
        push: Option<
            unsafe extern "C" fn(arg1: VOID_STAR, arg2: SLuindex_Type) -> c_int,
        >,
        num_objects: SLuindex_Type,
        type_: SLtype,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_array_of_type(
        atp: *mut *mut SLang_Array_Type,
        type_: SLtype,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_array(
        atp: *mut *mut SLang_Array_Type,
        convert_scalar: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_push_array(
        at: *mut SLang_Array_Type,
        do_free: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_free_array(at: *mut SLang_Array_Type);
}
extern "C" {
    pub fn SLang_create_array(
        arg1: SLtype,
        arg2: c_int,
        arg3: VOID_STAR,
        arg4: *mut SLindex_Type,
        arg5: c_uint,
    ) -> *mut SLang_Array_Type;
}
extern "C" {
    pub fn SLang_create_array1(
        arg1: SLtype,
        arg2: c_int,
        arg3: VOID_STAR,
        arg4: *mut SLindex_Type,
        arg5: c_uint,
        arg6: c_int,
    ) -> *mut SLang_Array_Type;
}
extern "C" {
    pub fn SLang_duplicate_array(arg1: *mut SLang_Array_Type) -> *mut SLang_Array_Type;
}
extern "C" {
    pub fn SLang_get_array_element(
        arg1: *mut SLang_Array_Type,
        arg2: *mut SLindex_Type,
        arg3: VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_set_array_element(
        arg1: *mut SLang_Array_Type,
        arg2: *mut SLindex_Type,
        arg3: VOID_STAR,
    ) -> c_int;
}
pub type SLarray_Contract_Fun_Type = Option<
    unsafe extern "C" fn(
        xp: VOID_STAR,
        increment: c_uint,
        num: c_uint,
        yp: VOID_STAR,
    ) -> c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLarray_Contract_Type {
    pub from_type: SLtype,
    pub typecast_to_type: SLtype,
    pub result_type: SLtype,
    pub f: SLarray_Contract_Fun_Type,
}
extern "C" {
    pub fn SLarray_contract_array(arg1: *const SLarray_Contract_Type) -> c_int;
}
pub type SLarray_Map_Fun_Type = Option<
    unsafe extern "C" fn(
        xtype: SLtype,
        xp: VOID_STAR,
        increment: c_uint,
        num: c_uint,
        ytype: SLtype,
        yp: VOID_STAR,
        clientdata: VOID_STAR,
    ) -> c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLarray_Map_Type {
    pub from_type: SLtype,
    pub typecast_to_type: SLtype,
    pub result_type: SLtype,
    pub f: SLarray_Map_Fun_Type,
}
extern "C" {
    pub fn SLarray_map_array_1(
        arg1: *const SLarray_Map_Type,
        use_this_dim: *mut c_int,
        clientdata: VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLarray_map_array(arg1: *const SLarray_Map_Type) -> c_int;
}
extern "C" {
    pub fn SLerr_throw(
        err: c_int,
        msg: *mut c_char,
        obj_type: SLtype,
        objptr: VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_verror(arg1: c_int, arg2: *mut c_char, ...);
}
/*
extern "C" {
    pub fn SLang_verror_va(
        errcode: c_int,
        fmt: *mut c_char,
        va: *mut __va_list_tag,
    );
}
*/
extern "C" {
    pub fn SLang_get_error() -> c_int;
}
extern "C" {
    pub fn SLang_set_error(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLerr_strerror(errcode: c_int) -> *mut c_char;
}
extern "C" {
    pub fn SLerr_new_exception(
        baseclass: c_int,
        name: *mut c_char,
        descript: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLerr_exception_eqs(
        arg1: c_int,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub static mut SL_Any_Error: c_int;
}
extern "C" {
    pub static mut SL_OS_Error: c_int;
}
extern "C" {
    pub static mut SL_Malloc_Error: c_int;
}
extern "C" {
    pub static mut SL_IO_Error: c_int;
}
extern "C" {
    pub static mut SL_Write_Error: c_int;
}
extern "C" {
    pub static mut SL_Read_Error: c_int;
}
extern "C" {
    pub static mut SL_Open_Error: c_int;
}
extern "C" {
    pub static mut SL_RunTime_Error: c_int;
}
extern "C" {
    pub static mut SL_InvalidParm_Error: c_int;
}
extern "C" {
    pub static mut SL_TypeMismatch_Error: c_int;
}
extern "C" {
    pub static mut SL_UserBreak_Error: c_int;
}
extern "C" {
    pub static mut SL_Stack_Error: c_int;
}
extern "C" {
    pub static mut SL_StackOverflow_Error: c_int;
}
extern "C" {
    pub static mut SL_StackUnderflow_Error: c_int;
}
extern "C" {
    pub static mut SL_ReadOnly_Error: c_int;
}
extern "C" {
    pub static mut SL_VariableUninitialized_Error: c_int;
}
extern "C" {
    pub static mut SL_NumArgs_Error: c_int;
}
extern "C" {
    pub static mut SL_Index_Error: c_int;
}
extern "C" {
    pub static mut SL_Parse_Error: c_int;
}
extern "C" {
    pub static mut SL_Syntax_Error: c_int;
}
extern "C" {
    pub static mut SL_DuplicateDefinition_Error: c_int;
}
extern "C" {
    pub static mut SL_UndefinedName_Error: c_int;
}
extern "C" {
    pub static mut SL_Usage_Error: c_int;
}
extern "C" {
    pub static mut SL_Application_Error: c_int;
}
extern "C" {
    pub static mut SL_Internal_Error: c_int;
}
extern "C" {
    pub static mut SL_NotImplemented_Error: c_int;
}
extern "C" {
    pub static mut SL_LimitExceeded_Error: c_int;
}
extern "C" {
    pub static mut SL_Forbidden_Error: c_int;
}
extern "C" {
    pub static mut SL_Math_Error: c_int;
}
extern "C" {
    pub static mut SL_DivideByZero_Error: c_int;
}
extern "C" {
    pub static mut SL_ArithOverflow_Error: c_int;
}
extern "C" {
    pub static mut SL_ArithUnderflow_Error: c_int;
}
extern "C" {
    pub static mut SL_Domain_Error: c_int;
}
extern "C" {
    pub static mut SL_Data_Error: c_int;
}
extern "C" {
    pub static mut SL_Unicode_Error: c_int;
}
extern "C" {
    pub static mut SL_InvalidUTF8_Error: c_int;
}
extern "C" {
    pub static mut SL_Namespace_Error: c_int;
}
extern "C" {
    pub static mut SL_Unknown_Error: c_int;
}
extern "C" {
    pub static mut SL_Import_Error: c_int;
}
extern "C" {
    pub static mut SLang_Traceback: c_int;
}
extern "C" {
    pub static mut SLang_User_Prompt: *mut c_char;
}
extern "C" {
    pub static mut SLang_Version: c_int;
}
extern "C" {
    pub static mut SLang_Version_String: *mut c_char;
}
extern "C" {
    pub static mut SLang_Doc_Dir: *mut c_char;
}
/*
extern "C" {
    pub static mut SLang_VMessage_Hook: Option<
        unsafe extern "C" fn(arg1: *mut c_char, arg2: *mut __va_list_tag),
    >;
}
*/
extern "C" {
    pub fn SLang_vmessage(arg1: *mut c_char, ...);
}
extern "C" {
    pub static mut SLang_Error_Hook:
        Option<unsafe extern "C" fn(arg1: *mut c_char)>;
}
/*
extern "C" {
    pub static mut SLang_Exit_Error_Hook: Option<
        unsafe extern "C" fn(arg1: *mut c_char, arg2: *mut __va_list_tag),
    >;
}
*/
extern "C" {
    pub fn SLang_exit_error(arg1: *mut c_char, ...);
}
extern "C" {
    pub static mut SLang_Dump_Routine:
        Option<unsafe extern "C" fn(arg1: *mut c_char)>;
}
extern "C" {
    pub static mut SLang_Interrupt: Option<unsafe extern "C" fn()>;
}
extern "C" {
    pub static mut SLang_User_Clear_Error: Option<unsafe extern "C" fn()>;
}
extern "C" {
    pub static mut SLang_Enter_Function:
        Option<unsafe extern "C" fn(arg1: *mut c_char)>;
}
extern "C" {
    pub static mut SLang_Exit_Function:
        Option<unsafe extern "C" fn(arg1: *mut c_char)>;
}
extern "C" {
    pub static mut SLang_Num_Function_Args: c_int;
}
extern "C" {
    pub fn SLang_handle_interrupt() -> c_int;
}
extern "C" {
    pub fn SLang_add_interrupt_hook(
        arg1: Option<unsafe extern "C" fn(arg1: VOID_STAR) -> c_int>,
        arg2: VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_remove_interrupt_hook(
        arg1: Option<unsafe extern "C" fn(arg1: VOID_STAR) -> c_int>,
        arg2: VOID_STAR,
    );
}
extern "C" {
    pub fn SLang_init_all() -> c_int;
}
extern "C" {
    pub fn SLang_init_slang() -> c_int;
}
extern "C" {
    pub fn SLang_init_posix_process() -> c_int;
}
extern "C" {
    pub fn SLang_init_stdio() -> c_int;
}
extern "C" {
    pub fn SLang_init_posix_dir() -> c_int;
}
extern "C" {
    pub fn SLang_init_ospath() -> c_int;
}
extern "C" {
    pub fn SLang_init_slmath() -> c_int;
}
extern "C" {
    pub fn SLang_init_slfile() -> c_int;
}
extern "C" {
    pub fn SLang_init_slunix() -> c_int;
}
extern "C" {
    pub fn SLang_init_slassoc() -> c_int;
}
extern "C" {
    pub fn SLang_init_array() -> c_int;
}
extern "C" {
    pub fn SLang_init_array_extra() -> c_int;
}
extern "C" {
    pub fn SLang_init_signal() -> c_int;
}
extern "C" {
    pub fn SLang_init_import() -> c_int;
}
extern "C" {
    pub fn SLang_load_file(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLang_restart(arg1: c_int);
}
extern "C" {
    pub fn SLang_byte_compile_file(
        arg1: *mut c_char,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_autoload(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_load_string(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLstack_depth() -> c_int;
}
extern "C" {
    pub fn SLdo_pop() -> c_int;
}
extern "C" {
    pub fn SLdo_pop_n(arg1: c_uint) -> c_int;
}
extern "C" {
    pub fn SLang_push_char(arg1: c_char) -> c_int;
}
extern "C" {
    pub fn SLang_push_uchar(arg1: c_uchar) -> c_int;
}
extern "C" {
    pub fn SLang_pop_char(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLang_pop_uchar(arg1: *mut c_uchar) -> c_int;
}
extern "C" {
    pub fn SLang_push_int(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLang_push_uint(arg1: c_uint) -> c_int;
}
extern "C" {
    pub fn SLang_pop_int(arg1: *mut c_int) -> c_int;
}
extern "C" {
    pub fn SLang_pop_uint(arg1: *mut c_uint) -> c_int;
}
extern "C" {
    pub fn SLang_pop_short(arg1: *mut c_short) -> c_int;
}
extern "C" {
    pub fn SLang_pop_ushort(arg1: *mut c_ushort) -> c_int;
}
extern "C" {
    pub fn SLang_push_short(arg1: c_short) -> c_int;
}
extern "C" {
    pub fn SLang_push_ushort(arg1: c_ushort) -> c_int;
}
extern "C" {
    pub fn SLang_pop_long(arg1: *mut c_long) -> c_int;
}
extern "C" {
    pub fn SLang_pop_ulong(arg1: *mut c_ulong) -> c_int;
}
extern "C" {
    pub fn SLang_push_long(arg1: c_long) -> c_int;
}
extern "C" {
    pub fn SLang_push_ulong(arg1: c_ulong) -> c_int;
}
extern "C" {
    pub fn SLang_pop_float(arg1: *mut f32) -> c_int;
}
extern "C" {
    pub fn SLang_push_float(arg1: f32) -> c_int;
}
extern "C" {
    pub fn SLang_pop_double(arg1: *mut f64) -> c_int;
}
extern "C" {
    pub fn SLang_push_double(arg1: f64) -> c_int;
}
extern "C" {
    pub fn SLang_push_complex(arg1: f64, arg2: f64) -> c_int;
}
extern "C" {
    pub fn SLang_pop_complex(arg1: *mut f64, arg2: *mut f64) -> c_int;
}
extern "C" {
    pub fn SLang_push_datatype(arg1: SLtype) -> c_int;
}
extern "C" {
    pub fn SLang_pop_datatype(arg1: *mut SLtype) -> c_int;
}
extern "C" {
    pub fn SLang_push_malloced_string(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLang_push_string(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLpop_string(arg1: *mut *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLang_push_null() -> c_int;
}
extern "C" {
    pub fn SLang_pop_null() -> c_int;
}
extern "C" {
    pub fn SLang_push_value(type_: SLtype, arg1: VOID_STAR) -> c_int;
}
extern "C" {
    pub fn SLang_pop_value(type_: SLtype, arg1: VOID_STAR) -> c_int;
}
extern "C" {
    pub fn SLang_free_value(type_: SLtype, arg1: VOID_STAR);
}
extern {
    pub type SLang_Any_Type;
}
extern "C" {
    pub fn SLang_pop_anytype(arg1: *mut *mut SLang_Any_Type) -> c_int;
}
extern "C" {
    pub fn SLang_push_anytype(arg1: *mut SLang_Any_Type) -> c_int;
}
extern "C" {
    pub fn SLang_free_anytype(arg1: *mut SLang_Any_Type);
}
extern "C" {
    pub fn SLang_pop_ref(arg1: *mut *mut SLang_Ref_Type) -> c_int;
}
extern "C" {
    pub fn SLang_free_ref(arg1: *mut SLang_Ref_Type);
}
extern "C" {
    pub fn SLang_assign_to_ref(
        arg1: *mut SLang_Ref_Type,
        arg2: SLtype,
        arg3: VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_assign_nametype_to_ref(
        arg1: *mut SLang_Ref_Type,
        arg2: *mut SLang_Name_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_function() -> *mut SLang_Name_Type;
}
extern "C" {
    pub fn SLang_push_function(arg1: *mut SLang_Name_Type) -> c_int;
}
extern "C" {
    pub fn SLang_get_fun_from_ref(arg1: *mut SLang_Ref_Type) -> *mut SLang_Name_Type;
}
extern "C" {
    pub fn SLang_free_function(f: *mut SLang_Name_Type);
}
extern "C" {
    pub fn SLang_copy_function(arg1: *mut SLang_Name_Type) -> *mut SLang_Name_Type;
}
extern "C" {
    pub fn SLang_push_cstruct(
        arg1: VOID_STAR,
        arg2: *mut SLang_CStruct_Field_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_pop_cstruct(
        arg1: VOID_STAR,
        arg2: *mut SLang_CStruct_Field_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_free_cstruct(arg1: VOID_STAR, arg2: *mut SLang_CStruct_Field_Type);
}
extern "C" {
    pub fn SLang_assign_cstruct_to_ref(
        arg1: *mut SLang_Ref_Type,
        arg2: VOID_STAR,
        arg3: *mut SLang_CStruct_Field_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_is_defined(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLang_run_hooks(
        arg1: *mut c_char,
        arg2: c_uint,
        ...
    ) -> c_int;
}
extern "C" {
    pub fn SLexecute_function(arg1: *mut SLang_Name_Type) -> c_int;
}
extern "C" {
    pub fn SLang_execute_function(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLang_end_arg_list() -> c_int;
}
extern "C" {
    pub fn SLang_start_arg_list() -> c_int;
}
extern "C" {
    pub fn SLang_add_intrinsic_array(
        arg1: *mut c_char,
        arg2: SLtype,
        arg3: c_int,
        arg4: VOID_STAR,
        arg5: c_uint,
        ...
    ) -> c_int;
}
extern "C" {
    pub fn SLextract_list_element(
        arg1: *mut c_char,
        arg2: c_uint,
        arg3: c_char,
        arg4: *mut c_char,
        arg5: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLexpand_escaped_string(
        dest: *mut c_char,
        src: *mut c_char,
        src_max: *mut c_char,
        utf8_encode: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_get_function(arg1: *mut c_char) -> *mut SLang_Name_Type;
}
extern "C" {
    pub fn SLang_release_function(arg1: *mut SLang_Name_Type);
}
extern "C" {
    pub fn SLreverse_stack(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLroll_stack(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLstack_exch(
        arg1: c_uint,
        arg2: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLdup_n(n: c_int) -> c_int;
}
extern "C" {
    pub fn SLang_peek_at_stack1() -> c_int;
}
extern "C" {
    pub fn SLang_peek_at_stack() -> c_int;
}
extern "C" {
    pub fn SLang_peek_at_stack_n(n: c_uint) -> c_int;
}
extern "C" {
    pub fn SLang_peek_at_stack1_n(n: c_uint) -> c_int;
}
extern "C" {
    pub fn SLmake_lut(
        arg1: *mut c_uchar,
        arg2: *mut c_uchar,
        arg3: c_uchar,
    );
}
extern "C" {
    pub fn SLang_guess_type(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLstruct_create_struct(
        arg1: c_uint,
        arg2: *mut *mut c_char,
        arg3: *mut SLtype,
        arg4: *mut VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_add_cleanup_function(
        arg1: Option<unsafe extern "C" fn()>,
    ) -> c_int;
}
extern "C" {
    pub fn SLmake_string(arg1: *mut c_char) -> *mut c_char;
}
extern "C" {
    pub fn SLmake_nstring(
        arg1: *mut c_char,
        arg2: SLstrlen_Type,
    ) -> *mut c_char;
}
extern {
    pub type SLang_BString_Type;
}
extern "C" {
    pub fn SLbstring_get_pointer(
        arg1: *mut SLang_BString_Type,
        arg2: *mut SLstrlen_Type,
    ) -> *mut c_uchar;
}
extern "C" {
    pub fn SLbstring_dup(arg1: *mut SLang_BString_Type) -> *mut SLang_BString_Type;
}
extern "C" {
    pub fn SLbstring_create(
        arg1: *mut c_uchar,
        arg2: SLstrlen_Type,
    ) -> *mut SLang_BString_Type;
}
extern "C" {
    pub fn SLbstring_create_malloced(
        s: *mut c_uchar,
        len: SLstrlen_Type,
        free_on_error: c_int,
    ) -> *mut SLang_BString_Type;
}
extern "C" {
    pub fn SLbstring_create_slstring(arg1: *mut c_char) -> *mut SLang_BString_Type;
}
extern "C" {
    pub fn SLbstring_free(arg1: *mut SLang_BString_Type);
}
extern "C" {
    pub fn SLang_pop_bstring(arg1: *mut *mut SLang_BString_Type) -> c_int;
}
extern "C" {
    pub fn SLang_push_bstring(arg1: *mut SLang_BString_Type) -> c_int;
}
extern "C" {
    pub fn SLmalloc(arg1: SLstrlen_Type) -> *mut c_char;
}
extern "C" {
    pub fn SLcalloc(arg1: SLstrlen_Type, arg2: SLstrlen_Type) -> *mut c_char;
}
extern "C" {
    pub fn SLfree(arg1: *mut c_char);
}
extern "C" {
    pub fn SLrealloc(
        arg1: *mut c_char,
        arg2: SLstrlen_Type,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLcurrent_time_string() -> *mut c_char;
}
extern "C" {
    pub fn SLatoi(arg1: *mut c_uchar) -> c_int;
}
extern "C" {
    pub fn SLatol(arg1: *mut c_uchar) -> c_long;
}
extern "C" {
    pub fn SLatoul(arg1: *mut c_uchar) -> c_ulong;
}
extern "C" {
    pub fn SLang_pop_fileptr(
        arg1: *mut *mut SLang_MMT_Type,
        arg2: *mut *mut FILE,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_get_name_from_fileptr(arg1: *mut SLang_MMT_Type) -> *mut c_char;
}
extern "C" {
    pub fn SLang_get_fileptr(
        arg1: *mut SLang_MMT_Type,
        arg2: *mut *mut FILE,
    ) -> c_int;
}
extern {
    pub type SLFile_FD_Type;
}
extern "C" {
    pub fn SLfile_create_fd(
        arg1: *mut c_char,
        arg2: c_int,
    ) -> *mut SLFile_FD_Type;
}
extern "C" {
    pub fn SLfile_free_fd(arg1: *mut SLFile_FD_Type);
}
extern "C" {
    pub fn SLfile_push_fd(arg1: *mut SLFile_FD_Type) -> c_int;
}
extern "C" {
    pub fn SLfile_pop_fd(arg1: *mut *mut SLFile_FD_Type) -> c_int;
}
extern "C" {
    pub fn SLfile_get_fd(
        arg1: *mut SLFile_FD_Type,
        arg2: *mut c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLfile_dup_fd(f0: *mut SLFile_FD_Type) -> *mut SLFile_FD_Type;
}
extern "C" {
    pub fn SLang_init_posix_io() -> c_int;
}
extern "C" {
    pub fn SLfile_set_getfd_method(
        f: *mut SLFile_FD_Type,
        func: Option<
            unsafe extern "C" fn(
                arg1: VOID_STAR,
                arg2: *mut c_int,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLfile_set_close_method(
        f: *mut SLFile_FD_Type,
        func: Option<unsafe extern "C" fn(arg1: VOID_STAR) -> c_int>,
    ) -> c_int;
}
extern "C" {
    pub fn SLfile_set_read_method(
        f: *mut SLFile_FD_Type,
        func: Option<
            unsafe extern "C" fn(
                arg1: VOID_STAR,
                arg2: *mut c_char,
                arg3: c_uint,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLfile_set_write_method(
        f: *mut SLFile_FD_Type,
        func: Option<
            unsafe extern "C" fn(
                arg1: VOID_STAR,
                arg2: *mut c_char,
                arg3: c_uint,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLfile_set_dup_method(
        f: *mut SLFile_FD_Type,
        func: Option<unsafe extern "C" fn(arg1: VOID_STAR) -> *mut SLFile_FD_Type>,
    ) -> c_int;
}
extern "C" {
    pub fn SLfile_create_clientdata_id(id: *mut c_int) -> c_int;
}
extern "C" {
    pub fn SLfile_set_clientdata(
        f: *mut SLFile_FD_Type,
        free_func: Option<unsafe extern "C" fn(arg1: VOID_STAR)>,
        cd: VOID_STAR,
        id: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLfile_get_clientdata(
        f: *mut SLFile_FD_Type,
        id: c_int,
        cdp: *mut VOID_STAR,
    ) -> c_int;
}
pub type SLang_To_Double_Fun_Type =
    Option<unsafe extern "C" fn(arg1: VOID_STAR) -> f64>;
extern "C" {
    pub fn SLarith_get_to_double_fun(
        arg1: SLtype,
        arg2: *mut c_uint,
    ) -> SLang_To_Double_Fun_Type;
}
extern "C" {
    pub fn SLang_set_argc_argv(
        arg1: c_int,
        arg2: *mut *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_qualifier_exists(name: *const c_char) -> c_int;
}
extern "C" {
    pub fn SLang_get_int_qualifier(
        name: *const c_char,
        val: *mut c_int,
        defval: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_get_long_qualifier(
        name: *const c_char,
        val: *mut c_long,
        defval: c_long,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_get_double_qualifier(
        name: *const c_char,
        val: *mut f64,
        defval: f64,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_get_string_qualifier(
        name: *const c_char,
        val: *mut *mut c_char,
        defval: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub static mut SLang_TT_Baud_Rate: c_int;
}
extern "C" {
    pub static mut SLang_TT_Read_FD: c_int;
}
extern "C" {
    pub fn SLang_init_tty(
        arg1: c_int,
        arg2: c_int,
        arg3: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_reset_tty();
}
extern "C" {
    pub fn SLtty_set_suspend_state(arg1: c_int);
}
extern "C" {
    pub static mut SLang_getkey_intr_hook:
        Option<unsafe extern "C" fn() -> c_int>;
}
extern "C" {
    pub fn SLang_getkey() -> c_uint;
}
extern "C" {
    pub fn SLang_ungetkey_string(
        arg1: *mut c_uchar,
        arg2: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_buffer_keystring(
        arg1: *mut c_uchar,
        arg2: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_ungetkey(arg1: c_uchar) -> c_int;
}
extern "C" {
    pub fn SLang_flush_input();
}
extern "C" {
    pub fn SLang_input_pending(arg1: c_int) -> c_int;
}
extern "C" {
    pub static mut SLang_Abort_Char: c_int;
}
extern "C" {
    pub static mut SLang_Ignore_User_Abort: c_int;
}
extern "C" {
    pub fn SLang_set_abort_signal(
        arg1: Option<unsafe extern "C" fn(arg1: c_int)>,
    ) -> c_int;
}
extern "C" {
    pub static mut SLang_Input_Buffer_Len: c_uint;
}
extern "C" {
    pub static mut SLKeyBoard_Quit: c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLKeymap_Function_Type {
    pub name: *mut c_char,
    pub f: Option<unsafe extern "C" fn() -> c_int>,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct SLang_Key_Type {
    pub next: *mut SLang_Key_Type,
    pub f: SLang_Key_Type__bindgen_ty_1,
    pub type_: c_uchar,
    pub str_: [c_uchar; SLANG_MAX_KEYMAP_KEY_SEQ + 1],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union SLang_Key_Type__bindgen_ty_1 {
    pub s: *mut c_char,
    pub f: FVOID_STAR,
    pub keysym: c_uint,
    pub slang_fun: *mut SLang_Name_Type,
    _bindgen_union_align: u64,
}
extern "C" {
    pub fn SLkm_set_free_method(
        arg1: c_int,
        arg2: Option<
            unsafe extern "C" fn(arg1: c_int, arg2: VOID_STAR),
        >,
    ) -> c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLkeymap_Type {
    pub name: *mut c_char,
    pub keymap: *mut SLang_Key_Type,
    pub functions: *mut SLKeymap_Function_Type,
    pub next: *mut SLkeymap_Type,
}
extern "C" {
    pub static mut SLKeyMap_List_Root: *mut SLkeymap_Type;
}
pub type SLKeyMap_List_Type = SLkeymap_Type;
extern "C" {
    pub fn SLang_process_keystring(
        arg1: *mut c_char,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLkm_define_key(
        arg1: *mut c_char,
        arg2: FVOID_STAR,
        arg3: *mut SLkeymap_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_define_key(
        arg1: *mut c_char,
        arg2: *mut c_char,
        arg3: *mut SLkeymap_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLkm_define_keysym(
        arg1: *mut c_char,
        arg2: c_uint,
        arg3: *mut SLkeymap_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLkm_define_slkey(
        keysequence: *mut c_char,
        func: *mut SLang_Name_Type,
        arg1: *mut SLkeymap_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_undefine_key(arg1: *mut c_char, arg2: *mut SLkeymap_Type);
}
extern "C" {
    pub fn SLang_create_keymap(
        arg1: *mut c_char,
        arg2: *mut SLkeymap_Type,
    ) -> *mut SLkeymap_Type;
}
extern "C" {
    pub fn SLang_make_keystring(arg1: *mut c_uchar) -> *mut c_char;
}
extern "C" {
    pub fn SLang_do_key(
        arg1: *mut SLkeymap_Type,
        arg2: Option<unsafe extern "C" fn() -> c_int>,
    ) -> *mut SLang_Key_Type;
}
extern "C" {
    pub fn SLang_find_key_function(
        arg1: *mut c_char,
        arg2: *mut SLkeymap_Type,
    ) -> FVOID_STAR;
}
extern "C" {
    pub fn SLang_find_keymap(arg1: *mut c_char) -> *mut SLkeymap_Type;
}
extern "C" {
    pub static mut SLang_Last_Key_Char: c_int;
}
extern "C" {
    pub static mut SLang_Key_TimeOut_Flag: c_int;
}
extern {
    pub type SLrline_Type;
}
extern "C" {
    pub fn SLrline_open(
        width: c_uint,
        flags: c_uint,
    ) -> *mut SLrline_Type;
}
extern "C" {
    pub fn SLrline_open2(
        arg1: *mut c_char,
        width: c_uint,
        flags: c_uint,
    ) -> *mut SLrline_Type;
}
extern "C" {
    pub fn SLrline_close(arg1: *mut SLrline_Type);
}
extern "C" {
    pub fn SLrline_read_line(
        arg1: *mut SLrline_Type,
        prompt: *mut c_char,
        lenp: *mut c_uint,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLrline_bol(arg1: *mut SLrline_Type) -> c_int;
}
extern "C" {
    pub fn SLrline_eol(arg1: *mut SLrline_Type) -> c_int;
}
extern "C" {
    pub fn SLrline_del(
        arg1: *mut SLrline_Type,
        len: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_ins(
        arg1: *mut SLrline_Type,
        s: *mut c_char,
        len: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_move(
        arg1: *mut SLrline_Type,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_echo(
        arg1: *mut SLrline_Type,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_tab(
        arg1: *mut SLrline_Type,
        tabwidth: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_point(
        arg1: *mut SLrline_Type,
        arg2: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_line(
        arg1: *mut SLrline_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_hscroll(
        arg1: *mut SLrline_Type,
        arg2: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_display_width(
        arg1: *mut SLrline_Type,
        arg2: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_get_echo(
        arg1: *mut SLrline_Type,
        arg2: *mut c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_get_tab(
        arg1: *mut SLrline_Type,
        arg2: *mut c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_get_point(
        arg1: *mut SLrline_Type,
        arg2: *mut c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_get_line(arg1: *mut SLrline_Type) -> *mut c_char;
}
extern "C" {
    pub fn SLrline_get_hscroll(
        arg1: *mut SLrline_Type,
        arg2: *mut c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_get_display_width(
        arg1: *mut SLrline_Type,
        arg2: *mut c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_update_hook(
        arg1: *mut SLrline_Type,
        arg2: Option<
            unsafe extern "C" fn(
                rli: *mut SLrline_Type,
                prompt: *mut c_char,
                buf: *mut c_char,
                len: c_uint,
                point: c_uint,
                client_data: VOID_STAR,
            ),
        >,
        client_data: VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_set_free_update_cb(
        arg1: *mut SLrline_Type,
        arg2: Option<unsafe extern "C" fn(arg1: *mut SLrline_Type, arg2: VOID_STAR)>,
    );
}
extern "C" {
    pub fn SLrline_set_update_clear_cb(
        arg1: *mut SLrline_Type,
        arg2: Option<unsafe extern "C" fn(arg1: *mut SLrline_Type, arg2: VOID_STAR)>,
    );
}
extern "C" {
    pub fn SLrline_set_update_preread_cb(
        arg1: *mut SLrline_Type,
        arg2: Option<unsafe extern "C" fn(arg1: *mut SLrline_Type, arg2: VOID_STAR)>,
    );
}
extern "C" {
    pub fn SLrline_set_update_postread_cb(
        arg1: *mut SLrline_Type,
        arg2: Option<unsafe extern "C" fn(arg1: *mut SLrline_Type, arg2: VOID_STAR)>,
    );
}
extern "C" {
    pub fn SLrline_set_update_width_cb(
        arg1: *mut SLrline_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: *mut SLrline_Type,
                arg2: c_int,
                arg3: VOID_STAR,
            ),
        >,
    );
}
extern "C" {
    pub fn SLrline_get_update_client_data(
        arg1: *mut SLrline_Type,
        arg2: *mut VOID_STAR,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_get_keymap(arg1: *mut SLrline_Type) -> *mut SLkeymap_Type;
}
extern "C" {
    pub fn SLrline_redraw(arg1: *mut SLrline_Type);
}
extern "C" {
    pub fn SLrline_save_line(arg1: *mut SLrline_Type) -> c_int;
}
extern "C" {
    pub fn SLrline_add_to_history(
        arg1: *mut SLrline_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLrline_init(
        appname: *mut c_char,
        user_initfile: *mut c_char,
        sys_initfile: *mut c_char,
    ) -> c_int;
}
pub type SLang_RLine_Info_Type = SLrline_Type;
extern "C" {
    pub static mut SLtt_Num_Chars_Output: c_ulong;
}
extern "C" {
    pub static mut SLtt_Baud_Rate: c_int;
}
extern "C" {
    pub static mut SLtt_Screen_Rows: c_int;
}
extern "C" {
    pub static mut SLtt_Screen_Cols: c_int;
}
extern "C" {
    pub static mut SLtt_Term_Cannot_Insert: c_int;
}
extern "C" {
    pub static mut SLtt_Term_Cannot_Scroll: c_int;
}
extern "C" {
    pub static mut SLtt_Use_Ansi_Colors: c_int;
}
extern "C" {
    pub static mut SLtt_Ignore_Beep: c_int;
}
extern "C" {
    pub static mut SLtt_Force_Keypad_Init: c_int;
}
extern "C" {
    pub static mut SLang_TT_Write_FD: c_int;
}
extern "C" {
    pub static mut SLtt_Graphics_Char_Pairs: *mut c_char;
}
extern "C" {
    pub static mut SLtt_Blink_Mode: c_int;
}
extern "C" {
    pub static mut SLtt_Use_Blink_For_ACS: c_int;
}
extern "C" {
    pub static mut SLtt_Newline_Ok: c_int;
}
extern "C" {
    pub static mut SLtt_Has_Alt_Charset: c_int;
}
extern "C" {
    pub static mut SLtt_Has_Status_Line: c_int;
}
extern "C" {
    pub static mut SLtt_Try_Termcap: c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLsmg_Char_Type {
    pub nchars: c_uint,
    pub wchars: [SLwchar_Type; SLSMG_MAX_CHARS_PER_CELL],
    pub color: SLsmg_Color_Type,
}
extern "C" {
    pub fn SLtt_flush_output() -> c_int;
}
extern "C" {
    pub fn SLtt_set_scroll_region(arg1: c_int, arg2: c_int);
}
extern "C" {
    pub fn SLtt_reset_scroll_region();
}
extern "C" {
    pub fn SLtt_reverse_video(arg1: c_int);
}
extern "C" {
    pub fn SLtt_bold_video();
}
extern "C" {
    pub fn SLtt_begin_insert();
}
extern "C" {
    pub fn SLtt_end_insert();
}
extern "C" {
    pub fn SLtt_del_eol();
}
extern "C" {
    pub fn SLtt_goto_rc(arg1: c_int, arg2: c_int);
}
extern "C" {
    pub fn SLtt_delete_nlines(arg1: c_int);
}
extern "C" {
    pub fn SLtt_delete_char();
}
extern "C" {
    pub fn SLtt_erase_line();
}
extern "C" {
    pub fn SLtt_normal_video();
}
extern "C" {
    pub fn SLtt_cls();
}
extern "C" {
    pub fn SLtt_beep();
}
extern "C" {
    pub fn SLtt_reverse_index(arg1: c_int);
}
extern "C" {
    pub fn SLtt_smart_puts(
        arg1: *mut SLsmg_Char_Type,
        arg2: *mut SLsmg_Char_Type,
        arg3: c_int,
        arg4: c_int,
    );
}
extern "C" {
    pub fn SLtt_write_string(arg1: *mut c_char);
}
extern "C" {
    pub fn SLtt_putchar(arg1: c_char);
}
extern "C" {
    pub fn SLtt_init_video() -> c_int;
}
extern "C" {
    pub fn SLtt_reset_video() -> c_int;
}
extern "C" {
    pub fn SLtt_get_terminfo();
}
extern "C" {
    pub fn SLtt_get_screen_size();
}
extern "C" {
    pub fn SLtt_set_cursor_visibility(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLtt_set_mouse_mode(
        arg1: c_int,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_initialize(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLtt_enable_cursor_keys();
}
extern "C" {
    pub fn SLtt_set_term_vtxxx(arg1: *mut c_int);
}
extern "C" {
    pub fn SLtt_wide_width();
}
extern "C" {
    pub fn SLtt_narrow_width();
}
extern "C" {
    pub fn SLtt_set_alt_char_set(arg1: c_int);
}
extern "C" {
    pub fn SLtt_write_to_status_line(
        arg1: *mut c_char,
        arg2: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_disable_status_line();
}
extern "C" {
    pub fn SLtt_tgetstr(arg1: *mut c_char) -> *mut c_char;
}
extern "C" {
    pub fn SLtt_tgetnum(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLtt_tgetflag(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLtt_tgetent(name: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLtt_tgoto(
        cap: *mut c_char,
        col: c_int,
        row: c_int,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLtt_tputs(
        str_: *mut c_char,
        affcnt: c_int,
        putcfun: Option<
            unsafe extern "C" fn(arg1: c_int) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_tigetent(arg1: *mut c_char) -> *mut c_char;
}
extern "C" {
    pub fn SLtt_tigetstr(
        arg1: *mut c_char,
        arg2: *mut *mut c_char,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLtt_tigetnum(
        arg1: *mut c_char,
        arg2: *mut *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_get_color_object(arg1: c_int) -> SLtt_Char_Type;
}
extern "C" {
    pub fn SLtt_set_color_object(
        arg1: c_int,
        arg2: SLtt_Char_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_set_color(
        arg1: c_int,
        arg2: *const c_char,
        arg3: *const c_char,
        arg4: *const c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_set_mono(
        arg1: c_int,
        arg2: *const c_char,
        arg3: SLtt_Char_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_add_color_attribute(
        arg1: c_int,
        arg2: SLtt_Char_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLtt_set_color_fgbg(
        arg1: c_int,
        arg2: SLtt_Char_Type,
        arg3: SLtt_Char_Type,
    ) -> c_int;
}
extern {
    pub type SLprep_Type;
}
extern "C" {
    pub fn SLprep_new() -> *mut SLprep_Type;
}
extern "C" {
    pub fn SLprep_delete(arg1: *mut SLprep_Type);
}
extern "C" {
    pub fn SLprep_line_ok(
        arg1: *mut c_char,
        arg2: *mut SLprep_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLprep_set_flags(
        arg1: *mut SLprep_Type,
        flags: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLprep_set_comment(
        arg1: *mut SLprep_Type,
        arg2: *mut c_char,
        arg3: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLprep_set_prefix(
        arg1: *mut SLprep_Type,
        arg2: *mut c_char,
    ) -> c_int;
}
extern "C" {
    pub fn SLprep_set_exists_hook(
        arg1: *mut SLprep_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: *mut SLprep_Type,
                arg2: *mut c_char,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLprep_set_eval_hook(
        arg1: *mut SLprep_Type,
        arg2: Option<
            unsafe extern "C" fn(
                arg1: *mut SLprep_Type,
                arg2: *mut c_char,
            ) -> c_int,
        >,
    ) -> c_int;
}
extern "C" {
    pub fn SLdefine_for_ifdef(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLsmg_fill_region(
        arg1: c_int,
        arg2: c_int,
        arg3: c_uint,
        arg4: c_uint,
        arg5: SLwchar_Type,
    );
}
extern "C" {
    pub fn SLsmg_set_char_set(arg1: c_int);
}
extern "C" {
    pub static mut SLsmg_Scroll_Hash_Border: c_int;
}
extern "C" {
    pub fn SLsmg_suspend_smg() -> c_int;
}
extern "C" {
    pub fn SLsmg_resume_smg() -> c_int;
}
extern "C" {
    pub fn SLsmg_erase_eol();
}
extern "C" {
    pub fn SLsmg_gotorc(arg1: c_int, arg2: c_int);
}
extern "C" {
    pub fn SLsmg_erase_eos();
}
extern "C" {
    pub fn SLsmg_reverse_video();
}
extern "C" {
    pub fn SLsmg_set_color(arg1: SLsmg_Color_Type);
}
extern "C" {
    pub fn SLsmg_normal_video();
}
extern "C" {
    pub fn SLsmg_printf(arg1: *const c_char, ...);
}
/*
extern "C" {
    pub fn SLsmg_vprintf(arg1: *const c_char, arg2: *mut __va_list_tag);
}
*/
extern "C" {
    pub fn SLsmg_write_string(arg1: *const c_char);
}
extern "C" {
    pub fn SLsmg_write_nstring(arg1: *const c_char, arg2: c_uint);
}
extern "C" {
    pub fn SLsmg_write_chars(u: *const SLuchar_Type, umax: *mut SLuchar_Type);
}
extern "C" {
    pub fn SLsmg_write_nchars(str_: *const c_char, len: c_uint);
}
extern "C" {
    pub fn SLsmg_write_char(ch: SLwchar_Type);
}
extern "C" {
    pub fn SLsmg_write_wrapped_string(
        arg1: *mut SLuchar_Type,
        arg2: c_int,
        arg3: c_int,
        arg4: c_uint,
        arg5: c_uint,
        arg6: c_int,
    );
}
extern "C" {
    pub fn SLsmg_cls();
}
extern "C" {
    pub fn SLsmg_refresh();
}
extern "C" {
    pub fn SLsmg_touch_lines(arg1: c_int, arg2: c_uint);
}
extern "C" {
    pub fn SLsmg_touch_screen();
}
extern "C" {
    /// Returns zero if successful or -1 if it cannot allocate space for the virtual display.
    #[must_use]
    pub fn SLsmg_init_smg() -> c_int;
}
extern "C" {
    pub fn SLsmg_reinit_smg() -> c_int;
}
extern "C" {
    pub fn SLsmg_reset_smg();
}
extern "C" {
    pub fn SLsmg_char_at(arg1: *mut SLsmg_Char_Type) -> c_int;
}
extern "C" {
    pub fn SLsmg_set_screen_start(
        arg1: *mut c_int,
        arg2: *mut c_int,
    );
}
extern "C" {
    pub fn SLsmg_draw_hline(arg1: c_uint);
}
extern "C" {
    pub fn SLsmg_draw_vline(arg1: c_int);
}
extern "C" {
    pub fn SLsmg_draw_object(
        arg1: c_int,
        arg2: c_int,
        arg3: SLwchar_Type,
    );
}
extern "C" {
    pub fn SLsmg_draw_box(
        arg1: c_int,
        arg2: c_int,
        arg3: c_uint,
        arg4: c_uint,
    );
}
extern "C" {
    pub fn SLsmg_get_column() -> c_int;
}
extern "C" {
    pub fn SLsmg_get_row() -> c_int;
}
extern "C" {
    pub fn SLsmg_forward(arg1: c_int);
}
extern "C" {
    pub fn SLsmg_write_color_chars(arg1: *mut SLsmg_Char_Type, arg2: c_uint);
}
extern "C" {
    pub fn SLsmg_read_raw(
        arg1: *mut SLsmg_Char_Type,
        arg2: c_uint,
    ) -> c_uint;
}
extern "C" {
    pub fn SLsmg_write_raw(
        arg1: *mut SLsmg_Char_Type,
        arg2: c_uint,
    ) -> c_uint;
}
extern "C" {
    pub fn SLsmg_set_color_in_region(
        arg1: c_int,
        arg2: c_int,
        arg3: c_int,
        arg4: c_uint,
        arg5: c_uint,
    );
}
extern "C" {
    pub fn SLsmg_strwidth(u: *mut SLuchar_Type, max: *mut SLuchar_Type) -> c_uint;
}
extern "C" {
    pub fn SLsmg_strbytes(
        u: *mut SLuchar_Type,
        max: *mut SLuchar_Type,
        width: c_uint,
    ) -> c_uint;
}
extern "C" {
    pub fn SLsmg_embedded_escape_mode(on_or_off: c_int) -> c_int;
}
extern "C" {
    pub static mut SLsmg_Display_Eight_Bit: c_int;
}
extern "C" {
    pub static mut SLsmg_Tab_Width: c_int;
}
extern "C" {
    pub static mut SLsmg_Newline_Behavior: c_int;
}
extern "C" {
    pub static mut SLsmg_Backspace_Moves: c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLsmg_Term_Type {
    pub tt_normal_video: Option<unsafe extern "C" fn()>,
    pub tt_set_scroll_region: Option<
        unsafe extern "C" fn(arg1: c_int, arg2: c_int),
    >,
    pub tt_goto_rc: Option<
        unsafe extern "C" fn(arg1: c_int, arg2: c_int),
    >,
    pub tt_reverse_index: Option<unsafe extern "C" fn(arg1: c_int)>,
    pub tt_reset_scroll_region: Option<unsafe extern "C" fn()>,
    pub tt_delete_nlines: Option<unsafe extern "C" fn(arg1: c_int)>,
    pub tt_cls: Option<unsafe extern "C" fn()>,
    pub tt_del_eol: Option<unsafe extern "C" fn()>,
    pub tt_smart_puts: Option<
        unsafe extern "C" fn(
            arg1: *mut SLsmg_Char_Type,
            arg2: *mut SLsmg_Char_Type,
            arg3: c_int,
            arg4: c_int,
        ),
    >,
    pub tt_flush_output: Option<unsafe extern "C" fn() -> c_int>,
    pub tt_reset_video: Option<unsafe extern "C" fn() -> c_int>,
    pub tt_init_video: Option<unsafe extern "C" fn() -> c_int>,
    pub tt_screen_rows: *mut c_int,
    pub tt_screen_cols: *mut c_int,
    pub tt_term_cannot_scroll: *mut c_int,
    pub tt_has_alt_charset: *mut c_int,
    pub tt_graphic_char_pairs: *mut *mut c_char,
    pub unicode_ok: *mut c_int,
    pub reserved: [c_long; 4usize],
}
extern "C" {
    pub fn SLsmg_set_terminal_info(arg1: *mut SLsmg_Term_Type);
}
extern "C" {
    pub fn SLkp_define_keysym(
        arg1: *mut c_char,
        arg2: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLkp_init() -> c_int;
}
extern "C" {
    pub fn SLkp_set_getkey_function(
        arg1: Option<unsafe extern "C" fn() -> c_int>,
    );
}
extern "C" {
    pub fn SLkp_getkey() -> c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLscroll_Type {
    pub next: *mut SLscroll_Type,
    pub prev: *mut SLscroll_Type,
    pub flags: c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLscroll_Window_Type {
    pub flags: c_uint,
    pub top_window_line: *mut SLscroll_Type,
    pub bot_window_line: *mut SLscroll_Type,
    pub current_line: *mut SLscroll_Type,
    pub lines: *mut SLscroll_Type,
    pub nrows: c_uint,
    pub hidden_mask: c_uint,
    pub line_num: c_uint,
    pub num_lines: c_uint,
    pub window_row: c_uint,
    pub border: c_uint,
    pub cannot_scroll: c_int,
}
extern "C" {
    pub fn SLscroll_find_top(arg1: *mut SLscroll_Window_Type) -> c_int;
}
extern "C" {
    pub fn SLscroll_find_line_num(arg1: *mut SLscroll_Window_Type) -> c_int;
}
extern "C" {
    pub fn SLscroll_next_n(
        arg1: *mut SLscroll_Window_Type,
        arg2: c_uint,
    ) -> c_uint;
}
extern "C" {
    pub fn SLscroll_prev_n(
        arg1: *mut SLscroll_Window_Type,
        arg2: c_uint,
    ) -> c_uint;
}
extern "C" {
    pub fn SLscroll_pageup(arg1: *mut SLscroll_Window_Type) -> c_int;
}
extern "C" {
    pub fn SLscroll_pagedown(arg1: *mut SLscroll_Window_Type) -> c_int;
}
pub type SLSig_Fun_Type = Option<unsafe extern "C" fn(arg1: c_int)>;
extern "C" {
    pub fn SLsignal(arg1: c_int, arg2: SLSig_Fun_Type) -> SLSig_Fun_Type;
}
extern "C" {
    pub fn SLsignal_intr(arg1: c_int, arg2: SLSig_Fun_Type) -> SLSig_Fun_Type;
}
extern "C" {
    pub fn SLsig_block_signals() -> c_int;
}
extern "C" {
    pub fn SLsig_unblock_signals() -> c_int;
}
extern "C" {
    pub fn SLsystem(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLsystem_intr(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLsig_forbid_signal(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLerrno_strerror(arg1: c_int) -> *mut c_char;
}
extern "C" {
    pub fn SLerrno_set_errno(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLfpu_clear_except_bits();
}
extern "C" {
    pub fn SLfpu_test_except_bits(bits: c_uint) -> c_uint;
}
extern "C" {
    pub fn SLang_get_int_type(nbits: c_int) -> SLtype;
}
extern "C" {
    pub fn SLang_get_int_size(arg1: SLtype) -> c_int;
}
extern "C" {
    pub fn SLadd_intrinsic_variable(
        arg1: *mut c_char,
        arg2: VOID_STAR,
        arg3: SLtype,
        arg4: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLadd_intrinsic_function(
        arg1: *mut c_char,
        arg2: FVOID_STAR,
        arg3: SLtype,
        arg4: c_uint,
        ...
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_intrinsic_variable(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut c_char,
        arg3: VOID_STAR,
        arg4: SLtype,
        arg5: c_int,
    ) -> c_int;
}
extern "C" {
    pub fn SLns_add_intrinsic_function(
        arg1: *mut SLang_NameSpace_Type,
        arg2: *mut c_char,
        arg3: FVOID_STAR,
        arg4: SLtype,
        arg5: c_uint,
        ...
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_patch_intrin_fun_table(
        table: *mut SLang_Intrin_Fun_Type,
        from_types: *mut SLtype,
        to_types: *mut SLtype,
        num: c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLclass_patch_intrin_fun_table1(
        table: *mut SLang_Intrin_Fun_Type,
        from_type: SLtype,
        to_type: SLtype,
    ) -> c_int;
}
extern "C" {
    pub fn SLang_define_case(arg1: *mut c_int, arg2: *mut c_int);
}
extern "C" {
    pub fn SLang_init_case_tables();
}
extern "C" {
    pub static mut _pSLChg_UCase_Lut: [c_uchar; 256usize];
}
extern "C" {
    pub static mut _pSLChg_LCase_Lut: [c_uchar; 256usize];
}
extern {
    pub type SLRegexp_Type;
}
extern "C" {
    pub fn SLregexp_compile(
        pattern: *mut c_char,
        flags: c_uint,
    ) -> *mut SLRegexp_Type;
}
extern "C" {
    pub fn SLregexp_free(arg1: *mut SLRegexp_Type);
}
extern "C" {
    pub fn SLregexp_match(
        compiled_regexp: *mut SLRegexp_Type,
        str_: *mut c_char,
        len: SLstrlen_Type,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLregexp_nth_match(
        arg1: *mut SLRegexp_Type,
        nth: c_uint,
        ofsp: *mut SLstrlen_Type,
        lenp: *mut SLstrlen_Type,
    ) -> c_int;
}
extern "C" {
    pub fn SLregexp_get_hints(
        arg1: *mut SLRegexp_Type,
        flagsp: *mut c_uint,
    ) -> c_int;
}
extern "C" {
    pub fn SLregexp_quote_string(
        pattern: *mut c_char,
        buf: *mut c_char,
        buflen: c_uint,
    ) -> *mut c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLcmd_Cmd_Table_Type {
    pub table: *mut SLcmd_Cmd_Type,
    pub argc: c_int,
    pub string_args: *mut *mut c_char,
    pub int_args: *mut c_int,
    pub double_args: *mut f64,
    pub arg_type: *mut SLtype,
    pub reserved: [c_ulong; 4usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SLcmd_Cmd_Type {
    pub cmdfun: Option<
        unsafe extern "C" fn(
            arg1: c_int,
            arg2: *mut SLcmd_Cmd_Table_Type,
        ) -> c_int,
    >,
    pub cmd: *mut c_char,
    pub arg_type: *mut c_char,
}
extern "C" {
    pub fn SLcmd_execute_string(
        arg1: *mut c_char,
        arg2: *mut SLcmd_Cmd_Table_Type,
    ) -> c_int;
}
extern {
    pub type SLsearch_Type;
}
extern "C" {
    pub fn SLsearch_new(
        u: *mut SLuchar_Type,
        search_flags: c_int,
    ) -> *mut SLsearch_Type;
}
extern "C" {
    pub fn SLsearch_delete(arg1: *mut SLsearch_Type);
}
extern "C" {
    pub fn SLsearch_forward(
        st: *mut SLsearch_Type,
        pmin: *mut SLuchar_Type,
        pmax: *mut SLuchar_Type,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLsearch_backward(
        st: *mut SLsearch_Type,
        pmin: *mut SLuchar_Type,
        pstart: *mut SLuchar_Type,
        pmax: *mut SLuchar_Type,
    ) -> *mut SLuchar_Type;
}
extern "C" {
    pub fn SLsearch_match_len(arg1: *mut SLsearch_Type) -> SLstrlen_Type;
}
extern "C" {
    pub fn SLpath_basename(arg1: *mut c_char) -> *mut c_char;
}
extern "C" {
    pub fn SLpath_extname(arg1: *mut c_char) -> *mut c_char;
}
extern "C" {
    pub fn SLpath_is_absolute_path(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLpath_get_delimiter() -> c_int;
}
extern "C" {
    pub fn SLpath_set_delimiter(arg1: c_int) -> c_int;
}
extern "C" {
    pub fn SLpath_set_load_path(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLpath_get_load_path() -> *mut c_char;
}
extern "C" {
    pub fn SLpath_dircat(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLpath_find_file_in_path(
        arg1: *mut c_char,
        arg2: *mut c_char,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLpath_dirname(arg1: *mut c_char) -> *mut c_char;
}
extern "C" {
    pub fn SLpath_file_exists(arg1: *mut c_char) -> c_int;
}
extern "C" {
    pub fn SLpath_pathname_sans_extname(
        arg1: *mut c_char,
    ) -> *mut c_char;
}
extern "C" {
    pub fn SLpath_getcwd() -> *mut c_char;
}
extern "C" {
    pub fn SLang_set_module_load_path(arg1: *mut c_char) -> c_int;
}
/*
extern "C" {
    pub fn SLvsnprintf(
        arg1: *mut c_char,
        arg2: c_uint,
        arg3: *mut c_char,
        arg4: *mut __va_list_tag,
    ) -> c_int;
}
*/
extern "C" {
    pub fn SLsnprintf(
        arg1: *mut c_char,
        arg2: c_uint,
        arg3: *mut c_char,
        ...
    ) -> c_int;
}