evil-janet 1.26.0

Low level bindings to the janet language c api.
Documentation
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
#![feature(prelude_import)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(clippy::missing_safety_doc)]
#![no_std]
#[prelude_import]
use core::prelude::rust_2018::*;
#[macro_use]
extern crate core;
#[macro_use]
extern crate compiler_builtins;
extern crate alloc;
use core::{cmp::Ordering, fmt, hash::{Hash, Hasher}};
#[repr(C)]
pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
#[automatically_derived]
impl<T: ::core::default::Default> ::core::default::Default
for __IncompleteArrayField<T> {
    #[inline]
    fn default() -> __IncompleteArrayField<T> {
        __IncompleteArrayField(
            ::core::default::Default::default(),
            ::core::default::Default::default(),
        )
    }
}
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::core::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::core::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
pub const JANET_VERSION_MAJOR: u32 = 1;
pub const JANET_VERSION_MINOR: u32 = 25;
pub const JANET_VERSION_PATCH: u32 = 1;
pub const JANET_VERSION_EXTRA: &[u8; 1usize] = b"\0";
pub const JANET_VERSION: &[u8; 7usize] = b"1.25.1\0";
pub const JANET_BUILD: &[u8; 6usize] = b"local\0";
pub const JANET_APPLE: u32 = 1;
pub const JANET_POSIX: u32 = 1;
pub const JANET_64: u32 = 1;
pub const JANET_LITTLE_ENDIAN: u32 = 1;
pub const JANET_INTMAX_DOUBLE: f64 = 9007199254740992.0;
pub const JANET_INTMIN_DOUBLE: f64 = -9007199254740992.0;
pub const JANET_INTMAX_INT64: u64 = 9007199254740992;
pub const JANET_INTMIN_INT64: i64 = -9007199254740992;
pub const JANET_RECURSION_GUARD: u32 = 1024;
pub const JANET_MAX_PROTO_DEPTH: u32 = 200;
pub const JANET_MAX_MACRO_EXPAND: u32 = 200;
pub const JANET_STACK_MAX: u32 = 2147483647;
pub const JANET_NANBOX_BIT: u32 = 0;
pub const JANET_SINGLE_THREADED_BIT: u32 = 0;
pub const JANET_CURRENT_CONFIG_BITS: u32 = 0;
pub const JANET_HANDLE_NONE: i32 = -1;
pub const JANET_STREAM_CLOSED: u32 = 1;
pub const JANET_STREAM_SOCKET: u32 = 2;
pub const JANET_STREAM_IOCP: u32 = 4;
pub const JANET_STREAM_READABLE: u32 = 512;
pub const JANET_STREAM_WRITABLE: u32 = 1024;
pub const JANET_STREAM_ACCEPTABLE: u32 = 2048;
pub const JANET_STREAM_UDPSERVER: u32 = 4096;
pub const JANET_STACKFRAME_TAILCALL: u32 = 1;
pub const JANET_STACKFRAME_ENTRANCE: u32 = 2;
pub const JANET_FRAME_SIZE: u32 = 4;
pub const JANET_FUNCDEF_FLAG_VARARG: u32 = 65536;
pub const JANET_FUNCDEF_FLAG_NEEDSENV: u32 = 131072;
pub const JANET_FUNCDEF_FLAG_HASNAME: u32 = 524288;
pub const JANET_FUNCDEF_FLAG_HASSOURCE: u32 = 1048576;
pub const JANET_FUNCDEF_FLAG_HASDEFS: u32 = 2097152;
pub const JANET_FUNCDEF_FLAG_HASENVS: u32 = 4194304;
pub const JANET_FUNCDEF_FLAG_HASSOURCEMAP: u32 = 8388608;
pub const JANET_FUNCDEF_FLAG_STRUCTARG: u32 = 16777216;
pub const JANET_FUNCDEF_FLAG_HASCLOBITSET: u32 = 33554432;
pub const JANET_FUNCDEF_FLAG_TAG: u32 = 65535;
pub const JANET_FUNCFLAG_TRACE: u32 = 65536;
pub const JANET_EV_TCTAG_NIL: u32 = 0;
pub const JANET_EV_TCTAG_INTEGER: u32 = 1;
pub const JANET_EV_TCTAG_STRING: u32 = 2;
pub const JANET_EV_TCTAG_STRINGF: u32 = 3;
pub const JANET_EV_TCTAG_KEYWORD: u32 = 4;
pub const JANET_EV_TCTAG_ERR_STRING: u32 = 5;
pub const JANET_EV_TCTAG_ERR_STRINGF: u32 = 6;
pub const JANET_EV_TCTAG_ERR_KEYWORD: u32 = 7;
pub const JANET_EV_TCTAG_BOOLEAN: u32 = 8;
pub const JANET_TUPLE_FLAG_BRACKETCTOR: u32 = 65536;
pub const JANET_MARSHAL_UNSAFE: u32 = 131072;
pub const JANET_MARSHAL_NO_CYCLES: u32 = 262144;
pub const JANET_PRETTY_COLOR: u32 = 1;
pub const JANET_PRETTY_ONELINE: u32 = 2;
pub const JANET_PRETTY_NOTRUNC: u32 = 4;
pub const JANET_FILE_WRITE: u32 = 1;
pub const JANET_FILE_READ: u32 = 2;
pub const JANET_FILE_APPEND: u32 = 4;
pub const JANET_FILE_UPDATE: u32 = 8;
pub const JANET_FILE_NOT_CLOSEABLE: u32 = 16;
pub const JANET_FILE_CLOSED: u32 = 32;
pub const JANET_FILE_BINARY: u32 = 64;
pub const JANET_FILE_SERIALIZABLE: u32 = 128;
pub const JANET_FILE_NONIL: u32 = 512;
#[repr(C)]
pub struct JanetBuildConfig {
    pub major: ::libc::c_uint,
    pub minor: ::libc::c_uint,
    pub patch: ::libc::c_uint,
    pub bits: ::libc::c_uint,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetBuildConfig {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field4_finish(
            f,
            "JanetBuildConfig",
            "major",
            &&self.major,
            "minor",
            &&self.minor,
            "patch",
            &&self.patch,
            "bits",
            &&self.bits,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetBuildConfig {}
#[automatically_derived]
impl ::core::clone::Clone for JanetBuildConfig {
    #[inline]
    fn clone(&self) -> JanetBuildConfig {
        let _: ::core::clone::AssertParamIsClone<::libc::c_uint>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_uint>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_uint>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_uint>;
        *self
    }
}
#[repr(C)]
pub struct JanetOSMutex {
    _unused: [u8; 0],
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetOSMutex {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field1_finish(
            f,
            "JanetOSMutex",
            "_unused",
            &&self._unused,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetOSMutex {}
#[automatically_derived]
impl ::core::clone::Clone for JanetOSMutex {
    #[inline]
    fn clone(&self) -> JanetOSMutex {
        let _: ::core::clone::AssertParamIsClone<[u8; 0]>;
        *self
    }
}
#[repr(C)]
pub struct JanetOSRWLock {
    _unused: [u8; 0],
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetOSRWLock {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field1_finish(
            f,
            "JanetOSRWLock",
            "_unused",
            &&self._unused,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetOSRWLock {}
#[automatically_derived]
impl ::core::clone::Clone for JanetOSRWLock {
    #[inline]
    fn clone(&self) -> JanetOSRWLock {
        let _: ::core::clone::AssertParamIsClone<[u8; 0]>;
        *self
    }
}
pub type __int64_t = ::libc::c_longlong;
pub type __darwin_off_t = __int64_t;
pub type va_list = __builtin_va_list;
pub type jmp_buf = [::libc::c_int; 48usize];
extern "C" {
    pub fn setjmp(arg1: *mut ::libc::c_int) -> ::libc::c_int;
}
extern "C" {
    pub fn longjmp(arg1: *mut ::libc::c_int, arg2: ::libc::c_int) -> !;
}
extern "C" {
    pub fn _setjmp(arg1: *mut ::libc::c_int) -> ::libc::c_int;
}
extern "C" {
    pub fn _longjmp(arg1: *mut ::libc::c_int, arg2: ::libc::c_int) -> !;
}
extern "C" {
    pub fn sigsetjmp(arg1: *mut ::libc::c_int, arg2: ::libc::c_int) -> ::libc::c_int;
}
extern "C" {
    pub fn siglongjmp(arg1: *mut ::libc::c_int, arg2: ::libc::c_int) -> !;
}
pub type fpos_t = __darwin_off_t;
#[repr(C)]
pub struct __sbuf {
    pub _base: *mut ::libc::c_uchar,
    pub _size: ::libc::c_int,
}
#[automatically_derived]
impl ::core::fmt::Debug for __sbuf {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(
            f,
            "__sbuf",
            "_base",
            &&self._base,
            "_size",
            &&self._size,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for __sbuf {}
#[automatically_derived]
impl ::core::clone::Clone for __sbuf {
    #[inline]
    fn clone(&self) -> __sbuf {
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_uchar>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        *self
    }
}
#[repr(C)]
pub struct __sFILEX {
    _unused: [u8; 0],
}
#[automatically_derived]
impl ::core::fmt::Debug for __sFILEX {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field1_finish(
            f,
            "__sFILEX",
            "_unused",
            &&self._unused,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for __sFILEX {}
#[automatically_derived]
impl ::core::clone::Clone for __sFILEX {
    #[inline]
    fn clone(&self) -> __sFILEX {
        let _: ::core::clone::AssertParamIsClone<[u8; 0]>;
        *self
    }
}
#[repr(C)]
pub struct __sFILE {
    pub _p: *mut ::libc::c_uchar,
    pub _r: ::libc::c_int,
    pub _w: ::libc::c_int,
    pub _flags: ::libc::c_short,
    pub _file: ::libc::c_short,
    pub _bf: __sbuf,
    pub _lbfsize: ::libc::c_int,
    pub _cookie: *mut ::libc::c_void,
    pub _close: ::core::option::Option<
        unsafe extern "C" fn(arg1: *mut ::libc::c_void) -> ::libc::c_int,
    >,
    pub _read: ::core::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::libc::c_void,
            arg2: *mut ::libc::c_char,
            arg3: ::libc::c_int,
        ) -> ::libc::c_int,
    >,
    pub _seek: ::core::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::libc::c_void,
            arg2: fpos_t,
            arg3: ::libc::c_int,
        ) -> fpos_t,
    >,
    pub _write: ::core::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::libc::c_void,
            arg2: *const ::libc::c_char,
            arg3: ::libc::c_int,
        ) -> ::libc::c_int,
    >,
    pub _ub: __sbuf,
    pub _extra: *mut __sFILEX,
    pub _ur: ::libc::c_int,
    pub _ubuf: [::libc::c_uchar; 3usize],
    pub _nbuf: [::libc::c_uchar; 1usize],
    pub _lb: __sbuf,
    pub _blksize: ::libc::c_int,
    pub _offset: fpos_t,
}
#[automatically_derived]
impl ::core::fmt::Debug for __sFILE {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        let names: &'static _ = &[
            "_p",
            "_r",
            "_w",
            "_flags",
            "_file",
            "_bf",
            "_lbfsize",
            "_cookie",
            "_close",
            "_read",
            "_seek",
            "_write",
            "_ub",
            "_extra",
            "_ur",
            "_ubuf",
            "_nbuf",
            "_lb",
            "_blksize",
            "_offset",
        ];
        let values: &[&dyn ::core::fmt::Debug] = &[
            &&self._p,
            &&self._r,
            &&self._w,
            &&self._flags,
            &&self._file,
            &&self._bf,
            &&self._lbfsize,
            &&self._cookie,
            &&self._close,
            &&self._read,
            &&self._seek,
            &&self._write,
            &&self._ub,
            &&self._extra,
            &&self._ur,
            &&self._ubuf,
            &&self._nbuf,
            &&self._lb,
            &&self._blksize,
            &&self._offset,
        ];
        ::core::fmt::Formatter::debug_struct_fields_finish(f, "__sFILE", names, values)
    }
}
#[automatically_derived]
impl ::core::marker::Copy for __sFILE {}
#[automatically_derived]
impl ::core::clone::Clone for __sFILE {
    #[inline]
    fn clone(&self) -> __sFILE {
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_uchar>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_short>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_short>;
        let _: ::core::clone::AssertParamIsClone<__sbuf>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_void>;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(arg1: *mut ::libc::c_void) -> ::libc::c_int,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    arg1: *mut ::libc::c_void,
                    arg2: *mut ::libc::c_char,
                    arg3: ::libc::c_int,
                ) -> ::libc::c_int,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    arg1: *mut ::libc::c_void,
                    arg2: fpos_t,
                    arg3: ::libc::c_int,
                ) -> fpos_t,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    arg1: *mut ::libc::c_void,
                    arg2: *const ::libc::c_char,
                    arg3: ::libc::c_int,
                ) -> ::libc::c_int,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<*mut __sFILEX>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<[::libc::c_uchar; 3usize]>;
        let _: ::core::clone::AssertParamIsClone<[::libc::c_uchar; 1usize]>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<fpos_t>;
        *self
    }
}
pub type FILE = __sFILE;
extern "C" {
    pub static janet_type_names: [*const ::libc::c_char; 16usize];
}
extern "C" {
    pub static janet_signal_names: [*const ::libc::c_char; 14usize];
}
extern "C" {
    pub static janet_status_names: [*const ::libc::c_char; 16usize];
}
pub type JanetHandle = ::libc::c_int;
pub const JanetSignal_JANET_SIGNAL_OK: JanetSignal = 0;
pub const JanetSignal_JANET_SIGNAL_ERROR: JanetSignal = 1;
pub const JanetSignal_JANET_SIGNAL_DEBUG: JanetSignal = 2;
pub const JanetSignal_JANET_SIGNAL_YIELD: JanetSignal = 3;
pub const JanetSignal_JANET_SIGNAL_USER0: JanetSignal = 4;
pub const JanetSignal_JANET_SIGNAL_USER1: JanetSignal = 5;
pub const JanetSignal_JANET_SIGNAL_USER2: JanetSignal = 6;
pub const JanetSignal_JANET_SIGNAL_USER3: JanetSignal = 7;
pub const JanetSignal_JANET_SIGNAL_USER4: JanetSignal = 8;
pub const JanetSignal_JANET_SIGNAL_USER5: JanetSignal = 9;
pub const JanetSignal_JANET_SIGNAL_USER6: JanetSignal = 10;
pub const JanetSignal_JANET_SIGNAL_USER7: JanetSignal = 11;
pub const JanetSignal_JANET_SIGNAL_USER8: JanetSignal = 12;
pub const JanetSignal_JANET_SIGNAL_USER9: JanetSignal = 13;
pub type JanetSignal = ::libc::c_uint;
pub const JanetFiberStatus_JANET_STATUS_DEAD: JanetFiberStatus = 0;
pub const JanetFiberStatus_JANET_STATUS_ERROR: JanetFiberStatus = 1;
pub const JanetFiberStatus_JANET_STATUS_DEBUG: JanetFiberStatus = 2;
pub const JanetFiberStatus_JANET_STATUS_PENDING: JanetFiberStatus = 3;
pub const JanetFiberStatus_JANET_STATUS_USER0: JanetFiberStatus = 4;
pub const JanetFiberStatus_JANET_STATUS_USER1: JanetFiberStatus = 5;
pub const JanetFiberStatus_JANET_STATUS_USER2: JanetFiberStatus = 6;
pub const JanetFiberStatus_JANET_STATUS_USER3: JanetFiberStatus = 7;
pub const JanetFiberStatus_JANET_STATUS_USER4: JanetFiberStatus = 8;
pub const JanetFiberStatus_JANET_STATUS_USER5: JanetFiberStatus = 9;
pub const JanetFiberStatus_JANET_STATUS_USER6: JanetFiberStatus = 10;
pub const JanetFiberStatus_JANET_STATUS_USER7: JanetFiberStatus = 11;
pub const JanetFiberStatus_JANET_STATUS_USER8: JanetFiberStatus = 12;
pub const JanetFiberStatus_JANET_STATUS_USER9: JanetFiberStatus = 13;
pub const JanetFiberStatus_JANET_STATUS_NEW: JanetFiberStatus = 14;
pub const JanetFiberStatus_JANET_STATUS_ALIVE: JanetFiberStatus = 15;
pub type JanetFiberStatus = ::libc::c_uint;
#[repr(C)]
pub struct JanetVM {
    _unused: [u8; 0],
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetVM {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field1_finish(
            f,
            "JanetVM",
            "_unused",
            &&self._unused,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetVM {}
#[automatically_derived]
impl ::core::clone::Clone for JanetVM {
    #[inline]
    fn clone(&self) -> JanetVM {
        let _: ::core::clone::AssertParamIsClone<[u8; 0]>;
        *self
    }
}
pub const JanetType_JANET_NUMBER: JanetType = 0;
pub const JanetType_JANET_NIL: JanetType = 1;
pub const JanetType_JANET_BOOLEAN: JanetType = 2;
pub const JanetType_JANET_FIBER: JanetType = 3;
pub const JanetType_JANET_STRING: JanetType = 4;
pub const JanetType_JANET_SYMBOL: JanetType = 5;
pub const JanetType_JANET_KEYWORD: JanetType = 6;
pub const JanetType_JANET_ARRAY: JanetType = 7;
pub const JanetType_JANET_TUPLE: JanetType = 8;
pub const JanetType_JANET_TABLE: JanetType = 9;
pub const JanetType_JANET_STRUCT: JanetType = 10;
pub const JanetType_JANET_BUFFER: JanetType = 11;
pub const JanetType_JANET_FUNCTION: JanetType = 12;
pub const JanetType_JANET_CFUNCTION: JanetType = 13;
pub const JanetType_JANET_ABSTRACT: JanetType = 14;
pub const JanetType_JANET_POINTER: JanetType = 15;
pub type JanetType = ::libc::c_uint;
#[repr(C)]
pub struct Janet {
    pub as_: Janet__bindgen_ty_1,
    pub type_: JanetType,
}
#[automatically_derived]
impl ::core::marker::Copy for Janet {}
#[automatically_derived]
impl ::core::clone::Clone for Janet {
    #[inline]
    fn clone(&self) -> Janet {
        let _: ::core::clone::AssertParamIsClone<Janet__bindgen_ty_1>;
        let _: ::core::clone::AssertParamIsClone<JanetType>;
        *self
    }
}
#[repr(C)]
pub union Janet__bindgen_ty_1 {
    pub u64_: u64,
    pub number: f64,
    pub integer: i32,
    pub pointer: *mut ::libc::c_void,
    pub cpointer: *const ::libc::c_void,
}
#[automatically_derived]
impl ::core::marker::Copy for Janet__bindgen_ty_1 {}
#[automatically_derived]
impl ::core::clone::Clone for Janet__bindgen_ty_1 {
    #[inline]
    fn clone(&self) -> Janet__bindgen_ty_1 {
        let _: ::core::clone::AssertParamIsCopy<Self>;
        *self
    }
}
pub type JanetCFunction = ::core::option::Option<
    unsafe extern "C" fn(argc: i32, argv: *mut Janet) -> Janet,
>;
pub type JanetString = *const u8;
pub type JanetSymbol = *const u8;
pub type JanetKeyword = *const u8;
pub type JanetTuple = *const Janet;
pub type JanetStruct = *const JanetKV;
pub type JanetAbstract = *mut ::libc::c_void;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_INIT: JanetAsyncEvent = 0;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_MARK: JanetAsyncEvent = 1;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_DEINIT: JanetAsyncEvent = 2;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_CLOSE: JanetAsyncEvent = 3;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_ERR: JanetAsyncEvent = 4;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_HUP: JanetAsyncEvent = 5;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_READ: JanetAsyncEvent = 6;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_WRITE: JanetAsyncEvent = 7;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_CANCEL: JanetAsyncEvent = 8;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_COMPLETE: JanetAsyncEvent = 9;
pub const JanetAsyncEvent_JANET_ASYNC_EVENT_USER: JanetAsyncEvent = 10;
pub type JanetAsyncEvent = ::libc::c_uint;
pub const JanetAsyncStatus_JANET_ASYNC_STATUS_NOT_DONE: JanetAsyncStatus = 0;
pub const JanetAsyncStatus_JANET_ASYNC_STATUS_DONE: JanetAsyncStatus = 1;
pub type JanetAsyncStatus = ::libc::c_uint;
pub type JanetListener = ::core::option::Option<
    unsafe extern "C" fn(
        state: *mut JanetListenerState,
        event: JanetAsyncEvent,
    ) -> JanetAsyncStatus,
>;
#[repr(C)]
pub struct JanetStream {
    pub handle: JanetHandle,
    pub flags: u32,
    pub state: *mut JanetListenerState,
    pub methods: *const ::libc::c_void,
    pub _mask: ::libc::c_int,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetStream {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(
            f,
            "JanetStream",
            "handle",
            &&self.handle,
            "flags",
            &&self.flags,
            "state",
            &&self.state,
            "methods",
            &&self.methods,
            "_mask",
            &&self._mask,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetStream {}
#[automatically_derived]
impl ::core::clone::Clone for JanetStream {
    #[inline]
    fn clone(&self) -> JanetStream {
        let _: ::core::clone::AssertParamIsClone<JanetHandle>;
        let _: ::core::clone::AssertParamIsClone<u32>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetListenerState>;
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_void>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        *self
    }
}
#[repr(C)]
pub struct JanetListenerState {
    pub machine: JanetListener,
    pub fiber: *mut JanetFiber,
    pub stream: *mut JanetStream,
    pub event: *mut ::libc::c_void,
    pub _index: usize,
    pub _mask: ::libc::c_int,
    pub _next: *mut JanetListenerState,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetListenerState {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        let names: &'static _ = &[
            "machine",
            "fiber",
            "stream",
            "event",
            "_index",
            "_mask",
            "_next",
        ];
        let values: &[&dyn ::core::fmt::Debug] = &[
            &&self.machine,
            &&self.fiber,
            &&self.stream,
            &&self.event,
            &&self._index,
            &&self._mask,
            &&self._next,
        ];
        ::core::fmt::Formatter::debug_struct_fields_finish(
            f,
            "JanetListenerState",
            names,
            values,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetListenerState {}
#[automatically_derived]
impl ::core::clone::Clone for JanetListenerState {
    #[inline]
    fn clone(&self) -> JanetListenerState {
        let _: ::core::clone::AssertParamIsClone<JanetListener>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetFiber>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetStream>;
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_void>;
        let _: ::core::clone::AssertParamIsClone<usize>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetListenerState>;
        *self
    }
}
extern "C" {
    /// START SECTION NON-C API
    pub fn janet_struct_head(st: *const JanetKV) -> *mut JanetStructHead;
}
extern "C" {
    pub fn janet_abstract_head(
        abstract_: *const ::libc::c_void,
    ) -> *mut JanetAbstractHead;
}
extern "C" {
    pub fn janet_string_head(s: *const u8) -> *mut JanetStringHead;
}
extern "C" {
    pub fn janet_tuple_head(tuple: *const Janet) -> *mut JanetTupleHead;
}
extern "C" {
    pub fn janet_type(x: Janet) -> JanetType;
}
extern "C" {
    pub fn janet_checktype(x: Janet, type_: JanetType) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_checktypes(x: Janet, typeflags: ::libc::c_int) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_truthy(x: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_unwrap_struct(x: Janet) -> *const JanetKV;
}
extern "C" {
    pub fn janet_unwrap_tuple(x: Janet) -> *const Janet;
}
extern "C" {
    pub fn janet_unwrap_fiber(x: Janet) -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_unwrap_array(x: Janet) -> *mut JanetArray;
}
extern "C" {
    pub fn janet_unwrap_table(x: Janet) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_unwrap_buffer(x: Janet) -> *mut JanetBuffer;
}
extern "C" {
    pub fn janet_unwrap_string(x: Janet) -> *const u8;
}
extern "C" {
    pub fn janet_unwrap_symbol(x: Janet) -> *const u8;
}
extern "C" {
    pub fn janet_unwrap_keyword(x: Janet) -> *const u8;
}
extern "C" {
    pub fn janet_unwrap_abstract(x: Janet) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_unwrap_pointer(x: Janet) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_unwrap_function(x: Janet) -> *mut JanetFunction;
}
extern "C" {
    pub fn janet_unwrap_cfunction(x: Janet) -> JanetCFunction;
}
extern "C" {
    pub fn janet_unwrap_boolean(x: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_unwrap_number(x: Janet) -> f64;
}
extern "C" {
    pub fn janet_unwrap_integer(x: Janet) -> i32;
}
extern "C" {
    pub fn janet_wrap_nil() -> Janet;
}
extern "C" {
    pub fn janet_wrap_number(x: f64) -> Janet;
}
extern "C" {
    pub fn janet_wrap_true() -> Janet;
}
extern "C" {
    pub fn janet_wrap_false() -> Janet;
}
extern "C" {
    pub fn janet_wrap_boolean(x: ::libc::c_int) -> Janet;
}
extern "C" {
    pub fn janet_wrap_string(x: *const u8) -> Janet;
}
extern "C" {
    pub fn janet_wrap_symbol(x: *const u8) -> Janet;
}
extern "C" {
    pub fn janet_wrap_keyword(x: *const u8) -> Janet;
}
extern "C" {
    pub fn janet_wrap_array(x: *mut JanetArray) -> Janet;
}
extern "C" {
    pub fn janet_wrap_tuple(x: *const Janet) -> Janet;
}
extern "C" {
    pub fn janet_wrap_struct(x: *const JanetKV) -> Janet;
}
extern "C" {
    pub fn janet_wrap_fiber(x: *mut JanetFiber) -> Janet;
}
extern "C" {
    pub fn janet_wrap_buffer(x: *mut JanetBuffer) -> Janet;
}
extern "C" {
    pub fn janet_wrap_function(x: *mut JanetFunction) -> Janet;
}
extern "C" {
    pub fn janet_wrap_cfunction(x: JanetCFunction) -> Janet;
}
extern "C" {
    pub fn janet_wrap_table(x: *mut JanetTable) -> Janet;
}
extern "C" {
    pub fn janet_wrap_abstract(x: *mut ::libc::c_void) -> Janet;
}
extern "C" {
    pub fn janet_wrap_pointer(x: *mut ::libc::c_void) -> Janet;
}
extern "C" {
    pub fn janet_wrap_integer(x: i32) -> Janet;
}
extern "C" {
    pub fn janet_checkint(x: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_checkint64(x: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_checkuint64(x: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_checksize(x: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_checkabstract(x: Janet, at: *const JanetAbstractType) -> JanetAbstract;
}
#[repr(C)]
pub struct JanetGCObject {
    pub flags: i32,
    pub data: JanetGCObject__bindgen_ty_1,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetGCObject {}
#[automatically_derived]
impl ::core::clone::Clone for JanetGCObject {
    #[inline]
    fn clone(&self) -> JanetGCObject {
        let _: ::core::clone::AssertParamIsClone<i32>;
        let _: ::core::clone::AssertParamIsClone<JanetGCObject__bindgen_ty_1>;
        *self
    }
}
#[repr(C)]
pub union JanetGCObject__bindgen_ty_1 {
    pub next: *mut JanetGCObject,
    pub refcount: i32,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetGCObject__bindgen_ty_1 {}
#[automatically_derived]
impl ::core::clone::Clone for JanetGCObject__bindgen_ty_1 {
    #[inline]
    fn clone(&self) -> JanetGCObject__bindgen_ty_1 {
        let _: ::core::clone::AssertParamIsCopy<Self>;
        *self
    }
}
#[repr(C)]
pub struct JanetFiber {
    pub gc: JanetGCObject,
    pub flags: i32,
    pub frame: i32,
    pub stackstart: i32,
    pub stacktop: i32,
    pub capacity: i32,
    pub maxstack: i32,
    pub env: *mut JanetTable,
    pub data: *mut Janet,
    pub child: *mut JanetFiber,
    pub last_value: Janet,
    pub waiting: *mut JanetListenerState,
    pub sched_id: u32,
    pub supervisor_channel: *mut ::libc::c_void,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetFiber {}
#[automatically_derived]
impl ::core::clone::Clone for JanetFiber {
    #[inline]
    fn clone(&self) -> JanetFiber {
        let _: ::core::clone::AssertParamIsClone<JanetGCObject>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetTable>;
        let _: ::core::clone::AssertParamIsClone<*mut Janet>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetFiber>;
        let _: ::core::clone::AssertParamIsClone<Janet>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetListenerState>;
        let _: ::core::clone::AssertParamIsClone<u32>;
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_void>;
        *self
    }
}
#[repr(C)]
pub struct JanetStackFrame {
    pub func: *mut JanetFunction,
    pub pc: *mut u32,
    pub env: *mut JanetFuncEnv,
    pub prevframe: i32,
    pub flags: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetStackFrame {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(
            f,
            "JanetStackFrame",
            "func",
            &&self.func,
            "pc",
            &&self.pc,
            "env",
            &&self.env,
            "prevframe",
            &&self.prevframe,
            "flags",
            &&self.flags,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetStackFrame {}
#[automatically_derived]
impl ::core::clone::Clone for JanetStackFrame {
    #[inline]
    fn clone(&self) -> JanetStackFrame {
        let _: ::core::clone::AssertParamIsClone<*mut JanetFunction>;
        let _: ::core::clone::AssertParamIsClone<*mut u32>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetFuncEnv>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetArray {
    pub gc: JanetGCObject,
    pub count: i32,
    pub capacity: i32,
    pub data: *mut Janet,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetArray {}
#[automatically_derived]
impl ::core::clone::Clone for JanetArray {
    #[inline]
    fn clone(&self) -> JanetArray {
        let _: ::core::clone::AssertParamIsClone<JanetGCObject>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        let _: ::core::clone::AssertParamIsClone<*mut Janet>;
        *self
    }
}
#[repr(C)]
pub struct JanetBuffer {
    pub gc: JanetGCObject,
    pub count: i32,
    pub capacity: i32,
    pub data: *mut u8,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetBuffer {}
#[automatically_derived]
impl ::core::clone::Clone for JanetBuffer {
    #[inline]
    fn clone(&self) -> JanetBuffer {
        let _: ::core::clone::AssertParamIsClone<JanetGCObject>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        let _: ::core::clone::AssertParamIsClone<*mut u8>;
        *self
    }
}
#[repr(C)]
pub struct JanetTable {
    pub gc: JanetGCObject,
    pub count: i32,
    pub capacity: i32,
    pub deleted: i32,
    pub data: *mut JanetKV,
    pub proto: *mut JanetTable,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetTable {}
#[automatically_derived]
impl ::core::clone::Clone for JanetTable {
    #[inline]
    fn clone(&self) -> JanetTable {
        let _: ::core::clone::AssertParamIsClone<JanetGCObject>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetKV>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetTable>;
        *self
    }
}
#[repr(C)]
pub struct JanetKV {
    pub key: Janet,
    pub value: Janet,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetKV {}
#[automatically_derived]
impl ::core::clone::Clone for JanetKV {
    #[inline]
    fn clone(&self) -> JanetKV {
        let _: ::core::clone::AssertParamIsClone<Janet>;
        *self
    }
}
#[repr(C)]
pub struct JanetTupleHead {
    pub gc: JanetGCObject,
    pub length: i32,
    pub hash: i32,
    pub sm_line: i32,
    pub sm_column: i32,
    pub data: __IncompleteArrayField<Janet>,
}
#[repr(C)]
pub struct JanetStructHead {
    pub gc: JanetGCObject,
    pub length: i32,
    pub hash: i32,
    pub capacity: i32,
    pub proto: *const JanetKV,
    pub data: __IncompleteArrayField<JanetKV>,
}
#[repr(C)]
pub struct JanetStringHead {
    pub gc: JanetGCObject,
    pub length: i32,
    pub hash: i32,
    pub data: __IncompleteArrayField<u8>,
}
#[repr(C)]
pub struct JanetAbstractHead {
    pub gc: JanetGCObject,
    pub type_: *const JanetAbstractType,
    pub size: usize,
    pub data: __IncompleteArrayField<::libc::c_longlong>,
}
#[repr(C)]
pub struct JanetSourceMapping {
    pub line: i32,
    pub column: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetSourceMapping {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(
            f,
            "JanetSourceMapping",
            "line",
            &&self.line,
            "column",
            &&self.column,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetSourceMapping {}
#[automatically_derived]
impl ::core::clone::Clone for JanetSourceMapping {
    #[inline]
    fn clone(&self) -> JanetSourceMapping {
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetFuncDef {
    pub gc: JanetGCObject,
    pub environments: *mut i32,
    pub constants: *mut Janet,
    pub defs: *mut *mut JanetFuncDef,
    pub bytecode: *mut u32,
    pub closure_bitset: *mut u32,
    pub sourcemap: *mut JanetSourceMapping,
    pub source: JanetString,
    pub name: JanetString,
    pub flags: i32,
    pub slotcount: i32,
    pub arity: i32,
    pub min_arity: i32,
    pub max_arity: i32,
    pub constants_length: i32,
    pub bytecode_length: i32,
    pub environments_length: i32,
    pub defs_length: i32,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetFuncDef {}
#[automatically_derived]
impl ::core::clone::Clone for JanetFuncDef {
    #[inline]
    fn clone(&self) -> JanetFuncDef {
        let _: ::core::clone::AssertParamIsClone<JanetGCObject>;
        let _: ::core::clone::AssertParamIsClone<*mut i32>;
        let _: ::core::clone::AssertParamIsClone<*mut Janet>;
        let _: ::core::clone::AssertParamIsClone<*mut *mut JanetFuncDef>;
        let _: ::core::clone::AssertParamIsClone<*mut u32>;
        let _: ::core::clone::AssertParamIsClone<*mut u32>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetSourceMapping>;
        let _: ::core::clone::AssertParamIsClone<JanetString>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetFuncEnv {
    pub gc: JanetGCObject,
    pub as_: JanetFuncEnv__bindgen_ty_1,
    pub length: i32,
    pub offset: i32,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetFuncEnv {}
#[automatically_derived]
impl ::core::clone::Clone for JanetFuncEnv {
    #[inline]
    fn clone(&self) -> JanetFuncEnv {
        let _: ::core::clone::AssertParamIsClone<JanetGCObject>;
        let _: ::core::clone::AssertParamIsClone<JanetFuncEnv__bindgen_ty_1>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub union JanetFuncEnv__bindgen_ty_1 {
    pub fiber: *mut JanetFiber,
    pub values: *mut Janet,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetFuncEnv__bindgen_ty_1 {}
#[automatically_derived]
impl ::core::clone::Clone for JanetFuncEnv__bindgen_ty_1 {
    #[inline]
    fn clone(&self) -> JanetFuncEnv__bindgen_ty_1 {
        let _: ::core::clone::AssertParamIsCopy<Self>;
        *self
    }
}
#[repr(C)]
pub struct JanetFunction {
    pub gc: JanetGCObject,
    pub def: *mut JanetFuncDef,
    pub envs: __IncompleteArrayField<*mut JanetFuncEnv>,
}
#[repr(C)]
pub struct JanetParseState {
    _unused: [u8; 0],
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetParseState {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field1_finish(
            f,
            "JanetParseState",
            "_unused",
            &&self._unused,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetParseState {}
#[automatically_derived]
impl ::core::clone::Clone for JanetParseState {
    #[inline]
    fn clone(&self) -> JanetParseState {
        let _: ::core::clone::AssertParamIsClone<[u8; 0]>;
        *self
    }
}
pub const JanetParserStatus_JANET_PARSE_ROOT: JanetParserStatus = 0;
pub const JanetParserStatus_JANET_PARSE_ERROR: JanetParserStatus = 1;
pub const JanetParserStatus_JANET_PARSE_PENDING: JanetParserStatus = 2;
pub const JanetParserStatus_JANET_PARSE_DEAD: JanetParserStatus = 3;
pub type JanetParserStatus = ::libc::c_uint;
#[repr(C)]
pub struct JanetParser {
    pub args: *mut Janet,
    pub error: *const ::libc::c_char,
    pub states: *mut JanetParseState,
    pub buf: *mut u8,
    pub argcount: usize,
    pub argcap: usize,
    pub statecount: usize,
    pub statecap: usize,
    pub bufcount: usize,
    pub bufcap: usize,
    pub line: usize,
    pub column: usize,
    pub pending: usize,
    pub lookback: ::libc::c_int,
    pub flag: ::libc::c_int,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetParser {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        let names: &'static _ = &[
            "args",
            "error",
            "states",
            "buf",
            "argcount",
            "argcap",
            "statecount",
            "statecap",
            "bufcount",
            "bufcap",
            "line",
            "column",
            "pending",
            "lookback",
            "flag",
        ];
        let values: &[&dyn ::core::fmt::Debug] = &[
            &&self.args,
            &&self.error,
            &&self.states,
            &&self.buf,
            &&self.argcount,
            &&self.argcap,
            &&self.statecount,
            &&self.statecap,
            &&self.bufcount,
            &&self.bufcap,
            &&self.line,
            &&self.column,
            &&self.pending,
            &&self.lookback,
            &&self.flag,
        ];
        ::core::fmt::Formatter::debug_struct_fields_finish(
            f,
            "JanetParser",
            names,
            values,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetParser {}
#[automatically_derived]
impl ::core::clone::Clone for JanetParser {
    #[inline]
    fn clone(&self) -> JanetParser {
        let _: ::core::clone::AssertParamIsClone<*mut Janet>;
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetParseState>;
        let _: ::core::clone::AssertParamIsClone<*mut u8>;
        let _: ::core::clone::AssertParamIsClone<usize>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        *self
    }
}
#[repr(C)]
pub struct JanetMarshalContext {
    pub m_state: *mut ::libc::c_void,
    pub u_state: *mut ::libc::c_void,
    pub flags: ::libc::c_int,
    pub data: *const u8,
    pub at: *const JanetAbstractType,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetMarshalContext {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(
            f,
            "JanetMarshalContext",
            "m_state",
            &&self.m_state,
            "u_state",
            &&self.u_state,
            "flags",
            &&self.flags,
            "data",
            &&self.data,
            "at",
            &&self.at,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetMarshalContext {}
#[automatically_derived]
impl ::core::clone::Clone for JanetMarshalContext {
    #[inline]
    fn clone(&self) -> JanetMarshalContext {
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_void>;
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_void>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<*const u8>;
        let _: ::core::clone::AssertParamIsClone<*const JanetAbstractType>;
        *self
    }
}
#[repr(C)]
pub struct JanetAbstractType {
    pub name: *const ::libc::c_char,
    pub gc: ::core::option::Option<
        unsafe extern "C" fn(data: *mut ::libc::c_void, len: usize) -> ::libc::c_int,
    >,
    pub gcmark: ::core::option::Option<
        unsafe extern "C" fn(data: *mut ::libc::c_void, len: usize) -> ::libc::c_int,
    >,
    pub get: ::core::option::Option<
        unsafe extern "C" fn(
            data: *mut ::libc::c_void,
            key: Janet,
            out: *mut Janet,
        ) -> ::libc::c_int,
    >,
    pub put: ::core::option::Option<
        unsafe extern "C" fn(data: *mut ::libc::c_void, key: Janet, value: Janet),
    >,
    pub marshal: ::core::option::Option<
        unsafe extern "C" fn(p: *mut ::libc::c_void, ctx: *mut JanetMarshalContext),
    >,
    pub unmarshal: ::core::option::Option<
        unsafe extern "C" fn(ctx: *mut JanetMarshalContext) -> *mut ::libc::c_void,
    >,
    pub tostring: ::core::option::Option<
        unsafe extern "C" fn(p: *mut ::libc::c_void, buffer: *mut JanetBuffer),
    >,
    pub compare: ::core::option::Option<
        unsafe extern "C" fn(
            lhs: *mut ::libc::c_void,
            rhs: *mut ::libc::c_void,
        ) -> ::libc::c_int,
    >,
    pub hash: ::core::option::Option<
        unsafe extern "C" fn(p: *mut ::libc::c_void, len: usize) -> i32,
    >,
    pub next: ::core::option::Option<
        unsafe extern "C" fn(p: *mut ::libc::c_void, key: Janet) -> Janet,
    >,
    pub call: ::core::option::Option<
        unsafe extern "C" fn(
            p: *mut ::libc::c_void,
            argc: i32,
            argv: *mut Janet,
        ) -> Janet,
    >,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetAbstractType {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        let names: &'static _ = &[
            "name",
            "gc",
            "gcmark",
            "get",
            "put",
            "marshal",
            "unmarshal",
            "tostring",
            "compare",
            "hash",
            "next",
            "call",
        ];
        let values: &[&dyn ::core::fmt::Debug] = &[
            &&self.name,
            &&self.gc,
            &&self.gcmark,
            &&self.get,
            &&self.put,
            &&self.marshal,
            &&self.unmarshal,
            &&self.tostring,
            &&self.compare,
            &&self.hash,
            &&self.next,
            &&self.call,
        ];
        ::core::fmt::Formatter::debug_struct_fields_finish(
            f,
            "JanetAbstractType",
            names,
            values,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetAbstractType {}
#[automatically_derived]
impl ::core::clone::Clone for JanetAbstractType {
    #[inline]
    fn clone(&self) -> JanetAbstractType {
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    data: *mut ::libc::c_void,
                    len: usize,
                ) -> ::libc::c_int,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    data: *mut ::libc::c_void,
                    len: usize,
                ) -> ::libc::c_int,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    data: *mut ::libc::c_void,
                    key: Janet,
                    out: *mut Janet,
                ) -> ::libc::c_int,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(data: *mut ::libc::c_void, key: Janet, value: Janet),
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    p: *mut ::libc::c_void,
                    ctx: *mut JanetMarshalContext,
                ),
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    ctx: *mut JanetMarshalContext,
                ) -> *mut ::libc::c_void,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(p: *mut ::libc::c_void, buffer: *mut JanetBuffer),
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    lhs: *mut ::libc::c_void,
                    rhs: *mut ::libc::c_void,
                ) -> ::libc::c_int,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(p: *mut ::libc::c_void, len: usize) -> i32,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(p: *mut ::libc::c_void, key: Janet) -> Janet,
            >,
        >;
        let _: ::core::clone::AssertParamIsClone<
            ::core::option::Option<
                unsafe extern "C" fn(
                    p: *mut ::libc::c_void,
                    argc: i32,
                    argv: *mut Janet,
                ) -> Janet,
            >,
        >;
        *self
    }
}
#[repr(C)]
pub struct JanetReg {
    pub name: *const ::libc::c_char,
    pub cfun: JanetCFunction,
    pub documentation: *const ::libc::c_char,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetReg {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(
            f,
            "JanetReg",
            "name",
            &&self.name,
            "cfun",
            &&self.cfun,
            "documentation",
            &&self.documentation,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetReg {}
#[automatically_derived]
impl ::core::clone::Clone for JanetReg {
    #[inline]
    fn clone(&self) -> JanetReg {
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        let _: ::core::clone::AssertParamIsClone<JanetCFunction>;
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        *self
    }
}
#[repr(C)]
pub struct JanetRegExt {
    pub name: *const ::libc::c_char,
    pub cfun: JanetCFunction,
    pub documentation: *const ::libc::c_char,
    pub source_file: *const ::libc::c_char,
    pub source_line: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetRegExt {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(
            f,
            "JanetRegExt",
            "name",
            &&self.name,
            "cfun",
            &&self.cfun,
            "documentation",
            &&self.documentation,
            "source_file",
            &&self.source_file,
            "source_line",
            &&self.source_line,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetRegExt {}
#[automatically_derived]
impl ::core::clone::Clone for JanetRegExt {
    #[inline]
    fn clone(&self) -> JanetRegExt {
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        let _: ::core::clone::AssertParamIsClone<JanetCFunction>;
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetMethod {
    pub name: *const ::libc::c_char,
    pub cfun: JanetCFunction,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetMethod {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(
            f,
            "JanetMethod",
            "name",
            &&self.name,
            "cfun",
            &&self.cfun,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetMethod {}
#[automatically_derived]
impl ::core::clone::Clone for JanetMethod {
    #[inline]
    fn clone(&self) -> JanetMethod {
        let _: ::core::clone::AssertParamIsClone<*const ::libc::c_char>;
        let _: ::core::clone::AssertParamIsClone<JanetCFunction>;
        *self
    }
}
#[repr(C)]
pub struct JanetView {
    pub items: *const Janet,
    pub len: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetView {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(
            f,
            "JanetView",
            "items",
            &&self.items,
            "len",
            &&self.len,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetView {}
#[automatically_derived]
impl ::core::clone::Clone for JanetView {
    #[inline]
    fn clone(&self) -> JanetView {
        let _: ::core::clone::AssertParamIsClone<*const Janet>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetByteView {
    pub bytes: *const u8,
    pub len: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetByteView {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(
            f,
            "JanetByteView",
            "bytes",
            &&self.bytes,
            "len",
            &&self.len,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetByteView {}
#[automatically_derived]
impl ::core::clone::Clone for JanetByteView {
    #[inline]
    fn clone(&self) -> JanetByteView {
        let _: ::core::clone::AssertParamIsClone<*const u8>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetDictView {
    pub kvs: *const JanetKV,
    pub len: i32,
    pub cap: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetDictView {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(
            f,
            "JanetDictView",
            "kvs",
            &&self.kvs,
            "len",
            &&self.len,
            "cap",
            &&self.cap,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetDictView {}
#[automatically_derived]
impl ::core::clone::Clone for JanetDictView {
    #[inline]
    fn clone(&self) -> JanetDictView {
        let _: ::core::clone::AssertParamIsClone<*const JanetKV>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetRange {
    pub start: i32,
    pub end: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetRange {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(
            f,
            "JanetRange",
            "start",
            &&self.start,
            "end",
            &&self.end,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetRange {}
#[automatically_derived]
impl ::core::clone::Clone for JanetRange {
    #[inline]
    fn clone(&self) -> JanetRange {
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetRNG {
    pub a: u32,
    pub b: u32,
    pub c: u32,
    pub d: u32,
    pub counter: u32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetRNG {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(
            f,
            "JanetRNG",
            "a",
            &&self.a,
            "b",
            &&self.b,
            "c",
            &&self.c,
            "d",
            &&self.d,
            "counter",
            &&self.counter,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetRNG {}
#[automatically_derived]
impl ::core::clone::Clone for JanetRNG {
    #[inline]
    fn clone(&self) -> JanetRNG {
        let _: ::core::clone::AssertParamIsClone<u32>;
        *self
    }
}
#[repr(C)]
pub struct JanetFile {
    pub file: *mut FILE,
    pub flags: i32,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetFile {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(
            f,
            "JanetFile",
            "file",
            &&self.file,
            "flags",
            &&self.flags,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetFile {}
#[automatically_derived]
impl ::core::clone::Clone for JanetFile {
    #[inline]
    fn clone(&self) -> JanetFile {
        let _: ::core::clone::AssertParamIsClone<*mut FILE>;
        let _: ::core::clone::AssertParamIsClone<i32>;
        *self
    }
}
#[repr(C)]
pub struct JanetTryState {
    pub stackn: i32,
    pub gc_handle: ::libc::c_int,
    pub vm_fiber: *mut JanetFiber,
    pub vm_jmp_buf: *mut jmp_buf,
    pub vm_return_reg: *mut Janet,
    pub buf: jmp_buf,
    pub payload: Janet,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetTryState {}
#[automatically_derived]
impl ::core::clone::Clone for JanetTryState {
    #[inline]
    fn clone(&self) -> JanetTryState {
        let _: ::core::clone::AssertParamIsClone<i32>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetFiber>;
        let _: ::core::clone::AssertParamIsClone<*mut jmp_buf>;
        let _: ::core::clone::AssertParamIsClone<*mut Janet>;
        let _: ::core::clone::AssertParamIsClone<jmp_buf>;
        let _: ::core::clone::AssertParamIsClone<Janet>;
        *self
    }
}
pub const JanetOpArgType_JANET_OAT_SLOT: JanetOpArgType = 0;
pub const JanetOpArgType_JANET_OAT_ENVIRONMENT: JanetOpArgType = 1;
pub const JanetOpArgType_JANET_OAT_CONSTANT: JanetOpArgType = 2;
pub const JanetOpArgType_JANET_OAT_INTEGER: JanetOpArgType = 3;
pub const JanetOpArgType_JANET_OAT_TYPE: JanetOpArgType = 4;
pub const JanetOpArgType_JANET_OAT_SIMPLETYPE: JanetOpArgType = 5;
pub const JanetOpArgType_JANET_OAT_LABEL: JanetOpArgType = 6;
pub const JanetOpArgType_JANET_OAT_FUNCDEF: JanetOpArgType = 7;
/// START SECTION OPCODES
pub type JanetOpArgType = ::libc::c_uint;
pub const JanetInstructionType_JINT_0: JanetInstructionType = 0;
pub const JanetInstructionType_JINT_S: JanetInstructionType = 1;
pub const JanetInstructionType_JINT_L: JanetInstructionType = 2;
pub const JanetInstructionType_JINT_SS: JanetInstructionType = 3;
pub const JanetInstructionType_JINT_SL: JanetInstructionType = 4;
pub const JanetInstructionType_JINT_ST: JanetInstructionType = 5;
pub const JanetInstructionType_JINT_SI: JanetInstructionType = 6;
pub const JanetInstructionType_JINT_SD: JanetInstructionType = 7;
pub const JanetInstructionType_JINT_SU: JanetInstructionType = 8;
pub const JanetInstructionType_JINT_SSS: JanetInstructionType = 9;
pub const JanetInstructionType_JINT_SSI: JanetInstructionType = 10;
pub const JanetInstructionType_JINT_SSU: JanetInstructionType = 11;
pub const JanetInstructionType_JINT_SES: JanetInstructionType = 12;
pub const JanetInstructionType_JINT_SC: JanetInstructionType = 13;
pub type JanetInstructionType = ::libc::c_uint;
pub const JanetOpCode_JOP_NOOP: JanetOpCode = 0;
pub const JanetOpCode_JOP_ERROR: JanetOpCode = 1;
pub const JanetOpCode_JOP_TYPECHECK: JanetOpCode = 2;
pub const JanetOpCode_JOP_RETURN: JanetOpCode = 3;
pub const JanetOpCode_JOP_RETURN_NIL: JanetOpCode = 4;
pub const JanetOpCode_JOP_ADD_IMMEDIATE: JanetOpCode = 5;
pub const JanetOpCode_JOP_ADD: JanetOpCode = 6;
pub const JanetOpCode_JOP_SUBTRACT: JanetOpCode = 7;
pub const JanetOpCode_JOP_MULTIPLY_IMMEDIATE: JanetOpCode = 8;
pub const JanetOpCode_JOP_MULTIPLY: JanetOpCode = 9;
pub const JanetOpCode_JOP_DIVIDE_IMMEDIATE: JanetOpCode = 10;
pub const JanetOpCode_JOP_DIVIDE: JanetOpCode = 11;
pub const JanetOpCode_JOP_MODULO: JanetOpCode = 12;
pub const JanetOpCode_JOP_REMAINDER: JanetOpCode = 13;
pub const JanetOpCode_JOP_BAND: JanetOpCode = 14;
pub const JanetOpCode_JOP_BOR: JanetOpCode = 15;
pub const JanetOpCode_JOP_BXOR: JanetOpCode = 16;
pub const JanetOpCode_JOP_BNOT: JanetOpCode = 17;
pub const JanetOpCode_JOP_SHIFT_LEFT: JanetOpCode = 18;
pub const JanetOpCode_JOP_SHIFT_LEFT_IMMEDIATE: JanetOpCode = 19;
pub const JanetOpCode_JOP_SHIFT_RIGHT: JanetOpCode = 20;
pub const JanetOpCode_JOP_SHIFT_RIGHT_IMMEDIATE: JanetOpCode = 21;
pub const JanetOpCode_JOP_SHIFT_RIGHT_UNSIGNED: JanetOpCode = 22;
pub const JanetOpCode_JOP_SHIFT_RIGHT_UNSIGNED_IMMEDIATE: JanetOpCode = 23;
pub const JanetOpCode_JOP_MOVE_FAR: JanetOpCode = 24;
pub const JanetOpCode_JOP_MOVE_NEAR: JanetOpCode = 25;
pub const JanetOpCode_JOP_JUMP: JanetOpCode = 26;
pub const JanetOpCode_JOP_JUMP_IF: JanetOpCode = 27;
pub const JanetOpCode_JOP_JUMP_IF_NOT: JanetOpCode = 28;
pub const JanetOpCode_JOP_JUMP_IF_NIL: JanetOpCode = 29;
pub const JanetOpCode_JOP_JUMP_IF_NOT_NIL: JanetOpCode = 30;
pub const JanetOpCode_JOP_GREATER_THAN: JanetOpCode = 31;
pub const JanetOpCode_JOP_GREATER_THAN_IMMEDIATE: JanetOpCode = 32;
pub const JanetOpCode_JOP_LESS_THAN: JanetOpCode = 33;
pub const JanetOpCode_JOP_LESS_THAN_IMMEDIATE: JanetOpCode = 34;
pub const JanetOpCode_JOP_EQUALS: JanetOpCode = 35;
pub const JanetOpCode_JOP_EQUALS_IMMEDIATE: JanetOpCode = 36;
pub const JanetOpCode_JOP_COMPARE: JanetOpCode = 37;
pub const JanetOpCode_JOP_LOAD_NIL: JanetOpCode = 38;
pub const JanetOpCode_JOP_LOAD_TRUE: JanetOpCode = 39;
pub const JanetOpCode_JOP_LOAD_FALSE: JanetOpCode = 40;
pub const JanetOpCode_JOP_LOAD_INTEGER: JanetOpCode = 41;
pub const JanetOpCode_JOP_LOAD_CONSTANT: JanetOpCode = 42;
pub const JanetOpCode_JOP_LOAD_UPVALUE: JanetOpCode = 43;
pub const JanetOpCode_JOP_LOAD_SELF: JanetOpCode = 44;
pub const JanetOpCode_JOP_SET_UPVALUE: JanetOpCode = 45;
pub const JanetOpCode_JOP_CLOSURE: JanetOpCode = 46;
pub const JanetOpCode_JOP_PUSH: JanetOpCode = 47;
pub const JanetOpCode_JOP_PUSH_2: JanetOpCode = 48;
pub const JanetOpCode_JOP_PUSH_3: JanetOpCode = 49;
pub const JanetOpCode_JOP_PUSH_ARRAY: JanetOpCode = 50;
pub const JanetOpCode_JOP_CALL: JanetOpCode = 51;
pub const JanetOpCode_JOP_TAILCALL: JanetOpCode = 52;
pub const JanetOpCode_JOP_RESUME: JanetOpCode = 53;
pub const JanetOpCode_JOP_SIGNAL: JanetOpCode = 54;
pub const JanetOpCode_JOP_PROPAGATE: JanetOpCode = 55;
pub const JanetOpCode_JOP_IN: JanetOpCode = 56;
pub const JanetOpCode_JOP_GET: JanetOpCode = 57;
pub const JanetOpCode_JOP_PUT: JanetOpCode = 58;
pub const JanetOpCode_JOP_GET_INDEX: JanetOpCode = 59;
pub const JanetOpCode_JOP_PUT_INDEX: JanetOpCode = 60;
pub const JanetOpCode_JOP_LENGTH: JanetOpCode = 61;
pub const JanetOpCode_JOP_MAKE_ARRAY: JanetOpCode = 62;
pub const JanetOpCode_JOP_MAKE_BUFFER: JanetOpCode = 63;
pub const JanetOpCode_JOP_MAKE_STRING: JanetOpCode = 64;
pub const JanetOpCode_JOP_MAKE_STRUCT: JanetOpCode = 65;
pub const JanetOpCode_JOP_MAKE_TABLE: JanetOpCode = 66;
pub const JanetOpCode_JOP_MAKE_TUPLE: JanetOpCode = 67;
pub const JanetOpCode_JOP_MAKE_BRACKET_TUPLE: JanetOpCode = 68;
pub const JanetOpCode_JOP_GREATER_THAN_EQUAL: JanetOpCode = 69;
pub const JanetOpCode_JOP_LESS_THAN_EQUAL: JanetOpCode = 70;
pub const JanetOpCode_JOP_NEXT: JanetOpCode = 71;
pub const JanetOpCode_JOP_NOT_EQUALS: JanetOpCode = 72;
pub const JanetOpCode_JOP_NOT_EQUALS_IMMEDIATE: JanetOpCode = 73;
pub const JanetOpCode_JOP_CANCEL: JanetOpCode = 74;
pub const JanetOpCode_JOP_INSTRUCTION_COUNT: JanetOpCode = 75;
pub type JanetOpCode = ::libc::c_uint;
extern "C" {
    pub static mut janet_instructions: [JanetInstructionType; 75usize];
}
extern "C" {
    pub static janet_stream_type: JanetAbstractType;
}
extern "C" {
    pub static janet_channel_type: JanetAbstractType;
}
extern "C" {
    pub fn janet_loop();
}
extern "C" {
    pub fn janet_loop_done() -> ::libc::c_int;
}
extern "C" {
    pub fn janet_loop1() -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_loop1_interrupt(vm: *mut JanetVM);
}
extern "C" {
    pub fn janet_stream(
        handle: JanetHandle,
        flags: u32,
        methods: *const JanetMethod,
    ) -> *mut JanetStream;
}
extern "C" {
    pub fn janet_stream_close(stream: *mut JanetStream);
}
extern "C" {
    pub fn janet_cfun_stream_close(argc: i32, argv: *mut Janet) -> Janet;
}
extern "C" {
    pub fn janet_cfun_stream_read(argc: i32, argv: *mut Janet) -> Janet;
}
extern "C" {
    pub fn janet_cfun_stream_chunk(argc: i32, argv: *mut Janet) -> Janet;
}
extern "C" {
    pub fn janet_cfun_stream_write(argc: i32, argv: *mut Janet) -> Janet;
}
extern "C" {
    pub fn janet_stream_flags(stream: *mut JanetStream, flags: u32);
}
extern "C" {
    pub fn janet_schedule(fiber: *mut JanetFiber, value: Janet);
}
extern "C" {
    pub fn janet_cancel(fiber: *mut JanetFiber, value: Janet);
}
extern "C" {
    pub fn janet_schedule_signal(fiber: *mut JanetFiber, value: Janet, sig: JanetSignal);
}
extern "C" {
    pub fn janet_listen(
        stream: *mut JanetStream,
        behavior: JanetListener,
        mask: ::libc::c_int,
        size: usize,
        user: *mut ::libc::c_void,
    ) -> *mut JanetListenerState;
}
extern "C" {
    pub fn janet_await() -> !;
}
extern "C" {
    pub fn janet_sleep_await(sec: f64) -> !;
}
extern "C" {
    pub fn janet_addtimeout(sec: f64);
}
extern "C" {
    pub fn janet_ev_inc_refcount();
}
extern "C" {
    pub fn janet_ev_dec_refcount();
}
extern "C" {
    pub fn janet_abstract_begin_threaded(
        atype: *const JanetAbstractType,
        size: usize,
    ) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_abstract_end_threaded(x: *mut ::libc::c_void) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_abstract_threaded(
        atype: *const JanetAbstractType,
        size: usize,
    ) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_abstract_incref(abst: *mut ::libc::c_void) -> i32;
}
extern "C" {
    pub fn janet_abstract_decref(abst: *mut ::libc::c_void) -> i32;
}
extern "C" {
    pub fn janet_os_mutex_size() -> usize;
}
extern "C" {
    pub fn janet_os_rwlock_size() -> usize;
}
extern "C" {
    pub fn janet_os_mutex_init(mutex: *mut JanetOSMutex);
}
extern "C" {
    pub fn janet_os_mutex_deinit(mutex: *mut JanetOSMutex);
}
extern "C" {
    pub fn janet_os_mutex_lock(mutex: *mut JanetOSMutex);
}
extern "C" {
    pub fn janet_os_mutex_unlock(mutex: *mut JanetOSMutex);
}
extern "C" {
    pub fn janet_os_rwlock_init(rwlock: *mut JanetOSRWLock);
}
extern "C" {
    pub fn janet_os_rwlock_deinit(rwlock: *mut JanetOSRWLock);
}
extern "C" {
    pub fn janet_os_rwlock_rlock(rwlock: *mut JanetOSRWLock);
}
extern "C" {
    pub fn janet_os_rwlock_wlock(rwlock: *mut JanetOSRWLock);
}
extern "C" {
    pub fn janet_os_rwlock_runlock(rwlock: *mut JanetOSRWLock);
}
extern "C" {
    pub fn janet_os_rwlock_wunlock(rwlock: *mut JanetOSRWLock);
}
extern "C" {
    pub fn janet_ev_lasterr() -> Janet;
}
#[repr(C)]
pub struct JanetEVGenericMessage {
    pub tag: ::libc::c_int,
    pub argi: ::libc::c_int,
    pub argp: *mut ::libc::c_void,
    pub argj: Janet,
    pub fiber: *mut JanetFiber,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetEVGenericMessage {}
#[automatically_derived]
impl ::core::clone::Clone for JanetEVGenericMessage {
    #[inline]
    fn clone(&self) -> JanetEVGenericMessage {
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        let _: ::core::clone::AssertParamIsClone<*mut ::libc::c_void>;
        let _: ::core::clone::AssertParamIsClone<Janet>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetFiber>;
        *self
    }
}
pub type JanetThreadedSubroutine = ::core::option::Option<
    unsafe extern "C" fn(arguments: JanetEVGenericMessage) -> JanetEVGenericMessage,
>;
pub type JanetCallback = ::core::option::Option<
    unsafe extern "C" fn(return_value: JanetEVGenericMessage),
>;
pub type JanetThreadedCallback = ::core::option::Option<
    unsafe extern "C" fn(return_value: JanetEVGenericMessage),
>;
extern "C" {
    pub fn janet_ev_threaded_call(
        fp: JanetThreadedSubroutine,
        arguments: JanetEVGenericMessage,
        cb: JanetThreadedCallback,
    );
}
extern "C" {
    pub fn janet_ev_threaded_await(
        fp: JanetThreadedSubroutine,
        tag: ::libc::c_int,
        argi: ::libc::c_int,
        argp: *mut ::libc::c_void,
    ) -> !;
}
extern "C" {
    pub fn janet_ev_post_event(
        vm: *mut JanetVM,
        cb: JanetCallback,
        msg: JanetEVGenericMessage,
    );
}
extern "C" {
    pub fn janet_ev_default_threaded_callback(return_value: JanetEVGenericMessage);
}
extern "C" {
    pub fn janet_ev_read(stream: *mut JanetStream, buf: *mut JanetBuffer, nbytes: i32);
}
extern "C" {
    pub fn janet_ev_readchunk(
        stream: *mut JanetStream,
        buf: *mut JanetBuffer,
        nbytes: i32,
    );
}
extern "C" {
    pub fn janet_ev_recv(
        stream: *mut JanetStream,
        buf: *mut JanetBuffer,
        nbytes: i32,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_ev_recvchunk(
        stream: *mut JanetStream,
        buf: *mut JanetBuffer,
        nbytes: i32,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_ev_recvfrom(
        stream: *mut JanetStream,
        buf: *mut JanetBuffer,
        nbytes: i32,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_ev_write_buffer(stream: *mut JanetStream, buf: *mut JanetBuffer);
}
extern "C" {
    pub fn janet_ev_write_string(stream: *mut JanetStream, str_: JanetString);
}
extern "C" {
    pub fn janet_ev_send_buffer(
        stream: *mut JanetStream,
        buf: *mut JanetBuffer,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_ev_send_string(
        stream: *mut JanetStream,
        str_: JanetString,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_ev_sendto_buffer(
        stream: *mut JanetStream,
        buf: *mut JanetBuffer,
        dest: *mut ::libc::c_void,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_ev_sendto_string(
        stream: *mut JanetStream,
        str_: JanetString,
        dest: *mut ::libc::c_void,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub static janet_parser_type: JanetAbstractType;
}
extern "C" {
    pub fn janet_parser_init(parser: *mut JanetParser);
}
extern "C" {
    pub fn janet_parser_deinit(parser: *mut JanetParser);
}
extern "C" {
    pub fn janet_parser_consume(parser: *mut JanetParser, c: u8);
}
extern "C" {
    pub fn janet_parser_status(parser: *mut JanetParser) -> JanetParserStatus;
}
extern "C" {
    pub fn janet_parser_produce(parser: *mut JanetParser) -> Janet;
}
extern "C" {
    pub fn janet_parser_produce_wrapped(parser: *mut JanetParser) -> Janet;
}
extern "C" {
    pub fn janet_parser_error(parser: *mut JanetParser) -> *const ::libc::c_char;
}
extern "C" {
    pub fn janet_parser_flush(parser: *mut JanetParser);
}
extern "C" {
    pub fn janet_parser_eof(parser: *mut JanetParser);
}
extern "C" {
    pub fn janet_parser_has_more(parser: *mut JanetParser) -> ::libc::c_int;
}
pub const JanetAssembleStatus_JANET_ASSEMBLE_OK: JanetAssembleStatus = 0;
pub const JanetAssembleStatus_JANET_ASSEMBLE_ERROR: JanetAssembleStatus = 1;
pub type JanetAssembleStatus = ::libc::c_uint;
#[repr(C)]
pub struct JanetAssembleResult {
    pub funcdef: *mut JanetFuncDef,
    pub error: JanetString,
    pub status: JanetAssembleStatus,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetAssembleResult {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(
            f,
            "JanetAssembleResult",
            "funcdef",
            &&self.funcdef,
            "error",
            &&self.error,
            "status",
            &&self.status,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetAssembleResult {}
#[automatically_derived]
impl ::core::clone::Clone for JanetAssembleResult {
    #[inline]
    fn clone(&self) -> JanetAssembleResult {
        let _: ::core::clone::AssertParamIsClone<*mut JanetFuncDef>;
        let _: ::core::clone::AssertParamIsClone<JanetString>;
        let _: ::core::clone::AssertParamIsClone<JanetAssembleStatus>;
        *self
    }
}
extern "C" {
    pub fn janet_asm(source: Janet, flags: ::libc::c_int) -> JanetAssembleResult;
}
extern "C" {
    pub fn janet_disasm(def: *mut JanetFuncDef) -> Janet;
}
extern "C" {
    pub fn janet_asm_decode_instruction(instr: u32) -> Janet;
}
pub const JanetCompileStatus_JANET_COMPILE_OK: JanetCompileStatus = 0;
pub const JanetCompileStatus_JANET_COMPILE_ERROR: JanetCompileStatus = 1;
pub type JanetCompileStatus = ::libc::c_uint;
#[repr(C)]
pub struct JanetCompileResult {
    pub funcdef: *mut JanetFuncDef,
    pub error: JanetString,
    pub macrofiber: *mut JanetFiber,
    pub error_mapping: JanetSourceMapping,
    pub status: JanetCompileStatus,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetCompileResult {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(
            f,
            "JanetCompileResult",
            "funcdef",
            &&self.funcdef,
            "error",
            &&self.error,
            "macrofiber",
            &&self.macrofiber,
            "error_mapping",
            &&self.error_mapping,
            "status",
            &&self.status,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetCompileResult {}
#[automatically_derived]
impl ::core::clone::Clone for JanetCompileResult {
    #[inline]
    fn clone(&self) -> JanetCompileResult {
        let _: ::core::clone::AssertParamIsClone<*mut JanetFuncDef>;
        let _: ::core::clone::AssertParamIsClone<JanetString>;
        let _: ::core::clone::AssertParamIsClone<*mut JanetFiber>;
        let _: ::core::clone::AssertParamIsClone<JanetSourceMapping>;
        let _: ::core::clone::AssertParamIsClone<JanetCompileStatus>;
        *self
    }
}
extern "C" {
    pub fn janet_compile(
        source: Janet,
        env: *mut JanetTable,
        where_: JanetString,
    ) -> JanetCompileResult;
}
extern "C" {
    pub fn janet_compile_lint(
        source: Janet,
        env: *mut JanetTable,
        where_: JanetString,
        lints: *mut JanetArray,
    ) -> JanetCompileResult;
}
extern "C" {
    pub fn janet_core_env(replacements: *mut JanetTable) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_core_lookup_table(replacements: *mut JanetTable) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_dobytes(
        env: *mut JanetTable,
        bytes: *const u8,
        len: i32,
        sourcePath: *const ::libc::c_char,
        out: *mut Janet,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_dostring(
        env: *mut JanetTable,
        str_: *const ::libc::c_char,
        sourcePath: *const ::libc::c_char,
        out: *mut Janet,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_loop_fiber(fiber: *mut JanetFiber) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_scan_number(str_: *const u8, len: i32, out: *mut f64) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_scan_number_base(
        str_: *const u8,
        len: i32,
        base: i32,
        out: *mut f64,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_scan_int64(str_: *const u8, len: i32, out: *mut i64) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_scan_uint64(str_: *const u8, len: i32, out: *mut u64) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_debug_break(def: *mut JanetFuncDef, pc: i32);
}
extern "C" {
    pub fn janet_debug_unbreak(def: *mut JanetFuncDef, pc: i32);
}
extern "C" {
    pub fn janet_debug_find(
        def_out: *mut *mut JanetFuncDef,
        pc_out: *mut i32,
        source: JanetString,
        line: i32,
        column: i32,
    );
}
extern "C" {
    pub static janet_rng_type: JanetAbstractType;
}
extern "C" {
    pub fn janet_default_rng() -> *mut JanetRNG;
}
extern "C" {
    pub fn janet_rng_seed(rng: *mut JanetRNG, seed: u32);
}
extern "C" {
    pub fn janet_rng_longseed(rng: *mut JanetRNG, bytes: *const u8, len: i32);
}
extern "C" {
    pub fn janet_rng_u32(rng: *mut JanetRNG) -> u32;
}
extern "C" {
    pub fn janet_rng_double(rng: *mut JanetRNG) -> f64;
}
extern "C" {
    pub fn janet_array(capacity: i32) -> *mut JanetArray;
}
extern "C" {
    pub fn janet_array_n(elements: *const Janet, n: i32) -> *mut JanetArray;
}
extern "C" {
    pub fn janet_array_ensure(array: *mut JanetArray, capacity: i32, growth: i32);
}
extern "C" {
    pub fn janet_array_setcount(array: *mut JanetArray, count: i32);
}
extern "C" {
    pub fn janet_array_push(array: *mut JanetArray, x: Janet);
}
extern "C" {
    pub fn janet_array_pop(array: *mut JanetArray) -> Janet;
}
extern "C" {
    pub fn janet_array_peek(array: *mut JanetArray) -> Janet;
}
extern "C" {
    pub fn janet_buffer(capacity: i32) -> *mut JanetBuffer;
}
extern "C" {
    pub fn janet_buffer_init(
        buffer: *mut JanetBuffer,
        capacity: i32,
    ) -> *mut JanetBuffer;
}
extern "C" {
    pub fn janet_buffer_deinit(buffer: *mut JanetBuffer);
}
extern "C" {
    pub fn janet_buffer_ensure(buffer: *mut JanetBuffer, capacity: i32, growth: i32);
}
extern "C" {
    pub fn janet_buffer_setcount(buffer: *mut JanetBuffer, count: i32);
}
extern "C" {
    pub fn janet_buffer_extra(buffer: *mut JanetBuffer, n: i32);
}
extern "C" {
    pub fn janet_buffer_push_bytes(
        buffer: *mut JanetBuffer,
        string: *const u8,
        len: i32,
    );
}
extern "C" {
    pub fn janet_buffer_push_string(buffer: *mut JanetBuffer, string: JanetString);
}
extern "C" {
    pub fn janet_buffer_push_cstring(
        buffer: *mut JanetBuffer,
        cstring: *const ::libc::c_char,
    );
}
extern "C" {
    pub fn janet_buffer_push_u8(buffer: *mut JanetBuffer, x: u8);
}
extern "C" {
    pub fn janet_buffer_push_u16(buffer: *mut JanetBuffer, x: u16);
}
extern "C" {
    pub fn janet_buffer_push_u32(buffer: *mut JanetBuffer, x: u32);
}
extern "C" {
    pub fn janet_buffer_push_u64(buffer: *mut JanetBuffer, x: u64);
}
extern "C" {
    pub fn janet_tuple_begin(length: i32) -> *mut Janet;
}
extern "C" {
    pub fn janet_tuple_end(tuple: *mut Janet) -> JanetTuple;
}
extern "C" {
    pub fn janet_tuple_n(values: *const Janet, n: i32) -> JanetTuple;
}
extern "C" {
    pub fn janet_string_begin(length: i32) -> *mut u8;
}
extern "C" {
    pub fn janet_string_end(str_: *mut u8) -> JanetString;
}
extern "C" {
    pub fn janet_string(buf: *const u8, len: i32) -> JanetString;
}
extern "C" {
    pub fn janet_cstring(cstring: *const ::libc::c_char) -> JanetString;
}
extern "C" {
    pub fn janet_string_compare(lhs: JanetString, rhs: JanetString) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_string_equal(lhs: JanetString, rhs: JanetString) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_string_equalconst(
        lhs: JanetString,
        rhs: *const u8,
        rlen: i32,
        rhash: i32,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_description(x: Janet) -> JanetString;
}
extern "C" {
    pub fn janet_to_string(x: Janet) -> JanetString;
}
extern "C" {
    pub fn janet_to_string_b(buffer: *mut JanetBuffer, x: Janet);
}
extern "C" {
    pub fn janet_description_b(buffer: *mut JanetBuffer, x: Janet);
}
extern "C" {
    pub fn janet_formatc(format: *const ::libc::c_char, ...) -> JanetString;
}
extern "C" {
    pub fn janet_formatb(
        bufp: *mut JanetBuffer,
        format: *const ::libc::c_char,
        ...
    ) -> *mut JanetBuffer;
}
extern "C" {
    pub fn janet_formatbv(
        bufp: *mut JanetBuffer,
        format: *const ::libc::c_char,
        args: va_list,
    );
}
extern "C" {
    pub fn janet_symbol(str_: *const u8, len: i32) -> JanetSymbol;
}
extern "C" {
    pub fn janet_csymbol(str_: *const ::libc::c_char) -> JanetSymbol;
}
extern "C" {
    pub fn janet_symbol_gen() -> JanetSymbol;
}
extern "C" {
    pub fn janet_struct_begin(count: i32) -> *mut JanetKV;
}
extern "C" {
    pub fn janet_struct_put(st: *mut JanetKV, key: Janet, value: Janet);
}
extern "C" {
    pub fn janet_struct_end(st: *mut JanetKV) -> JanetStruct;
}
extern "C" {
    pub fn janet_struct_get(st: JanetStruct, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_struct_rawget(st: JanetStruct, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_struct_get_ex(
        st: JanetStruct,
        key: Janet,
        which: *mut JanetStruct,
    ) -> Janet;
}
extern "C" {
    pub fn janet_struct_to_table(st: JanetStruct) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_struct_find(st: JanetStruct, key: Janet) -> *const JanetKV;
}
extern "C" {
    pub fn janet_table(capacity: i32) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_table_init(table: *mut JanetTable, capacity: i32) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_table_init_raw(
        table: *mut JanetTable,
        capacity: i32,
    ) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_table_deinit(table: *mut JanetTable);
}
extern "C" {
    pub fn janet_table_get(t: *mut JanetTable, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_table_get_ex(
        t: *mut JanetTable,
        key: Janet,
        which: *mut *mut JanetTable,
    ) -> Janet;
}
extern "C" {
    pub fn janet_table_rawget(t: *mut JanetTable, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_table_remove(t: *mut JanetTable, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_table_put(t: *mut JanetTable, key: Janet, value: Janet);
}
extern "C" {
    pub fn janet_table_to_struct(t: *mut JanetTable) -> JanetStruct;
}
extern "C" {
    pub fn janet_table_merge_table(table: *mut JanetTable, other: *mut JanetTable);
}
extern "C" {
    pub fn janet_table_merge_struct(table: *mut JanetTable, other: JanetStruct);
}
extern "C" {
    pub fn janet_table_find(t: *mut JanetTable, key: Janet) -> *mut JanetKV;
}
extern "C" {
    pub fn janet_table_clone(table: *mut JanetTable) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_table_clear(table: *mut JanetTable);
}
extern "C" {
    pub fn janet_fiber(
        callee: *mut JanetFunction,
        capacity: i32,
        argc: i32,
        argv: *const Janet,
    ) -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_fiber_reset(
        fiber: *mut JanetFiber,
        callee: *mut JanetFunction,
        argc: i32,
        argv: *const Janet,
    ) -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_fiber_status(fiber: *mut JanetFiber) -> JanetFiberStatus;
}
extern "C" {
    pub fn janet_current_fiber() -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_root_fiber() -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_indexed_view(
        seq: Janet,
        data: *mut *const Janet,
        len: *mut i32,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_bytes_view(
        str_: Janet,
        data: *mut *const u8,
        len: *mut i32,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_dictionary_view(
        tab: Janet,
        data: *mut *const JanetKV,
        len: *mut i32,
        cap: *mut i32,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_dictionary_get(data: *const JanetKV, cap: i32, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_dictionary_next(
        kvs: *const JanetKV,
        cap: i32,
        kv: *const JanetKV,
    ) -> *const JanetKV;
}
extern "C" {
    pub fn janet_abstract_begin(
        type_: *const JanetAbstractType,
        size: usize,
    ) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_abstract_end(abstractTemplate: *mut ::libc::c_void) -> JanetAbstract;
}
extern "C" {
    pub fn janet_abstract(type_: *const JanetAbstractType, size: usize) -> JanetAbstract;
}
pub type JanetModule = ::core::option::Option<
    unsafe extern "C" fn(arg1: *mut JanetTable),
>;
pub type JanetModconf = ::core::option::Option<
    unsafe extern "C" fn() -> JanetBuildConfig,
>;
extern "C" {
    pub fn janet_native(
        name: *const ::libc::c_char,
        error: *mut JanetString,
    ) -> JanetModule;
}
extern "C" {
    pub fn janet_marshal(
        buf: *mut JanetBuffer,
        x: Janet,
        rreg: *mut JanetTable,
        flags: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_unmarshal(
        bytes: *const u8,
        len: usize,
        flags: ::libc::c_int,
        reg: *mut JanetTable,
        next: *mut *const u8,
    ) -> Janet;
}
extern "C" {
    pub fn janet_env_lookup(env: *mut JanetTable) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_env_lookup_into(
        renv: *mut JanetTable,
        env: *mut JanetTable,
        prefix: *const ::libc::c_char,
        recurse: ::libc::c_int,
    );
}
extern "C" {
    pub fn janet_mark(x: Janet);
}
extern "C" {
    pub fn janet_sweep();
}
extern "C" {
    pub fn janet_collect();
}
extern "C" {
    pub fn janet_clear_memory();
}
extern "C" {
    pub fn janet_gcroot(root: Janet);
}
extern "C" {
    pub fn janet_gcunroot(root: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_gcunrootall(root: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_gclock() -> ::libc::c_int;
}
extern "C" {
    pub fn janet_gcunlock(handle: ::libc::c_int);
}
extern "C" {
    pub fn janet_gcpressure(s: usize);
}
extern "C" {
    pub fn janet_funcdef_alloc() -> *mut JanetFuncDef;
}
extern "C" {
    pub fn janet_thunk(def: *mut JanetFuncDef) -> *mut JanetFunction;
}
extern "C" {
    pub fn janet_verify(def: *mut JanetFuncDef) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_pretty(
        buffer: *mut JanetBuffer,
        depth: ::libc::c_int,
        flags: ::libc::c_int,
        x: Janet,
    ) -> *mut JanetBuffer;
}
extern "C" {
    pub fn janet_try_init(state: *mut JanetTryState);
}
extern "C" {
    pub fn janet_restore(state: *mut JanetTryState);
}
extern "C" {
    pub fn janet_equals(x: Janet, y: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_hash(x: Janet) -> i32;
}
extern "C" {
    pub fn janet_compare(x: Janet, y: Janet) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_cstrcmp(
        str_: JanetString,
        other: *const ::libc::c_char,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_in(ds: Janet, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_get(ds: Janet, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_next(ds: Janet, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_getindex(ds: Janet, index: i32) -> Janet;
}
extern "C" {
    pub fn janet_length(x: Janet) -> i32;
}
extern "C" {
    pub fn janet_lengthv(x: Janet) -> Janet;
}
extern "C" {
    pub fn janet_put(ds: Janet, key: Janet, value: Janet);
}
extern "C" {
    pub fn janet_putindex(ds: Janet, index: i32, value: Janet);
}
extern "C" {
    pub fn janet_wrap_number_safe(x: f64) -> Janet;
}
extern "C" {
    pub fn janet_keyeq(x: Janet, cstring: *const ::libc::c_char) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_streq(x: Janet, cstring: *const ::libc::c_char) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_symeq(x: Janet, cstring: *const ::libc::c_char) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_sorted_keys(
        dict: *const JanetKV,
        cap: i32,
        index_buffer: *mut i32,
    ) -> i32;
}
extern "C" {
    pub fn janet_init() -> ::libc::c_int;
}
extern "C" {
    pub fn janet_deinit();
}
extern "C" {
    pub fn janet_vm_alloc() -> *mut JanetVM;
}
extern "C" {
    pub fn janet_local_vm() -> *mut JanetVM;
}
extern "C" {
    pub fn janet_vm_free(vm: *mut JanetVM);
}
extern "C" {
    pub fn janet_vm_save(into: *mut JanetVM);
}
extern "C" {
    pub fn janet_vm_load(from: *mut JanetVM);
}
extern "C" {
    pub fn janet_interpreter_interrupt(vm: *mut JanetVM);
}
extern "C" {
    pub fn janet_continue(
        fiber: *mut JanetFiber,
        in_: Janet,
        out: *mut Janet,
    ) -> JanetSignal;
}
extern "C" {
    pub fn janet_continue_signal(
        fiber: *mut JanetFiber,
        in_: Janet,
        out: *mut Janet,
        sig: JanetSignal,
    ) -> JanetSignal;
}
extern "C" {
    pub fn janet_pcall(
        fun: *mut JanetFunction,
        argn: i32,
        argv: *const Janet,
        out: *mut Janet,
        f: *mut *mut JanetFiber,
    ) -> JanetSignal;
}
extern "C" {
    pub fn janet_step(
        fiber: *mut JanetFiber,
        in_: Janet,
        out: *mut Janet,
    ) -> JanetSignal;
}
extern "C" {
    pub fn janet_call(fun: *mut JanetFunction, argc: i32, argv: *const Janet) -> Janet;
}
extern "C" {
    pub fn janet_mcall(
        name: *const ::libc::c_char,
        argc: i32,
        argv: *mut Janet,
    ) -> Janet;
}
extern "C" {
    pub fn janet_stacktrace(fiber: *mut JanetFiber, err: Janet);
}
extern "C" {
    pub fn janet_stacktrace_ext(
        fiber: *mut JanetFiber,
        err: Janet,
        prefix: *const ::libc::c_char,
    );
}
pub type JanetScratchFinalizer = ::core::option::Option<
    unsafe extern "C" fn(arg1: *mut ::libc::c_void),
>;
extern "C" {
    pub fn janet_smalloc(size: usize) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_srealloc(mem: *mut ::libc::c_void, size: usize) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_scalloc(nmemb: usize, size: usize) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_sfinalizer(mem: *mut ::libc::c_void, finalizer: JanetScratchFinalizer);
}
extern "C" {
    pub fn janet_sfree(mem: *mut ::libc::c_void);
}
pub const JanetBindingType_JANET_BINDING_NONE: JanetBindingType = 0;
pub const JanetBindingType_JANET_BINDING_DEF: JanetBindingType = 1;
pub const JanetBindingType_JANET_BINDING_VAR: JanetBindingType = 2;
pub const JanetBindingType_JANET_BINDING_MACRO: JanetBindingType = 3;
pub const JanetBindingType_JANET_BINDING_DYNAMIC_DEF: JanetBindingType = 4;
pub const JanetBindingType_JANET_BINDING_DYNAMIC_MACRO: JanetBindingType = 5;
pub type JanetBindingType = ::libc::c_uint;
#[repr(C)]
pub struct JanetBinding {
    pub type_: JanetBindingType,
    pub value: Janet,
    pub deprecation: JanetBinding__bindgen_ty_1,
}
#[automatically_derived]
impl ::core::marker::Copy for JanetBinding {}
#[automatically_derived]
impl ::core::clone::Clone for JanetBinding {
    #[inline]
    fn clone(&self) -> JanetBinding {
        let _: ::core::clone::AssertParamIsClone<JanetBindingType>;
        let _: ::core::clone::AssertParamIsClone<Janet>;
        let _: ::core::clone::AssertParamIsClone<JanetBinding__bindgen_ty_1>;
        *self
    }
}
pub const JanetBinding_JANET_BINDING_DEP_NONE: JanetBinding__bindgen_ty_1 = 0;
pub const JanetBinding_JANET_BINDING_DEP_RELAXED: JanetBinding__bindgen_ty_1 = 1;
pub const JanetBinding_JANET_BINDING_DEP_NORMAL: JanetBinding__bindgen_ty_1 = 2;
pub const JanetBinding_JANET_BINDING_DEP_STRICT: JanetBinding__bindgen_ty_1 = 3;
pub type JanetBinding__bindgen_ty_1 = ::libc::c_uint;
extern "C" {
    pub fn janet_def(
        env: *mut JanetTable,
        name: *const ::libc::c_char,
        val: Janet,
        documentation: *const ::libc::c_char,
    );
}
extern "C" {
    pub fn janet_var(
        env: *mut JanetTable,
        name: *const ::libc::c_char,
        val: Janet,
        documentation: *const ::libc::c_char,
    );
}
extern "C" {
    pub fn janet_cfuns(
        env: *mut JanetTable,
        regprefix: *const ::libc::c_char,
        cfuns: *const JanetReg,
    );
}
extern "C" {
    pub fn janet_cfuns_prefix(
        env: *mut JanetTable,
        regprefix: *const ::libc::c_char,
        cfuns: *const JanetReg,
    );
}
extern "C" {
    pub fn janet_resolve(
        env: *mut JanetTable,
        sym: JanetSymbol,
        out: *mut Janet,
    ) -> JanetBindingType;
}
extern "C" {
    pub fn janet_resolve_ext(env: *mut JanetTable, sym: JanetSymbol) -> JanetBinding;
}
extern "C" {
    pub fn janet_resolve_core(name: *const ::libc::c_char) -> Janet;
}
extern "C" {
    pub fn janet_cfuns_ext(
        env: *mut JanetTable,
        regprefix: *const ::libc::c_char,
        cfuns: *const JanetRegExt,
    );
}
extern "C" {
    pub fn janet_cfuns_ext_prefix(
        env: *mut JanetTable,
        regprefix: *const ::libc::c_char,
        cfuns: *const JanetRegExt,
    );
}
extern "C" {
    pub fn janet_def_sm(
        env: *mut JanetTable,
        name: *const ::libc::c_char,
        val: Janet,
        documentation: *const ::libc::c_char,
        source_file: *const ::libc::c_char,
        source_line: i32,
    );
}
extern "C" {
    pub fn janet_var_sm(
        env: *mut JanetTable,
        name: *const ::libc::c_char,
        val: Janet,
        documentation: *const ::libc::c_char,
        source_file: *const ::libc::c_char,
        source_line: i32,
    );
}
extern "C" {
    pub fn janet_register(name: *const ::libc::c_char, cfun: JanetCFunction);
}
extern "C" {
    pub fn janet_signalv(signal: JanetSignal, message: Janet) -> !;
}
extern "C" {
    pub fn janet_panicv(message: Janet) -> !;
}
extern "C" {
    pub fn janet_panic(message: *const ::libc::c_char) -> !;
}
extern "C" {
    pub fn janet_panics(message: JanetString) -> !;
}
extern "C" {
    pub fn janet_panicf(format: *const ::libc::c_char, ...) -> !;
}
extern "C" {
    pub fn janet_dynprintf(
        name: *const ::libc::c_char,
        dflt_file: *mut FILE,
        format: *const ::libc::c_char,
        ...
    );
}
extern "C" {
    pub fn janet_panic_type(x: Janet, n: i32, expected: ::libc::c_int) -> !;
}
extern "C" {
    pub fn janet_panic_abstract(x: Janet, n: i32, at: *const JanetAbstractType) -> !;
}
extern "C" {
    pub fn janet_arity(arity: i32, min: i32, max: i32);
}
extern "C" {
    pub fn janet_fixarity(arity: i32, fix: i32);
}
extern "C" {
    pub fn janet_getmethod(
        method: JanetKeyword,
        methods: *const JanetMethod,
        out: *mut Janet,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_nextmethod(methods: *const JanetMethod, key: Janet) -> Janet;
}
extern "C" {
    pub fn janet_getnumber(argv: *const Janet, n: i32) -> f64;
}
extern "C" {
    pub fn janet_getarray(argv: *const Janet, n: i32) -> *mut JanetArray;
}
extern "C" {
    pub fn janet_gettuple(argv: *const Janet, n: i32) -> JanetTuple;
}
extern "C" {
    pub fn janet_gettable(argv: *const Janet, n: i32) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_getstruct(argv: *const Janet, n: i32) -> JanetStruct;
}
extern "C" {
    pub fn janet_getstring(argv: *const Janet, n: i32) -> JanetString;
}
extern "C" {
    pub fn janet_getcstring(argv: *const Janet, n: i32) -> *const ::libc::c_char;
}
extern "C" {
    pub fn janet_getsymbol(argv: *const Janet, n: i32) -> JanetSymbol;
}
extern "C" {
    pub fn janet_getkeyword(argv: *const Janet, n: i32) -> JanetKeyword;
}
extern "C" {
    pub fn janet_getbuffer(argv: *const Janet, n: i32) -> *mut JanetBuffer;
}
extern "C" {
    pub fn janet_getfiber(argv: *const Janet, n: i32) -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_getfunction(argv: *const Janet, n: i32) -> *mut JanetFunction;
}
extern "C" {
    pub fn janet_getcfunction(argv: *const Janet, n: i32) -> JanetCFunction;
}
extern "C" {
    pub fn janet_getboolean(argv: *const Janet, n: i32) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_getpointer(argv: *const Janet, n: i32) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_getnat(argv: *const Janet, n: i32) -> i32;
}
extern "C" {
    pub fn janet_getinteger(argv: *const Janet, n: i32) -> i32;
}
extern "C" {
    pub fn janet_getinteger64(argv: *const Janet, n: i32) -> i64;
}
extern "C" {
    pub fn janet_getuinteger64(argv: *const Janet, n: i32) -> u64;
}
extern "C" {
    pub fn janet_getsize(argv: *const Janet, n: i32) -> usize;
}
extern "C" {
    pub fn janet_getindexed(argv: *const Janet, n: i32) -> JanetView;
}
extern "C" {
    pub fn janet_getbytes(argv: *const Janet, n: i32) -> JanetByteView;
}
extern "C" {
    pub fn janet_getdictionary(argv: *const Janet, n: i32) -> JanetDictView;
}
extern "C" {
    pub fn janet_getabstract(
        argv: *const Janet,
        n: i32,
        at: *const JanetAbstractType,
    ) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_getslice(argc: i32, argv: *const Janet) -> JanetRange;
}
extern "C" {
    pub fn janet_gethalfrange(
        argv: *const Janet,
        n: i32,
        length: i32,
        which: *const ::libc::c_char,
    ) -> i32;
}
extern "C" {
    pub fn janet_getargindex(
        argv: *const Janet,
        n: i32,
        length: i32,
        which: *const ::libc::c_char,
    ) -> i32;
}
extern "C" {
    pub fn janet_getflags(
        argv: *const Janet,
        n: i32,
        flags: *const ::libc::c_char,
    ) -> u64;
}
extern "C" {
    pub fn janet_optnumber(argv: *const Janet, argc: i32, n: i32, dflt: f64) -> f64;
}
extern "C" {
    pub fn janet_opttuple(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: JanetTuple,
    ) -> JanetTuple;
}
extern "C" {
    pub fn janet_optstruct(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: JanetStruct,
    ) -> JanetStruct;
}
extern "C" {
    pub fn janet_optstring(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: JanetString,
    ) -> JanetString;
}
extern "C" {
    pub fn janet_optcstring(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: *const ::libc::c_char,
    ) -> *const ::libc::c_char;
}
extern "C" {
    pub fn janet_optsymbol(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: JanetString,
    ) -> JanetSymbol;
}
extern "C" {
    pub fn janet_optkeyword(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: JanetString,
    ) -> JanetKeyword;
}
extern "C" {
    pub fn janet_optfiber(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: *mut JanetFiber,
    ) -> *mut JanetFiber;
}
extern "C" {
    pub fn janet_optfunction(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: *mut JanetFunction,
    ) -> *mut JanetFunction;
}
extern "C" {
    pub fn janet_optcfunction(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: JanetCFunction,
    ) -> JanetCFunction;
}
extern "C" {
    pub fn janet_optboolean(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: ::libc::c_int,
    ) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_optpointer(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt: *mut ::libc::c_void,
    ) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_optnat(argv: *const Janet, argc: i32, n: i32, dflt: i32) -> i32;
}
extern "C" {
    pub fn janet_optinteger(argv: *const Janet, argc: i32, n: i32, dflt: i32) -> i32;
}
extern "C" {
    pub fn janet_optinteger64(argv: *const Janet, argc: i32, n: i32, dflt: i64) -> i64;
}
extern "C" {
    pub fn janet_optsize(argv: *const Janet, argc: i32, n: i32, dflt: usize) -> usize;
}
extern "C" {
    pub fn janet_optabstract(
        argv: *const Janet,
        argc: i32,
        n: i32,
        at: *const JanetAbstractType,
        dflt: JanetAbstract,
    ) -> JanetAbstract;
}
extern "C" {
    pub fn janet_optbuffer(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt_len: i32,
    ) -> *mut JanetBuffer;
}
extern "C" {
    pub fn janet_opttable(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt_len: i32,
    ) -> *mut JanetTable;
}
extern "C" {
    pub fn janet_optarray(
        argv: *const Janet,
        argc: i32,
        n: i32,
        dflt_len: i32,
    ) -> *mut JanetArray;
}
extern "C" {
    pub fn janet_dyn(name: *const ::libc::c_char) -> Janet;
}
extern "C" {
    pub fn janet_setdyn(name: *const ::libc::c_char, value: Janet);
}
extern "C" {
    pub static janet_file_type: JanetAbstractType;
}
extern "C" {
    pub fn janet_makefile(f: *mut FILE, flags: i32) -> Janet;
}
extern "C" {
    pub fn janet_makejfile(f: *mut FILE, flags: i32) -> *mut JanetFile;
}
extern "C" {
    pub fn janet_getfile(argv: *const Janet, n: i32, flags: *mut i32) -> *mut FILE;
}
extern "C" {
    pub fn janet_dynfile(name: *const ::libc::c_char, def: *mut FILE) -> *mut FILE;
}
extern "C" {
    pub fn janet_getjfile(argv: *const Janet, n: i32) -> *mut JanetFile;
}
extern "C" {
    pub fn janet_checkfile(j: Janet) -> JanetAbstract;
}
extern "C" {
    pub fn janet_unwrapfile(j: Janet, flags: *mut i32) -> *mut FILE;
}
extern "C" {
    pub fn janet_file_close(file: *mut JanetFile) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_cryptorand(out: *mut u8, n: usize) -> ::libc::c_int;
}
extern "C" {
    pub fn janet_marshal_size(ctx: *mut JanetMarshalContext, value: usize);
}
extern "C" {
    pub fn janet_marshal_int(ctx: *mut JanetMarshalContext, value: i32);
}
extern "C" {
    pub fn janet_marshal_int64(ctx: *mut JanetMarshalContext, value: i64);
}
extern "C" {
    pub fn janet_marshal_byte(ctx: *mut JanetMarshalContext, value: u8);
}
extern "C" {
    pub fn janet_marshal_bytes(
        ctx: *mut JanetMarshalContext,
        bytes: *const u8,
        len: usize,
    );
}
extern "C" {
    pub fn janet_marshal_janet(ctx: *mut JanetMarshalContext, x: Janet);
}
extern "C" {
    pub fn janet_marshal_abstract(
        ctx: *mut JanetMarshalContext,
        abstract_: JanetAbstract,
    );
}
extern "C" {
    pub fn janet_unmarshal_ensure(ctx: *mut JanetMarshalContext, size: usize);
}
extern "C" {
    pub fn janet_unmarshal_size(ctx: *mut JanetMarshalContext) -> usize;
}
extern "C" {
    pub fn janet_unmarshal_int(ctx: *mut JanetMarshalContext) -> i32;
}
extern "C" {
    pub fn janet_unmarshal_int64(ctx: *mut JanetMarshalContext) -> i64;
}
extern "C" {
    pub fn janet_unmarshal_byte(ctx: *mut JanetMarshalContext) -> u8;
}
extern "C" {
    pub fn janet_unmarshal_bytes(
        ctx: *mut JanetMarshalContext,
        dest: *mut u8,
        len: usize,
    );
}
extern "C" {
    pub fn janet_unmarshal_janet(ctx: *mut JanetMarshalContext) -> Janet;
}
extern "C" {
    pub fn janet_unmarshal_abstract(
        ctx: *mut JanetMarshalContext,
        size: usize,
    ) -> JanetAbstract;
}
extern "C" {
    pub fn janet_unmarshal_abstract_reuse(
        ctx: *mut JanetMarshalContext,
        p: *mut ::libc::c_void,
    );
}
extern "C" {
    pub fn janet_register_abstract_type(at: *const JanetAbstractType);
}
extern "C" {
    pub fn janet_get_abstract_type(key: Janet) -> *const JanetAbstractType;
}
extern "C" {
    pub static janet_peg_type: JanetAbstractType;
}
pub const JanetPegOpcod_RULE_LITERAL: JanetPegOpcod = 0;
pub const JanetPegOpcod_RULE_NCHAR: JanetPegOpcod = 1;
pub const JanetPegOpcod_RULE_NOTNCHAR: JanetPegOpcod = 2;
pub const JanetPegOpcod_RULE_RANGE: JanetPegOpcod = 3;
pub const JanetPegOpcod_RULE_SET: JanetPegOpcod = 4;
pub const JanetPegOpcod_RULE_LOOK: JanetPegOpcod = 5;
pub const JanetPegOpcod_RULE_CHOICE: JanetPegOpcod = 6;
pub const JanetPegOpcod_RULE_SEQUENCE: JanetPegOpcod = 7;
pub const JanetPegOpcod_RULE_IF: JanetPegOpcod = 8;
pub const JanetPegOpcod_RULE_IFNOT: JanetPegOpcod = 9;
pub const JanetPegOpcod_RULE_NOT: JanetPegOpcod = 10;
pub const JanetPegOpcod_RULE_BETWEEN: JanetPegOpcod = 11;
pub const JanetPegOpcod_RULE_GETTAG: JanetPegOpcod = 12;
pub const JanetPegOpcod_RULE_CAPTURE: JanetPegOpcod = 13;
pub const JanetPegOpcod_RULE_POSITION: JanetPegOpcod = 14;
pub const JanetPegOpcod_RULE_ARGUMENT: JanetPegOpcod = 15;
pub const JanetPegOpcod_RULE_CONSTANT: JanetPegOpcod = 16;
pub const JanetPegOpcod_RULE_ACCUMULATE: JanetPegOpcod = 17;
pub const JanetPegOpcod_RULE_GROUP: JanetPegOpcod = 18;
pub const JanetPegOpcod_RULE_REPLACE: JanetPegOpcod = 19;
pub const JanetPegOpcod_RULE_MATCHTIME: JanetPegOpcod = 20;
pub const JanetPegOpcod_RULE_ERROR: JanetPegOpcod = 21;
pub const JanetPegOpcod_RULE_DROP: JanetPegOpcod = 22;
pub const JanetPegOpcod_RULE_BACKMATCH: JanetPegOpcod = 23;
pub const JanetPegOpcod_RULE_TO: JanetPegOpcod = 24;
pub const JanetPegOpcod_RULE_THRU: JanetPegOpcod = 25;
pub const JanetPegOpcod_RULE_LENPREFIX: JanetPegOpcod = 26;
pub const JanetPegOpcod_RULE_READINT: JanetPegOpcod = 27;
pub const JanetPegOpcod_RULE_LINE: JanetPegOpcod = 28;
pub const JanetPegOpcod_RULE_COLUMN: JanetPegOpcod = 29;
pub const JanetPegOpcod_RULE_UNREF: JanetPegOpcod = 30;
pub const JanetPegOpcod_RULE_CAPTURE_NUM: JanetPegOpcod = 31;
pub type JanetPegOpcod = ::libc::c_uint;
#[repr(C)]
pub struct JanetPeg {
    pub bytecode: *mut u32,
    pub constants: *mut Janet,
    pub bytecode_len: usize,
    pub num_constants: u32,
    pub has_backref: ::libc::c_int,
}
#[automatically_derived]
impl ::core::fmt::Debug for JanetPeg {
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(
            f,
            "JanetPeg",
            "bytecode",
            &&self.bytecode,
            "constants",
            &&self.constants,
            "bytecode_len",
            &&self.bytecode_len,
            "num_constants",
            &&self.num_constants,
            "has_backref",
            &&self.has_backref,
        )
    }
}
#[automatically_derived]
impl ::core::marker::Copy for JanetPeg {}
#[automatically_derived]
impl ::core::clone::Clone for JanetPeg {
    #[inline]
    fn clone(&self) -> JanetPeg {
        let _: ::core::clone::AssertParamIsClone<*mut u32>;
        let _: ::core::clone::AssertParamIsClone<*mut Janet>;
        let _: ::core::clone::AssertParamIsClone<usize>;
        let _: ::core::clone::AssertParamIsClone<u32>;
        let _: ::core::clone::AssertParamIsClone<::libc::c_int>;
        *self
    }
}
extern "C" {
    pub static janet_s64_type: JanetAbstractType;
}
extern "C" {
    pub static janet_u64_type: JanetAbstractType;
}
pub const JanetIntType_JANET_INT_NONE: JanetIntType = 0;
pub const JanetIntType_JANET_INT_S64: JanetIntType = 1;
pub const JanetIntType_JANET_INT_U64: JanetIntType = 2;
pub type JanetIntType = ::libc::c_uint;
extern "C" {
    pub fn janet_is_int(x: Janet) -> JanetIntType;
}
extern "C" {
    pub fn janet_wrap_s64(x: i64) -> Janet;
}
extern "C" {
    pub fn janet_wrap_u64(x: u64) -> Janet;
}
extern "C" {
    pub fn janet_unwrap_s64(x: Janet) -> i64;
}
extern "C" {
    pub fn janet_unwrap_u64(x: Janet) -> u64;
}
extern "C" {
    pub fn janet_malloc(arg1: usize) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_realloc(arg1: *mut ::libc::c_void, arg2: usize) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_calloc(arg1: usize, arg2: usize) -> *mut ::libc::c_void;
}
extern "C" {
    pub fn janet_free(arg1: *mut ::libc::c_void);
}
pub type __builtin_va_list = *mut ::libc::c_char;
impl fmt::Debug for Janet {
    #[inline]
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.pad(core::any::type_name::<Self>())
    }
}
impl PartialEq<Janet> for Janet {
    #[inline]
    fn eq(&self, other: &Janet) -> bool {
        unsafe { janet_equals(*self, *other) != 0 }
    }
}
impl Eq for Janet {}
impl Hash for Janet {
    #[inline]
    fn hash<H: Hasher>(&self, state: &mut H) {
        state.write_i32(unsafe { janet_hash(*self) })
    }
}
impl PartialOrd<Janet> for Janet {
    #[inline]
    fn partial_cmp(&self, other: &Janet) -> Option<Ordering> {
        let res = unsafe { janet_compare(*self, *other) };
        Some(
            match res {
                -1 => Ordering::Less,
                0 => Ordering::Equal,
                1 => Ordering::Greater,
                _ => return None,
            },
        )
    }
}
impl Ord for Janet {
    #[inline]
    fn cmp(&self, other: &Self) -> Ordering {
        let res = unsafe { janet_compare(*self, *other) };
        match res {
            -1 => Ordering::Less,
            0 => Ordering::Equal,
            1 => Ordering::Greater,
            _ => unsafe { core::hint::unreachable_unchecked() }
        }
    }
}