summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1306
blob: 60f52f63070ea25b026a1917ea824ce18a3f66bb (plain)
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
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1306
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.1306
Problem:    Borland support is outdated and doesn't work.
Solution:   Remove Borland support, there are other (free) compilers
            available. (Thomas Dziedzic, Ken Takata, closes #4364)
Files:	    .gitignore, .hgignore, Filelist, runtime/doc/debug.txt,
            runtime/doc/develop.txt, runtime/doc/usr_90.txt,
            src/GvimExt/Make_bc5.mak, src/GvimExt/gvimext.cpp,
            src/GvimExt/gvimext.rc, src/INSTALLpc.txt, src/Make_bc5.mak,
            src/dosinst.c, src/dosinst.h, src/evalfunc.c, src/ex_cmds.c,
            src/ex_getln.c, src/gui_w32.c, src/if_ole.cpp, src/if_py_both.h,
            src/main.c, src/mark.c, src/message.c, src/misc1.c, src/misc2.c,
            src/normal.c, src/option.c, src/os_mswin.c, src/os_w32exe.c,
            src/os_win32.c, src/os_win32.h, src/proto.h, src/screen.c,
            src/spell.c, src/spellfile.c, src/syntax.c, src/userfunc.c,
            src/vim.h, src/vim.rc, src/vimrun.c, src/xxd/Make_bc5.mak,
            src/xxd/xxd.c


*** ../vim-8.1.1305/.gitignore	2019-05-07 21:48:15.625291418 +0200
--- .gitignore	2019-05-09 15:08:50.086239830 +0200
***************
*** 43,56 ****
  runtime/doc/uganda.nsis.txt
  nsis/icons/*
  
- # Borland C++
- bcc.cfg
- *.ilc
- *.ild
- *.ilf
- *.ils
- *.tds
- 
  # NetBeans
  nbproject/*
  
--- 43,48 ----
*** ../vim-8.1.1305/.hgignore	2019-05-07 21:48:15.625291418 +0200
--- .hgignore	2019-05-09 15:08:50.086239830 +0200
***************
*** 45,58 ****
  runtime/doc/uganda.nsis.txt
  nsis/icons/*
  
- # Borland C++
- bcc.cfg
- *.ilc
- *.ild
- *.ilf
- *.ils
- *.tds
- 
  # NetBeans
  nbproject/*
  
--- 45,50 ----
*** ../vim-8.1.1305/Filelist	2019-05-07 22:25:23.486167275 +0200
--- Filelist	2019-05-09 15:08:50.086239830 +0200
***************
*** 421,427 ****
  		src/GvimExt/uninst.bat \
  		README_srcdos.txt \
  		src/INSTALLpc.txt \
- 		src/Make_bc5.mak \
  		src/Make_cyg.mak \
  		src/Make_cyg_ming.mak \
  		src/Make_ming.mak \
--- 421,426 ----
***************
*** 474,480 ****
  		src/xpm_w32.c \
  		src/xpm_w32.h \
  		src/tee/Make_mvc.mak \
- 		src/xxd/Make_bc5.mak \
  		src/xxd/Make_ming.mak \
  		src/xxd/Make_mvc.mak \
  		nsis/gvim.nsi \
--- 473,478 ----
*** ../vim-8.1.1305/runtime/doc/debug.txt	2019-05-07 22:25:23.486167275 +0200
--- runtime/doc/debug.txt	2019-05-09 15:08:50.086239830 +0200
***************
*** 80,88 ****
  
  If you have Visual Studio, use that instead of the VC Toolkit and WinDbg.
  
! For other compilers, you should always use the corresponding debugger: TD for
! a Vim executable compiled with the Borland compiler; gdb (see above
! |debug-gcc|) for the Cygwin and MinGW compilers.
  
  
  								*debug-vs2005*
--- 80,87 ----
  
  If you have Visual Studio, use that instead of the VC Toolkit and WinDbg.
  
! For other compilers, you should always use the corresponding debugger: gdb
! (see above |debug-gcc|) for the Cygwin and MinGW compilers.
  
  
  								*debug-vs2005*
*** ../vim-8.1.1305/runtime/doc/develop.txt	2019-05-05 18:11:46.308590707 +0200
--- runtime/doc/develop.txt	2019-05-09 15:08:50.086239830 +0200
***************
*** 278,284 ****
  index		shadows global declaration
  time		shadows global declaration
  new		C++ reserved keyword
- try		Borland C++ doesn't like it to be used as a variable.
  
  clear		Mac curses.h
  echo		Mac curses.h
--- 278,283 ----
*** ../vim-8.1.1305/runtime/doc/usr_90.txt	2019-05-05 18:11:46.328590595 +0200
--- runtime/doc/usr_90.txt	2019-05-09 15:08:50.086239830 +0200
***************
*** 281,289 ****
  In case you are not satisfied with the features included in the supplied
  binaries, you could try compiling Vim yourself.  Get the source archive from
  the same location as where the binaries are.  You need a compiler for which a
! makefile exists.  Microsoft Visual C works, but is expensive.  The Free
! Borland command-line compiler 5.5 can be used, as well as the free MingW and
! Cygwin compilers.  Check the file src/INSTALLpc.txt for hints.
  
  ==============================================================================
  *90.3*	Upgrading
--- 281,288 ----
  In case you are not satisfied with the features included in the supplied
  binaries, you could try compiling Vim yourself.  Get the source archive from
  the same location as where the binaries are.  You need a compiler for which a
! makefile exists.  Microsoft Visual C works, but is expensive.  The free MinGW
! and Cygwin compilers can be used.  Check the file src/INSTALLpc.txt for hints.
  
  ==============================================================================
  *90.3*	Upgrading
*** ../vim-8.1.1305/src/GvimExt/Make_bc5.mak	2010-05-15 13:04:10.000000000 +0200
--- src/GvimExt/Make_bc5.mak	1970-01-01 01:00:00.000000000 +0100
***************
*** 1,43 ****
- ### USEDLL  no for statically linked version of run-time, yes for DLL runtime
- ### BOR	    path to root of Borland C install (c:\bc5)
- 
- ### (requires cc3250.dll be available in %PATH%)
- !if ("$(USEDLL)"=="")
- USEDLL = no
- !endif
- 
- ### BOR: root of the BC installation
- !if ("$(BOR)"=="")
- BOR = c:\bc5
- !endif
- 
- CC	= $(BOR)\bin\Bcc32
- BRC	= $(BOR)\bin\brc32
- LINK	= $(BOR)\BIN\ILink32
- INCLUDE = $(BOR)\include;.
- LIB	= $(BOR)\lib
- 
- !if ("$(USEDLL)"=="yes")
- RT_DEF = -D_RTLDLL
- RT_LIB = cw32i.lib
- !else
- RT_DEF =
- RT_LIB = cw32.lib
- !endif
- 
- 
- all : gvimext.dll
- 
- gvimext.obj : gvimext.cpp gvimext.h
- 	$(CC) -tWD -I$(INCLUDE) -c -DFEAT_GETTEXT $(RT_DEF) -w- gvimext.cpp
- 
- gvimext.res : gvimext.rc
- 	$(BRC) -r gvimext.rc
- 
- gvimext.dll : gvimext.obj gvimext.res
- 	$(LINK) -L$(LIB) -aa gvimext.obj, gvimext.dll, , c0d32.obj $(RT_LIB) import32.lib, gvimext.def, gvimext.res
- 
- clean :
- 	-@del gvimext.obj
- 	-@del gvimext.res
- 	-@del gvimext.dll
--- 0 ----
*** ../vim-8.1.1305/src/GvimExt/gvimext.cpp	2018-12-16 14:37:35.845271247 +0100
--- src/GvimExt/gvimext.cpp	2019-05-09 15:08:50.090239809 +0200
***************
*** 16,29 ****
  
  #include "gvimext.h"
  
- #ifdef __BORLANDC__
- # include <dir.h>
- # ifndef _strnicmp
- #  define _strnicmp(a, b, c) strnicmp((a), (b), (c))
- # endif
- #else
  static char *searchpath(char *name);
- #endif
  
  // Always get an error while putting the following stuff to the
  // gvimext.h file as class protected variables, give up and
--- 16,22 ----
***************
*** 917,923 ****
  	return TRUE;
  }
  
- #ifndef __BORLANDC__
      static char *
  searchpath(char *name)
  {
--- 910,915 ----
***************
*** 937,943 ****
      }
      return (char *)"";
  }
- #endif
  
  STDMETHODIMP CShellExt::InvokeGvim(HWND hParent,
  				   LPCSTR  /* pszWorkingDir */,
--- 929,934 ----
*** ../vim-8.1.1305/src/GvimExt/gvimext.rc	2010-05-15 13:04:10.000000000 +0200
--- src/GvimExt/gvimext.rc	2019-05-09 15:08:50.090239809 +0200
***************
*** 7,15 ****
  //
  // Generated from the TEXTINCLUDE 2 resource.
  //
! #ifndef __BORLANDC__
! # include "winresrc.h"
! #endif
  
  /////////////////////////////////////////////////////////////////////////////
  #undef APSTUDIO_READONLY_SYMBOLS
--- 7,13 ----
  //
  // Generated from the TEXTINCLUDE 2 resource.
  //
! #include "winresrc.h"
  
  /////////////////////////////////////////////////////////////////////////////
  #undef APSTUDIO_READONLY_SYMBOLS
*** ../vim-8.1.1305/src/INSTALLpc.txt	2019-05-07 22:25:23.486167275 +0200
--- src/INSTALLpc.txt	2019-05-09 15:08:50.090239809 +0200
***************
*** 25,45 ****
  2. Using MSYS2 with MinGW
  3. Using MinGW
  4. Cygwin
! 5. Borland
! 6. Cross compiling for Win32 from a Linux machine
! 7. Building with Python support
! 8. Building with Python3 support
! 9. Building with Racket or MzScheme support
! 10. Building with Lua support
! 11. Building with Perl support
! 12. Building with Ruby support
! 13. Building with Tcl support
! 14. Building with Terminal support
! 15. Building with DirectX (DirectWrite) support
! 16. Windows 3.1
! 17. MS-DOS
  
! 18. Installing after building from sources
  
  
  The currently recommended way (that means it has been verified to work) is
--- 25,44 ----
  2. Using MSYS2 with MinGW
  3. Using MinGW
  4. Cygwin
! 5. Cross compiling for Win32 from a Linux machine
! 6. Building with Python support
! 7. Building with Python3 support
! 8. Building with Racket or MzScheme support
! 9. Building with Lua support
! 10. Building with Perl support
! 11. Building with Ruby support
! 12. Building with Tcl support
! 13. Building with Terminal support
! 14. Building with DirectX (DirectWrite) support
! 15. Windows 3.1
! 16. MS-DOS
  
! 17. Installing after building from sources
  
  
  The currently recommended way (that means it has been verified to work) is
***************
*** 451,464 ****
  with the other makefiles).
  
  
! 5. Borland
! ===========
! 
! Use Make_bc5.mak with Borland C++ 5.x. See
!     http://users.skynet.be/antoine.mechelynck/vim/compile.htm
! 
! 
! 6. Cross compiling for Win32 from a Linux machine
  =================================================
  
  [Update of 1) needs to be verified]
--- 450,456 ----
  with the other makefiles).
  
  
! 5. Cross compiling for Win32 from a Linux machine
  =================================================
  
  [Update of 1) needs to be verified]
***************
*** 478,484 ****
  Now you have created the Windows binary from your Linux box!  Have fun...
  
  
! 7. Building with Python support
  ===============================
  
  For building with MSVC 2008 the "Windows Installer" from www.python.org
--- 470,476 ----
  Now you have created the Windows binary from your Linux box!  Have fun...
  
  
! 6. Building with Python support
  ===============================
  
  For building with MSVC 2008 the "Windows Installer" from www.python.org
***************
*** 539,545 ****
  You will end up with a Python-enabled, Win32 version. Enjoy!
  
  
! 8. Building with Python3 support
  ================================
  
  For building with MSVC 2008 the "Windows Installer" from www.python.org
--- 531,537 ----
  You will end up with a Python-enabled, Win32 version. Enjoy!
  
  
! 7. Building with Python3 support
  ================================
  
  For building with MSVC 2008 the "Windows Installer" from www.python.org
***************
*** 576,582 ****
  libstdc++-6.dll.)
  
  
! 9. Building with Racket or MzScheme support
  ========================================
  
  1) Building with Racket support (newest)
--- 568,574 ----
  libstdc++-6.dll.)
  
  
! 8. Building with Racket or MzScheme support
  ========================================
  
  1) Building with Racket support (newest)
***************
*** 666,672 ****
  
  
  
! 10. Building with Lua support
  ============================
  
  Vim with Lua support can be built with either MSVC or MinGW (or maybe Cygwin).
--- 658,664 ----
  
  
  
! 9. Building with Lua support
  ============================
  
  Vim with Lua support can be built with either MSVC or MinGW (or maybe Cygwin).
***************
*** 721,727 ****
          LUA=/cygdrive/c/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53
  
  
! 11. Building with Perl support
  ==============================
  
  Vim with Perl support can be built with either MSVC or MinGW (or Cygwin).
--- 713,719 ----
          LUA=/cygdrive/c/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53
  
  
! 10. Building with Perl support
  ==============================
  
  Vim with Perl support can be built with either MSVC or MinGW (or Cygwin).
***************
*** 747,753 ****
          PERL=C:/Perl DYNAMIC_PERL=yes PERL_VER=522
  
  
! 12. Building with Ruby support
  ==============================
  
  Vim with Ruby support can be built with either MSVC or MinGW (or Cygwin).
--- 739,745 ----
          PERL=C:/Perl DYNAMIC_PERL=yes PERL_VER=522
  
  
! 11. Building with Ruby support
  ==============================
  
  Vim with Ruby support can be built with either MSVC or MinGW (or Cygwin).
***************
*** 855,861 ****
  
  
  
! 13. Building with Tcl support
  =============================
  
  Vim with Tcl support can be built with either MSVC or MinGW (or Cygwin).
--- 847,853 ----
  
  
  
! 12. Building with Tcl support
  =============================
  
  Vim with Tcl support can be built with either MSVC or MinGW (or Cygwin).
***************
*** 894,900 ****
          TCL=C:/Tcl86 DYNAMIC_TCL=yes TCL_VER=86 TCL_VER_LONG=8.6
  
  
! 14. Building with Terminal support
  ==================================
  
  Vim with Terminal support can be built with either MSVC, MinGW or Cygwin.
--- 886,892 ----
          TCL=C:/Tcl86 DYNAMIC_TCL=yes TCL_VER=86 TCL_VER_LONG=8.6
  
  
! 13. Building with Terminal support
  ==================================
  
  Vim with Terminal support can be built with either MSVC, MinGW or Cygwin.
***************
*** 910,916 ****
      mingw32-make -f Make_ming.mak TERMINAL=yes
  
  
! 15. Building with DirectX (DirectWrite) support
  ===============================================
  
  Vim with DirectX (DirectWrite) support can be built with either MSVC or MinGW.
--- 902,908 ----
      mingw32-make -f Make_ming.mak TERMINAL=yes
  
  
! 14. Building with DirectX (DirectWrite) support
  ===============================================
  
  Vim with DirectX (DirectWrite) support can be built with either MSVC or MinGW.
***************
*** 944,963 ****
      mingw32-make -f Make_ming.mak DIRECTX=yes
  
  
! 16. Windows 3.1x
  ================
  
  The Windows 3.1x support was removed in patch 7.4.1364.
  
  
! 17. MS-DOS
  ==========
  
  The MS-DOS support was removed in patch 7.4.1399.  Only very old Vim versions
  work on MS-DOS because of the limited amount of memory available.
  
  
! 18. Installing after building from sources
  ==========================================
  
  [provided by Michael Soyka, updated by Ken Takata]
--- 936,955 ----
      mingw32-make -f Make_ming.mak DIRECTX=yes
  
  
! 15. Windows 3.1x
  ================
  
  The Windows 3.1x support was removed in patch 7.4.1364.
  
  
! 16. MS-DOS
  ==========
  
  The MS-DOS support was removed in patch 7.4.1399.  Only very old Vim versions
  work on MS-DOS because of the limited amount of memory available.
  
  
! 17. Installing after building from sources
  ==========================================
  
  [provided by Michael Soyka, updated by Ken Takata]
*** ../vim-8.1.1305/src/Make_bc5.mak	2019-04-27 13:03:20.000715982 +0200
--- src/Make_bc5.mak	1970-01-01 01:00:00.000000000 +0100
***************
*** 1,983 ****
- #
- # Makefile for Vim.
- # Compiler: Borland C++ 5.0 and later 32-bit compiler
- #  Targets: Win32 (Windows NT and Windows 95) (with/without GUI)
- #
- # NOTE: THIS IS OLD AND PROBABLY NO LONGER WORKS.
- #
- # Contributed by Ben Singer.
- # Updated 4/1997 by Ron Aaron
- #	2016: removed support for 16 bit DOS
- #	6/1997 - added support for 16 bit DOS
- #	Note: this has been tested, and works, for BC5.  Your mileage may vary.
- #	Has been reported NOT to work with BC 4.52.  Maybe it can be fixed?
- #	10/1997 - ron - fixed bugs w/ BC 5.02
- #	8/1998 - ron - updated with new targets, fixed some stuff
- #	3/2000 - Bram: Made it work with BC 5.5 free command line compiler,
- #			cleaned up variables.
- #	6/2001 - Dan - Added support for compiling Python and TCL
- #	7/2001 - Dan - Added support for compiling Ruby
- #
- # It builds on Windows 95 and NT-Intel, producing the same binary in either
- # case.  To build using Microsoft Visual C++, use Make_mvc.mak.
- #
- # This should work with the free Borland command line compiler, version 5.5.
- # You need at least sp1 (service pack 1).  With sp2 it compiles faster.
- # Use a command like this:
- # <path>\bin\make /f Make_bc5.mak BOR=<path>
- #
- 
- # let the make utility do the hard work:
- .AUTODEPEND
- .CACHEAUTODEPEND
- 
- # VARIABLES:
- # name		value (default)
- #
- # BOR		path to root of Borland C install (c:\bc5)
- # LINK		name of the linker ($(BOR)\bin\ilink32)
- # GUI		no or yes: set to yes if you want the GUI version (yes)
- # LUA     define to path to Lua dir to get Lua support (not defined)
- #   LUA_VER	  define to version of Lua being used (51)
- #   DYNAMIC_LUA  no or yes: set to yes to load the Lua DLL dynamically (no)
- # PERL		define to path to Perl dir to get Perl support (not defined)
- #   PERL_VER	  define to version of Perl being used (56)
- #   DYNAMIC_PERL  no or yes: set to yes to load the Perl DLL dynamically (no)
- # PYTHON	define to path to Python dir to get PYTHON support (not defined)
- #   PYTHON_VER	    define to version of Python being used (22)
- #   DYNAMIC_PYTHON  no or yes: use yes to load the Python DLL dynamically (no)
- # PYTHON3	define to path to Python3 dir to get PYTHON3 support (not defined)
- #   PYTHON3_VER	    define to version of Python3 being used (31)
- #   DYNAMIC_PYTHON3  no or yes: use yes to load the Python3 DLL dynamically (no)
- # TCL		define to path to TCL dir to get TCL support (not defined)
- #   TCL_VER	define to version of TCL being used (83)
- #   DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (no)
- # RUBY		define to path to Ruby dir to get Ruby support (not defined)
- #		NOTE: You may have to remove the defines for uid_t and gid_t
- #		from the Ruby config.h header file.
- #   RUBY_VER	define to version of Ruby being used (16)
- #		NOTE: compilation on WinNT/2K/XP requires
- #		at least version 1.6.5 of Ruby.  Earlier versions
- #		of Ruby will cause a compile error on these systems.
- #   RUBY_VER_LONG  same, but in format with dot. (1.6)
- #   DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (no)
- # IME		no or yes: set to yes for multi-byte IME support (yes)
- #   DYNAMIC_IME no or yes: set to yes to load imm32.dll dynamically (yes)
- # GETTEXT	no or yes: set to yes for multi-language support (yes)
- # ICONV		no or yes: set to yes for dynamic iconv support (yes)
- # OLE		no or yes: set to yes to make OLE gvim (no)
- # DEBUG		no or yes: set to yes if you wish a DEBUGging build (no)
- # CODEGUARD	no or yes: set to yes if you want to use CODEGUARD (no)
- # CPUNR		1 through 6: select -CPU argument to compile with (3)
- #		3 for 386, 4 for 486, 5 for pentium, 6 for pentium pro.
- # USEDLL	no or yes: set to yes to use the Runtime library DLL (no)
- #		For USEDLL=yes the cc3250.dll is required to run Vim.
- # ALIGN		1, 2 or 4: Alignment to use (4 for Win32)
- # FASTCALL	no or yes: set to yes to use register-based function protocol (yes)
- # OPTIMIZE	SPACE, SPEED, or MAXSPEED: type of optimization (MAXSPEED)
- # POSTSCRIPT	no or yes: set to yes for PostScript printing
- # FEATURES	TINY, SMALL, NORMAL, BIG or HUGE (BIG for WIN32)
- # WINVER	0x0400 or 0x0500: minimum Win32 version to support (0x0400)
- # CSCOPE	no or yes: include support for Cscope interface (yes)
- # NETBEANS	no or yes: include support for Netbeans interface; also
- #		requires CHANNEL (yes if GUI
- #		is yes)
- # NBDEBUG	no or yes: include support for debugging Netbeans interface (no)
- # CHANNEL	no or yes: include support for inter process communication (yes
- #		if GUI is yes)
- # XPM		define to path to XPM dir to get support for loading XPM images.
- 
- ### BOR: root of the BC installation
- !if ("$(BOR)"=="")
- BOR = c:\bc5
- !endif
- 
- ### LINK: Name of the linker: ilink32 (this is below)
- 
- ### GUI: yes for GUI version, no for console version
- !if ("$(GUI)"=="")
- GUI = yes
- !endif
- 
- ### IME: yes for multibyte support, no to disable it.
- !if ("$(IME)"=="")
- IME = yes
- !endif
- !if ("$(DYNAMIC_IME)"=="")
- DYNAMIC_IME = yes
- !endif
- 
- ### GETTEXT: yes for multilanguage support, no to disable it.
- !if ("$(GETTEXT)"=="")
- GETTEXT = yes
- !endif
- 
- ### ICONV: yes to enable dynamic-iconv support, no to disable it
- !if ("$(ICONV)"=="")
- ICONV = yes
- !endif
- 
- ### CSCOPE: yes to enable Cscope support, no to disable it
- !if ("$(CSCOPE)"=="")
- CSCOPE = yes
- !endif
- 
- ### NETBEANS: yes to enable NetBeans interface support, no to disable it
- !if ("$(NETBEANS)"=="") && ("$(GUI)"=="yes")
- NETBEANS = yes
- !endif
- 
- ### CHANNEL: yes to enable inter process communication, no to disable it
- !if ("$(CHANNEL)"=="") && ("$(GUI)"=="yes")
- CHANNEL = yes
- !endif
- 
- ### LUA: uncomment this line if you want lua support in vim
- # LUA=c:\lua
- 
- ### PERL: uncomment this line if you want perl support in vim
- # PERL=c:\perl
- 
- ### PYTHON: uncomment this line if you want python support in vim
- # PYTHON=c:\python22
- 
- ### PYTHON3: uncomment this line if you want python3 support in vim
- # PYTHON3=c:\python31
- 
- ### RUBY: uncomment this line if you want ruby support in vim
- # RUBY=c:\ruby
- 
- ### TCL: uncomment this line if you want tcl support in vim
- # TCL=c:\tcl
- 
- ### OLE: no for normal gvim, yes for OLE-capable gvim (only works with GUI)
- #OLE = yes
- 
- ### DEBUG: Uncomment to make an executable for debugging
- # DEBUG = yes
- !if ("$(DEBUG)"=="yes")
- DEBUG_FLAG = -v
- !endif
- 
- ### CODEGUARD: Uncomment to use the CODEGUARD stuff (BC 5.0 or later):
- # CODEGUARD = yes
- !if ("$(CODEGUARD)"=="yes")
- CODEGUARD_FLAG = -vG
- !endif
- 
- ### CPUNR: set your target processor (3 to 6)
- !if ("$(CPUNR)" == "i386") || ("$(CPUNR)" == "3")
- CPUNR = 3
- !elif ("$(CPUNR)" == "i486") || ("$(CPUNR)" == "4")
- CPUNR = 4
- !elif ("$(CPUNR)" == "i586") || ("$(CPUNR)" == "5")
- CPUNR = 5
- !elif ("$(CPUNR)" == "i686") || ("$(CPUNR)" == "6")
- CPUNR = 6
- !else
- CPUNR = 3
- !endif
- 
- ### Comment out to use precompiled headers (faster, but uses lots of disk!)
- HEADERS = -H -H=vim.csm -Hc
- 
- ### USEDLL: no for statically linked version of run-time, yes for DLL runtime
- !if ("$(USEDLL)"=="")
- USEDLL = no
- !endif
- 
- ### ALIGN: alignment you desire: (1,2 or 4: s/b 4 for Win32)
- !if ("$(ALIGN)"=="")
- ALIGN = 4
- !endif
- 
- ### FASTCALL: yes to use FASTCALL calling convention (RECOMMENDED!), no otherwise
- #   Incompatible when calling external functions (like MSVC-compiled DLLs), so
- #   don't use FASTCALL when linking with external libs.
- !if ("$(FASTCALL)"=="") && \
- 	("$(LUA)"=="") && \
- 	("$(PYTHON)"=="") && \
- 	("$(PYTHON3)"=="") && \
- 	("$(PERL)"=="") && \
- 	("$(TCL)"=="") && \
- 	("$(RUBY)"=="") && \
- 	("$(ICONV)"!="yes") && \
- 	("$(IME)"!="yes") && \
- 	("$(XPM)"=="")
- FASTCALL = yes
- !endif
- 
- ### OPTIMIZE: SPEED to optimize for speed, SPACE otherwise (SPEED RECOMMENDED)
- !if ("$(OPTIMIZE)"=="")
- OPTIMIZE = MAXSPEED
- !endif
- 
- ### FEATURES: TINY, SMALL, NORMAL, BIG or HUGE (BIG for WIN32)
- !if ("$(FEATURES)"=="")
- FEATURES = BIG
- !endif
- 
- ### POSTSCRIPT: uncomment this line if you want PostScript printing
- #POSTSCRIPT = yes
- 
- ###
- # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal
- # default, use these lines.
- #VIMRCLOC = somewhere
- #VIMRUNTIMEDIR = somewhere
- 
- ### Set the default $(WINVER) to make it work with Bcc 5.5.
- !ifndef WINVER
- WINVER = 0x0400
- !endif
- 
- #
- # Sanity checks for the above options:
- #
- 
- OSTYPE = WIN32
- 
- #
- # Optimizations: change as desired (RECOMMENDATION: Don't change!):
- #
- !if ("$(DEBUG)"=="yes")
- OPT = -Od -N
- !else
- !if ("$(OPTIMIZE)"=="SPACE")
- OPT = -O1 -f- -d
- !elif ("$(OPTIMIZE)"=="MAXSPEED")
- OPT = -O2 -f- -d -Ocavi -O
- !else
- OPT = -O2 -f- -d -Oc -O
- !endif
- !if ("$(FASTCALL)"=="yes")
- OPT = $(OPT) -pr
- !endif
- !if ("$(CODEGUARD)"!="yes")
- OPT = $(OPT) -vi-
- !endif
- !endif
- # shouldn't have to change:
- LIB = $(BOR)\lib
- INCLUDE = $(BOR)\include;.;proto
- DEFINES = -DFEAT_$(FEATURES) -DWIN32 -DHAVE_PATHDEF \
- 	  -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
- 
- !ifdef LUA
- INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_LUA
- INCLUDE = $(LUA)\include;$(INCLUDE)
- !  ifndef LUA_VER
- LUA_VER = 51
- !  endif
- !  if ("$(DYNAMIC_LUA)" == "yes")
- INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
- LUA_LIB_FLAG = /nodefaultlib:
- !  endif
- !endif
- 
- !ifdef PERL
- INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PERL
- INCLUDE = $(PERL)\lib\core;$(INCLUDE)
- !  ifndef PERL_VER
- PERL_VER = 56
- !  endif
- !  if ("$(DYNAMIC_PERL)" == "yes")
- !    if ($(PERL_VER) > 55)
- INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
- PERL_LIB_FLAG = /nodefaultlib:
- !    else
- !      message "Cannot dynamically load Perl versions less than 5.6.  Loading statically..."
- !    endif
- !  endif
- !endif
- 
- !ifdef PYTHON
- !ifdef PYTHON3
- DYNAMIC_PYTHON=yes
- DYNAMIC_PYTHON3=yes
- !endif
- !endif
- 
- !ifdef PYTHON
- INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PYTHON
- !ifndef PYTHON_VER
- PYTHON_VER = 22
- !endif
- !if "$(DYNAMIC_PYTHON)" == "yes"
- INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
- PYTHON_LIB_FLAG = /nodefaultlib:
- !endif
- !endif
- 
- !ifdef PYTHON3
- INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PYTHON3
- !ifndef PYTHON3_VER
- PYTHON3_VER = 31
- !endif
- !if "$(DYNAMIC_PYTHON3)" == "yes"
- INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python$(PYTHON3_VER).dll\"
- PYTHON3_LIB_FLAG = /nodefaultlib:
- !endif
- !endif
- 
- 
- !ifdef RUBY
- !ifndef RUBY_VER
- RUBY_VER = 16
- !endif
- !ifndef RUBY_VER_LONG
- RUBY_VER_LONG = 1.6
- !endif
- 
- !if "$(RUBY_VER)" == "16"
- !ifndef RUBY_PLATFORM
- RUBY_PLATFORM = i586-mswin32
- !endif
- !ifndef RUBY_INSTALL_NAME
- RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
- !endif
- !else
- !ifndef RUBY_PLATFORM
- RUBY_PLATFORM = i386-mswin32
- !endif
- !ifndef RUBY_INSTALL_NAME
- RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
- !endif
- !endif
- 
- INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_RUBY
- INCLUDE = $(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM);$(INCLUDE)
- 
- !if "$(DYNAMIC_RUBY)" == "yes"
- INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
- INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_RUBY_VER=$(RUBY_VER)
- RUBY_LIB_FLAG = /nodefaultlib:
- !endif
- !endif
- 
- !ifdef TCL
- INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_TCL
- INCLUDE = $(TCL)\include;$(INCLUDE)
- !ifndef TCL_VER
- TCL_VER = 83
- !endif
- TCL_LIB = $(TCL)\lib\tcl$(TCL_VER).lib
- TCL_LIB_FLAG =
- !if "$(DYNAMIC_TCL)" == "yes"
- INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
- TCL_LIB = tclstub$(TCL_VER)-bor.lib
- TCL_LIB_FLAG =
- !endif
- !endif
- #
- # DO NOT change below:
- #
- CPUARG = -$(CPUNR)
- ALIGNARG = -a$(ALIGN)
- #
- !if ("$(DEBUG)"=="yes")
- DEFINES=$(DEFINES) -DDEBUG -D_DEBUG
- !endif
- #
- !if ("$(OLE)"=="yes")
- DEFINES = $(DEFINES) -DFEAT_OLE
- !endif
- #
- !if ("$(IME)"=="yes")
- MBDEFINES = $(MBDEFINES) -DFEAT_MBYTE_IME
- !if ("$(DYNAMIC_IME)" == "yes")
- MBDEFINES = $(MBDEFINES) -DDYNAMIC_IME
- !endif
- !endif
- !if ("$(ICONV)"=="yes")
- MBDEFINES = $(MBDEFINES) -DDYNAMIC_ICONV
- !endif
- !if ("$(GETTEXT)"=="yes")
- MBDEFINES = $(MBDEFINES) -DDYNAMIC_GETTEXT
- !endif
- 
- !if ("$(CSCOPE)"=="yes")
- DEFINES = $(DEFINES) -DFEAT_CSCOPE
- !endif
- 
- !if ("$(GUI)"=="yes")
- DEFINES = $(DEFINES) -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD
- !if ("$(DEBUG)"=="yes")
- TARGET = gvimd.exe
- !else
- TARGET = gvim.exe
- !endif
- EXETYPE=-W
- STARTUPOBJ = c0w32.obj
- LINK2 = -aa
- RESFILE = vim.res
- !else
- !undef NETBEANS
- !undef CHANNEL
- !undef XPM
- !if ("$(DEBUG)"=="yes")
- TARGET = vimd.exe
- !else
- # for now, anyway: VIMDLL is only for the GUI version
- TARGET = vim.exe
- !endif
- EXETYPE=-WC
- STARTUPOBJ = c0x32.obj
- LINK2 = -ap -OS -o -P
- RESFILE = vim.res
- !endif
- 
- !if ("$(NETBEANS)"=="yes")
- !if ("$(CHANNEL)"!="yes")
- # cannot use Netbeans without CHANNEL
- NETBEANS = no
- !else
- DEFINES = $(DEFINES) -DFEAT_NETBEANS_INTG
- !if ("$(NBDEBUG)"=="yes")
- DEFINES = $(DEFINES) -DNBDEBUG
- NBDEBUG_DEP = nbdebug.h nbdebug.c
- !endif
- !endif
- !endif
- 
- !if ("$(CHANNEL)"=="yes")
- DEFINES = $(DEFINES) -DFEAT_JOB_CHANNEL
- !endif
- 
- !ifdef XPM
- !if ("$(GUI)"=="yes")
- DEFINES = $(DEFINES) -DFEAT_XPM_W32
- INCLUDE = $(XPM)\include;$(INCLUDE)
- !endif
- !endif
- 
- !if ("$(USEDLL)"=="yes")
- DEFINES = $(DEFINES) -D_RTLDLL
- !endif
- 
- !if ("$(DEBUG)"=="yes")
- OBJDIR	= $(OSTYPE)\objdbg
- !else
- !if ("$(GUI)"=="yes")
- !if ("$(OLE)"=="yes")
- OBJDIR	= $(OSTYPE)\oleobj
- !else
- OBJDIR	= $(OSTYPE)\gobj
- !endif
- !else
- OBJDIR	= $(OSTYPE)\obj
- !endif
- !endif
- 
- !if ("$(POSTSCRIPT)"=="yes")
- DEFINES = $(DEFINES) -DMSWINPS
- !endif
- 
- ##### BASE COMPILER/TOOLS RULES #####
- MAKE = $(BOR)\bin\make
- CFLAGS = -w-aus -w-par -w-pch -w-ngu -w-csu -I$(INCLUDE)
- BRC = $(BOR)\BIN\brc32
- !if ("$(LINK)"=="")
- LINK	= $(BOR)\BIN\ILink32
- !endif
- CC   = $(BOR)\BIN\Bcc32
- LFLAGS	= -OS -Tpe -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2)
- LFLAGSDLL  = -Tpd -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2)
- CFLAGS = $(CFLAGS) -d -RT- -k- -Oi $(HEADERS) -f-
- 
- CC1 = -c
- CC2 = -o
- CCARG = +$(OBJDIR)\bcc.cfg
- 
- # implicit rules:
- 
- # Without the following, the implicit rule in BUILTINS.MAK is picked up
- # for a rule for .c.obj rather than the local implicit rule
- .SUFFIXES
- .SUFFIXES .c .obj
- .path.c = .
- 
- {.}.c{$(OBJDIR)}.obj:
- 	$(CC) $(CCARG) $(CC1) -n$(OBJDIR)\ {$< }
- 
- .cpp.obj:
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ $*.cpp
- 
- vimmain = \
- 	$(OBJDIR)\os_w32exe.obj
- vimwinmain = \
- 	$(OBJDIR)\os_w32exe.obj
- 
- vimobj =  \
- 	$(OBJDIR)\arabic.obj \
- 	$(OBJDIR)\autocmd.obj \
- 	$(OBJDIR)\blowfish.obj \
- 	$(OBJDIR)\buffer.obj \
- 	$(OBJDIR)\charset.obj \
- 	$(OBJDIR)\crypt.obj \
- 	$(OBJDIR)\crypt_zip.obj \
- 	$(OBJDIR)\debugger.obj \
- 	$(OBJDIR)\dict.obj \
- 	$(OBJDIR)\diff.obj \
- 	$(OBJDIR)\digraph.obj \
- 	$(OBJDIR)\edit.obj \
- 	$(OBJDIR)\eval.obj \
- 	$(OBJDIR)\evalfunc.obj \
- 	$(OBJDIR)\ex_cmds.obj \
- 	$(OBJDIR)\ex_cmds2.obj \
- 	$(OBJDIR)\ex_docmd.obj \
- 	$(OBJDIR)\ex_eval.obj \
- 	$(OBJDIR)\ex_getln.obj \
- 	$(OBJDIR)\fileio.obj \
- 	$(OBJDIR)\findfile.obj \
- 	$(OBJDIR)\fold.obj \
- 	$(OBJDIR)\getchar.obj \
- 	$(OBJDIR)\hardcopy.obj \
- 	$(OBJDIR)\hashtab.obj \
- 	$(OBJDIR)\indent.obj \
- 	$(OBJDIR)\insexpand.obj \
- 	$(OBJDIR)\json.obj \
- 	$(OBJDIR)\list.obj \
- 	$(OBJDIR)\main.obj \
- 	$(OBJDIR)\mark.obj \
- 	$(OBJDIR)\memfile.obj \
- 	$(OBJDIR)\memline.obj \
- 	$(OBJDIR)\menu.obj \
- 	$(OBJDIR)\message.obj \
- 	$(OBJDIR)\misc1.obj \
- 	$(OBJDIR)\misc2.obj \
- 	$(OBJDIR)\move.obj \
- 	$(OBJDIR)\mbyte.obj \
- 	$(OBJDIR)\normal.obj \
- 	$(OBJDIR)\ops.obj \
- 	$(OBJDIR)\option.obj \
- 	$(OBJDIR)\popupmnu.obj \
- 	$(OBJDIR)\quickfix.obj \
- 	$(OBJDIR)\regexp.obj \
- 	$(OBJDIR)\screen.obj \
- 	$(OBJDIR)\search.obj \
- 	$(OBJDIR)\sha256.obj \
- 	$(OBJDIR)\sign.obj \
- 	$(OBJDIR)\spell.obj \
- 	$(OBJDIR)\spellfile.obj \
- 	$(OBJDIR)\syntax.obj \
- 	$(OBJDIR)\tag.obj \
- 	$(OBJDIR)\term.obj \
- 	$(OBJDIR)\ui.obj \
- 	$(OBJDIR)\undo.obj \
- 	$(OBJDIR)\usercmd.obj \
- 	$(OBJDIR)\userfunc.obj \
- 	$(OBJDIR)\version.obj \
- 	$(OBJDIR)\window.obj \
- 	$(OBJDIR)\pathdef.obj
- 
- !if ("$(OLE)"=="yes")
- vimobj = $(vimobj) \
- 	$(OBJDIR)\if_ole.obj
- !endif
- 
- !ifdef LUA
- vimobj = $(vimobj) \
-     $(OBJDIR)\if_lua.obj
- !endif
- 
- !ifdef PERL
- vimobj = $(vimobj) \
-     $(OBJDIR)\if_perl.obj
- !endif
- 
- !ifdef PYTHON
- vimobj = $(vimobj) \
-     $(OBJDIR)\if_python.obj
- !endif
- 
- !ifdef PYTHON3
- vimobj = $(vimobj) \
-     $(OBJDIR)\if_python3.obj
- !endif
- 
- !ifdef RUBY
- vimobj = $(vimobj) \
-     $(OBJDIR)\if_ruby.obj
- !endif
- 
- !ifdef TCL
- vimobj = $(vimobj) \
-     $(OBJDIR)\if_tcl.obj
- !endif
- 
- !if ("$(CSCOPE)"=="yes")
- vimobj = $(vimobj) \
-     $(OBJDIR)\if_cscope.obj
- !endif
- 
- !if ("$(NETBEANS)"=="yes")
- vimobj = $(vimobj) \
-     $(OBJDIR)\netbeans.obj
- !endif
- 
- !if ("$(CHANNEL)"=="yes")
- vimobj = $(vimobj) \
-     $(OBJDIR)\channel.obj
- !endif
- 
- !ifdef XPM
- vimobj = $(vimobj) \
-     $(OBJDIR)\xpm_w32.obj
- !endif
- 
- !if ("$(GUI)"=="yes")
- vimobj = $(vimobj) \
- 	$(vimwinmain) \
- 	$(OBJDIR)\gui.obj \
- 	$(OBJDIR)\gui_beval.obj \
- 	$(OBJDIR)\gui_w32.obj
- !endif
- 
- vimobj = $(vimobj) \
- 	$(OBJDIR)\os_win32.obj $(OBJDIR)\os_mswin.obj $(OBJDIR)\winclip.obj
- # Blab what we are going to do:
- MSG = Compiling $(OSTYPE) $(TARGET) $(OLETARGET), with:
- !if ("$(GUI)"=="yes")
- MSG = $(MSG) GUI
- !endif
- !if ("$(OLE)"=="yes")
- MSG = $(MSG) OLE
- !endif
- !if ("$(USEDLL)"=="yes")
- MSG = $(MSG) USEDLL
- !endif
- !if ("$(FASTCALL)"=="yes")
- MSG = $(MSG) FASTCALL
- !endif
- !if ("$(IME)"=="yes")
- MSG = $(MSG) IME
- ! if "$(DYNAMIC_IME)" == "yes"
- MSG = $(MSG)(dynamic)
- ! endif
- !endif
- !if ("$(GETTEXT)"=="yes")
- MSG = $(MSG) GETTEXT
- !endif
- !if ("$(ICONV)"=="yes")
- MSG = $(MSG) ICONV
- !endif
- !if ("$(DEBUG)"=="yes")
- MSG = $(MSG) DEBUG
- !endif
- !if ("$(CODEGUARD)"=="yes")
- MSG = $(MSG) CODEGUARD
- !endif
- !if ("$(CSCOPE)"=="yes")
- MSG = $(MSG) CSCOPE
- !endif
- !if ("$(NETBEANS)"=="yes")
- MSG = $(MSG) NETBEANS
- !endif
- !if ("$(CHANNEL)"=="yes")
- MSG = $(MSG) CHANNEL
- !endif
- !ifdef XPM
- MSG = $(MSG) XPM
- !endif
- !ifdef LUA
- MSG = $(MSG) LUA
- ! if "$(DYNAMIC_LUA)" == "yes"
- MSG = $(MSG)(dynamic)
- ! endif
- !endif
- !ifdef PERL
- MSG = $(MSG) PERL
- ! if "$(DYNAMIC_PERL)" == "yes"
- MSG = $(MSG)(dynamic)
- ! endif
- !endif
- !ifdef PYTHON
- MSG = $(MSG) PYTHON
- ! if "$(DYNAMIC_PYTHON)" == "yes"
- MSG = $(MSG)(dynamic)
- ! endif
- !endif
- !ifdef PYTHON3
- MSG = $(MSG) PYTHON3
- ! if "$(DYNAMIC_PYTHON3)" == "yes"
- MSG = $(MSG)(dynamic)
- ! endif
- !endif
- !ifdef RUBY
- MSG = $(MSG) RUBY
- ! if "$(DYNAMIC_RUBY)" == "yes"
- MSG = $(MSG)(dynamic)
- ! endif
- !endif
- !ifdef TCL
- MSG = $(MSG) TCL
- ! if "$(DYNAMIC_TCL)" == "yes"
- MSG = $(MSG)(dynamic)
- ! endif
- !endif
- MSG = $(MSG) cpu=$(CPUARG)
- MSG = $(MSG) Align=$(ALIGNARG)
- 
- !message $(MSG)
- 
- TARGETS = $(TARGETS) $(TARGET)
- 
- # Targets:
- all: vim vimrun.exe install.exe xxd uninstal.exe GvimExt/gvimext.dll
- 
- vim: $(OSTYPE) $(OBJDIR) $(OBJDIR)\bcc.cfg $(TARGETS)
- 	@if exist $(OBJDIR)\version.obj del $(OBJDIR)\version.obj
- 	@if exist auto\pathdef.c del auto\pathdef.c
- 
- $(OSTYPE):
- 	-@md $(OSTYPE)
- 
- $(OBJDIR):
- 	-@md $(OBJDIR)
- 
- xxd:
- 	@cd xxd
- 	$(MAKE) /f Make_bc5.mak BOR="$(BOR)" BCC="$(CC)"
- 	@cd ..
- 
- GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
- 	cd GvimExt
- 	$(MAKE) /f Make_bc5.mak USEDLL=$(USEDLL) BOR=$(BOR)
- 	cd ..
- 
- install.exe: dosinst.c $(OBJDIR)\bcc.cfg
- 	$(CC) $(CCARG) -WC -DWIN32 -einstall dosinst.c
- 
- uninstal.exe: uninstal.c $(OBJDIR)\bcc.cfg
- 	$(CC) $(CCARG) -WC -DWIN32 -O2 -euninstal uninstal.c
- 
- clean:
- !if "$(OS)" == "Windows_NT"
- 	# For Windows NT/2000, doesn't work on Windows 95/98...
- 	# $(COMSPEC) needed to ensure rmdir.exe is not run
- 	-@$(COMSPEC) /C rmdir /Q /S $(OBJDIR)
- !else
- 	# For Windows 95/98, doesn't work on Windows NT/2000...
- 	-@deltree /y $(OBJDIR)
- !endif
- 	-@del *.res
- 	-@del vim32*.dll
- 	-@del vim32*.lib
- 	-@del *vim*.exe
- 	-@del *install*.exe
- 	-@del *.csm
- 	-@del *.map
- 	-@del *.ilc
- 	-@del *.ild
- 	-@del *.ilf
- 	-@del *.ils
- 	-@del *.tds
- !ifdef LUA
- 	-@del lua.lib
- !endif
- !ifdef PERL
- 	-@del perl.lib
- 	-@del if_perl.c
- 	-@del auto\if_perl.c
- !endif
- !ifdef PYTHON
- 	-@del python.lib
- !endif
- !ifdef PYTHON3
- 	-@del python3.lib
- !endif
- !ifdef RUBY
- 	-@del ruby.lib
- !endif
- !ifdef TCL
- 	-@del tcl.lib
- !endif
- !ifdef XPM
- 	-@del xpm.lib
- !endif
- 	cd xxd
- 	$(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean
- 	cd ..
- 	cd GvimExt
- 	$(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean
- 	cd ..
- 
- 
- $(TARGET): $(OBJDIR) $(vimobj) $(OBJDIR)\$(RESFILE)
-   $(LINK) @&&|
- 	$(LFLAGS) +
- 	$(STARTUPOBJ) +
- 	$(vimobj)
- 	$<,$*
- !if ("$(CODEGUARD)"=="yes")
- 	cg32.lib+
- !endif
- # $(OSTYPE)==WIN32 causes os_mswin.c compilation. FEAT_SHORTCUT in it needs OLE
- 	ole2w32.lib +
- 	import32.lib+
- !ifdef LUA
- 	$(LUA_LIB_FLAG)lua.lib+
- !endif
- !ifdef PERL
- 	$(PERL_LIB_FLAG)perl.lib+
- !endif
- !ifdef PYTHON
- 	$(PYTHON_LIB_FLAG)python.lib+
- !endif
- !ifdef PYTHON3
- 	$(PYTHON3_LIB_FLAG)python3.lib+
- !endif
- !ifdef RUBY
- 	$(RUBY_LIB_FLAG)ruby.lib+
- !endif
- !ifdef TCL
- 	$(TCL_LIB_FLAG)tcl.lib+
- !endif
- !ifdef XPM
- 	xpm.lib+
- !endif
- !if ("$(USEDLL)"=="yes")
- 	cw32i.lib
- !else
- 	cw32.lib
- !endif
- 
- 	$(OBJDIR)\$(RESFILE)
- |
- 
- test:
- 	cd testdir
- 	$(MAKE) /NOLOGO -f Make_dos.mak win32
- 	cd ..
- 
- $(OBJDIR)\ex_docmd.obj:  ex_docmd.c ex_cmds.h
- 
- $(OBJDIR)\ex_eval.obj:  ex_eval.c ex_cmds.h
- 
- $(OBJDIR)\if_ole.obj: if_ole.cpp
- 
- $(OBJDIR)\if_lua.obj: if_lua.c lua.lib
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_lua.c
- 
- $(OBJDIR)\if_perl.obj: auto/if_perl.c perl.lib
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ -pc auto/if_perl.c
- 
- auto/if_perl.c: if_perl.xs typemap
- 	$(PERL)\bin\perl.exe $(PERL)\lib\ExtUtils\xsubpp -prototypes -typemap \
- 	    $(PERL)\lib\ExtUtils\typemap if_perl.xs -output $@
- 
- $(OBJDIR)\if_python.obj: if_python.c if_py_both.h python.lib
- 	$(CC) -I$(PYTHON)\include $(CCARG) $(CC1) $(CC2)$@ -pc if_python.c
- 
- $(OBJDIR)\if_python3.obj: if_python3.c if_py_both.h python3.lib
- 	$(CC) -I$(PYTHON3)\include $(CCARG) $(CC1) $(CC2)$@ -pc if_python3.c
- 
- $(OBJDIR)\if_ruby.obj: if_ruby.c ruby.lib
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_ruby.c
- 
- $(OBJDIR)\if_tcl.obj: if_tcl.c tcl.lib
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_tcl.c
- 
- $(OBJDIR)\xpm_w32.obj: xpm_w32.c xpm.lib
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ -pc xpm_w32.c
- 
- $(OBJDIR)\netbeans.obj: netbeans.c $(NBDEBUG_DEP)
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ netbeans.c
- 
- $(OBJDIR)\channel.obj: channel.c
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ channel.c
- 
- $(OBJDIR)\vim.res: vim.rc version.h tools.bmp tearoff.bmp \
- 		vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico
- 	$(BRC) -fo$(OBJDIR)\vim.res -i $(BOR)\include -w32 -r vim.rc @&&|
- 	$(DEFINES)
- |
- 
- $(OBJDIR)\pathdef.obj:	auto\pathdef.c
- 	$(CC) $(CCARG) $(CC1) $(CC2)$@ auto\pathdef.c
- 
- 
- # Need to escape both quotes and backslashes in $INTERP_DEFINES
- INTERP_DEFINES_ESC_BKS=$(INTERP_DEFINES:\=\\)
- INTERP_DEFINES_ESC=$(INTERP_DEFINES_ESC_BKS:"=\")
- 
- # Note:  the silly /*"*/ below are there to trick make into accepting
- # the # character as something other than a comment without messing up
- # the preprocessor directive.
- auto\pathdef.c::
- 	-@md auto
- 	@echo creating auto/pathdef.c
- 	@copy /y &&|
- /* pathdef.c */
- /*"*/#include "vim.h"/*"*/
- 
- char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)";
- char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)";
- char_u *all_cflags = (char_u *)"$(CC:\=\\) $(CFLAGS:\=\\) $(DEFINES) $(MBDEFINES) $(INTERP_DEFINES_ESC) $(OPT) $(EXETYPE) $(CPUARG) $(ALIGNARG) $(DEBUG_FLAG) $(CODEGUARD_FLAG)";
- char_u *all_lflags = (char_u *)"$(LINK:\=\\) $(LFLAGS:\=\\)";
- char_u *compiled_user = (char_u *)"$(USERNAME)";
- char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";
- | auto\pathdef.c
- 
- lua.lib: $(LUA)\lib\lua$(LUA_VER).lib
- 	coff2omf $(LUA)\lib\lua$(LUA_VER).lib $@
- 
- perl.lib: $(PERL)\lib\CORE\perl$(PERL_VER).lib
- 	coff2omf $(PERL)\lib\CORE\perl$(PERL_VER).lib $@
- 
- python.lib: $(PYTHON)\libs\python$(PYTHON_VER).lib
- 	coff2omf $(PYTHON)\libs\python$(PYTHON_VER).lib $@
- 
- python3.lib: $(PYTHON3)\libs\python$(PYTHON3_VER).lib
- 	coff2omf $(PYTHON3)\libs\python$(PYTHON3_VER).lib $@
- 
- ruby.lib: $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib
- 	coff2omf $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib $@
- 
- # For some reason, the coff2omf method doesn't work on libXpm.lib, so
- # we have to manually generate an import library straight from the DLL.
- xpm.lib: $(XPM)\lib\libXpm.lib
- 	implib -a $@ $(XPM)\bin\libXpm.dll
- 
- tcl.lib: $(TCL_LIB)
- !if ("$(DYNAMIC_TCL)" == "yes")
- 	copy $(TCL_LIB) $@
- !else
- 	coff2omf $(TCL_LIB) $@
- !endif
- 
- !if ("$(DYNAMIC_TCL)" == "yes")
- tclstub$(TCL_VER)-bor.lib:
- 	-@IF NOT EXIST $@ ECHO You must download tclstub$(TCL_VER)-bor.lib separately and\
- 	place it in the src directory in order to compile a dynamic TCL-enabled\
- 	(g)vim with the Borland compiler.  You can get the tclstub$(TCL_VER)-bor.lib file\
- 	at http://mywebpage.netscape.com/sharppeople/vim/tclstub$(TCL_VER)-bor.lib
- !endif
- 
- # vimrun.exe:
- vimrun.exe: vimrun.c
- !if ("$(USEDLL)"=="yes")
- 	$(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) -D_RTLDLL vimrun.c cw32mti.lib
- !else
- 	$(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) vimrun.c
- !endif
- 
- # The dependency on $(OBJDIR) is to have bcc.cfg generated each time.
- $(OBJDIR)\bcc.cfg: Make_bc5.mak $(OBJDIR)
-   copy /y &&|
- 	$(CFLAGS)
- 	-L$(LIB)
- 	$(DEFINES)
- 	$(MBDEFINES)
- 	$(INTERP_DEFINES)
- 	$(EXETYPE)
- 	$(DEBUG_FLAG)
- 	$(OPT)
- 	$(CODEGUARD_FLAG)
- 	$(CPUARG)
- 	$(ALIGNARG)
- | $@
- 
- # vi:set sts=4 sw=4:
- 
--- 0 ----
*** ../vim-8.1.1305/src/dosinst.c	2019-04-04 20:31:59.094873282 +0200
--- src/dosinst.c	2019-05-09 15:08:50.090239809 +0200
***************
*** 10,16 ****
  /*
   * dosinst.c: Install program for Vim on MS-DOS and MS-Windows
   *
!  * Compile with Make_mvc.mak, Make_bc3.mak, Make_bc5.mak or Make_djg.mak.
   */
  
  /*
--- 10,16 ----
  /*
   * dosinst.c: Install program for Vim on MS-DOS and MS-Windows
   *
!  * Compile with Make_mvc.mak, Make_cyg.mak or Make_ming.mak.
   */
  
  /*
*** ../vim-8.1.1305/src/dosinst.h	2019-02-22 19:40:57.693250456 +0100
--- src/dosinst.h	2019-05-09 15:08:50.090239809 +0200
***************
*** 47,57 ****
  #if defined(UNIX_LINT)
  # define vim_mkdir(x, y) mkdir((char *)(x), y)
  #else
! # ifndef __BORLANDC__
! #  define vim_mkdir(x, y) _mkdir((char *)(x))
! # else
! #  define vim_mkdir(x, y) mkdir((char *)(x))
! # endif
  #endif
  
  #define sleep(n) Sleep((n) * 1000)
--- 47,53 ----
  #if defined(UNIX_LINT)
  # define vim_mkdir(x, y) mkdir((char *)(x), y)
  #else
! # define vim_mkdir(x, y) _mkdir((char *)(x))
  #endif
  
  #define sleep(n) Sleep((n) * 1000)
***************
*** 150,159 ****
  #endif
  }
  
- #ifdef __BORLANDC__
- /* Borland defines its own searchpath() in dir.h */
- # include <dir.h>
- #else
      static char *
  searchpath(char *name)
  {
--- 146,151 ----
***************
*** 173,179 ****
      }
      return NULL;
  }
- #endif
  
  /*
   * Call searchpath() and save the result in allocated memory, or return NULL.
--- 165,170 ----
***************
*** 463,474 ****
  /*
   * Expand the executable name into a full path name.
   */
- #if defined(__BORLANDC__)
- 
- /* Only Borland C++ has this. */
- # define my_fullpath(b, n, l) _fullpath(b, n, l)
- 
- #else
      static char *
  my_fullpath(char *buf, char *fname, int len)
  {
--- 454,459 ----
***************
*** 478,484 ****
  
      return (len_read > 0 && len_read < (DWORD)len) ? buf : NULL;
  }
- #endif
  
  /*
   * Remove the tail from a file or directory name.
--- 463,468 ----
*** ../vim-8.1.1305/src/evalfunc.c	2019-05-09 14:52:22.079358841 +0200
--- src/evalfunc.c	2019-05-09 15:08:50.090239809 +0200
***************
*** 12500,12515 ****
  }
  #endif
  
! static int
! #ifdef __BORLANDC__
!     _RTLENTRYF
! #endif
! 	item_compare(const void *s1, const void *s2);
! static int
! #ifdef __BORLANDC__
!     _RTLENTRYF
! #endif
! 	item_compare2(const void *s1, const void *s2);
  
  /* struct used in the array that's given to qsort() */
  typedef struct
--- 12500,12507 ----
  }
  #endif
  
! static int item_compare(const void *s1, const void *s2);
! static int item_compare2(const void *s1, const void *s2);
  
  /* struct used in the array that's given to qsort() */
  typedef struct
***************
*** 12540,12548 ****
   * Compare functions for f_sort() and f_uniq() below.
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  item_compare(const void *s1, const void *s2)
  {
      sortItem_T  *si1, *si2;
--- 12532,12537 ----
***************
*** 12627,12635 ****
  }
  
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  item_compare2(const void *s1, const void *s2)
  {
      sortItem_T  *si1, *si2;
--- 12616,12621 ----
*** ../vim-8.1.1305/src/ex_cmds.c	2019-05-01 18:08:38.267237229 +0200
--- src/ex_cmds.c	2019-05-09 15:08:50.094239787 +0200
***************
*** 29,39 ****
  
  static int check_readonly(int *forceit, buf_T *buf);
  static void delbuf_msg(char_u *name);
! static int
! #ifdef __BORLANDC__
!     _RTLENTRYF
! #endif
! 	help_compare(const void *s1, const void *s2);
  static void prepare_help_buffer(void);
  
  /*
--- 29,35 ----
  
  static int check_readonly(int *forceit, buf_T *buf);
  static void delbuf_msg(char_u *name);
! static int help_compare(const void *s1, const void *s2);
  static void prepare_help_buffer(void);
  
  /*
***************
*** 314,329 ****
      } st_u;
  } sorti_T;
  
! static int
! #ifdef __BORLANDC__
! _RTLENTRYF
! #endif
! sort_compare(const void *s1, const void *s2);
  
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  sort_compare(const void *s1, const void *s2)
  {
      sorti_T	l1 = *(sorti_T *)s1;
--- 310,318 ----
      } st_u;
  } sorti_T;
  
! static int sort_compare(const void *s1, const void *s2);
  
      static int
  sort_compare(const void *s1, const void *s2)
  {
      sorti_T	l1 = *(sorti_T *)s1;
***************
*** 6580,6588 ****
   * that has been put after the tagname by find_tags().
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  help_compare(const void *s1, const void *s2)
  {
      char    *p1;
--- 6569,6574 ----
*** ../vim-8.1.1305/src/ex_getln.c	2019-04-27 13:03:20.008715938 +0200
--- src/ex_getln.c	2019-05-09 15:08:50.094239787 +0200
***************
*** 125,135 ****
  #endif
  
  #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
! static int
! #ifdef __BORLANDC__
! _RTLENTRYF
! #endif
! sort_func_compare(const void *s1, const void *s2);
  #endif
  
  
--- 125,131 ----
  #endif
  
  #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
! static int	sort_func_compare(const void *s1, const void *s2);
  #endif
  
  
***************
*** 3803,3811 ****
  
  #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  sort_func_compare(const void *s1, const void *s2)
  {
      char_u *p1 = *(char_u **)s1;
--- 3799,3804 ----
***************
*** 6855,6863 ****
  
  #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  sort_hist(const void *s1, const void *s2)
  {
      histentry_T *p1 = *(histentry_T **)s1;
--- 6848,6853 ----
*** ../vim-8.1.1305/src/gui_w32.c	2019-05-09 13:50:13.362401997 +0200
--- src/gui_w32.c	2019-05-09 15:08:50.094239787 +0200
***************
*** 1303,1311 ****
      int
  gui_mch_open(void)
  {
- #ifndef SW_SHOWDEFAULT
- # define SW_SHOWDEFAULT 10	/* Borland 5.0 doesn't have it */
- #endif
      /* Actually open the window, if not already visible
       * (may be done already in gui_mch_set_shellsize) */
      if (!IsWindowVisible(s_hwnd))
--- 1303,1308 ----
***************
*** 3799,3807 ****
   * Add a lot of missing defines.
   * They are not always missing, we need the #ifndef's.
   */
- # ifndef _cdecl
- #  define _cdecl
- # endif
  # ifndef IsMinimized
  #  define     IsMinimized(hwnd)		IsIconic(hwnd)
  # endif
--- 3796,3801 ----
***************
*** 5521,5527 ****
   * First static functions (no prototypes generated).
   */
  # ifdef _MSC_VER
! #  include <ime.h>   /* Apparently not needed for Cygwin, MingW or Borland. */
  # endif
  # include <imm.h>
  
--- 5515,5521 ----
   * First static functions (no prototypes generated).
   */
  # ifdef _MSC_VER
! #  include <ime.h>   /* Apparently not needed for Cygwin or MinGW. */
  # endif
  # include <imm.h>
  
***************
*** 6272,6286 ****
      void
  gui_mch_flush(void)
  {
- #   if defined(__BORLANDC__)
-     /*
-      * The GdiFlush declaration (in Borland C 5.01 <wingdi.h>) is not a
-      * prototype declaration.
-      * The compiler complains if __stdcall is not used in both declarations.
-      */
-     BOOL  __stdcall GdiFlush(void);
- #   endif
- 
  #if defined(FEAT_DIRECTX)
      if (IS_ENABLE_DIRECTX())
  	DWriteContext_Flush(s_dwc);
--- 6266,6271 ----
*** ../vim-8.1.1305/src/if_ole.cpp	2019-02-18 21:41:34.477750367 +0100
--- src/if_ole.cpp	2019-05-09 15:08:50.094239787 +0200
***************
*** 12,35 ****
   *
   * See os_mswin.c for the client side.
   */
- 
- /*
-  * We have some trouble with order of includes here.  For Borland it needs to
-  * be different from MSVC...
-  */
- #ifndef __BORLANDC__
  extern "C" {
  # include "vim.h"
  }
- #endif
  
  #include <windows.h>
  #include <oleauto.h>
  
  extern "C" {
- #ifdef __BORLANDC__
- # include "vim.h"
- #endif
  extern HWND s_hwnd;
  extern HWND vim_parent_hwnd;
  }
--- 12,25 ----
*** ../vim-8.1.1305/src/if_py_both.h	2019-05-07 22:06:48.679310672 +0200
--- src/if_py_both.h	2019-05-09 15:08:50.094239787 +0200
***************
*** 13,23 ****
   * Common code for if_python.c and if_python3.c.
   */
  
- #ifdef __BORLANDC__
- /* Disable Warning W8060: Possibly incorrect assignment in function ... */
- # pragma warn -8060
- #endif
- 
  static char_u e_py_systemexit[]	= "E880: Can't handle SystemExit of %s exception in vim";
  
  #if PY_VERSION_HEX < 0x02050000
--- 13,18 ----
*** ../vim-8.1.1305/src/main.c	2019-05-08 22:28:41.677765838 +0200
--- src/main.c	2019-05-09 15:08:50.094239787 +0200
***************
*** 98,106 ****
  # endif
      int
  # ifdef MSWIN
- #  ifdef __BORLANDC__
- _cdecl
- #  endif
  VimMain
  # else
  main
--- 98,103 ----
*** ../vim-8.1.1305/src/mark.c	2019-04-27 22:40:03.927661368 +0200
--- src/mark.c	2019-05-09 15:08:50.094239787 +0200
***************
*** 1950,1958 ****
   * Compare functions for qsort() below, that compares b_last_used.
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  buf_compare(const void *s1, const void *s2)
  {
      buf_T *buf1 = *(buf_T **)s1;
--- 1950,1955 ----
*** ../vim-8.1.1305/src/message.c	2019-05-08 22:28:41.681765816 +0200
--- src/message.c	2019-05-09 15:08:50.094239787 +0200
***************
*** 357,365 ****
  int vim_snprintf(char *str, size_t str_m, const char *fmt, ...);
  
      int
- # ifdef __BORLANDC__
- _RTLENTRYF
- # endif
  smsg(const char *s, ...)
  {
      va_list arglist;
--- 357,362 ----
***************
*** 371,379 ****
  }
  
      int
- # ifdef __BORLANDC__
- _RTLENTRYF
- # endif
  smsg_attr(int attr, const char *s, ...)
  {
      va_list arglist;
--- 368,373 ----
***************
*** 385,393 ****
  }
  
      int
- # ifdef __BORLANDC__
- _RTLENTRYF
- # endif
  smsg_attr_keep(int attr, const char *s, ...)
  {
      va_list arglist;
--- 379,384 ----
***************
*** 3091,3097 ****
  	    (isatty(2) && strcmp("/dev/console", ttyname(2)) != 0)
  #  else
  	    isatty(2)
! #   endif
  #  ifdef FEAT_GUI
  	    ||
  #  endif
--- 3082,3088 ----
  	    (isatty(2) && strcmp("/dev/console", ttyname(2)) != 0)
  #  else
  	    isatty(2)
! #  endif
  #  ifdef FEAT_GUI
  	    ||
  #  endif
*** ../vim-8.1.1305/src/misc1.c	2019-04-10 22:15:15.809016828 +0200
--- src/misc1.c	2019-05-09 15:08:50.098239766 +0200
***************
*** 5626,5643 ****
   * File name expansion code for MS-DOS, Win16 and Win32.  It's here because
   * it's shared between these systems.
   */
- # if defined(PROTO)
- #  define _cdecl
- # else
- #  ifdef __BORLANDC__
- #   define _cdecl _RTLENTRYF
- #  endif
- # endif
  
  /*
   * comparison function for qsort in dos_expandpath()
   */
!     static int _cdecl
  pstrcmp(const void *a, const void *b)
  {
      return (pathcmp(*(char **)a, *(char **)b, -1));
--- 5626,5636 ----
   * File name expansion code for MS-DOS, Win16 and Win32.  It's here because
   * it's shared between these systems.
   */
  
  /*
   * comparison function for qsort in dos_expandpath()
   */
!     static int
  pstrcmp(const void *a, const void *b)
  {
      return (pathcmp(*(char **)a, *(char **)b, -1));
*** ../vim-8.1.1305/src/misc2.c	2019-05-08 21:58:54.446597033 +0200
--- src/misc2.c	2019-05-09 15:08:50.098239766 +0200
***************
*** 3912,3927 ****
  /*
   * Sort an array of strings.
   */
! static int
! #ifdef __BORLANDC__
! _RTLENTRYF
! #endif
! sort_compare(const void *s1, const void *s2);
  
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  sort_compare(const void *s1, const void *s2)
  {
      return STRCMP(*(char **)s1, *(char **)s2);
--- 3912,3920 ----
  /*
   * Sort an array of strings.
   */
! static int sort_compare(const void *s1, const void *s2);
  
      static int
  sort_compare(const void *s1, const void *s2)
  {
      return STRCMP(*(char **)s1, *(char **)s2);
*** ../vim-8.1.1305/src/normal.c	2019-05-08 22:54:26.023509040 +0200
--- src/normal.c	2019-05-09 15:08:50.098239766 +0200
***************
*** 27,37 ****
  #ifdef FEAT_EVAL
  static void	set_vcount_ca(cmdarg_T *cap, int *set_prevcount);
  #endif
! static int
! #ifdef __BORLANDC__
!     _RTLENTRYF
! #endif
! 		nv_compare(const void *s1, const void *s2);
  static void	op_colon(oparg_T *oap);
  static void	op_function(oparg_T *oap);
  #if defined(FEAT_MOUSE)
--- 27,33 ----
  #ifdef FEAT_EVAL
  static void	set_vcount_ca(cmdarg_T *cap, int *set_prevcount);
  #endif
! static int	nv_compare(const void *s1, const void *s2);
  static void	op_colon(oparg_T *oap);
  static void	op_function(oparg_T *oap);
  #if defined(FEAT_MOUSE)
***************
*** 422,430 ****
   * through the index in nv_cmd_idx[].
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  nv_compare(const void *s1, const void *s2)
  {
      int		c1, c2;
--- 418,423 ----
*** ../vim-8.1.1305/src/option.c	2019-05-05 16:54:59.505931038 +0200
--- src/option.c	2019-05-09 15:08:50.098239766 +0200
***************
*** 12561,12571 ****
  
  #ifdef FEAT_LINEBREAK
  
- # if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
-    /* Borland C++ screws up loop optimisation here (negri) */
-   #pragma option -O-l
- # endif
- 
  /*
   * fill_breakat_flags() -- called when 'breakat' changes value.
   */
--- 12561,12566 ----
***************
*** 12582,12592 ****
  	for (p = p_breakat; *p; p++)
  	    breakat_flags[*p] = TRUE;
  }
- 
- # if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
-   #pragma option -O.l
- # endif
- 
  #endif
  
  /*
--- 12577,12582 ----
*** ../vim-8.1.1305/src/os_mswin.c	2019-04-28 19:46:17.034060084 +0200
--- src/os_mswin.c	2019-05-09 15:08:50.098239766 +0200
***************
*** 172,197 ****
      return !SetCurrentDirectory(temp);
  }
  # endif
- #else
- # ifdef __BORLANDC__
- /* being a more ANSI compliant compiler, BorlandC doesn't define _stricoll:
-  * but it does in BC 5.02! */
- #  if __BORLANDC__ < 0x502
- int _stricoll(char *a, char *b)
- {
- #   if 1
-     // this is fast but not correct:
-     return stricmp(a, b);
- #   else
-     // the ANSI-ish correct way is to use strxfrm():
-     char a_buff[512], b_buff[512];  // file names, so this is enough on Win32
-     strxfrm(a_buff, a, 512);
-     strxfrm(b_buff, b, 512);
-     return strcoll(a_buff, b_buff);
- #   endif
- }
- #  endif
- # endif
  #endif
  
  
--- 172,177 ----
***************
*** 374,403 ****
      int		force UNUSED)
  {
      int		nResult = FAIL;
  
! #ifdef __BORLANDC__
!     if (*fname == NUL) /* Borland behaves badly here - make it consistent */
! 	nResult = mch_dirname(buf, len);
!     else
! #endif
      {
! 	WCHAR	*wname;
! 	WCHAR	wbuf[MAX_PATH];
! 	char_u	*cname = NULL;
! 
! 	wname = enc_to_utf16(fname, NULL);
! 	if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH) != NULL)
  	{
! 	    cname = utf16_to_enc((short_u *)wbuf, NULL);
! 	    if (cname != NULL)
! 	    {
! 		vim_strncpy(buf, cname, len - 1);
! 		nResult = OK;
! 	    }
  	}
- 	vim_free(wname);
- 	vim_free(cname);
      }
  
  #ifdef USE_FNAME_CASE
      fname_case(buf, len);
--- 354,375 ----
      int		force UNUSED)
  {
      int		nResult = FAIL;
+     WCHAR	*wname;
+     WCHAR	wbuf[MAX_PATH];
+     char_u	*cname = NULL;
  
!     wname = enc_to_utf16(fname, NULL);
!     if (wname != NULL && _wfullpath(wbuf, wname, MAX_PATH) != NULL)
      {
! 	cname = utf16_to_enc((short_u *)wbuf, NULL);
! 	if (cname != NULL)
  	{
! 	    vim_strncpy(buf, cname, len - 1);
! 	    nResult = OK;
  	}
      }
+     vim_free(wname);
+     vim_free(cname);
  
  #ifdef USE_FNAME_CASE
      fname_case(buf, len);
***************
*** 2044,2052 ****
   * Clean up on exit. This destroys the hidden message window.
   */
      static void
- #ifdef __BORLANDC__
-     _RTLENTRYF
- #endif
  CleanUpMessaging(void)
  {
      if (message_window != 0)
--- 2016,2021 ----
*** ../vim-8.1.1305/src/os_w32exe.c	2019-04-28 19:46:17.034060084 +0200
--- src/os_w32exe.c	2019-05-09 15:08:50.098239766 +0200
***************
*** 15,33 ****
   */
  #include "vim.h"
  
- #ifdef __MINGW32__
- # ifndef _cdecl
- #  define _cdecl
- # endif
- #endif
- 
  // cproto doesn't create a prototype for VimMain()
  #ifdef VIMDLL
  __declspec(dllimport)
  #endif
! int _cdecl VimMain(int argc, char **argv);
  #ifndef VIMDLL
! void _cdecl SaveInst(HINSTANCE hInst);
  #endif
  
  #ifndef PROTO
--- 15,27 ----
   */
  #include "vim.h"
  
  // cproto doesn't create a prototype for VimMain()
  #ifdef VIMDLL
  __declspec(dllimport)
  #endif
! int VimMain(int argc, char **argv);
  #ifndef VIMDLL
! void SaveInst(HINSTANCE hInst);
  #endif
  
  #ifndef PROTO
*** ../vim-8.1.1305/src/os_win32.c	2019-05-07 23:01:34.241209371 +0200
--- src/os_win32.c	2019-05-09 15:08:50.098239766 +0200
***************
*** 146,156 ****
  # define __stdcall /* empty */
  #endif
  
- #if defined(__BORLANDC__)
- /* Strangely Borland uses a non-standard name. */
- # define wcsicmp(a, b) wcscmpi((a), (b))
- #endif
- 
  #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL)
  /* Win32 Console handles for input and output */
  static HANDLE g_hConIn  = INVALID_HANDLE_VALUE;
--- 146,151 ----
***************
*** 941,949 ****
  
  /* The return code indicates key code size. */
      static int
- #ifdef __BORLANDC__
-     __stdcall
- #endif
  win32_kbd_patch_key(
      KEY_EVENT_RECORD *pker)
  {
--- 936,941 ----
***************
*** 6695,6702 ****
      int
  mch_open(const char *name, int flags, int mode)
  {
-     /* _wopen() does not work with Borland C 5.5: creates a read-only file. */
- #ifndef __BORLANDC__
      WCHAR	*wn;
      int		f;
  
--- 6687,6692 ----
***************
*** 6707,6722 ****
      f = _wopen(wn, flags, mode);
      vim_free(wn);
      return f;
- #else
-     /* open() can open a file which name is longer than _MAX_PATH bytes
-      * and shorter than _MAX_PATH characters successfully, but sometimes it
-      * causes unexpected error in another part. We make it an error explicitly
-      * here. */
-     if (strlen(name) >= _MAX_PATH)
- 	return -1;
- 
-     return open(name, flags, mode);
- #endif
  }
  
  /*
--- 6697,6702 ----
*** ../vim-8.1.1305/src/os_win32.h	2019-04-28 19:46:17.034060084 +0200
--- src/os_win32.h	2019-05-09 15:08:50.098239766 +0200
***************
*** 53,64 ****
  
  #define FEAT_SHORTCUT		/* resolve shortcuts */
  
! #if (!defined(__BORLANDC__) || __BORLANDC__ >= 0x550) \
! 	&& (!defined(_MSC_VER) || _MSC_VER > 1020)
  /*
   * Access Control List (actually security info).
!  * Borland has the acl stuff only in version 5.5 and later.
!  * MSVC in 5.0, not in 4.2, don't know about 4.3.
   */
  # define HAVE_ACL
  #endif
--- 53,62 ----
  
  #define FEAT_SHORTCUT		/* resolve shortcuts */
  
! #if (!defined(_MSC_VER) || _MSC_VER > 1020)
  /*
   * Access Control List (actually security info).
!  * MSVC has acl stuff only in 5.0, not in 4.2, don't know about 4.3.
   */
  # define HAVE_ACL
  #endif
***************
*** 142,149 ****
  # define IO_REPARSE_TAG_SYMLINK		0xA000000C
  #endif
  
! #if defined(_MSC_VER) || defined(__BORLANDC__)
!     /* Support for __try / __except.  All versions of MSVC and Borland C are
       * expected to have this.  Any other compilers that support it? */
  # define HAVE_TRY_EXCEPT 1
  # include <malloc.h>		/* for _resetstkoflw() */
--- 140,147 ----
  # define IO_REPARSE_TAG_SYMLINK		0xA000000C
  #endif
  
! #if defined(_MSC_VER)
!     /* Support for __try / __except.  All versions of MSVC are
       * expected to have this.  Any other compilers that support it? */
  # define HAVE_TRY_EXCEPT 1
  # include <malloc.h>		/* for _resetstkoflw() */
***************
*** 206,216 ****
  # define HAVE_SETENV
  #endif
  #define mch_getenv(x) (char_u *)getenv((char *)(x))
! #ifdef __BORLANDC__
! # define vim_mkdir(x, y) mkdir(x)
! #else
! # define vim_mkdir(x, y) mch_mkdir(x)
! #endif
  
  /* Enable common dialogs input unicode from IME if possible. */
  #define pDispatchMessage DispatchMessageW
--- 204,210 ----
  # define HAVE_SETENV
  #endif
  #define mch_getenv(x) (char_u *)getenv((char *)(x))
! #define vim_mkdir(x, y) mch_mkdir(x)
  
  /* Enable common dialogs input unicode from IME if possible. */
  #define pDispatchMessage DispatchMessageW
*** ../vim-8.1.1305/src/proto.h	2019-04-27 13:03:20.008715938 +0200
--- src/proto.h	2019-05-09 15:08:50.098239766 +0200
***************
*** 42,49 ****
  #  include "os_win32.pro"
  #  include "os_mswin.pro"
  #  include "winclip.pro"
! #  if (defined(__GNUC__) && !defined(__MINGW32__)) \
! 	|| (defined(__BORLANDC__) && __BORLANDC__ < 0x502)
  extern int _stricoll(char *a, char *b);
  #  endif
  # endif
--- 42,48 ----
  #  include "os_win32.pro"
  #  include "os_mswin.pro"
  #  include "winclip.pro"
! #  if (defined(__GNUC__) && !defined(__MINGW32__))
  extern int _stricoll(char *a, char *b);
  #  endif
  # endif
***************
*** 108,180 ****
  # endif
  
  /* These prototypes cannot be produced automatically. */
! int
! #  ifdef __BORLANDC__
! _RTLENTRYF
! #  endif
! smsg(const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 1, 0)))
  #endif
      ;
  
! int
! #  ifdef __BORLANDC__
! _RTLENTRYF
! #  endif
! smsg_attr(int, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 2, 3)))
  #endif
      ;
  
! int
! #  ifdef __BORLANDC__
! _RTLENTRYF
! #  endif
! smsg_attr_keep(int, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 2, 3)))
  #endif
      ;
  
  /* These prototypes cannot be produced automatically. */
! int
! #  ifdef __BORLANDC__
! _RTLENTRYF
! #  endif
! semsg(const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 1, 0)))
  #endif
      ;
  
  /* These prototypes cannot be produced automatically. */
! void
! #  ifdef __BORLANDC__
! _RTLENTRYF
! #  endif
! siemsg(const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 1, 0)))
  #endif
      ;
  
! int
! #  ifdef __BORLANDC__
! _RTLENTRYF
! #  endif
! vim_snprintf_add(char *, size_t, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 3, 4)))
  #endif
      ;
  
! int
! #  ifdef __BORLANDC__
! _RTLENTRYF
! #  endif
! vim_snprintf(char *, size_t, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 3, 4)))
  #endif
--- 107,151 ----
  # endif
  
  /* These prototypes cannot be produced automatically. */
! int smsg(const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 1, 0)))
  #endif
      ;
  
! int smsg_attr(int, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 2, 3)))
  #endif
      ;
  
! int smsg_attr_keep(int, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 2, 3)))
  #endif
      ;
  
  /* These prototypes cannot be produced automatically. */
! int semsg(const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 1, 0)))
  #endif
      ;
  
  /* These prototypes cannot be produced automatically. */
! void siemsg(const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 1, 0)))
  #endif
      ;
  
! int vim_snprintf_add(char *, size_t, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 3, 4)))
  #endif
      ;
  
! int vim_snprintf(char *, size_t, const char *, ...)
  #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
      __attribute__((format(printf, 3, 4)))
  #endif
***************
*** 209,215 ****
  # endif
  # include "search.pro"
  # ifdef FEAT_SIGNS
! # include "sign.pro"
  # endif
  # include "spell.pro"
  # include "spellfile.pro"
--- 180,186 ----
  # endif
  # include "search.pro"
  # ifdef FEAT_SIGNS
! #  include "sign.pro"
  # endif
  # include "spell.pro"
  # include "spellfile.pro"
***************
*** 337,349 ****
   */
  #if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
  # define CV void
- # ifdef __BORLANDC__
-   #pragma option -pc
- # endif
  # include "if_perl.pro"
- # ifdef __BORLANDC__
-   #pragma option -p.
- # endif
  # include "if_perlsfio.pro"
  #endif
  
--- 308,314 ----
***************
*** 357,364 ****
  void clip_mch_request_selection(VimClipboard *cbd);
  void clip_mch_set_selection(VimClipboard *cbd);
  #endif
- 
- #ifdef __BORLANDC__
- # define _PROTO_H
- #endif
  #endif /* !PROTO && !NOPROTO */
--- 322,325 ----
*** ../vim-8.1.1305/src/screen.c	2019-05-08 20:20:42.596141850 +0200
--- src/screen.c	2019-05-09 15:08:50.102239745 +0200
***************
*** 2945,2953 ****
  static buf_T		*current_buf = NULL;
  
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  text_prop_compare(const void *s1, const void *s2)
  {
      int  idx1, idx2;
--- 2945,2950 ----
*** ../vim-8.1.1305/src/spell.c	2019-04-10 22:15:15.817016767 +0200
--- src/spell.c	2019-05-09 15:08:50.102239745 +0200
***************
*** 6760,6779 ****
      }
  }
  
! static int
! #ifdef __BORLANDC__
! _RTLENTRYF
! #endif
! sug_compare(const void *s1, const void *s2);
  
  /*
   * Function given to qsort() to sort the suggestions on st_score.
   * First on "st_score", then "st_altscore" then alphabetically.
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  sug_compare(const void *s1, const void *s2)
  {
      suggest_T	*p1 = (suggest_T *)s1;
--- 6760,6772 ----
      }
  }
  
! static int sug_compare(const void *s1, const void *s2);
  
  /*
   * Function given to qsort() to sort the suggestions on st_score.
   * First on "st_score", then "st_altscore" then alphabetically.
   */
      static int
  sug_compare(const void *s1, const void *s2)
  {
      suggest_T	*p1 = (suggest_T *)s1;
*** ../vim-8.1.1305/src/spellfile.c	2019-01-24 17:18:37.595462334 +0100
--- src/spellfile.c	2019-05-09 15:08:50.102239745 +0200
***************
*** 4802,4820 ****
      return p1 == NULL && p2 == NULL;
  }
  
! static int
! #ifdef __BORLANDC__
! _RTLENTRYF
! #endif
! rep_compare(const void *s1, const void *s2);
  
  /*
   * Function given to qsort() to sort the REP items on "from" string.
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  rep_compare(const void *s1, const void *s2)
  {
      fromto_T	*p1 = (fromto_T *)s1;
--- 4802,4813 ----
      return p1 == NULL && p2 == NULL;
  }
  
! static int rep_compare(const void *s1, const void *s2);
  
  /*
   * Function given to qsort() to sort the REP items on "from" string.
   */
      static int
  rep_compare(const void *s1, const void *s2)
  {
      fromto_T	*p1 = (fromto_T *)s1;
*** ../vim-8.1.1305/src/syntax.c	2019-04-28 19:46:17.034060084 +0200
--- src/syntax.c	2019-05-09 15:08:50.102239745 +0200
***************
*** 5348,5356 ****
   * A simple syntax group ID comparison function suitable for use in qsort()
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  syn_compare_stub(const void *v1, const void *v2)
  {
      const short	*s1 = v1;
--- 5348,5353 ----
***************
*** 6703,6711 ****
  } time_entry_T;
  
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  syn_compare_syntime(const void *v1, const void *v2)
  {
      const time_entry_T	*s1 = v1;
--- 6700,6705 ----
*** ../vim-8.1.1305/src/userfunc.c	2019-04-21 00:00:07.946354820 +0200
--- src/userfunc.c	2019-05-09 15:08:50.102239745 +0200
***************
*** 55,70 ****
  static void func_do_profile(ufunc_T *fp);
  static void prof_sort_list(FILE *fd, ufunc_T **sorttab, int st_len, char *title, int prefer_self);
  static void prof_func_line(FILE *fd, int count, proftime_T *total, proftime_T *self, int prefer_self);
! static int
! # ifdef __BORLANDC__
!     _RTLENTRYF
! # endif
! 	prof_total_cmp(const void *s1, const void *s2);
! static int
! # ifdef __BORLANDC__
!     _RTLENTRYF
! # endif
! 	prof_self_cmp(const void *s1, const void *s2);
  #endif
  static void funccal_unref(funccall_T *fc, ufunc_T *fp, int force);
  
--- 55,62 ----
  static void func_do_profile(ufunc_T *fp);
  static void prof_sort_list(FILE *fd, ufunc_T **sorttab, int st_len, char *title, int prefer_self);
  static void prof_func_line(FILE *fd, int count, proftime_T *total, proftime_T *self, int prefer_self);
! static int prof_total_cmp(const void *s1, const void *s2);
! static int prof_self_cmp(const void *s1, const void *s2);
  #endif
  static void funccal_unref(funccall_T *fc, ufunc_T *fp, int force);
  
***************
*** 2794,2802 ****
   * Compare function for total time sorting.
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  prof_total_cmp(const void *s1, const void *s2)
  {
      ufunc_T	*p1, *p2;
--- 2786,2791 ----
***************
*** 2810,2818 ****
   * Compare function for self time sorting.
   */
      static int
- #ifdef __BORLANDC__
- _RTLENTRYF
- #endif
  prof_self_cmp(const void *s1, const void *s2)
  {
      ufunc_T	*p1, *p2;
--- 2799,2804 ----
*** ../vim-8.1.1305/src/vim.h	2019-04-28 18:04:56.062492159 +0200
--- src/vim.h	2019-05-09 15:08:50.102239745 +0200
***************
*** 17,40 ****
  # define MSWIN
  #endif
  
- // use fastcall for Borland, when compiling for MS-Windows
- #if defined(__BORLANDC__) && defined(MSWIN) && !defined(DEBUG)
- #if defined(FEAT_PERL) || \
-     defined(FEAT_PYTHON) || \
-     defined(FEAT_PYTHON3) || \
-     defined(FEAT_RUBY) || \
-     defined(FEAT_TCL) || \
-     defined(FEAT_MZSCHEME) || \
-     defined(DYNAMIC_GETTEXT) || \
-     defined(DYNAMIC_ICONV) || \
-     defined(DYNAMIC_IME) || \
-     defined(XPM)
-   #pragma option -pc
- # else
-   #pragma option -pr
- # endif
- #endif
- 
  #ifdef MSWIN
  # include "vimio.h"
  #endif
--- 17,22 ----
***************
*** 2163,2173 ****
  # define BROWSE_DIR 2	    /* flag for do_browse() */
  #endif
  
- /* stop using fastcall for Borland */
- #if defined(__BORLANDC__) && defined(MSWIN) && !defined(DEBUG)
-  #pragma option -p.
- #endif
- 
  #ifdef _MSC_VER
  /* Avoid useless warning "conversion from X to Y of greater size". */
   #pragma warning(disable : 4312)
--- 2145,2150 ----
***************
*** 2344,2352 ****
  # undef FF
  # undef OP_DELETE
  # undef OP_JOIN
- # ifdef __BORLANDC__
- #  define NOPROTO 1
- # endif
    /* remove MAX and MIN, included by glib.h, redefined by sys/param.h */
  # ifdef MAX
  #  undef MAX
--- 2321,2326 ----
***************
*** 2374,2383 ****
  #  undef bool
  # endif
  
- # ifdef __BORLANDC__
-   /* Borland has the structure stati64 but not _stati64 */
- #  define _stati64 stati64
- # endif
  #endif
  
  /* values for vim_handle_signal() that are not a signal */
--- 2348,2353 ----
*** ../vim-8.1.1305/src/vim.rc	2019-04-28 19:46:17.034060084 +0200
--- src/vim.rc	2019-05-09 15:08:50.102239745 +0200
***************
*** 12,22 ****
  #include <winver.h>
  #include "version.h"
  #include "gui_w32_rc.h"
! // #if defined(__BORLANDC__) || defined(__CYGWIN32__) || defined(__MINGW32__)
! # include <winresrc.h>
! // #else
! // # include <winres.h>
! // #endif
  
  //
  // Icons
--- 12,18 ----
  #include <winver.h>
  #include "version.h"
  #include "gui_w32_rc.h"
! #include <winresrc.h>
  
  //
  // Icons
*** ../vim-8.1.1305/src/vimrun.c	2018-02-04 14:41:37.000000000 +0100
--- src/vimrun.c	2019-05-09 15:08:50.102239745 +0200
***************
*** 23,33 ****
  #endif
  #include <windows.h>
  
- #ifdef __BORLANDC__
- # define _kbhit kbhit
- # define _getch getch
- #endif
- 
      int
  main(void)
  {
--- 23,28 ----
*** ../vim-8.1.1305/src/xxd/Make_bc5.mak	2010-05-15 13:04:06.000000000 +0200
--- src/xxd/Make_bc5.mak	1970-01-01 01:00:00.000000000 +0100
***************
*** 1,18 ****
- # The most simplistic Makefile for Win32 (NT and Windows 95).
- # Used for Borland C++.
- 
- !if ("$(BOR)"=="")
- BOR = c:\bc5
- !endif
- !if ("$(BCC)"=="")
- BCC = bcc32
- !endif
- 
- xxd: xxd.exe
- 
- xxd.exe: xxd.c
- 	$(BCC) -I$(BOR)\include -L$(BOR)\lib -DWIN32 xxd.c $(BOR)\lib\wildargs.obj
- 
- clean:
- 	- del xxd.obj
- 	- del xxd.exe
--- 0 ----
*** ../vim-8.1.1305/src/xxd/xxd.c	2019-03-02 07:15:20.217458790 +0100
--- src/xxd/xxd.c	2019-05-09 15:08:50.102239745 +0200
***************
*** 81,87 ****
  #else
  # include <fcntl.h>
  #endif
! #if defined(WIN32) || defined(__BORLANDC__) || defined(CYGWIN)
  # include <io.h>	/* for setmode() */
  #else
  # ifdef UNIX
--- 81,87 ----
  #else
  # include <fcntl.h>
  #endif
! #if defined(WIN32) || defined(CYGWIN)
  # include <io.h>	/* for setmode() */
  #else
  # ifdef UNIX
***************
*** 96,107 ****
  # include <unix.h>	/* for fdopen() on MAC */
  #endif
  
- #if defined(__BORLANDC__) && __BORLANDC__ <= 0x0410 && !defined(fileno)
- /* Missing define and prototype grabbed from the BC 4.0 <stdio.h> */
- # define fileno(f)       ((f)->fd)
- FILE   _FAR *_Cdecl _FARFUNC fdopen(int __handle, char _FAR *__type);
- #endif
- 
  
  /*  This corrects the problem of missing prototypes for certain functions
   *  in some GNU installations (e.g. SunOS 4.1.x).
--- 96,101 ----
***************
*** 190,196 ****
  #endif
  
  #ifndef __P
! # if defined(__STDC__) || defined(WIN32) || defined(__BORLANDC__)
  #  define __P(a) a
  # else
  #  define __P(a) ()
--- 184,190 ----
  #endif
  
  #ifndef __P
! # if defined(__STDC__) || defined(WIN32)
  #  define __P(a) a
  # else
  #  define __P(a) ()
*** ../vim-8.1.1305/src/version.c	2019-05-09 14:52:22.083358820 +0200
--- src/version.c	2019-05-09 15:08:22.442384375 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1306,
  /**/

-- 
ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY
                  KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T
                  HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR
                  LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER),
                  BROTHER MAYNARD
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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    ///