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
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0443
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.0443
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
Files: src/arabic.c, src/blowfish.c, src/buffer.c, src/charset.c,
src/crypt_zip.c, src/digraph.c, src/edit.c, src/eval.c,
src/evalfunc.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c,
src/ex_eval.c, src/ex_getln.c, src/fileio.c, src/getchar.c,
src/gui.c, src/gui_at_fs.c, src/gui_athena.c, src/gui_gtk_x11.c,
src/gui_mac.c, src/gui_motif.c, src/gui_photon.c, src/gui_w32.c,
src/gui_x11.c, src/hangulin.c, src/hardcopy.c, src/if_cscope.c,
src/if_mzsch.c, src/if_python3.c, src/if_xcmdsrv.c,
src/integration.c, src/json.c, src/main.c, src/mbyte.c,
src/memline.c, src/message.c, src/misc1.c, src/misc2.c,
src/move.c, src/netbeans.c, src/normal.c, src/ops.c, src/option.c,
src/os_unix.c, src/os_win32.c, src/pty.c, src/regexp.c,
src/screen.c, src/search.c, src/sha256.c, src/spell.c,
src/spellfile.c, src/syntax.c, src/tag.c, src/term.c, src/ui.c,
src/undo.c, src/version.c, src/window.c, src/workshop.c
*** ../vim-8.1.0442/src/arabic.c 2017-03-21 12:31:49.000000000 +0100
--- src/arabic.c 2018-09-30 20:13:36.792906838 +0200
***************
*** 17,36 ****
#if defined(FEAT_ARABIC) || defined(PROTO)
- static int A_is_a(int cur_c);
- static int A_is_s(int cur_c);
- static int A_is_f(int cur_c);
- static int chg_c_a2s(int cur_c);
- static int chg_c_a2i(int cur_c);
- static int chg_c_a2m(int cur_c);
- static int chg_c_a2f(int cur_c);
- #if 0
- static int chg_c_i2m(int cur_c);
- #endif
- static int chg_c_f2m(int cur_c);
- static int chg_c_laa2i(int hid_c);
- static int chg_c_laa2f(int hid_c);
- static int half_shape(int c);
static int A_firstc_laa(int c1, int c);
static int A_is_harakat(int c);
static int A_is_iso(int c);
--- 17,22 ----
*** ../vim-8.1.0442/src/blowfish.c 2016-11-12 20:08:09.000000000 +0100
--- src/blowfish.c 2018-09-30 20:14:12.496675423 +0200
***************
*** 56,68 ****
} bf_state_T;
- static void bf_e_block(bf_state_T *state, UINT32_T *p_xl, UINT32_T *p_xr);
- static void bf_e_cblock(bf_state_T *state, char_u *block);
- static int bf_check_tables(UINT32_T pax[18], UINT32_T sbx[4][256], UINT32_T val);
- static int bf_self_test(void);
- static void bf_key_init(bf_state_T *state, char_u *password, char_u *salt, int salt_len);
- static void bf_cfb_init(bf_state_T *state, char_u *seed, int seed_len);
-
/* Blowfish code */
static UINT32_T pax_init[18] = {
0x243f6a88u, 0x85a308d3u, 0x13198a2eu,
--- 56,61 ----
*** ../vim-8.1.0442/src/buffer.c 2018-09-21 16:59:40.113489779 +0200
--- src/buffer.c 2018-09-30 20:14:44.852464316 +0200
***************
*** 51,60 ****
# define dev_T unsigned
#endif
- #if defined(FEAT_SIGNS)
- static void insert_sign(buf_T *buf, signlist_T *prev, signlist_T *next, int id, linenr_T lnum, int typenr);
- #endif
-
#if defined(FEAT_QUICKFIX)
static char *msg_loclist = N_("[Location List]");
static char *msg_qflist = N_("[Quickfix List]");
--- 51,56 ----
***************
*** 2839,2846 ****
}
#ifdef FEAT_DIFF
- static int wininfo_other_tab_diff(wininfo_T *wip);
-
/*
* Return TRUE when "wip" has 'diff' set and the diff is only for another tab
* page. That's because a diff is local to a tab page.
--- 2835,2840 ----
*** ../vim-8.1.0442/src/charset.c 2018-06-23 19:22:45.602486336 +0200
--- src/charset.c 2018-09-30 20:16:46.467660371 +0200
***************
*** 9,18 ****
#include "vim.h"
- #ifdef FEAT_LINEBREAK
- static int win_chartabsize(win_T *wp, char_u *p, colnr_T col);
- #endif
-
#ifdef FEAT_MBYTE
# if defined(HAVE_WCHAR_H)
# include <wchar.h> /* for towupper() and towlower() */
--- 9,14 ----
*** ../vim-8.1.0442/src/crypt_zip.c 2016-08-29 22:42:20.000000000 +0200
--- src/crypt_zip.c 2018-09-30 20:17:36.571324947 +0200
***************
*** 36,43 ****
} zip_state_T;
- static void make_crc_tab(void);
-
static u32_T crc_32_table[256];
/*
--- 36,41 ----
*** ../vim-8.1.0442/src/digraph.c 2018-06-16 17:25:17.997346631 +0200
--- src/digraph.c 2018-09-30 20:17:55.407198290 +0200
***************
*** 28,34 ****
result_T result;
} digr_T;
- static int getexactdigraph(int, int, int);
static void printdigraph(digr_T *);
/* digraphs added by the user */
--- 28,33 ----
*** ../vim-8.1.0442/src/edit.c 2018-09-12 21:52:14.319799760 +0200
--- src/edit.c 2018-09-30 20:19:36.046516906 +0200
***************
*** 155,169 ****
static int has_compl_option(int dict_opt);
static int ins_compl_accept_char(int c);
static int ins_compl_add(char_u *str, int len, int icase, char_u *fname, char_u **cptext, int cdir, int flags, int adup);
- static int ins_compl_equal(compl_T *match, char_u *str, int len);
static void ins_compl_longest_match(compl_T *match);
- static void ins_compl_add_matches(int num_matches, char_u **matches, int icase);
- static int ins_compl_make_cyclic(void);
- static void ins_compl_upd_pum(void);
static void ins_compl_del_pum(void);
static int pum_wanted(void);
- static int pum_enough_matches(void);
- static void ins_compl_dictionaries(char_u *dict, char_u *pat, int flags, int thesaurus);
static void ins_compl_files(int count, char_u **files, int thesaurus, int flags, regmatch_T *regmatch, char_u *buf, int *dir);
static char_u *find_line_end(char_u *ptr);
static void ins_compl_free(void);
--- 155,163 ----
***************
*** 178,196 ****
static void ins_compl_addfrommatch(void);
static int ins_compl_prep(int c);
static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg);
- static buf_T *ins_compl_next_buf(buf_T *buf, int flag);
# if defined(FEAT_COMPL_FUNC) || defined(FEAT_EVAL)
static void ins_compl_add_list(list_T *list);
static void ins_compl_add_dict(dict_T *dict);
# endif
- static int ins_compl_get_exp(pos_T *ini);
static void ins_compl_delete(void);
static void ins_compl_insert(int in_compl_func);
- static int ins_compl_next(int allow_get_expansion, int count, int insert_match, int in_compl_func);
static int ins_compl_key2dir(int c);
static int ins_compl_pum_key(int c);
static int ins_compl_key2count(int c);
- static int ins_compl_use_match(int c);
static int ins_complete(int c, int enable_pum);
static void show_pum(int prev_w_wrow, int prev_w_leftcol);
static unsigned quote_meta(char_u *dest, char_u *str, int len);
--- 172,186 ----
***************
*** 212,218 ****
static void check_auto_format(int);
static void redo_literal(int c);
static void start_arrow(pos_T *end_insert_pos);
- static void start_arrow_with_change(pos_T *end_insert_pos, int change);
static void start_arrow_common(pos_T *end_insert_pos, int change);
#ifdef FEAT_SPELL
static void check_spell_redraw(void);
--- 202,207 ----
***************
*** 221,229 ****
#endif
static void stop_insert(pos_T *end_insert_pos, int esc, int nomove);
static int echeck_abbr(int);
- static int replace_pop(void);
static void replace_join(int off);
- static void replace_pop_ins(void);
#ifdef FEAT_MBYTE
static void mb_replace_pop_ins(int cc);
#endif
--- 210,216 ----
***************
*** 9052,9059 ****
AppendCharToRedobuff(K_DEL);
}
- static void ins_bs_one(colnr_T *vcolp);
-
/*
* Delete one character for ins_bs().
*/
--- 9039,9044 ----
*** ../vim-8.1.0442/src/eval.c 2018-09-10 21:04:09.864392710 +0200
--- src/eval.c 2018-09-30 20:20:38.942087538 +0200
***************
*** 232,238 ****
static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string);
static int eval7(char_u **arg, typval_T *rettv, int evaluate, int want_string);
- static int eval_index(char_u **arg, typval_T *rettv, int evaluate, int verbose);
static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate);
static int get_lit_string_tv(char_u **arg, typval_T *rettv, int evaluate);
static int free_unref_items(int copyID);
--- 232,237 ----
***************
*** 3050,3057 ****
* get_user_var_name().
*/
- static char_u *cat_prefix_varname(int prefix, char_u *name);
-
static char_u *varnamebuf = NULL;
static int varnamebuflen = 0;
--- 3049,3054 ----
***************
*** 7957,7962 ****
--- 7954,7960 ----
if (defstr != NULL)
{
int save_ex_normal_busy = ex_normal_busy;
+
ex_normal_busy = 0;
rettv->vval.v_string =
getcmdline_prompt(secret ? NUL : '@', p, echo_attr,
***************
*** 8507,8514 ****
VAR_FLAVOUR_VIMINFO /* all uppercase */
} var_flavour_T;
- static var_flavour_T var_flavour(char_u *varname);
-
static var_flavour_T
var_flavour(char_u *varname)
{
--- 8505,8510 ----
***************
*** 9431,9439 ****
/*
* Functions for ":8" filename modifier: get 8.3 version of a filename.
*/
- static int get_short_pathname(char_u **fnamep, char_u **bufp, int *fnamelen);
- static int shortpath_for_invalid_fname(char_u **fname, char_u **bufp, int *fnamelen);
- static int shortpath_for_partial(char_u **fnamep, char_u **bufp, int *fnamelen);
/*
* Get the short path (8.3) for the filename in "fnamep".
--- 9427,9432 ----
*** ../vim-8.1.0442/src/evalfunc.c 2018-09-16 18:46:36.189127529 +0200
--- src/evalfunc.c 2018-09-30 20:23:18.824986134 +0200
***************
*** 1121,1128 ****
}
#ifdef FEAT_FLOAT
- static int get_float_arg(typval_T *argvars, float_T *f);
-
/*
* Get the float value of "argvars[0]" into "f".
* Returns FAIL when the argument is not a Number or Float.
--- 1121,1126 ----
***************
*** 1722,1729 ****
rettv->v_type = VAR_STRING;
}
- static buf_T *find_buffer(typval_T *avar);
-
/*
* Find a buffer by number or exact name.
*/
--- 1720,1725 ----
***************
*** 3826,3833 ****
vim_free(fbuf);
}
- static void foldclosed_both(typval_T *argvars, typval_T *rettv, int end);
-
/*
* "foldclosed()" function
*/
--- 3822,3827 ----
***************
*** 4485,4492 ****
}
}
- static void get_buffer_lines(buf_T *buf, linenr_T start, linenr_T end, int retlist, typval_T *rettv);
-
/*
* Get line or list of lines from buffer "buf" into "rettv".
* Return a range (from start to end) of lines in rettv from the specified
--- 4479,4484 ----
***************
*** 7566,7573 ****
rettv->vval.v_number = (varnumber_T)time(NULL);
}
- static void get_maparg(typval_T *argvars, typval_T *rettv, int exact);
-
static void
get_maparg(typval_T *argvars, typval_T *rettv, int exact)
{
--- 7558,7563 ----
***************
*** 8177,8184 ****
find_some_match(argvars, rettv, MATCH_POS);
}
- static void max_min(typval_T *argvars, typval_T *rettv, int domax);
-
static void
max_min(typval_T *argvars, typval_T *rettv, int domax)
{
--- 8167,8172 ----
***************
*** 8261,8268 ****
max_min(argvars, rettv, FALSE);
}
- static int mkdir_recurse(char_u *dir, int prot);
-
/*
* Create the directory in which "dir" is located, and higher levels when
* needed.
--- 8249,8254 ----
***************
*** 9057,9064 ****
}
#if defined(FEAT_RELTIME)
- static int list2proftime(typval_T *arg, proftime_T *tm);
-
/*
* Convert a List to proftime_T.
* Return FAIL when there is something wrong.
--- 9043,9048 ----
***************
*** 9171,9179 ****
}
#if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
- static void make_connection(void);
- static int check_connection(void);
-
static void
make_connection(void)
{
--- 9155,9160 ----
***************
*** 9843,9850 ****
#define SP_END 0x40 /* leave cursor at end of match */
#define SP_COLUMN 0x80 /* start at cursor column */
- static int get_search_arg(typval_T *varp, int *flagsp);
-
/*
* Get flags for a search function.
* Possibly sets "p_ws".
--- 9824,9829 ----
***************
*** 10674,10681 ****
set_buffer_lines(curbuf, lnum, FALSE, &argvars[1], rettv);
}
- static void set_qf_ll_list(win_T *wp, typval_T *list_arg, typval_T *action_arg, typval_T *what_arg, typval_T *rettv);
-
/*
* Used by "setqflist()" and "setloclist()" functions
*/
--- 10653,10658 ----
***************
*** 11215,11221 ****
int item_compare_keep_zero;
} sortinfo_T;
static sortinfo_T *sortinfo = NULL;
- static void do_sort_uniq(typval_T *argvars, typval_T *rettv, int sort);
#define ITEM_COMPARE_FAIL 999
/*
--- 11192,11197 ----
***************
*** 12860,12867 ****
}
- static int get_winnr(tabpage_T *tp, typval_T *argvar);
-
/*
* Common code for tabpagewinnr() and winnr().
*/
--- 12836,12841 ----
*** ../vim-8.1.0442/src/ex_cmds.c 2018-09-21 12:46:16.341772938 +0200
--- src/ex_cmds.c 2018-09-30 20:23:56.636723898 +0200
***************
*** 1813,1819 ****
#if defined(FEAT_VIMINFO) || defined(PROTO)
- static int no_viminfo(void);
static int read_viminfo_barline(vir_T *virp, int got_encoding, int force, int writing);
static void write_viminfo_version(FILE *fp_out);
static void write_viminfo_barlines(vir_T *virp, FILE *fp_out);
--- 1813,1818 ----
***************
*** 7568,7574 ****
static sign_T *first_sign = NULL;
static int next_sign_typenr = 1;
- static int sign_cmd_idx(char_u *begin_cmd, char_u *end_cmd);
static void sign_list_defined(sign_T *sp);
static void sign_undefine(sign_T *sp, sign_T *sp_prev);
--- 7567,7572 ----
*** ../vim-8.1.0442/src/ex_cmds2.c 2018-09-11 22:36:48.125548396 +0200
--- src/ex_cmds2.c 2018-09-30 20:24:55.984311160 +0200
***************
*** 68,74 ****
#if defined(FEAT_EVAL) || defined(PROTO)
static int debug_greedy = FALSE; /* batch mode debugging: don't save
and restore typeahead. */
- static int get_maxbacktrace_level(void);
static void do_setdebugtracelevel(char_u *arg);
static void do_checkbacktracelevel(void);
static void do_showbacktrace(char_u *cmd);
--- 68,73 ----
***************
*** 573,579 ****
#define DBG_FILE 2
#define DBG_EXPR 3
- static int dbg_parsearg(char_u *arg, garray_T *gap);
static linenr_T debuggy_find(int file,char_u *fname, linenr_T after, garray_T *gap, int *fp);
/*
--- 572,577 ----
***************
*** 1611,1617 ****
/*
* Functions for profiling.
*/
- static void script_do_profile(scriptitem_T *si);
static void script_dump_profile(FILE *fd);
static proftime_T prof_wait_time;
--- 1609,1614 ----
***************
*** 2242,2249 ****
|| forceit);
}
- static void add_bufnum(int *bufnrs, int *bufnump, int nr);
-
/*
* Add a buffer number to "bufnrs", unless it's already there.
*/
--- 2239,2244 ----
***************
*** 2444,2453 ****
* Code to handle the argument list.
*/
- static char_u *do_one_arg(char_u *str);
static int do_arglist(char_u *str, int what, int after, int will_edit);
static void alist_check_arg_idx(void);
- static int editing_arg_idx(win_T *win);
static void alist_add_list(int count, char_u **files, int after, int will_edit);
#define AL_SET 1
#define AL_ADD 2
--- 2439,2446 ----
***************
*** 4299,4306 ****
#if (defined(WIN32) && defined(FEAT_CSCOPE)) || defined(HAVE_FD_CLOEXEC)
# define USE_FOPEN_NOINH
- static FILE *fopen_noinh_readbin(char *filename);
-
/*
* Special function to open a file without handle inheritance.
* When possible the handle is closed on exec().
--- 4292,4297 ----
***************
*** 5291,5298 ****
#if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
&& (defined(FEAT_EVAL) || defined(FEAT_MULTI_LANG))
# define HAVE_GET_LOCALE_VAL
- static char_u *get_locale_val(int what);
-
static char_u *
get_locale_val(int what)
{
--- 5282,5287 ----
***************
*** 5410,5417 ****
|| ((defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
&& (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) \
&& !defined(LC_MESSAGES))
- static char_u *get_mess_env(void);
-
/*
* Get the language used for messages from the environment.
*/
--- 5399,5404 ----
*** ../vim-8.1.0442/src/ex_docmd.c 2018-09-30 18:22:22.568974801 +0200
--- src/ex_docmd.c 2018-09-30 20:31:05.769715873 +0200
***************
*** 61,67 ****
# define IS_USER_CMDIDX(idx) (FALSE)
#endif
- static int compute_buffer_local_count(int addr_type, int lnum, int local);
#ifdef FEAT_EVAL
static char_u *do_one_cmd(char_u **, int, struct condstack *, char_u *(*fgetline)(int, void *, int), void *cookie);
#else
--- 61,66 ----
***************
*** 116,122 ****
# define ex_cexpr ex_ni
#endif
- static int check_more(int, int);
static linenr_T get_address(exarg_T *, char_u **, int addr_type, int skip, int silent, int to_other_file, int address_count);
static void get_flags(exarg_T *eap);
#if !defined(FEAT_PERL) \
--- 115,120 ----
***************
*** 498,506 ****
except_T *current_exception;
};
- static void save_dbg_stuff(struct dbg_stuff *dsp);
- static void restore_dbg_stuff(struct dbg_stuff *dsp);
-
static void
save_dbg_stuff(struct dbg_stuff *dsp)
{
--- 496,501 ----
***************
*** 1633,1641 ****
return buf->b_fnum;
}
- static int current_win_nr(win_T *win);
- static int current_tab_nr(tabpage_T *tab);
-
static int
current_win_nr(win_T *win)
{
--- 1628,1633 ----
***************
*** 4910,4917 ****
}
#ifdef FEAT_QUICKFIX
- static char_u *skip_grep_pat(exarg_T *eap);
-
/*
* For a ":vimgrep" or ":vimgrepadd" command return a pointer past the
* pattern. Otherwise return eap->arg.
--- 4902,4907 ----
***************
*** 5818,5829 ****
#endif
#if defined(FEAT_USR_CMDS) || defined(PROTO)
- static int uc_add_command(char_u *name, size_t name_len, char_u *rep, long argt, long def, int flags, int compl, char_u *compl_arg, int addr_type, int force);
- static void uc_list(char_u *name, size_t name_len);
- static int uc_scan_attr(char_u *attr, size_t len, long *argt, long *def, int *flags, int *compl, char_u **compl_arg, int* attr_type_arg);
- static char_u *uc_split_args(char_u *arg, size_t *lenp);
- static size_t uc_check_code(char_u *code, size_t len, char_u *buf, ucmd_T *cmd, exarg_T *eap, char_u **split_buf, size_t *split_len);
-
static int
uc_add_command(
char_u *name,
--- 5808,5813 ----
*** ../vim-8.1.0442/src/ex_eval.c 2017-07-10 21:50:04.000000000 +0200
--- src/ex_eval.c 2018-09-30 20:12:01.345516685 +0200
***************
*** 15,21 ****
#if defined(FEAT_EVAL) || defined(PROTO)
- static void free_msglist(struct msglist *l);
static int throw_exception(void *, except_type_T, char_u *);
static char_u *get_end_emsg(struct condstack *cstack);
--- 15,20 ----
***************
*** 65,75 ****
# define THROW_ON_INTERRUPT_TRUE
#endif
- static void catch_exception(except_T *excp);
- static void finish_exception(except_T *excp);
- static void discard_exception(except_T *excp, int was_finished);
- static void report_pending(int action, int pending, void *value);
-
/*
* When several errors appear in a row, setting "force_abort" is delayed until
* the failing command returned. "cause_abort" is set to TRUE meanwhile, in
--- 64,69 ----
*** ../vim-8.1.0442/src/ex_getln.c 2018-09-30 17:45:26.860914873 +0200
--- src/ex_getln.c 2018-09-30 20:32:06.389287602 +0200
***************
*** 75,85 ****
static int hislen = 0; /* actual length of history tables */
static int hist_char2type(int c);
-
- static int in_history(int, char_u *, int, int, int);
- # ifdef FEAT_EVAL
- static int calc_hist_idx(int histype, int num);
- # endif
#endif
#ifdef FEAT_RIGHTLEFT
--- 75,80 ----
***************
*** 103,111 ****
static void save_cmdline(struct cmdline_info *ccp);
static void restore_cmdline(struct cmdline_info *ccp);
static int cmdline_paste(int regname, int literally, int remcr);
- #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
- static void redrawcmd_preedit(void);
- #endif
#ifdef FEAT_WILDMENU
static void cmdline_del(int from);
#endif
--- 98,103 ----
***************
*** 5049,5056 ****
* Remove "@ab" if the top of 'helplang' is "ab" and the language of the first
* tag matches it. Otherwise remove "@en" if "en" is the only language.
*/
- static void cleanup_help_tags(int num_file, char_u **file);
-
static void
cleanup_help_tags(int num_file, char_u **file)
{
--- 5041,5046 ----
***************
*** 6707,6714 ****
static int viminfo_hislen[HIST_COUNT] = {0, 0, 0, 0, 0};
static int viminfo_add_at_front = FALSE;
- static int hist_type2char(int type, int use_question);
-
/*
* Translate a history type number to the associated character.
*/
--- 6697,6702 ----
*** ../vim-8.1.0442/src/fileio.c 2018-09-16 15:47:45.629425398 +0200
--- src/fileio.c 2018-09-30 20:33:44.836590897 +0200
***************
*** 39,47 ****
#ifdef FEAT_CRYPT
static char_u *check_for_cryptkey(char_u *cryptkey, char_u *ptr, long *sizep, off_T *filesizep, int newfile, char_u *fname, int *did_ask);
#endif
- #ifdef UNIX
- static void set_file_time(char_u *fname, time_t atime, time_t mtime);
- #endif
static int set_rw_fname(char_u *fname, char_u *sfname);
static int msg_add_fileformat(int eol_type);
static void msg_add_eol(void);
--- 39,44 ----
***************
*** 129,138 ****
static int get_mac_fio_flags(char_u *ptr);
# endif
#endif
- static int move_lines(buf_T *frombuf, buf_T *tobuf);
- #ifdef TEMPDIRNAMES
- static void vim_settempdir(char_u *tempdir);
- #endif
static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
/*
--- 126,131 ----
***************
*** 7884,7899 ****
static int au_need_clean = FALSE; /* need to delete marked patterns */
- static void show_autocmd(AutoPat *ap, event_T event);
- static void au_remove_pat(AutoPat *ap);
- static void au_remove_cmds(AutoPat *ap);
- static void au_cleanup(void);
- static int au_new_group(char_u *name);
- static void au_del_group(char_u *name);
- static event_T event_name2nr(char_u *start, char_u **end);
static char_u *event_nr2name(event_T event);
- static char_u *find_end_event(char_u *arg, int have_group);
- static int event_ignored(event_T event);
static int au_get_grouparg(char_u **argp);
static int do_autocmd_event(event_T event, char_u *pat, int nested, char_u *cmd, int forceit, int group);
static int apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, int force, int group, buf_T *buf, exarg_T *eap);
--- 7877,7883 ----
*** ../vim-8.1.0442/src/getchar.c 2018-09-30 17:11:45.305649987 +0200
--- src/getchar.c 2018-09-30 20:34:39.744201771 +0200
***************
*** 108,124 ****
static int last_recorded_len = 0; /* number of last recorded chars */
- static char_u *get_buffcont(buffheader_T *, int);
- static void add_buff(buffheader_T *, char_u *, long n);
- static void add_num_buff(buffheader_T *, long);
- static void add_char_buff(buffheader_T *, int);
- static int read_readbuffers(int advance);
static int read_readbuf(buffheader_T *buf, int advance);
- static void start_stuff(void);
- static int read_redo(int, int);
- static void copy_redo(int);
static void init_typebuf(void);
- static void gotchars(char_u *, int);
static void may_sync_undo(void);
static void closescript(void);
static int vgetorpeek(int);
--- 108,115 ----
*** ../vim-8.1.0442/src/gui.c 2018-07-29 17:35:19.493750319 +0200
--- src/gui.c 2018-09-30 20:35:36.795797084 +0200
***************
*** 17,37 ****
static void set_guifontwide(char_u *font_name);
#endif
static void gui_check_pos(void);
- static void gui_position_components(int);
static void gui_outstr(char_u *, int);
static int gui_screenchar(int off, int flags, guicolor_T fg, guicolor_T bg, int back);
- #ifdef FEAT_GUI_GTK
- static int gui_screenstr(int off, int len, int flags, guicolor_T fg, guicolor_T bg, int back);
- #endif
static void gui_delete_lines(int row, int count);
static void gui_insert_lines(int row, int count);
- static void fill_mouse_coord(char_u *p, int col, int row);
#if defined(FEAT_GUI_TABLINE) || defined(PROTO)
static int gui_has_tabline(void);
#endif
static void gui_do_scrollbar(win_T *wp, int which, int enable);
- static colnr_T scroll_line_len(linenr_T lnum);
- static linenr_T gui_find_longest_lnum(void);
static void gui_update_horiz_scrollbar(int);
static void gui_set_fg_color(char_u *name);
static void gui_set_bg_color(char_u *name);
--- 17,30 ----
***************
*** 5023,5029 ****
/*
* This is shared between Athena, Motif and GTK.
*/
- static void gfp_setname(char_u *fname, void *cookie);
/*
* Callback function for do_in_runtimepath().
--- 5016,5021 ----
***************
*** 5384,5392 ****
#endif
#if defined(HAVE_DROP_FILE) || defined(PROTO)
-
- static void gui_wingoto_xy(int x, int y);
-
/*
* Jump to the window at specified point (x, y).
*/
--- 5376,5381 ----
*** ../vim-8.1.0442/src/gui_at_fs.c 2016-08-29 22:42:20.000000000 +0200
--- src/gui_at_fs.c 2018-09-30 20:38:54.746400534 +0200
***************
*** 170,207 ****
static int SFstatus = SEL_FILE_NULL;
! /***************** static functions */
static void SFsetText(char *path);
static void SFtextChanged(void);
- static char *SFgetText(void);
- static void SFupdatePath(void);
static int SFgetDir(SFDir *dir);
static void SFdrawLists(int doScroll);
static void SFdrawList(int n, int doScroll);
static void SFclearList(int n, int doScroll);
- static void SFbuttonPressList(Widget w, int n, XButtonPressedEvent *event);
- static void SFbuttonReleaseList(Widget w, int n, XButtonReleasedEvent *event);
- static void SFdirModTimer(XtPointer cl, XtIntervalId *id);
static char SFstatChar(stat_T *statBuf);
- static void SFdrawStrings(Window w, SFDir *dir, int from, int to);
- static int SFnewInvertEntry(int n, XMotionEvent *event);
- static void SFinvertEntry(int n);
- static void SFenterList(Widget w, int n, XEnterWindowEvent *event);
- static void SFleaveList(Widget w, int n, XEvent *event);
static void SFmotionList(Widget w, int n, XMotionEvent *event);
- static void SFvFloatSliderMovedCallback(Widget w, XtPointer n, XtPointer fnew);
static void SFvSliderMovedCallback(Widget w, int n, int nw);
- static void SFvAreaSelectedCallback(Widget w, XtPointer n, XtPointer pnew);
- static void SFhSliderMovedCallback(Widget w, XtPointer n, XtPointer nw);
- static void SFhAreaSelectedCallback(Widget w, XtPointer n, XtPointer pnew);
- static void SFpathSliderMovedCallback(Widget w, XtPointer client_data, XtPointer nw);
- static void SFpathAreaSelectedCallback(Widget w, XtPointer client_data, XtPointer pnew);
static Boolean SFworkProc(void);
static int SFcompareEntries(const void *p, const void *q);
- static void SFprepareToReturn(void);
- static void SFcreateWidgets(Widget toplevel, char *prompt, char *ok, char *cancel);
- static void SFsetColors(guicolor_T bg, guicolor_T fg, guicolor_T scroll_bg, guicolor_T scrollfg);
/***************** xstat.h */
--- 170,188 ----
static int SFstatus = SEL_FILE_NULL;
! /***************** forward declare static functions */
static void SFsetText(char *path);
static void SFtextChanged(void);
static int SFgetDir(SFDir *dir);
static void SFdrawLists(int doScroll);
static void SFdrawList(int n, int doScroll);
static void SFclearList(int n, int doScroll);
static char SFstatChar(stat_T *statBuf);
static void SFmotionList(Widget w, int n, XMotionEvent *event);
static void SFvSliderMovedCallback(Widget w, int n, int nw);
static Boolean SFworkProc(void);
static int SFcompareEntries(const void *p, const void *q);
/***************** xstat.h */
***************
*** 237,244 ****
static int SFtwiddle = 0;
- static int SFchdir(char *path);
-
static int
SFchdir(char *path)
{
--- 218,223 ----
***************
*** 256,263 ****
return result;
}
- static void SFfree(int i);
-
static void
SFfree(int i)
{
--- 235,240 ----
***************
*** 279,294 ****
dir->dir = NULL;
}
- static void SFstrdup(char **s1, char *s2);
-
static void
SFstrdup(char **s1, char *s2)
{
*s1 = strcpy(XtMalloc((unsigned)(strlen(s2) + 1)), s2);
}
- static void SFunreadableDir(SFDir *dir);
-
static void
SFunreadableDir(SFDir *dir)
{
--- 256,267 ----
***************
*** 302,309 ****
dir->nChars = strlen(cannotOpen);
}
- static void SFreplaceText(SFDir *dir, char *str);
-
static void
SFreplaceText(SFDir *dir, char *str)
{
--- 275,280 ----
***************
*** 323,330 ****
SFtextChanged();
}
- static void SFexpand(char *str);
-
static void
SFexpand(char *str)
{
--- 294,299 ----
***************
*** 379,386 ****
XtFree(growing);
}
- static int SFfindFile(SFDir *dir, char *str);
-
static int
SFfindFile(SFDir *dir, char *str)
{
--- 348,353 ----
***************
*** 478,485 ****
return 0;
}
- static void SFunselect(void);
-
static void
SFunselect(void)
{
--- 445,450 ----
***************
*** 492,507 ****
dir->endSelection = -1;
}
- static int SFcompareLogins(const void *p, const void *q);
-
static int
SFcompareLogins(const void *p, const void *q)
{
return strcmp(((SFLogin *)p)->name, ((SFLogin *)q)->name);
}
- static void SFgetHomeDirs(void);
-
static void
SFgetHomeDirs(void)
{
--- 457,468 ----
***************
*** 568,575 ****
(void)strcat(entries[i].real, "/");
}
- static int SFfindHomeDir(char *begin, char *end);
-
static int
SFfindHomeDir(char *begin, char *end)
{
--- 529,534 ----
***************
*** 868,875 ****
}
}
- static int SFcheckDir(int n, SFDir *dir);
-
static int
SFcheckDir(int n, SFDir *dir)
{
--- 827,832 ----
***************
*** 932,939 ****
return 0;
}
- static int SFcheckFiles(SFDir *dir);
-
static int
SFcheckFiles(SFDir *dir)
{
--- 889,894 ----
***************
*** 1077,1084 ****
static XtIntervalId SFscrollTimerId;
- static void SFinitFont(void);
-
static void
SFinitFont(void)
{
--- 1032,1037 ----
***************
*** 1128,1135 ****
#endif
}
- static void SFcreateGC(void);
-
static void
SFcreateGC(void)
{
--- 1081,1086 ----
***************
*** 1261,1268 ****
}
}
- static void SFdeleteEntry(SFDir *dir, SFEntry *entry);
-
static void
SFdeleteEntry(SFDir *dir, SFEntry *entry)
{
--- 1212,1217 ----
***************
*** 1313,1320 ****
#endif
}
- static void SFwriteStatChar(char *name, int last, stat_T *statBuf);
-
static void
SFwriteStatChar(
char *name,
--- 1262,1267 ----
***************
*** 1324,1331 ****
name[last] = SFstatChar(statBuf);
}
- static int SFstatAndCheck(SFDir *dir, SFEntry *entry);
-
static int
SFstatAndCheck(SFDir *dir, SFEntry *entry)
{
--- 1271,1276 ----
***************
*** 1532,1539 ****
SFentryHeight);
}
- static unsigned long SFscrollTimerInterval(void);
-
static unsigned long
SFscrollTimerInterval(void)
{
--- 1477,1482 ----
***************
*** 1561,1568 ****
return (unsigned long)t;
}
- static void SFscrollTimer(XtPointer p, XtIntervalId *id);
-
static void
SFscrollTimer(XtPointer p, XtIntervalId *id UNUSED)
{
--- 1504,1509 ----
***************
*** 2131,2138 ****
Ctrl<Key>M: redraw-display()\n\
";
- static void SFexposeList(Widget w, XtPointer n, XEvent *event, Boolean *cont);
-
static void
SFexposeList(
Widget w UNUSED,
--- 2072,2077 ----
***************
*** 2146,2153 ****
SFdrawList((int)(long)n, SF_DO_NOT_SCROLL);
}
- static void SFmodVerifyCallback(Widget w, XtPointer client_data, XEvent *event, Boolean *cont);
-
static void
SFmodVerifyCallback(
Widget w UNUSED,
--- 2085,2090 ----
***************
*** 2164,2171 ****
SFstatus = SEL_FILE_TEXT;
}
- static void SFokCallback(Widget w, XtPointer cl, XtPointer cd);
-
static void
SFokCallback(Widget w UNUSED, XtPointer cl UNUSED, XtPointer cd UNUSED)
{
--- 2101,2106 ----
***************
*** 2178,2185 ****
{ NULL, (XtPointer) NULL },
};
- static void SFcancelCallback(Widget w, XtPointer cl, XtPointer cd);
-
static void
SFcancelCallback(Widget w UNUSED, XtPointer cl UNUSED, XtPointer cd UNUSED)
{
--- 2113,2118 ----
***************
*** 2192,2199 ****
{ NULL, (XtPointer) NULL },
};
- static void SFdismissAction(Widget w, XEvent *event, String *params, Cardinal *num_params);
-
static void
SFdismissAction(
Widget w UNUSED,
--- 2125,2130 ----
*** ../vim-8.1.0442/src/gui_athena.c 2017-11-18 20:37:02.000000000 +0100
--- src/gui_athena.c 2018-09-30 20:40:00.885938817 +0200
***************
*** 52,59 ****
static vimmenu_T *a_cur_menu = NULL;
static Cardinal athena_calculate_ins_pos(Widget);
- static Pixmap gui_athena_create_pullright_pixmap(Widget);
- static void gui_athena_menu_timeout(XtPointer, XtIntervalId *);
static void gui_athena_popup_callback(Widget, XtPointer, XtPointer);
static void gui_athena_delayed_arm_action(Widget, XEvent *, String *,
Cardinal *);
--- 52,57 ----
***************
*** 70,77 ****
static Widget toolBar = (Widget)0;
#endif
- static void gui_athena_scroll_cb_jump(Widget, XtPointer, XtPointer);
- static void gui_athena_scroll_cb_scroll(Widget, XtPointer, XtPointer);
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_MENU)
static void gui_athena_menu_colors(Widget id);
#endif
--- 68,73 ----
***************
*** 445,451 ****
# endif
static void createXpmImages(char_u *path, char **xpm, Pixmap *sen);
- static void get_toolbar_pixmap(vimmenu_T *menu, Pixmap *sen);
/*
* Allocated a pixmap for toolbar menu "menu".
--- 441,446 ----
***************
*** 646,652 ****
static Boolean has_submenu(Widget);
static void gui_mch_submenu_change(vimmenu_T *mp, int colors);
static void gui_athena_menu_font(Widget id);
- static Boolean gui_athena_menu_has_submenus(Widget, Widget);
void
gui_mch_enable_menu(int flag)
--- 641,646 ----
***************
*** 2041,2050 ****
static int dialogStatus;
static Atom dialogatom;
- static void keyhit_callback(Widget w, XtPointer client_data, XEvent *event, Boolean *cont);
- static void butproc(Widget w, XtPointer client_data, XtPointer call_data);
- static void dialog_wm_handler(Widget w, XtPointer client_data, XEvent *event, Boolean *dum);
-
/*
* Callback function for the textfield. When CR is hit this works like
* hitting the "OK" button, ESC like "Cancel".
--- 2035,2040 ----
*** ../vim-8.1.0442/src/gui_gtk_x11.c 2018-09-19 22:39:59.816157865 +0200
--- src/gui_gtk_x11.c 2018-09-30 20:41:32.733295842 +0200
***************
*** 618,624 ****
static gboolean blink_mode = TRUE;
static gboolean gui_gtk_is_blink_on(void);
- static void gui_gtk_window_clear(GdkWindow *win);
static void
gui_gtk3_redraw(int x, int y, int width, int height)
--- 618,623 ----
*** ../vim-8.1.0442/src/gui_mac.c 2018-07-29 17:35:19.497750288 +0200
--- src/gui_mac.c 2018-09-30 20:41:48.389186056 +0200
***************
*** 300,306 ****
#ifdef USE_ATSUI_DRAWING
static void gui_mac_set_font_attributes(GuiFont font);
- static void gui_mac_dispose_atsui_style(void);
#endif
/*
--- 300,305 ----
*** ../vim-8.1.0442/src/gui_motif.c 2017-11-18 20:37:55.000000000 +0100
--- src/gui_motif.c 2018-09-30 20:43:31.232463721 +0200
***************
*** 83,95 ****
static Widget menuBar;
#endif
- static void scroll_cb(Widget w, XtPointer client_data, XtPointer call_data);
- #ifdef FEAT_GUI_TABLINE
- static void tabline_cb(Widget w, XtPointer client_data, XtPointer call_data);
- static void tabline_button_cb(Widget w, XtPointer client_data, XtPointer call_data);
- static void tabline_menu_cb(Widget w, XtPointer closure, XEvent *e, Boolean *continue_dispatch);
- static void tabline_balloon_cb(BalloonEval *beval, int state);
- #endif
#ifdef FEAT_TOOLBAR
# ifdef FEAT_FOOTER
static void toolbarbutton_enter_cb(Widget, XtPointer, XEvent *, Boolean *);
--- 83,88 ----
***************
*** 97,108 ****
# endif
static void reset_focus(void);
#endif
- #ifdef FEAT_FOOTER
- static int gui_mch_compute_footer_height(void);
- #endif
- #ifdef WSDEBUG
- static void attachDump(Widget, char *);
- #endif
static void gui_motif_menu_colors(Widget id);
static void gui_motif_scroll_colors(Widget id);
--- 90,95 ----
***************
*** 306,313 ****
static XtExposeProc old_label_expose = NULL;
- static void label_expose(Widget _w, XEvent *_event, Region _region);
-
static void
label_expose(Widget _w, XEvent *_event, Region _region)
{
--- 293,298 ----
***************
*** 1173,1181 ****
*/
#include "gui_x11_pm.h"
- static int check_xpm(char_u *path);
static char **get_toolbar_pixmap(vimmenu_T *menu, char **fname);
- static int add_pixmap_args(vimmenu_T *menu, Arg *args, int n);
/*
* Read an Xpm file. Return OK or FAIL.
--- 1158,1164 ----
***************
*** 2088,2095 ****
}
#if defined(FEAT_BROWSE) || defined(FEAT_GUI_DIALOG)
- static void set_fontlist(Widget wg);
-
/*
* Use the 'guifont' or 'guifontset' as a fontlist for a dialog widget.
*/
--- 2071,2076 ----
***************
*** 2172,2179 ****
* - equalize the messages between different GUI implementations as far as
* possible.
*/
- static void set_predefined_label(Widget parent, String name, char *new_label);
-
static void
set_predefined_label(Widget parent, String name, char *new_label)
{
--- 2153,2158 ----
***************
*** 2404,2412 ****
static int dialogStatus;
- static void keyhit_callback(Widget w, XtPointer client_data, XEvent *event, Boolean *cont);
- static void butproc(Widget w, XtPointer client_data, XtPointer call_data);
-
/*
* Callback function for the textfield. When CR is hit this works like
* hitting the "OK" button, ESC like "Cancel".
--- 2383,2388 ----
***************
*** 2444,2451 ****
#ifdef HAVE_XPM
- static Widget create_pixmap_label(Widget parent, String name, char **data, ArgList args, Cardinal arg);
-
static Widget
create_pixmap_label(
Widget parent,
--- 2420,2425 ----
***************
*** 3492,3504 ****
static SharedFindReplace find_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
static SharedFindReplace repl_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
- static void find_replace_destroy_callback(Widget w, XtPointer client_data, XtPointer call_data);
- static void find_replace_dismiss_callback(Widget w, XtPointer client_data, XtPointer call_data);
- static void entry_activate_callback(Widget w, XtPointer client_data, XtPointer call_data);
- static void find_replace_callback(Widget w, XtPointer client_data, XtPointer call_data);
- static void find_replace_keypress(Widget w, SharedFindReplace * frdp, XKeyEvent * event);
- static void find_replace_dialog_create(char_u *entry_text, int do_replace);
-
static void
find_replace_destroy_callback(
Widget w UNUSED,
--- 3466,3471 ----
*** ../vim-8.1.0442/src/gui_photon.c 2018-02-10 18:34:22.000000000 +0100
--- src/gui_photon.c 2018-09-30 20:43:50.156330604 +0200
***************
*** 212,221 ****
static void gui_ph_get_panelgroup_margins(short*, short*, short*, short*);
#endif
- #ifdef FEAT_TOOLBAR
- static PhImage_t *gui_ph_toolbar_find_icon(vimmenu_T *menu);
- #endif
-
static void gui_ph_draw_start(void);
static void gui_ph_draw_end(void);
--- 212,217 ----
*** ../vim-8.1.0442/src/gui_w32.c 2018-09-22 14:39:07.681593221 +0200
--- src/gui_w32.c 2018-09-30 20:44:47.155929310 +0200
***************
*** 4336,4345 ****
# define UINT_PTR UINT
#endif
- static void make_tooltip(BalloonEval *beval, char *text, POINT pt);
- static void delete_tooltip(BalloonEval *beval);
- static VOID CALLBACK BevalTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
-
static BalloonEval *cur_beval = NULL;
static UINT_PTR BevalTimerId = 0;
static DWORD LastActivity = 0;
--- 4336,4341 ----
***************
*** 4463,4472 ****
/*
* stuff for dialogs, menus, tearoffs etc.
*/
- static LRESULT APIENTRY dialog_callback(HWND, UINT, WPARAM, LPARAM);
- #ifdef FEAT_TEAROFF
- static LRESULT APIENTRY tearoff_callback(HWND, UINT, WPARAM, LPARAM);
- #endif
static PWORD
add_dialog_element(
PWORD p,
--- 4459,4464 ----
*** ../vim-8.1.0442/src/gui_x11.c 2018-05-13 16:21:50.000000000 +0200
--- src/gui_x11.c 2018-09-30 20:45:11.659756649 +0200
***************
*** 138,144 ****
#endif
static void gui_x11_wm_protocol_handler(Widget, XtPointer, XEvent *, Boolean *);
static Cursor gui_x11_create_blank_mouse(void);
- static void draw_curl(int row, int col, int cells);
/*
--- 138,143 ----
***************
*** 1309,1316 ****
*/
static XtInputId _xsmp_xtinputid;
- static void local_xsmp_handle_requests(XtPointer c, int *s, XtInputId *i);
-
static void
local_xsmp_handle_requests(
XtPointer c UNUSED,
--- 1308,1313 ----
*** ../vim-8.1.0442/src/hangulin.c 2016-11-10 18:24:37.000000000 +0100
--- src/hangulin.c 2018-09-30 20:45:38.015570851 +0200
***************
*** 37,44 ****
static void convert_ks_to_3(const char_u *src, int *fp, int *mp, int *lp);
static int convert_3_to_ks(int fv, int mv, int lv, char_u *des);
- static int hangul_automata2(char_u *buf, unsigned int *c);
- static int hangul_automata3(char_u *buf, unsigned int *c);
#define push(x) {stack[ sp++ ] = *(x); stack[sp++] = *((x)+1);}
#define pop(x) {*((x) + 1) = stack[--sp]; *(x) = stack[--sp];}
--- 37,42 ----
*** ../vim-8.1.0442/src/hardcopy.c 2018-06-23 19:22:45.606486311 +0200
--- src/hardcopy.c 2018-09-30 20:48:36.238312294 +0200
***************
*** 137,156 ****
static char_u *parse_list_options(char_u *option_str, option_table_T *table, int table_size);
- #ifdef FEAT_SYN_HL
- static long_u darken_rgb(long_u rgb);
- static long_u prt_get_term_color(int colorindex);
- #endif
- static void prt_set_fg(long_u fg);
- static void prt_set_bg(long_u bg);
- static void prt_set_font(int bold, int italic, int underline);
- static void prt_line_number(prt_settings_T *psettings, int page_line, linenr_T lnum);
- static void prt_header(prt_settings_T *psettings, int pagenum, linenr_T lnum);
- static void prt_message(char_u *s);
static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T *ppos);
- #ifdef FEAT_SYN_HL
- static void prt_get_attr(int hl_id, prt_text_attr_T* pattr, int modec);
- #endif
/*
* Parse 'printoptions' and set the flags in "printer_opts".
--- 137,143 ----
***************
*** 1357,1404 ****
PRT_DSC_ENDCOMMENTS_TYPE}
};
- static void prt_write_file_raw_len(char_u *buffer, int bytes);
- static void prt_write_file(char_u *buffer);
static void prt_write_file_len(char_u *buffer, int bytes);
- static void prt_write_string(char *s);
- static void prt_write_int(int i);
- static void prt_write_boolean(int b);
- static void prt_def_font(char *new_name, char *encoding, int height, char *font);
- static void prt_real_bits(double real, int precision, int *pinteger, int *pfraction);
- static void prt_write_real(double val, int prec);
- static void prt_def_var(char *name, double value, int prec);
- static void prt_flush_buffer(void);
- static void prt_resource_name(char_u *filename, void *cookie);
- static int prt_find_resource(char *name, struct prt_ps_resource_S *resource);
- static int prt_open_resource(struct prt_ps_resource_S *resource);
- static int prt_check_resource(struct prt_ps_resource_S *resource, char_u *version);
- static void prt_dsc_start(void);
- static void prt_dsc_noarg(char *comment);
- static void prt_dsc_textline(char *comment, char *text);
- static void prt_dsc_text(char *comment, char *text);
- static void prt_dsc_ints(char *comment, int count, int *ints);
- static void prt_dsc_requirements(int duplex, int tumble, int collate, int color, int num_copies);
- static void prt_dsc_docmedia(char *paper_name, double width, double height, double weight, char *colour, char *type);
- static void prt_dsc_resources(char *comment, char *type, char *strings);
- static void prt_dsc_font_resource(char *resource, struct prt_ps_font_S *ps_font);
- static float to_device_units(int idx, double physsize, int def_number);
- static void prt_page_margins(double width, double height, double *left, double *right, double *top, double *bottom);
- static void prt_font_metrics(int font_scale);
- static int prt_get_cpl(void);
- static int prt_get_lpp(void);
- static int prt_add_resource(struct prt_ps_resource_S *resource);
- static int prt_resfile_next_line(void);
- static int prt_resfile_strncmp(int offset, char *string, int len);
- static int prt_resfile_skip_nonws(int offset);
- static int prt_resfile_skip_ws(int offset);
static int prt_next_dsc(struct prt_dsc_line_S *p_dsc_line);
- #ifdef FEAT_MBYTE
- static int prt_build_cid_fontname(int font, char_u *name, int name_len);
- static void prt_def_cidfont(char *new_name, int height, char *cidfont);
- static void prt_dup_cidfont(char *original_name, char *new_name);
- static int prt_match_encoding(char *p_encoding, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_encoding_S **pp_mbenc);
- static int prt_match_charset(char *p_charset, struct prt_ps_mbfont_S *p_cmap, struct prt_ps_charset_S **pp_mbchar);
- #endif
/*
* Variables for the output PostScript file.
--- 1344,1351 ----
*** ../vim-8.1.0442/src/if_cscope.c 2018-08-11 13:57:16.211969806 +0200
--- src/if_cscope.c 2018-09-30 20:49:35.845890662 +0200
***************
*** 20,37 ****
#endif
#include "if_cscope.h"
- static void cs_usage_msg(csid_e x);
static int cs_add(exarg_T *eap);
- static void cs_stat_emsg(char *fname);
static int cs_add_common(char *, char *, char *);
static int cs_check_for_connections(void);
static int cs_check_for_tags(void);
static int cs_cnt_connections(void);
- static void cs_reading_emsg(int idx);
- static int cs_cnt_matches(int idx);
- static char * cs_create_cmd(char *csoption, char *pattern);
static int cs_create_connection(int i);
- static void do_cscope_general(exarg_T *eap, int make_split);
#ifdef FEAT_QUICKFIX
static void cs_file_results(FILE *, int *);
#endif
--- 20,31 ----
***************
*** 40,46 ****
static int cs_find(exarg_T *eap);
static int cs_find_common(char *opt, char *pat, int, int, int, char_u *cmdline);
static int cs_help(exarg_T *eap);
- static void clear_csinfo(int i);
static int cs_insert_filelist(char *, char *, char *,
stat_T *);
static int cs_kill(exarg_T *eap);
--- 34,39 ----
***************
*** 49,56 ****
static char * cs_make_vim_style_matches(char *, char *,
char *, char *);
static char * cs_manage_matches(char **, char **, int, mcmd_e);
- static char * cs_parse_results(int cnumber, char *buf, int bufsize, char **context, char **linenumber, char **search);
- static char * cs_pathcomponents(char *path);
static void cs_print_tags_priv(char **, char **, int);
static int cs_read_prompt(int);
static void cs_release_csp(int, int freefnpp);
--- 42,47 ----
***************
*** 1345,1352 ****
}
#ifndef UNIX
- static char *GetWin32Error(void);
-
static char *
GetWin32Error(void)
{
--- 1336,1341 ----
*** ../vim-8.1.0442/src/if_mzsch.c 2018-07-25 22:02:32.231966301 +0200
--- src/if_mzsch.c 2018-09-30 21:00:03.033441617 +0200
***************
*** 117,168 ****
#endif
/* Buffer-related commands */
static Scheme_Object *buffer_new(buf_T *buf);
- static Scheme_Object *get_buffer_by_name(void *, int, Scheme_Object **);
static Scheme_Object *get_buffer_by_num(void *, int, Scheme_Object **);
- static Scheme_Object *get_buffer_count(void *, int, Scheme_Object **);
- static Scheme_Object *get_buffer_line(void *, int, Scheme_Object **);
- static Scheme_Object *get_buffer_line_list(void *, int, Scheme_Object **);
- static Scheme_Object *get_buffer_name(void *, int, Scheme_Object **);
- static Scheme_Object *get_buffer_num(void *, int, Scheme_Object **);
- static Scheme_Object *get_buffer_size(void *, int, Scheme_Object **);
- static Scheme_Object *get_curr_buffer(void *, int, Scheme_Object **);
- static Scheme_Object *get_next_buffer(void *, int, Scheme_Object **);
- static Scheme_Object *get_prev_buffer(void *, int, Scheme_Object **);
- static Scheme_Object *mzscheme_open_buffer(void *, int, Scheme_Object **);
- static Scheme_Object *set_buffer_line(void *, int, Scheme_Object **);
- static Scheme_Object *set_buffer_line_list(void *, int, Scheme_Object **);
- static Scheme_Object *insert_buffer_line_list(void *, int, Scheme_Object **);
- static Scheme_Object *get_range_start(void *, int, Scheme_Object **);
- static Scheme_Object *get_range_end(void *, int, Scheme_Object **);
static vim_mz_buffer *get_vim_curr_buffer(void);
/* Window-related commands */
static Scheme_Object *window_new(win_T *win);
- static Scheme_Object *get_curr_win(void *, int, Scheme_Object **);
- static Scheme_Object *get_window_count(void *, int, Scheme_Object **);
- static Scheme_Object *get_window_by_num(void *, int, Scheme_Object **);
- static Scheme_Object *get_window_num(void *, int, Scheme_Object **);
- static Scheme_Object *get_window_buffer(void *, int, Scheme_Object **);
- static Scheme_Object *get_window_height(void *, int, Scheme_Object **);
- static Scheme_Object *set_window_height(void *, int, Scheme_Object **);
- static Scheme_Object *get_window_width(void *, int, Scheme_Object **);
- static Scheme_Object *set_window_width(void *, int, Scheme_Object **);
- static Scheme_Object *get_cursor(void *, int, Scheme_Object **);
- static Scheme_Object *set_cursor(void *, int, Scheme_Object **);
- static Scheme_Object *get_window_list(void *, int, Scheme_Object **);
static vim_mz_window *get_vim_curr_window(void);
- /* Vim-related commands */
- static Scheme_Object *mzscheme_beep(void *, int, Scheme_Object **);
- static Scheme_Object *get_option(void *, int, Scheme_Object **);
- static Scheme_Object *set_option(void *, int, Scheme_Object **);
- static Scheme_Object *vim_command(void *, int, Scheme_Object **);
- static Scheme_Object *vim_eval(void *, int, Scheme_Object **);
- static Scheme_Object *vim_bufferp(void *data, int, Scheme_Object **);
- static Scheme_Object *vim_windowp(void *data, int, Scheme_Object **);
- static Scheme_Object *vim_buffer_validp(void *data, int, Scheme_Object **);
- static Scheme_Object *vim_window_validp(void *data, int, Scheme_Object **);
-
/*
*========================================================================
* Internal Function Prototypes
--- 117,129 ----
*** ../vim-8.1.0442/src/if_python3.c 2018-07-04 22:03:22.106919847 +0200
--- src/if_python3.c 2018-09-30 21:10:55.304803503 +0200
***************
*** 709,716 ****
/* Load the standard Python exceptions - don't import the symbols from the
* DLL, as this can cause errors (importing data symbols is not reliable).
*/
- static void get_py3_exceptions(void);
-
static void
get_py3_exceptions(void)
{
--- 709,714 ----
***************
*** 788,795 ****
static int ListSetattro(PyObject *, PyObject *, PyObject *);
static PyObject *FunctionGetattro(PyObject *, PyObject *);
- static PyObject *VimPathHook(PyObject *, PyObject *);
-
static struct PyModuleDef vimmodule;
#define PY_CAN_RECURSE
--- 786,791 ----
*** ../vim-8.1.0442/src/if_xcmdsrv.c 2018-03-04 16:07:56.000000000 +0100
--- src/if_xcmdsrv.c 2018-09-30 21:05:05.415292167 +0200
***************
*** 192,201 ****
static void DeleteAnyLingerer(Display *dpy, Window w);
static int GetRegProp(Display *dpy, char_u **regPropp, long_u *numItemsp, int domsg);
static int WaitForPend(void *p);
- static int WaitForReply(void *p);
static int WindowValid(Display *dpy, Window w);
static void ServerWait(Display *dpy, Window w, EndCond endCond, void *endData, int localLoop, int seconds);
- static struct ServerReply *ServerReplyFind(Window w, enum ServerReplyOp op);
static int AppendPropCarefully(Display *display, Window window, Atom property, char_u *value, int length);
static int x_error_check(Display *dpy, XErrorEvent *error_event);
static int IsSerialName(char_u *name);
--- 192,199 ----
*** ../vim-8.1.0442/src/integration.c 2017-11-18 20:39:10.000000000 +0100
--- src/integration.c 2018-09-30 21:07:49.510125154 +0200
***************
*** 76,83 ****
#endif
/* Functions private to this file */
- static void workshop_connection_closed(void);
- static void messageFromEserve(XtPointer clientData, int *dum1, XtInputId *dum2);
static void workshop_disconnect(void);
static void workshop_sensitivity(int num, char *table);
static void adjust_sign_name(char *filename);
--- 76,81 ----
***************
*** 111,117 ****
Boolean save_files = True; /* When true, save all files before build actions */
! void
workshop_connection_closed(void)
{
/*
--- 109,115 ----
Boolean save_files = True; /* When true, save all files before build actions */
! static void
workshop_connection_closed(void)
{
/*
***************
*** 157,163 ****
}
! void
messageFromEserve(XtPointer clientData UNUSED,
int *dum1 UNUSED,
XtInputId *dum2 UNUSED)
--- 155,161 ----
}
! static void
messageFromEserve(XtPointer clientData UNUSED,
int *dum1 UNUSED,
XtInputId *dum2 UNUSED)
***************
*** 518,524 ****
}
}
! static void
process_menuItem(
char *cmd)
{
--- 516,522 ----
}
}
! static void
process_menuItem(
char *cmd)
{
***************
*** 540,546 ****
}
! static void
process_toolbarButton(
char *cmd) /* button definition */
{
--- 538,544 ----
}
! static void
process_toolbarButton(
char *cmd) /* button definition */
{
***************
*** 571,577 ****
#ifdef DEBUG
! void
unrecognised_message(
char *cmd)
{
--- 569,575 ----
#ifdef DEBUG
! static void
unrecognised_message(
char *cmd)
{
***************
*** 587,593 ****
* x.xpm : largest icon
* x1.xpm : smaller icon
* x2.xpm : smallest icon */
! void
adjust_sign_name(char *filename)
{
char *s;
--- 585,591 ----
* x.xpm : largest icon
* x1.xpm : smaller icon
* x2.xpm : smallest icon */
! static void
adjust_sign_name(char *filename)
{
char *s;
***************
*** 735,741 ****
dummy = write(sd, buf, strlen(buf));
}
! void workshop_disconnect(void)
{
/* Probably need to send some message here */
--- 733,740 ----
dummy = write(sd, buf, strlen(buf));
}
! static void
! workshop_disconnect(void)
{
/* Probably need to send some message here */
***************
*** 891,897 ****
* Toolbar code
*/
! void workshop_sensitivity(int num, char *table)
{
/* build up a verb table */
VerbSense *vs;
--- 890,897 ----
* Toolbar code
*/
! static void
! workshop_sensitivity(int num, char *table)
{
/* build up a verb table */
VerbSense *vs;
***************
*** 947,953 ****
/* Set an editor option.
* IGNORE an option if you do not recognize it.
*/
! void workshop_set_option_first(char *name, char *value)
{
/* Currently value can only be on/off. This may change later (for
* example to set an option like "balloon evaluate delay", but
--- 947,954 ----
/* Set an editor option.
* IGNORE an option if you do not recognize it.
*/
! static void
! workshop_set_option_first(char *name, char *value)
{
/* Currently value can only be on/off. This may change later (for
* example to set an option like "balloon evaluate delay", but
***************
*** 1092,1098 ****
#ifdef DEBUG
! void
pldebug(
char *fmt, /* a printf style format line */
...)
--- 1093,1099 ----
#ifdef DEBUG
! static void
pldebug(
char *fmt, /* a printf style format line */
...)
*** ../vim-8.1.0442/src/json.c 2018-04-08 12:53:40.000000000 +0200
--- src/json.c 2018-09-30 21:11:23.644601886 +0200
***************
*** 19,25 ****
#if defined(FEAT_EVAL) || defined(PROTO)
static int json_encode_item(garray_T *gap, typval_T *val, int copyID, int options);
- static int json_decode_item(js_read_T *reader, typval_T *res, int options);
/*
* Encode "val" into a JSON format string.
--- 19,24 ----
*** ../vim-8.1.0442/src/main.c 2018-09-30 17:11:45.305649987 +0200
--- src/main.c 2018-09-30 21:12:02.308333694 +0200
***************
*** 39,47 ****
# endif
static void early_arg_scan(mparm_T *parmp);
#ifndef NO_VIM_MAIN
- static void main_msg(char *s);
static void usage(void);
- static int get_number_arg(char_u *p, int *idx, int def);
static void parse_command_name(mparm_T *parmp);
static void command_line_scan(mparm_T *parmp);
static void check_tty(mparm_T *parmp);
--- 39,45 ----
***************
*** 3476,3483 ****
#endif /* NO_VIM_MAIN */
#if defined(STARTUPTIME) || defined(PROTO)
- static void time_diff(struct timeval *then, struct timeval *now);
-
static struct timeval prev_timeval;
# ifdef WIN3264
--- 3474,3479 ----
*** ../vim-8.1.0442/src/mbyte.c 2018-09-13 15:33:39.605712221 +0200
--- src/mbyte.c 2018-09-30 21:12:44.184079214 +0200
***************
*** 138,144 ****
#if defined(FEAT_MBYTE) || defined(PROTO)
- static int enc_canon_search(char_u *name);
static int dbcs_char2len(int c);
static int dbcs_char2bytes(int c, char_u *buf);
static int dbcs_ptr2len(char_u *p);
--- 138,143 ----
***************
*** 147,153 ****
static int dbcs_char2cells(int c);
static int dbcs_ptr2cells_len(char_u *p, int size);
static int dbcs_ptr2char(char_u *p);
- static int utf_safe_read_char_adv(char_u **s, size_t *n);
/*
* Lookup table to quickly get the length in bytes of a UTF-8 character from
--- 146,151 ----
***************
*** 3133,3141 ****
{0x1e900,0x1e921,1,34}
};
- static int utf_convert(int a, convertStruct table[], int tableSize);
- static int utf_strnicmp(char_u *s1, char_u *s2, size_t n1, size_t n2);
-
/*
* Generic conversion function for case operations.
* Return the converted equivalent of "a", which is a UCS-4 character. Use
--- 3131,3136 ----
***************
*** 4542,4549 ****
# if defined(USE_ICONV) || defined(PROTO)
- static char_u *iconv_string(vimconv_T *vcp, char_u *str, int slen, int *unconvlenp, int *resultlenp);
-
/*
* Call iconv_open() with a check if iconv() works properly (there are broken
* versions).
--- 4537,4542 ----
***************
*** 6053,6060 ****
# ifdef USE_X11R6_XIM
- static void xim_destroy_cb(XIM im, XPointer client_data, XPointer call_data);
-
static void
xim_instantiate_cb(
Display *display,
--- 6046,6051 ----
*** ../vim-8.1.0442/src/memline.c 2018-08-23 23:01:22.898019607 +0200
--- src/memline.c 2018-09-30 21:13:19.415862753 +0200
***************
*** 235,244 ****
} upd_block0_T;
#ifdef FEAT_CRYPT
- static void ml_set_mfp_crypt(buf_T *buf);
static void ml_set_b0_crypt(buf_T *buf, ZERO_BL *b0p);
#endif
- static int ml_check_b0_id(ZERO_BL *b0p);
static void ml_upd_block0(buf_T *buf, upd_block0_T what);
static void set_b0_fname(ZERO_BL *, buf_T *buf);
static void set_b0_dir_flag(ZERO_BL *b0p, buf_T *buf);
--- 235,242 ----
***************
*** 4070,4077 ****
return retval;
}
- static void attention_message(buf_T *buf, char_u *fname);
-
/*
* Print the ATTENTION message: info about an existing swap file.
*/
--- 4068,4073 ----
*** ../vim-8.1.0442/src/message.c 2018-07-01 16:43:59.850736541 +0200
--- src/message.c 2018-09-30 21:14:50.747292645 +0200
***************
*** 16,30 ****
#include "vim.h"
- static int other_sourcing_name(void);
- static char_u *get_emsg_source(void);
- static char_u *get_emsg_lnum(void);
static void add_msg_hist(char_u *s, int len, int attr);
static void hit_return_msg(void);
static void msg_home_replace_attr(char_u *fname, int attr);
- #ifdef FEAT_MBYTE
- static char_u *screen_puts_mbyte(char_u *s, int l, int attr);
- #endif
static void msg_puts_attr_len(char_u *str, int maxlen, int attr);
static void msg_puts_display(char_u *str, int maxlen, int attr, int recurse);
static void msg_scroll_up(void);
--- 16,24 ----
***************
*** 2407,2413 ****
static msgchunk_T *last_msgchunk = NULL; /* last displayed text */
static msgchunk_T *msg_sb_start(msgchunk_T *mps);
- static msgchunk_T *disp_sb_line(int row, msgchunk_T *smp);
typedef enum {
SB_CLEAR_NONE = 0,
--- 2401,2406 ----
***************
*** 3686,3693 ****
return retval;
}
- static int copy_char(char_u *from, char_u *to, int lowercase);
-
/*
* Copy one character from "*from" to "*to", taking care of multi-byte
* characters. Return the length of the character in bytes.
--- 3679,3684 ----
***************
*** 4131,4142 ****
#if defined(FEAT_EVAL)
static char *e_printf = N_("E766: Insufficient arguments for printf()");
- static varnumber_T tv_nr(typval_T *tvs, int *idxp);
- static char *tv_str(typval_T *tvs, int *idxp, char_u **tofree);
- # ifdef FEAT_FLOAT
- static double tv_float(typval_T *tvs, int *idxp);
- # endif
-
/*
* Get number argument from "idxp" entry in "tvs". First entry is 1.
*/
--- 4122,4127 ----
*** ../vim-8.1.0442/src/misc1.c 2018-09-16 14:10:28.300323360 +0200
--- src/misc1.c 2018-09-30 21:18:08.322023222 +0200
***************
*** 20,29 ****
static char_u *vim_version_dir(char_u *vimdir);
static char_u *remove_tail(char_u *p, char_u *pend, char_u *name);
- #if defined(FEAT_CMDL_COMPL)
- static void init_users(void);
- #endif
- static int copy_indent(int size, char_u *src);
/* All user names (for ~user completion as done by shell). */
#if defined(FEAT_CMDL_COMPL) || defined(PROTO)
--- 20,25 ----
***************
*** 705,712 ****
#if defined(FEAT_CINDENT) || defined(FEAT_SMARTINDENT)
- static int cin_is_cinword(char_u *line);
-
/*
* Return TRUE if the string "line" starts with a word from 'cinwords'.
*/
--- 701,706 ----
***************
*** 5103,5110 ****
}
#if defined(FEAT_SEARCHPATH)
- static char_u *gettail_dir(char_u *fname);
-
/*
* Return the end of the directory name, on the first path
* separator:
--- 5097,5102 ----
***************
*** 5455,5462 ****
#if defined(FEAT_CINDENT) || defined(FEAT_SYN_HL)
static char_u *skip_string(char_u *p);
- static pos_T *ind_find_start_comment(void);
- static pos_T *ind_find_start_CORS(linenr_T *is_raw);
static pos_T *find_start_rawstring(int ind_maxcomment);
/*
--- 5447,5452 ----
***************
*** 5680,5721 ****
* Below "XXX" means that this function may unlock the current line.
*/
- static char_u *cin_skipcomment(char_u *);
- static int cin_nocode(char_u *);
- static pos_T *find_line_comment(void);
- static int cin_has_js_key(char_u *text);
- static int cin_islabel_skip(char_u **);
static int cin_isdefault(char_u *);
- static char_u *after_label(char_u *l);
- static int get_indent_nolabel(linenr_T lnum);
- static int skip_label(linenr_T, char_u **pp);
- static int cin_first_id_amount(void);
- static int cin_get_equal_amount(linenr_T lnum);
static int cin_ispreproc(char_u *);
static int cin_iscomment(char_u *);
static int cin_islinecomment(char_u *);
static int cin_isterminated(char_u *, int, int);
- static int cin_isinit(void);
- static int cin_isfuncdecl(char_u **, linenr_T, linenr_T);
- static int cin_isif(char_u *);
static int cin_iselse(char_u *);
- static int cin_isdo(char_u *);
- static int cin_iswhileofdo(char_u *, linenr_T);
- static int cin_is_if_for_while_before_offset(char_u *line, int *poffset);
- static int cin_iswhileofdo_end(int terminated);
- static int cin_isbreak(char_u *);
- static int cin_is_cpp_baseclass(cpp_baseclass_cache_T *cached);
- static int get_baseclass_amount(int col);
static int cin_ends_in(char_u *, char_u *, char_u *);
static int cin_starts_with(char_u *s, char *word);
- static int cin_skip2pos(pos_T *trypos);
- static pos_T *find_start_brace(void);
static pos_T *find_match_paren(int);
static pos_T *find_match_char(int c, int ind_maxparen);
- static int corr_ind_maxparen(pos_T *startpos);
static int find_last_paren(char_u *l, int start, int end);
static int find_match(int lookfor, linenr_T ourscope);
- static int cin_is_cpp_namespace(char_u *);
/*
* Skip over white space and C comments within the line.
--- 5670,5687 ----
***************
*** 7028,7034 ****
}
static pos_T *
! find_match_char (int c, int ind_maxparen) /* XXX */
{
pos_T cursor_save;
pos_T *trypos;
--- 6994,7000 ----
}
static pos_T *
! find_match_char(int c, int ind_maxparen) /* XXX */
{
pos_T cursor_save;
pos_T *trypos;
***************
*** 9570,9577 ****
#if defined(FEAT_LISP) || defined(PROTO)
- static int lisp_match(char_u *p);
-
static int
lisp_match(char_u *p)
{
--- 9536,9541 ----
***************
*** 10391,10398 ****
* Unix style wildcard expansion code.
* It's here because it's used both for Unix and Mac.
*/
- static int pstrcmp(const void *, const void *);
-
static int
pstrcmp(const void *a, const void *b)
{
--- 10355,10360 ----
***************
*** 10624,10636 ****
#endif
#if defined(FEAT_SEARCHPATH)
- static int find_previous_pathsep(char_u *path, char_u **psep);
- static int is_unique(char_u *maybe_unique, garray_T *gap, int i);
- static void expand_path_option(char_u *curdir, garray_T *gap);
- static char_u *get_path_cutoff(char_u *fname, garray_T *gap);
- static void uniquefy_paths(garray_T *gap, char_u *pattern);
- static int expand_in_path(garray_T *gap, char_u *pattern, int flags);
-
/*
* Moves "*psep" back to the previous path separator in "path".
* Returns FAIL is "*psep" ends up at the beginning of "path".
--- 10586,10591 ----
***************
*** 11055,11062 ****
}
#endif
- static int has_env_var(char_u *p);
-
/*
* Return TRUE if "p" contains what looks like an environment variable.
* Allowing for escaping.
--- 11010,11015 ----
***************
*** 11081,11088 ****
}
#ifdef SPECIAL_WILDCHAR
- static int has_special_wildchar(char_u *p);
-
/*
* Return TRUE if "p" contains a special wildcard character, one that Vim
* cannot expand, requires using a shell.
--- 11034,11039 ----
*** ../vim-8.1.0442/src/misc2.c 2018-09-01 15:29:58.754429402 +0200
--- src/misc2.c 2018-09-30 21:18:43.737791457 +0200
***************
*** 744,754 ****
static long_u num_alloc;
static long_u num_freed;
- static void mem_pre_alloc_s(size_t *sizep);
- static void mem_pre_alloc_l(long_u *sizep);
- static void mem_post_alloc(void **pp, size_t size);
- static void mem_pre_free(void **pp);
-
static void
mem_pre_alloc_s(size_t *sizep)
{
--- 744,749 ----
***************
*** 840,847 ****
#endif /* MEM_PROFILE */
#ifdef FEAT_EVAL
- static int alloc_does_fail(long_u size);
-
static int
alloc_does_fail(long_u size)
{
--- 835,840 ----
***************
*** 4035,4043 ****
static void vim_findfile_free_visited_list(ff_visited_list_hdr_T **list_headp);
static void ff_free_visited_list(ff_visited_T *vl);
static ff_visited_list_hdr_T* ff_get_visited_list(char_u *, ff_visited_list_hdr_T **list_headp);
- #ifdef FEAT_PATH_EXTRA
- static int ff_wc_equal(char_u *s1, char_u *s2);
- #endif
static void ff_push(ff_search_ctx_T *search_ctx, ff_stack_T *stack_ptr);
static ff_stack_T *ff_pop(ff_search_ctx_T *search_ctx);
--- 4028,4033 ----
*** ../vim-8.1.0442/src/move.c 2018-09-25 22:17:51.111962197 +0200
--- src/move.c 2018-09-30 21:19:14.405589893 +0200
***************
*** 19,30 ****
#include "vim.h"
- static void comp_botline(win_T *wp);
static void redraw_for_cursorline(win_T *wp);
static int scrolljump_value(void);
static int check_top_offset(void);
static void curs_rows(win_T *wp);
- static void validate_cheight(void);
typedef struct
{
--- 19,28 ----
***************
*** 37,47 ****
static void topline_back(lineoff_T *lp);
static void botline_forw(lineoff_T *lp);
- #ifdef FEAT_DIFF
- static void botline_topline(lineoff_T *lp);
- static void topline_botline(lineoff_T *lp);
- static void max_topfill(void);
- #endif
/*
* Compute wp->w_botline for the current wp->w_topline. Can be called after
--- 35,40 ----
*** ../vim-8.1.0442/src/netbeans.c 2018-09-13 15:33:39.605712221 +0200
--- src/netbeans.c 2018-09-30 21:19:43.449398298 +0200
***************
*** 49,58 ****
static pos_T *get_off_or_lnum(buf_T *buf, char_u **argp);
static long get_buf_size(buf_T *);
static int netbeans_keystring(char_u *keystr);
- static void postpone_keycommand(char_u *keystr);
static void special_keys(char_u *args);
- static int netbeans_connect(char *, int);
static int getConnInfo(char *file, char **host, char **port, char **password);
static void nb_init_graphics(void);
--- 49,56 ----
*** ../vim-8.1.0442/src/normal.c 2018-08-01 19:05:59.286223185 +0200
--- src/normal.c 2018-09-30 21:20:26.917110378 +0200
***************
*** 32,38 ****
_RTLENTRYF
#endif
nv_compare(const void *s1, const void *s2);
- static int find_command(int cmdchar);
static void op_colon(oparg_T *oap);
static void op_function(oparg_T *oap);
#if defined(FEAT_MOUSE)
--- 32,37 ----
***************
*** 40,49 ****
static void find_end_of_word(pos_T *);
static int get_mouse_class(char_u *p);
#endif
- static void prep_redo_cmd(cmdarg_T *cap);
static void prep_redo(int regname, long, int, int, int, int, int);
- static int checkclearop(oparg_T *oap);
- static int checkclearopq(oparg_T *oap);
static void clearop(oparg_T *oap);
static void clearopbeep(oparg_T *oap);
static void unshift_special(cmdarg_T *cap);
--- 39,45 ----
***************
*** 63,70 ****
static void nv_help(cmdarg_T *cap);
static void nv_addsub(cmdarg_T *cap);
static void nv_page(cmdarg_T *cap);
- static void nv_gd(oparg_T *oap, int nchar, int thisblock);
- static int nv_screengo(oparg_T *oap, int dir, long dist);
#ifdef FEAT_MOUSE
static void nv_mousescroll(cmdarg_T *cap);
static void nv_mouse(cmdarg_T *cap);
--- 59,64 ----
***************
*** 94,102 ****
static void nv_left(cmdarg_T *cap);
static void nv_up(cmdarg_T *cap);
static void nv_down(cmdarg_T *cap);
- #ifdef FEAT_SEARCHPATH
- static void nv_gotofile(cmdarg_T *cap);
- #endif
static void nv_end(cmdarg_T *cap);
static void nv_dollar(cmdarg_T *cap);
static void nv_search(cmdarg_T *cap);
--- 88,93 ----
***************
*** 111,120 ****
static void nv_undo(cmdarg_T *cap);
static void nv_kundo(cmdarg_T *cap);
static void nv_Replace(cmdarg_T *cap);
- static void nv_vreplace(cmdarg_T *cap);
- static void v_swap_corners(int cmdchar);
static void nv_replace(cmdarg_T *cap);
- static void n_swapchar(cmdarg_T *cap);
static void nv_cursormark(cmdarg_T *cap, int flag, pos_T *pos);
static void v_visop(cmdarg_T *cap);
static void nv_subst(cmdarg_T *cap);
--- 102,108 ----
***************
*** 128,134 ****
static void nv_window(cmdarg_T *cap);
static void nv_suspend(cmdarg_T *cap);
static void nv_g_cmd(cmdarg_T *cap);
- static void n_opencmd(cmdarg_T *cap);
static void nv_dot(cmdarg_T *cap);
static void nv_redo(cmdarg_T *cap);
static void nv_Undo(cmdarg_T *cap);
--- 116,121 ----
*** ../vim-8.1.0442/src/ops.c 2018-08-21 15:12:10.843801621 +0200
--- src/ops.c 2018-09-30 21:21:10.520820228 +0200
***************
*** 95,101 ****
#ifdef FEAT_VISUALEXTRA
static void shift_block(oparg_T *oap, int amount);
- static void block_insert(oparg_T *oap, char_u *s, int b_insert, struct block_def*bdp);
#endif
static int stuff_yank(int, char_u *);
static void put_reedit_in_typebuf(int silent);
--- 95,100 ----
***************
*** 105,111 ****
#ifdef FEAT_MBYTE
static void mb_adjust_opend(oparg_T *oap);
#endif
- static void free_yank(long);
static void free_yank_all(void);
static int yank_copy_line(struct block_def *bd, long y_idx);
#ifdef FEAT_CLIPBOARD
--- 104,109 ----
***************
*** 120,126 ****
#endif
static int ends_in_white(linenr_T lnum);
#ifdef FEAT_COMMENTS
- static int same_leader(linenr_T lnum, int, char_u *, int, char_u *);
static int fmt_check_par(linenr_T, int *, char_u **, int do_comments);
#else
static int fmt_check_par(linenr_T);
--- 118,123 ----
***************
*** 6829,6836 ****
return MAUTO;
}
- static char_u *getreg_wrap_one_line(char_u *s, int flags);
-
/*
* When "flags" has GREG_LIST return a list with text "s".
* Otherwise just return "s".
--- 6826,6831 ----
***************
*** 7302,7309 ****
vim_memset(oap, 0, sizeof(oparg_T));
}
- static varnumber_T line_count_info(char_u *line, varnumber_T *wc, varnumber_T *cc, varnumber_T limit, int eol_size);
-
/*
* Count the number of bytes, characters and "words" in a line.
*
--- 7297,7302 ----
*** ../vim-8.1.0442/src/option.c 2018-09-25 22:17:51.111962197 +0200
--- src/option.c 2018-09-30 21:22:02.368473644 +0200
***************
*** 3281,3295 ****
static char *(p_scl_values[]) = {"yes", "no", "auto", NULL};
#endif
- static void set_option_default(int, int opt_flags, int compatible);
static void set_options_default(int opt_flags);
static void set_string_default_esc(char *name, char_u *val, int escape);
static char_u *term_bg_default(void);
static void did_set_option(int opt_idx, int opt_flags, int new_value);
- static char_u *illegal_char(char_u *, int);
- #ifdef FEAT_CMDWIN
- static char_u *check_cedit(void);
- #endif
static char_u *option_expand(int opt_idx, char_u *val);
static void didset_options(void);
static void didset_options2(void);
--- 3281,3290 ----
***************
*** 3300,3311 ****
# define insecure_flag(opt_idx, opt_flags) (&options[opt_idx].flags)
#endif
static void set_string_option_global(int opt_idx, char_u **varp);
- static char_u *set_string_option(int opt_idx, char_u *value, int opt_flags);
static char_u *did_set_string_option(int opt_idx, char_u **varp, int new_value_alloced, char_u *oldval, char_u *errbuf, int opt_flags);
static char_u *set_chars_option(char_u **varp);
- #ifdef FEAT_SYN_HL
- static int int_cmp(const void *a, const void *b);
- #endif
#ifdef FEAT_CLIPBOARD
static char_u *check_clipboard_option(void);
#endif
--- 3295,3302 ----
***************
*** 4279,4286 ****
#endif
#ifdef FEAT_GUI
- static char_u *gui_bg_default(void);
-
static char_u *
gui_bg_default(void)
{
--- 4270,4275 ----
***************
*** 5875,5882 ****
#endif
#ifdef FEAT_TITLE
- static void redraw_titles(void);
-
/*
* Redraw the window title and/or tab page text later.
*/
--- 5864,5869 ----
***************
*** 12027,12033 ****
} langmap_entry_T;
static garray_T langmap_mapga;
- static void langmap_set_entry(int from, int to);
/*
* Search for an entry in "langmap_mapga" for "from". If found set the "to"
--- 12014,12019 ----
*** ../vim-8.1.0442/src/os_unix.c 2018-09-22 14:08:41.926157823 +0200
--- src/os_unix.c 2018-09-30 21:25:32.319055740 +0200
***************
*** 128,144 ****
Window x11_window = 0;
# endif
Display *x11_display = NULL;
-
- # ifdef FEAT_TITLE
- static int get_x11_windis(void);
- static void set_x11_title(char_u *);
- static void set_x11_icon(char_u *);
- # endif
#endif
#ifdef FEAT_TITLE
static int get_x11_title(int);
- static int get_x11_icon(int);
static char_u *oldtitle = NULL;
static volatile sig_atomic_t oldtitle_outdated = FALSE;
--- 128,137 ----
***************
*** 154,161 ****
#else
typedef int waitstatus;
#endif
- static pid_t wait4pid(pid_t, waitstatus *);
-
static int WaitForChar(long msec, int *interrupted, int ignore_input);
static int WaitForCharOrMouse(long msec, int *interrupted, int ignore_input);
#if defined(__BEOS__) || defined(VMS)
--- 147,152 ----
***************
*** 789,795 ****
* Return a pointer to an item on the stack. Used to find out if the stack
* grows up or down.
*/
- static void check_stack_growth(char *p);
static int stack_grows_downwards;
/*
--- 780,785 ----
***************
*** 907,913 ****
static struct sigstack sigstk; /* for sigstack() */
# endif
- static void init_signal_stack(void);
static char *signal_stack;
static void
--- 897,902 ----
***************
*** 1273,1284 ****
}
#endif
! # if defined(FEAT_CLIPBOARD) && defined(FEAT_X11)
! static void loose_clipboard(void);
# ifdef USE_SYSTEM
- static void save_clipboard(void);
- static void restore_clipboard(void);
-
static void *clip_star_save = NULL;
static void *clip_plus_save = NULL;
# endif
--- 1262,1269 ----
}
#endif
! #if defined(FEAT_CLIPBOARD) && defined(FEAT_X11)
# ifdef USE_SYSTEM
static void *clip_star_save = NULL;
static void *clip_plus_save = NULL;
# endif
***************
*** 1644,1653 ****
/*
* A few functions shared by X11 title and clipboard code.
*/
- static int x_error_handler(Display *dpy, XErrorEvent *error_event);
- static int x_error_check(Display *dpy, XErrorEvent *error_event);
- static int x_connect_to_server(void);
- static int test_x11_window(Display *dpy);
static int got_x_error = FALSE;
--- 1629,1634 ----
***************
*** 1683,1690 ****
/*
* An X IO Error handler, used to catch error while opening the display.
*/
- static int x_IOerror_check(Display *dpy);
-
static int
x_IOerror_check(Display *dpy UNUSED)
{
--- 1664,1669 ----
***************
*** 1699,1706 ****
/*
* An X IO Error handler, used to catch terminal errors.
*/
- static int x_IOerror_handler(Display *dpy);
- static void may_restore_clipboard(void);
static int xterm_dpy_was_reset = FALSE;
static int
--- 1678,1683 ----
***************
*** 2510,2517 ****
}
#if !defined(HAVE_STRERROR) && defined(USE_GETCWD)
- static char *strerror(int);
-
static char *
strerror(int err)
{
--- 2487,2492 ----
***************
*** 3136,3143 ****
return (S_ISDIR(statb.st_mode) ? TRUE : FALSE);
}
- static int executable_file(char_u *name);
-
/*
* Return 1 if "name" is an executable file, 0 if not or it doesn't exist.
*/
--- 3111,3116 ----
***************
*** 3340,3347 ****
}
#endif
- static void exit_scroll(void);
-
/*
* Output a newline when exiting.
* Make sure the newline goes to the same stream as the text.
--- 3313,3318 ----
***************
*** 7818,7833 ****
/*
* Code for X Session Management Protocol.
*/
- static void xsmp_handle_save_yourself(SmcConn smc_conn, SmPointer client_data, int save_type, Bool shutdown, int interact_style, Bool fast);
- static void xsmp_die(SmcConn smc_conn, SmPointer client_data);
- static void xsmp_save_complete(SmcConn smc_conn, SmPointer client_data);
- static void xsmp_shutdown_cancelled(SmcConn smc_conn, SmPointer client_data);
- static void xsmp_ice_connection(IceConn iceConn, IcePointer clientData, Bool opening, IcePointer *watchData);
-
# if defined(FEAT_GUI) && defined(USE_XSMP_INTERACT)
- static void xsmp_handle_interaction(SmcConn smc_conn, SmPointer client_data);
-
/*
* This is our chance to ask the user if they want to save,
* or abort the logout
--- 7789,7796 ----
*** ../vim-8.1.0442/src/os_win32.c 2018-09-13 15:33:39.609712174 +0200
--- src/os_win32.c 2018-09-30 21:27:20.702316630 +0200
***************
*** 168,195 ****
static int g_fCtrlCPressed = FALSE; /* set when ctrl-C or ctrl-break detected */
static int g_fForceExit = FALSE; /* set when forcefully exiting */
- static void termcap_mode_start(void);
- static void termcap_mode_end(void);
- static void clear_chars(COORD coord, DWORD n);
- static void clear_screen(void);
- static void clear_to_end_of_display(void);
- static void clear_to_end_of_line(void);
static void scroll(unsigned cLines);
static void set_scroll_region(unsigned left, unsigned top,
unsigned right, unsigned bottom);
- static void insert_lines(unsigned cLines);
static void delete_lines(unsigned cLines);
static void gotoxy(unsigned x, unsigned y);
- static void normvideo(void);
- static void textattr(WORD wAttr);
- static void textcolor(WORD wAttr);
- static void textbackground(WORD wAttr);
static void standout(void);
- static void standend(void);
- static void visual_bell(void);
- static void cursor_visible(BOOL fVisible);
- static DWORD write_chars(char_u *pchBuf, DWORD cbToWrite);
- static void create_conin(void);
static int s_cursor_visible = TRUE;
static int did_create_conin = FALSE;
#else
--- 168,179 ----
***************
*** 3487,3494 ****
*
* return -1 for failure, 0 otherwise
*/
! static
! int
win32_setattrs(char_u *name, int attrs)
{
int res;
--- 3471,3477 ----
*
* return -1 for failure, 0 otherwise
*/
! static int
win32_setattrs(char_u *name, int attrs)
{
int res;
***************
*** 3513,3520 ****
/*
* Set archive flag for "name".
*/
! static
! int
win32_set_archive(char_u *name)
{
int attrs = win32_getattrs(name);
--- 3496,3502 ----
/*
* Set archive flag for "name".
*/
! static int
win32_set_archive(char_u *name)
{
int attrs = win32_getattrs(name);
*** ../vim-8.1.0442/src/pty.c 2018-02-04 14:39:45.000000000 +0100
--- src/pty.c 2018-09-30 21:27:44.854151402 +0200
***************
*** 126,133 ****
# undef HAVE_SVR4_PTYS
#endif
- static void initmaster(int);
-
/*
* Open all ptys with O_NOCTTY, just to be on the safe side.
*/
--- 126,131 ----
*** ../vim-8.1.0442/src/regexp.c 2018-07-18 06:02:04.084736178 +0200
--- src/regexp.c 2018-09-30 21:28:48.185717335 +0200
***************
*** 3466,3472 ****
save_se_T save_end[NSUBEXP];
} regbehind_T;
- static char_u *reg_getline(linenr_T lnum);
static long bt_regexec_both(char_u *line, colnr_T col, proftime_T *tm, int *timed_out);
static long regtry(bt_regprog_T *prog, colnr_T col, proftime_T *tm, int *timed_out);
static void cleanup_subexpr(void);
--- 3466,3471 ----
***************
*** 4009,4016 ****
}
#ifdef FEAT_SYN_HL
- static reg_extmatch_T *make_extmatch(void);
-
/*
* Create a new extmatch and mark it as referenced once.
*/
--- 4008,4013 ----
***************
*** 4137,4144 ****
}
#ifdef FEAT_MBYTE
- static int reg_prev_class(void);
-
/*
* Get class of previous character.
*/
--- 4134,4139 ----
***************
*** 4152,4159 ****
}
#endif
- static int reg_match_visual(void);
-
/*
* Return TRUE if the current rex.input position matches the Visual area.
*/
--- 4147,4152 ----
***************
*** 7010,7017 ****
}
#ifdef FEAT_MBYTE
- static void mb_decompose(int c, int *c1, int *c2, int *c3);
-
typedef struct
{
int a, b, c;
--- 7003,7008 ----
***************
*** 7215,7225 ****
*/
typedef void (*(*fptr_T)(int *, int))();
- static fptr_T do_upper(int *, int);
- static fptr_T do_Upper(int *, int);
- static fptr_T do_lower(int *, int);
- static fptr_T do_Lower(int *, int);
-
static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int copy, int magic, int backslash);
static fptr_T
--- 7206,7211 ----
***************
*** 7883,7890 ****
}
#ifdef FEAT_EVAL
- static char_u *reg_getline_submatch(linenr_T lnum);
-
/*
* Call reg_getline() with the line numbers from the submatch. If a
* substitute() was used the reg_maxline and other values have been
--- 7869,7874 ----
***************
*** 8212,8219 ****
}
#ifdef FEAT_EVAL
- static void report_re_switch(char_u *pat);
-
static void
report_re_switch(char_u *pat)
{
--- 8196,8201 ----
*** ../vim-8.1.0442/src/screen.c 2018-09-13 14:57:37.915261048 +0200
--- src/screen.c 2018-09-30 21:29:41.773349225 +0200
***************
*** 107,115 ****
static match_T search_hl; /* used for 'hlsearch' highlight matching */
#endif
- #if defined(FEAT_MENU) || defined(FEAT_FOLDING)
- static int text_to_screenline(win_T *wp, char_u *text, int col);
- #endif
#ifdef FEAT_FOLDING
static foldinfo_T win_foldinfo; /* info for 'foldcolumn' */
static int compute_foldcolumn(win_T *wp, int col);
--- 107,112 ----
***************
*** 133,139 ****
static void copy_text_attr(int off, char_u *buf, int len, int attr);
#endif
static int win_line(win_T *, linenr_T, int, int, int nochange, int number_only);
- static int char_needs_redraw(int off_from, int off_to, int cols);
static void draw_vsep_win(win_T *wp, int row);
#ifdef FEAT_STL_OPT
static void redraw_custom_statusline(win_T *wp);
--- 130,135 ----
***************
*** 147,153 ****
static void next_search_hl(win_T *win, match_T *shl, linenr_T lnum, colnr_T mincol, matchitem_T *cur);
static int next_search_hl_pos(match_T *shl, linenr_T lnum, posmatch_T *pos, colnr_T mincol);
#endif
- static void screen_start_highlight(int attr);
static void screen_char(unsigned off, int row, int col);
#ifdef FEAT_MBYTE
static void screen_char_2(unsigned off, int row, int col);
--- 143,148 ----
***************
*** 155,162 ****
static void screenclear2(void);
static void lineclear(unsigned off, int width, int attr);
static void lineinvalid(unsigned off, int width);
- static void linecopy(int to, int from, win_T *wp);
- static void redraw_block(int row, int end, win_T *wp);
static int win_do_lines(win_T *wp, int row, int line_count, int mayclear, int del, int clear_attr);
static void win_rest_invalid(win_T *wp);
static void msg_pos_mode(void);
--- 150,155 ----
***************
*** 2495,2502 ****
}
#ifdef FEAT_SYN_HL
- static int advance_color_col(int vcol, int **color_cols);
-
/*
* Advance **color_cols and return TRUE when there are columns to draw.
*/
--- 2488,2493 ----
***************
*** 6034,6041 ****
}
#ifdef FEAT_MBYTE
- static int comp_char_differs(int, int);
-
/*
* Return if the composing characters at "off_from" and "off_to" differ.
* Only to be used when ScreenLinesUC[off_from] != 0.
--- 6025,6030 ----
***************
*** 6617,6623 ****
}
#ifdef FEAT_WILDMENU
- static int status_match_len(expand_T *xp, char_u *s);
static int skip_status_match_char(expand_T *xp, char_u *s);
/*
--- 6606,6611 ----
***************
*** 7414,7421 ****
}
#ifdef FEAT_MBYTE
- static int screen_comp_differs(int, int*);
-
/*
* Return TRUE if composing characters for screen posn "off" differs from
* composing characters in "u8cc".
--- 7402,7407 ----
*** ../vim-8.1.0442/src/search.c 2018-08-16 21:37:46.389318767 +0200
--- src/search.c 2018-09-30 21:30:25.877045753 +0200
***************
*** 16,31 ****
static void set_vv_searchforward(void);
static int first_submatch(regmmatch_T *rp);
#endif
- static int check_prevcol(char_u *linep, int col, int ch, int *prevcol);
- static int inmacro(char_u *, char_u *);
static int check_linecomment(char_u *line);
static int cls(void);
static int skip_chars(int, int);
- #ifdef FEAT_TEXTOBJ
- static void back_in_line(void);
- static void find_first_blank(pos_T *);
- static void findsent_forward(long count, int at_start_sent);
- #endif
#ifdef FEAT_FIND_ID
static void show_pat_in_path(char_u *, int,
int, int, FILE *, linenr_T *, long);
--- 16,24 ----
***************
*** 1835,1842 ****
return (col >= 0 && linep[col] == ch) ? TRUE : FALSE;
}
- static int find_rawstring_end(char_u *linep, pos_T *startpos, pos_T *endpos);
-
/*
* Raw string start is found at linep[startpos.col - 1].
* Return TRUE if the matching end can be found between startpos and endpos.
--- 1828,1833 ----
***************
*** 3866,3873 ****
return OK;
}
- static int in_html_tag(int);
-
/*
* Return TRUE if the cursor is on a "<aaa>" tag. Ignore "<aaa/>".
* When "end_tag" is TRUE return TRUE if the cursor is on "</aaa>".
--- 3857,3862 ----
***************
*** 4326,4334 ****
return OK;
}
- static int find_next_quote(char_u *top_ptr, int col, int quotechar, char_u *escape);
- static int find_prev_quote(char_u *line, int col_start, int quotechar, char_u *escape);
-
/*
* Search quote char from string line[col].
* Quote character escaped by one of the characters in "escape" is not counted
--- 4315,4320 ----
*** ../vim-8.1.0442/src/sha256.c 2017-01-24 20:06:49.000000000 +0100
--- src/sha256.c 2018-09-30 21:30:54.716847080 +0200
***************
*** 24,31 ****
#if defined(FEAT_CRYPT) || defined(FEAT_PERSISTENT_UNDO)
- static void sha256_process(context_sha256_T *ctx, char_u data[64]);
-
#define GET_UINT32(n, b, i) \
{ \
(n) = ( (UINT32_T)(b)[(i) ] << 24) \
--- 24,29 ----
***************
*** 265,272 ****
#endif /* FEAT_CRYPT || FEAT_PERSISTENT_UNDO */
#if defined(FEAT_CRYPT) || defined(PROTO)
- static unsigned int get_some_time(void);
-
/*
* Returns hex digest of "buf[buf_len]" in a static array.
* if "salt" is not NULL also do "salt[salt_len]".
--- 263,268 ----
*** ../vim-8.1.0442/src/spell.c 2018-03-04 16:22:07.000000000 +0100
--- src/spell.c 2018-09-30 21:31:37.576551512 +0200
***************
*** 251,257 ****
static int spell_iswordp(char_u *p, win_T *wp);
#ifdef FEAT_MBYTE
static int spell_mb_isword_class(int cl, win_T *wp);
- static int spell_iswordp_w(int *p, win_T *wp);
#endif
/*
--- 251,256 ----
***************
*** 337,358 ****
static void find_word(matchinf_T *mip, int mode);
static int match_checkcompoundpattern(char_u *ptr, int wlen, garray_T *gap);
static int can_compound(slang_T *slang, char_u *word, char_u *flags);
- static int can_be_compound(trystate_T *sp, slang_T *slang, char_u *compflags, int flag);
static int match_compoundrule(slang_T *slang, char_u *compflags);
static int valid_word_prefix(int totprefcnt, int arridx, int flags, char_u *word, slang_T *slang, int cond_req);
static void find_prefix(matchinf_T *mip, int mode);
static int fold_more(matchinf_T *mip);
static int spell_valid_case(int wordflags, int treeflags);
- static int no_spell_checking(win_T *wp);
- static void spell_load_lang(char_u *lang);
- static void int_wordlist_spl(char_u *fname);
static void spell_load_cb(char_u *fname, void *cookie);
- static int score_wordcount_adj(slang_T *slang, int score, char_u *word, int split);
static int count_syllables(slang_T *slang, char_u *word);
static void clear_midword(win_T *buf);
static void use_midword(slang_T *lp, win_T *buf);
static int find_region(char_u *rp, char_u *region);
- static int badword_captype(char_u *word, char_u *end);
static int check_need_cap(linenr_T lnum, colnr_T col);
static void spell_find_suggest(char_u *badptr, int badlen, suginfo_T *su, int maxcount, int banbadword, int need_cap, int interactive);
#ifdef FEAT_EVAL
--- 336,351 ----
***************
*** 361,367 ****
static void spell_suggest_file(suginfo_T *su, char_u *fname);
static void spell_suggest_intern(suginfo_T *su, int interactive);
static void spell_find_cleanup(suginfo_T *su);
- static void allcap_copy(char_u *word, char_u *wcopy);
static void suggest_try_special(suginfo_T *su);
static void suggest_try_change(suginfo_T *su);
static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, int soundfold);
--- 354,359 ----
*** ../vim-8.1.0442/src/spellfile.c 2018-06-19 14:23:50.298866932 +0200
--- src/spellfile.c 2018-09-30 21:32:30.492186122 +0200
***************
*** 296,302 ****
static int set_spell_finish(spelltab_T *new_st);
static int write_spell_prefcond(FILE *fd, garray_T *gap);
- static char_u *read_cnt_string(FILE *fd, int cnt_bytes, int *lenp);
static int read_region_section(FILE *fd, slang_T *slang, int len);
static int read_charflags_section(FILE *fd);
static int read_prefcond_section(FILE *fd, slang_T *lp);
--- 296,301 ----
***************
*** 312,318 ****
#endif
static int spell_read_tree(FILE *fd, char_u **bytsp, idx_T **idxsp, int prefixtree, int prefixcnt);
static idx_T read_tree_node(FILE *fd, char_u *byts, idx_T *idxs, int maxidx, idx_T startidx, int prefixtree, int maxprefcondnr);
- static void spell_reload_one(char_u *fname, int added_word);
static void set_spell_charflags(char_u *flags, int cnt, char_u *upp);
static int set_spell_chartab(char_u *fol, char_u *low, char_u *upp);
static void set_map_str(slang_T *lp, char_u *map);
--- 311,316 ----
***************
*** 1985,1991 ****
int si_newcompID; /* current value for compound ID */
} spellinfo_T;
- static afffile_T *spell_read_aff(spellinfo_T *spin, char_u *fname);
static int is_aff_rule(char_u **items, int itemcnt, char *rulename, int mincount);
static void aff_process_flags(afffile_T *affile, affentry_T *entry);
static int spell_info_item(char_u *s);
--- 1983,1988 ----
***************
*** 1993,2027 ****
static unsigned get_affitem(int flagtype, char_u **pp);
static void process_compflags(spellinfo_T *spin, afffile_T *aff, char_u *compflags);
static void check_renumber(spellinfo_T *spin);
- static int flag_in_afflist(int flagtype, char_u *afflist, unsigned flag);
static void aff_check_number(int spinval, int affval, char *name);
static void aff_check_string(char_u *spinval, char_u *affval, char *name);
static int str_equal(char_u *s1, char_u *s2);
static void add_fromto(spellinfo_T *spin, garray_T *gap, char_u *from, char_u *to);
static int sal_to_bool(char_u *s);
- static void spell_free_aff(afffile_T *aff);
- static int spell_read_dic(spellinfo_T *spin, char_u *fname, afffile_T *affile);
static int get_affix_flags(afffile_T *affile, char_u *afflist);
static int get_pfxlist(afffile_T *affile, char_u *afflist, char_u *store_afflist);
static void get_compflags(afffile_T *affile, char_u *afflist, char_u *store_afflist);
static int store_aff_word(spellinfo_T *spin, char_u *word, char_u *afflist, afffile_T *affile, hashtab_T *ht, hashtab_T *xht, int condit, int flags, char_u *pfxlist, int pfxlen);
- static int spell_read_wordfile(spellinfo_T *spin, char_u *fname);
static void *getroom(spellinfo_T *spin, size_t len, int align);
static char_u *getroom_save(spellinfo_T *spin, char_u *s);
- static void free_blocks(sblock_T *bl);
- static wordnode_T *wordtree_alloc(spellinfo_T *spin);
static int store_word(spellinfo_T *spin, char_u *word, int flags, int region, char_u *pfxlist, int need_affix);
static int tree_add_word(spellinfo_T *spin, char_u *word, wordnode_T *tree, int flags, int region, int affixID);
static wordnode_T *get_wordnode(spellinfo_T *spin);
- static int deref_wordnode(spellinfo_T *spin, wordnode_T *node);
static void free_wordnode(spellinfo_T *spin, wordnode_T *n);
static void wordtree_compress(spellinfo_T *spin, wordnode_T *root);
static int node_compress(spellinfo_T *spin, wordnode_T *node, hashtab_T *ht, int *tot);
static int node_equal(wordnode_T *n1, wordnode_T *n2);
- static int write_vim_spell(spellinfo_T *spin, char_u *fname);
static void clear_node(wordnode_T *node);
static int put_node(FILE *fd, wordnode_T *node, int idx, int regionmask, int prefixtree);
- static void spell_make_sugfile(spellinfo_T *spin, char_u *wfname);
static int sug_filltree(spellinfo_T *spin, slang_T *slang);
static int sug_maketable(spellinfo_T *spin);
static int sug_filltable(spellinfo_T *spin, wordnode_T *node, int startwordnr, garray_T *gap);
--- 1990,2015 ----
*** ../vim-8.1.0442/src/syntax.c 2018-09-28 22:26:47.786139328 +0200
--- src/syntax.c 2018-09-30 21:35:08.551092059 +0200
***************
*** 91,97 ****
{HL_BOLD, HL_STANDOUT, HL_UNDERLINE, HL_UNDERCURL, HL_ITALIC, HL_INVERSE, HL_INVERSE, HL_NOCOMBINE, HL_STRIKETHROUGH, 0};
#define ATTR_COMBINE(attr_a, attr_b) ((((attr_b) & HL_NOCOMBINE) ? attr_b : (attr_a)) | (attr_b))
- static int get_attr_entry(garray_T *table, attrentry_T *aep);
static void syn_unadd_group(void);
static void set_hl_attr(int idx);
static void highlight_list_one(int id);
--- 91,96 ----
***************
*** 106,115 ****
#endif
#ifdef FEAT_GUI
static int set_group_colors(char_u *name, guicolor_T *fgp, guicolor_T *bgp, int do_menu, int use_norm, int do_tooltip);
- static GuiFont font_name2handle(char_u *name);
- # ifdef FEAT_XFONTSET
- static GuiFontset fontset_name2handle(char_u *name, int fixed_width);
- # endif
static void hl_do_font(int idx, char_u *arg, int do_normal, int do_menu, int do_tooltip, int free_font);
#endif
--- 105,110 ----
***************
*** 386,393 ****
#define CUR_STATE(idx) ((stateitem_T *)(current_state.ga_data))[idx]
static void syn_sync(win_T *wp, linenr_T lnum, synstate_T *last_valid);
- static void save_chartab(char_u *chartab);
- static void restore_chartab(char_u *chartab);
static int syn_match_linecont(linenr_T lnum);
static void syn_start_line(void);
static void syn_update_ends(int startofline);
--- 381,386 ----
***************
*** 415,425 ****
#ifdef FEAT_PROFILE
static void syn_clear_time(syn_time_T *tt);
static void syntime_clear(void);
- #ifdef __BORLANDC__
- static int _RTLENTRYF syn_compare_syntime(const void *v1, const void *v2);
- #else
- static int syn_compare_syntime(const void *v1, const void *v2);
- #endif
static void syntime_report(void);
static int syn_time_on = FALSE;
# define IF_SYN_TIME(p) (p)
--- 408,413 ----
***************
*** 430,437 ****
static void syn_stack_apply_changes_block(synblock_T *block, buf_T *buf);
static void find_endpos(int idx, lpos_T *startpos, lpos_T *m_endpos, lpos_T *hl_endpos, long *flagsp, lpos_T *end_endpos, int *end_idx, reg_extmatch_T *start_ext);
- static void clear_syn_state(synstate_T *p);
- static void clear_current_state(void);
static void limit_pos(lpos_T *pos, lpos_T *limit);
static void limit_pos_zero(lpos_T *pos, lpos_T *limit);
--- 418,423 ----
***************
*** 440,464 ****
static char_u *syn_getcurline(void);
static int syn_regexec(regmmatch_T *rmp, linenr_T lnum, colnr_T col, syn_time_T *st);
static int check_keyword_id(char_u *line, int startcol, int *endcol, long *flags, short **next_list, stateitem_T *cur_si, int *ccharp);
- static void syn_cmd_case(exarg_T *eap, int syncing);
- static void syn_cmd_spell(exarg_T *eap, int syncing);
- static void syntax_sync_clear(void);
static void syn_remove_pattern(synblock_T *block, int idx);
static void syn_clear_pattern(synblock_T *block, int i);
static void syn_clear_cluster(synblock_T *block, int i);
- static void syn_cmd_clear(exarg_T *eap, int syncing);
- static void syn_cmd_conceal(exarg_T *eap, int syncing);
static void syn_clear_one(int id, int syncing);
- static void syn_cmd_on(exarg_T *eap, int syncing);
- static void syn_cmd_enable(exarg_T *eap, int syncing);
- static void syn_cmd_reset(exarg_T *eap, int syncing);
- static void syn_cmd_manual(exarg_T *eap, int syncing);
- static void syn_cmd_off(exarg_T *eap, int syncing);
static void syn_cmd_onoff(exarg_T *eap, char *name);
- static void syn_cmd_list(exarg_T *eap, int syncing);
static void syn_lines_msg(void);
static void syn_match_msg(void);
- static void syn_stack_free_block(synblock_T *block);
static void syn_list_one(int id, int syncing, int link_only);
static void syn_list_cluster(int id);
static void put_id_list(char_u *name, short *list, int attr);
--- 426,438 ----
***************
*** 466,495 ****
static int syn_list_keywords(int id, hashtab_T *ht, int did_header, int attr);
static void syn_clear_keyword(int id, hashtab_T *ht);
static void clear_keywtab(hashtab_T *ht);
- static void add_keyword(char_u *name, int id, int flags, short *cont_in_list, short *next_list, int conceal_char);
- static char_u *get_group_name(char_u *arg, char_u **name_end);
- static char_u *get_syn_options(char_u *arg, syn_opt_arg_T *opt, int *conceal_char, int skip);
- static void syn_cmd_include(exarg_T *eap, int syncing);
- static void syn_cmd_iskeyword(exarg_T *eap, int syncing);
- static void syn_cmd_keyword(exarg_T *eap, int syncing);
- static void syn_cmd_match(exarg_T *eap, int syncing);
- static void syn_cmd_region(exarg_T *eap, int syncing);
- #ifdef __BORLANDC__
- static int _RTLENTRYF syn_compare_stub(const void *v1, const void *v2);
- #else
- static int syn_compare_stub(const void *v1, const void *v2);
- #endif
- static void syn_cmd_cluster(exarg_T *eap, int syncing);
- static int syn_scl_name2id(char_u *name);
static int syn_scl_namen2id(char_u *linep, int len);
static int syn_check_cluster(char_u *pp, int len);
static int syn_add_cluster(char_u *name);
static void init_syn_patterns(void);
static char_u *get_syn_pattern(char_u *arg, synpat_T *ci);
- static void syn_cmd_sync(exarg_T *eap, int syncing);
static int get_id_list(char_u **arg, int keylen, short **list, int skip);
static void syn_combine_list(short **clstr1, short **clstr2, int list_op);
- static void syn_incl_toplevel(int id, int *flagsp);
#if defined(FEAT_RELTIME) || defined(PROTO)
/*
--- 440,452 ----
*** ../vim-8.1.0442/src/tag.c 2018-07-08 16:50:33.111216814 +0200
--- src/tag.c 2018-09-30 21:35:32.702924583 +0200
***************
*** 1155,1162 ****
#endif
#ifdef FEAT_TAG_BINS
- static int tag_strnicmp(char_u *s1, char_u *s2, size_t len);
-
/*
* Compare two strings, for length "len", ignoring case the ASCII way.
* return 0 for match, < 0 for smaller, > 0 for bigger
--- 1155,1160 ----
***************
*** 1194,1201 ****
regmatch_T regmatch; /* regexp program, may be NULL */
} pat_T;
- static void prepare_pats(pat_T *pats, int has_re);
-
/*
* Extract info from the tag search pattern "pats->pat".
*/
--- 1192,1197 ----
***************
*** 3878,3885 ****
#endif
#if defined(FEAT_EVAL) || defined(PROTO)
- static int add_tag_field(dict_T *dict, char *field_name, char_u *start, char_u *end);
-
/*
* Add a tag field to the dictionary "dict".
* Return OK or FAIL.
--- 3874,3879 ----
*** ../vim-8.1.0442/src/term.c 2018-09-21 12:24:08.618955563 +0200
--- src/term.c 2018-09-30 21:39:43.881179267 +0200
***************
*** 74,80 ****
/* start of keys that are not directly used by Vim but can be mapped */
#define BT_EXTRA_KEYS 0x101
- static struct builtin_term *find_builtin_term(char_u *name);
static void parse_builtin_tcap(char_u *s);
static void gather_termleader(void);
#ifdef FEAT_TERMRESPONSE
--- 74,79 ----
***************
*** 91,99 ****
static void del_termcode_idx(int idx);
static int term_is_builtin(char_u *name);
static int term_7to8bit(char_u *p);
- #ifdef FEAT_TERMRESPONSE
- static void switch_to_8bit(void);
- #endif
#ifdef HAVE_TGETENT
static char_u *tgetent_error(char_u *, char_u *);
--- 90,95 ----
***************
*** 2429,2436 ****
* minimal tgoto() implementation.
* no padding and we only parse for %i %d and %+char
*/
- static char *tgoto(char *, int, int);
-
static char *
tgoto(char *cm, int x, int y)
{
--- 2425,2430 ----
***************
*** 3147,3154 ****
}
}
- static int get_long_from_buf(char_u *buf, long_u *val);
-
/*
* Interpret the next string of bytes in buf as a long integer, with the most
* significant byte first. Note that it is assumed that buf has been through
--- 3141,3146 ----
*** ../vim-8.1.0442/src/ui.c 2018-09-13 15:33:39.609712174 +0200
--- src/ui.c 2018-09-30 21:36:42.842437833 +0200
***************
*** 715,721 ****
* Stuff for general mouse selection, without using Visual mode.
*/
- static int clip_compare_pos(int row1, int col1, int row2, int col2);
static void clip_invert_area(int, int, int, int, int how);
static void clip_invert_rectangle(int row, int col, int height, int width, int invert);
static void clip_get_word_boundaries(VimClipboard *, int, int);
--- 715,720 ----
***************
*** 2069,2076 ****
static Boolean clip_x11_convert_selection_cb(Widget w, Atom *sel_atom, Atom *target, Atom *type, XtPointer *value, long_u *length, int *format);
static void clip_x11_lose_ownership_cb(Widget w, Atom *sel_atom);
static void clip_x11_notify_cb(Widget w, Atom *sel_atom, Atom *target);
- static void clip_x11_timestamp_cb(Widget w, XtPointer n, XEvent *event, Boolean *cont);
- static void clip_x11_request_selection_cb(Widget w, XtPointer success, Atom *sel_atom, Atom *type, XtPointer value, long_u *length, int *format);
/*
* Property callback to get a timestamp for XtOwnSelection.
--- 2068,2073 ----
*** ../vim-8.1.0442/src/undo.c 2018-08-21 17:07:40.155188638 +0200
--- src/undo.c 2018-09-30 21:37:48.205983765 +0200
***************
*** 100,106 ****
} bufinfo_T;
- static long get_undolevel(void);
static void u_unch_branch(u_header_T *uhp);
static u_entry_T *u_get_headentry(void);
static void u_getbot(void);
--- 100,105 ----
***************
*** 113,136 ****
static void u_freeentries(buf_T *buf, u_header_T *uhp, u_header_T **uhpp);
static void u_freeentry(u_entry_T *, long);
#ifdef FEAT_PERSISTENT_UNDO
- static void corruption_error(char *mesg, char_u *file_name);
- static void u_free_uhp(u_header_T *uhp);
- static int undo_write(bufinfo_T *bi, char_u *ptr, size_t len);
# ifdef FEAT_CRYPT
static int undo_flush(bufinfo_T *bi);
# endif
- static int fwrite_crypt(bufinfo_T *bi, char_u *ptr, size_t len);
- static int undo_write_bytes(bufinfo_T *bi, long_u nr, int len);
- static void put_header_ptr(bufinfo_T *bi, u_header_T *uhp);
- static int undo_read_4c(bufinfo_T *bi);
- static int undo_read_2c(bufinfo_T *bi);
- static int undo_read_byte(bufinfo_T *bi);
- static time_t undo_read_time(bufinfo_T *bi);
static int undo_read(bufinfo_T *bi, char_u *buffer, size_t size);
- static char_u *read_string_decrypt(bufinfo_T *bi, int len);
- static int serialize_header(bufinfo_T *bi, char_u *hash);
- static int serialize_uhp(bufinfo_T *bi, u_header_T *uhp);
- static u_header_T *unserialize_uhp(bufinfo_T *bi, char_u *file_name);
static int serialize_uep(bufinfo_T *bi, u_entry_T *uep);
static u_entry_T *unserialize_uep(bufinfo_T *bi, int *error, char_u *file_name);
static void serialize_pos(bufinfo_T *bi, pos_T pos);
--- 112,121 ----
*** ../vim-8.1.0442/src/version.c 2018-09-30 18:22:22.568974801 +0200
--- src/version.c 2018-09-30 21:40:06.745020131 +0200
***************
*** 79,86 ****
}
#endif
- static void list_features(void);
-
static char *(features[]) =
{
#ifdef HAVE_ACL
--- 79,84 ----
*** ../vim-8.1.0442/src/window.c 2018-09-25 22:08:10.933806882 +0200
--- src/window.c 2018-09-30 21:38:45.485585533 +0200
***************
*** 20,27 ****
static void win_rotate(int, int);
static void win_totop(int size, int flags);
static void win_equal_rec(win_T *next_curwin, int current, frame_T *topfr, int dir, int col, int row, int width, int height);
- static int last_window(void);
- static int close_last_window_tabpage(win_T *win, int free_buf, tabpage_T *prev_curtab);
static win_T *win_free_mem(win_T *win, int *dirp, tabpage_T *tp);
static frame_T *win_altframe(win_T *win, tabpage_T *tp);
static tabpage_T *alt_tabpage(void);
--- 20,25 ----
***************
*** 6246,6253 ****
}
# if defined(FEAT_FIND_ID) && defined(FEAT_EVAL)
- static char_u *eval_includeexpr(char_u *ptr, int len);
-
static char_u *
eval_includeexpr(char_u *ptr, int len)
{
--- 6244,6249 ----
*** ../vim-8.1.0442/src/workshop.c 2018-09-13 17:26:31.091401618 +0200
--- src/workshop.c 2018-09-30 21:39:05.577445783 +0200
***************
*** 45,51 ****
static char *fixup(char *);
static char *get_selection(buf_T *);
static char *append_selection(int, char *, int *, int *);
- static void load_buffer_by_name(char *, int);
static void load_window(char *, int lnum);
static void warp_to_pc(int);
#ifdef FEAT_BEVAL_GUI
--- 45,50 ----
***************
*** 1228,1234 ****
}
-
static void
load_buffer_by_name(
char *filename, /* the file to load */
--- 1227,1232 ----
*** ../vim-8.1.0442/src/version.c 2018-09-30 18:22:22.568974801 +0200
--- src/version.c 2018-09-30 21:40:06.745020131 +0200
***************
*** 796,797 ****
--- 794,797 ----
{ /* Add new patch number below this line */
+ /**/
+ 443,
/**/
--
The difference between theory and practice, is that in theory, there
is no difference between theory and practice.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|