1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
|
2002-12-05 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclCompile.c (TclCleanupByteCode): when using
TCL_THREAD_LITERALS, do not worry about interp != NULL when
cleaning up bytecodes.
2002-12-05 Andreas Kupries <andreask@activestate.com>
* generic/tclCompile.c (TclCleanupByteCode): When encountering a
shared bytecode structure we have to scan the literal table in
that structure for objects of type "cmdName". These objects hold
references to command structures, possibly in a different
interp, and interfere with the cleanup of the refered commands
(they keep their refcount up). Essentially at least one interp
in a set of clones has a circular reference comand -> proc ->
bytecode -> bytecode data -> cmdName obj -> command which
prevents the command int that interp from being freed, leaking
memory.
The solution employed here is to invalidate the internal
representation of 'cmdName's (but keeping the string rep),
driving the refcount of refered command structures down,
and breaking the cycle.
2002-12-05 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclTest.c (TestCloneObjCmd): objify testclone command.
* generic/tclLiteral.c (LiteralThreadExitProc): do no delete
literal table in thread exit handler. This causes a crash
sometimes that must be further explored.
2002-11-26 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclBasic.c (Tcl_CloneInterp): Moved 'TclCreateExecEnv'
behind 'CloneNamespace'. This fixes the last leak found. The
function creates a variable 'tcl_traceExec', and links a C
variable to it. Running 'CloneNamespace' afterward overwrites
the pointer, leaking the structure created by
'TclCreateExecEnv'.
2002-11-26 Andreas Kupries <andreask@activestate.com>
* tclBasic.c (CloneVariable): The initialization of the refCount
for the cloned variable assumed that all variables are namespace
variables. This is not true. Globals are not marked as in a
namespace. This caused the system to skip freeing all global
variables in a cloned interpreter. Changed to explicitly check
the variable if it is namespace'd.
2002-11-26 Jeff Hobbs <jeffh@ActiveState.com>
* tests/__clone.test: rename to allow it to be lexically first.
* generic/tclLiteral.c (TclGlobalLiteralTable): add a thread exit
handler to remove remaining literals on thread exit.
* generic/tclMain.c (Tcl_Main): added Tcl_DeleteInterp and
* unix/tclAppInit.c (main): Tcl_Finalize in -DPURIFY case to
help indentify memory leaks.
2002-11-08 Andreas Kupries <andreask@activestate.com>
* generic/tclProc.c (TclCloneProc): Helper for Tcl_CloneInterp.
* generic/tclBasic.c: Line 3843ff: New Tcl_CloneInterp public API.
2002-11-07 Andreas Kupries <andreask@activestate.com>
* generic/tclProc.c (TclCloneProc): See below. New function.
* generic/tclBasic.c: Tcl_Clone... functions. New. Tcl_CloneInterp
is main entry into this.
2002-11-07 Andreas Kupries <andreask@activestate.com>
* Part of work on more sharing of bytecode information between
structurally equivalent interpreters.
* generic/tclCompile.c (EncodeCmdLocMap): Operate on ByteCodeData
instead of ByteCode.
(TclCleanupByteCode): Deref to ByteCodeData in numerous places.
(TclInitByteCodeObj): s.a.
(TclPrintByteCodeObj): s.a.
(TclPrintInstruction): s.a.
(RecordByteCodeStats): s.a.
* generic/tclLiteral.c (TclReleaseLiteral): s.a.
* generic/tclCompile.h: Split struct ByteCode into two
structures. The new structure carries the shareable bytrecode
information and is named 'ByteCodeData'.
* generic/tclExecute.c (GetExceptRangeForPc): s.a.
(TclExecuteByteCode): s.a.
(PrintByteCodeInfo): s.a.
(ValidatePcAndStackTop): s.a.
(GetSrcInfoForPc): s.a.
2002-11-07 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclExecute.c (EvalStatsCmd): obj-ify evalstats command,
add the ability to take options "?all? ?bytecodes? ?instructions?
?literals?" which will filter the output.
Make EvalStats command use sprintf instead of fprintf for format
printing to support IOS.
(TclExecuteByteCode): TCL_THREAD_LITERALS support
(TclCompileByteCodesForEval): simplify code and remove final
else/if case that should never be true (repeat check of iPtr and
epoch).
(TclCompileByteCodesForExpr): better scope locals, remove last else.
* generic/tclCompile.h:
* generic/tclCompile.c (TclCleanupByteCode, RecordByteCodeStats):
* generic/tclLiteral.c:
* generic/tclInt.h:
* generic/tclBasic.c (Tcl_CreateInterp, DeleteInterpProc): add
TCL_THREAD_LITERALS conditional support for making global literals
be thread-global instead of interp-global. This adjusts the
placement and management of the LiteralTable and ByteCodeStats.
* generic/tcl.h: reduce TCL_RESULT_SIZE from 200 to 20.
* unix/Makefile.in: add shell/gdb targets
2002-11-05 Andreas Kupries <andreask@pliers.activestate.com>
* generic/tclParseExpr.c: 'struct ParseInfo'.
* generic/tclLink.c: 'struct Link'.
* generic/tclEncoding.c: 'struct Encoding', and 'struct EscapeEncodingData'.
* generic/tclCmdIL.c: 'struct SortInfo'.
* generic/tclIO.h: 'struct ChannelState'.
* generic/tclRegexp.h: 'struct TclRegexp'.
* generic/tclCompile.h: 'struct CompileEnv', and 'struct ByteCode'.
* generic/tclInt.h: 'struct Var', 'struct ByteCodeStats', and
'struct Interp'.
Reordered fields in various structures for better usage of
memory (less padding).
2002-11-04 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclBasic.c (Tcl_CreateInterp): simplify ByteCodeStats
initialization with one memset.
* generic/tclObj.c (TclInitObjSubsystem, Tcl_DbIsShared): enable
shared object reporting in EvalStatsCmd when used with TCL_MEM_DEBUG.
* generic/tclExecute.c (EvalStatsCmd): rework to use sprintf for
the conversions, so that it works in IOS.
* generic/tclHash.c (HashString): minor performance tweak.
2002-07-19 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclExecute.c (TclCompileByteCodesForExpr): Bugfix. Added
a missing RELTEMP(compEnv) in line 6043 to release the structure
if the object is not of type 'bytecode'. Reported by Gregory
Thompson <gst@cisco.com>.
* generic/tclInt.h: Changed NEWTEMP, NEWSTR, and RELTEMP macros to
use 'ckalloc' and 'ckfree' instead of 'Tcl'_Alloc and
'Tcl_Free'. Suggested by Gregory Thompson <gst@cisco.com>.
2002-03-18 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclCompile.c (TclCompileTokens): Modified imported bugfix
to use a heap variable for the message buffer instead of placing
it on the stack.
* Updated "mod-8-3-1-branch" to head of "core-8-3-1-branch" to get
the newest fixes for tcl 8.3.4 into this branch.
2002-03-18 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclScan.c (Tcl_ScanObjCmd): prevented ckfree being
called on a pointer to NULL.
2002-03-15 Miguel Sofer <msofer@users.sourceforge.net>
Backport of Donal Fellows patch:
* tests/compile.test (compile-12.3): Test to detect bug 530320.
* generic/tclCompile.c (TclCompileTokens): Fixed buffer overrun
reported in bug 530320.
2002-03-01 Jeff Hobbs <jeffh@ActiveState.com>
* tests/io.test:
* tests/encoding.test: updated to reflect iso2022 escape change
* library/encoding/iso2022-jp.enc:
* library/encoding/iso2022.enc:
* tools/encoding/iso2022-jp.esc:
* tools/encoding/iso2022.esc: gave <ESC>$B precedence over <ESC>$@,
based on comments (point 1) in [Bug #219283] (rfc 1468)
* tests/encoding.test: added encoding-23.* tests
* generic/tclIO.c (FilterInputBytes): reset the TCL_ENCODING_START
flags in the ChannelState when using 'gets'. [Bug #523988]
Also reduced the value of ENCODING_LINESIZE from 30 to 20 as this
seems to improve the performance of 'gets' according to tclbench.
2002-02-27 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* unix/tclUnixChan.c (TclpOpenFileChannel): Added code to regonize
"/dev/tty" (by name) and to not handle it as tty / serial
line. This is the controlling terminal and is special. Setting
it into raw mode as is done for other tty's is a bad idea. This
is a hackish fix for expect SGF Bug #520624.
2002-02-25 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* mac/tclMacSock.c (TcpGetOptionProc): Changed to recognize the
option "-error". Essentially ignores the option, always
returning an empty string.
2002-02-25 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinNotify.c (Tcl_FinalizeNotifier): backported fix for
[Bug #217982] which also affected Tkinter [Python Bug #216289]
2002-02-25 Daniel Steffen <das@users.sourceforge.net>
* unix/tclLoadDyld.c: updated to use Mac OS X 10.1 dyld APIs that
have more libdl-like semantics. (bug #514392)
2002-02-19 Don Porter <dgp@users.sourceforge.net>
* changes: reversed the order of 8.3.3 changes.
2002-02-15 Don Porter <dgp@users.sourceforge.net>
* changes: First draft of Tcl changes for 8.3.5 release.
2002-02-06 Jeff Hobbs <jeffh@ActiveState.com>
* tests/scan.test:
* generic/tclScan.c (Tcl_ScanObjCmd): corrected scan 0x... %x
handling that didn't accept the 0x as a prelude to a base 16
number. [Bug #495213]
2002-02-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* unix/tclUnixChan.c (FileOutputProc): Fixed [bug 465765] reported
by Dale Talcott <daletalcott@users.sourceforge.net>. Avoid
writing nothing into a file as STREAM based implementations will
consider this a EOF (if the file is a pipe). Not done in the
generic layer as this type of writing is actually useful to
check the state of a socket.
2002-02-05 Don Porter <dgp@users.sourceforge.net>
* library/http/http.tcl:
* library/http/pkgIndex.tcl: Corrected use of http::error when
::error was intended. Bump to http 2.4.2.
2002-02-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tests/io.test: io-39.22 split into two tests, one platform
dependent, the other not. -eofchar is not empty on the windows
platform.
2002-01-25 Mo DeJong <mdejong@users.sourceforge.net>
Make -eofchar and -translation options read only for
server sockets. [Bug 496733]
* generic/tclIO.c (Tcl_GetChannelOption, Tcl_SetChannelOption):
Instead of returning nothing for the -translation option
on a server socket, always return "auto". Return the empty
string enclosed in quotes for the -eofchar option on
a server socket. Fixup -eofchar usage message so that
it matches the implementation.
* tests/io.test: Add -eofchar tests and -translation tests
to ensure options are read only on server sockets.
* tests/socket.test: Update tests to account for -eofchar
and -translation option changes.
2002-01-24 Jeff Hobbs <jeffh@ActiveState.com>
* library/http/pkgIndex.tcl:
* library/http/http.tcl: don't add port in default case to handle
broken servers. http bumped to 2.4.1 [Bug #504508]
2002-01-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIO.c (WriteChars): Fix for SF #506297, reported by
Martin Forssen <ruric@users.sourceforge.net>. The encoding
chosen in the script exposing the bug writes out three intro
characters when TCL_ENCODING_START is set, but does not consume
any input as TCL_ENCODING_END is cleared. As some output was
generated the enclosing loop calls UtfToExternal again, again
with START set. Three more characters in the out and still no
use of input ... To break this infinite loop we remove
TCL_ENCODING_START from the set of flags after the first call
(no condition is required, the later calls remove an unset flag,
which is a no-op). This causes the subsequent calls to
UtfToExternal to consume and convert the actual input.
2002-01-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIOCmd.c (Tcl_GetsObjCmd): Fixed bug #504642 as
reported by Brian Griffin <bgriffin@users.sourceforge.net>,
using his patch. Before the patch the generic I/O layer held an
unannounced reference to the interp result to store the read
line into. This unfortunately has disastrous results if the
channel driver executes a tcl script to perform its operation,
this freeing the interp result. In that case we are
dereferencing essentially a dangling reference. It is not truly
dangling because the object is in the free list, but this only
causes us to smash the free list and have the error occur later
somewhere else. The patch simply creates a new object for the
line and later sets it into the interp result when we are done
with reading.
2001-12-28 Jeff Hobbs <jeffh@ActiveState.com>
* library/init.tcl (auto_execok): make sure env(COMSPEC) on
Windows is executed with the right case, as it may otherwise fail
inexplicably.
2001-12-21 Daniel Steffen <das@users.sourceforge.net>
* unix/tcl.m4: fixed incorrect SHLIB_LD_LIBS
setting for MacOSX / Darwin.
* unix/configure: Regen.
* unix/mkLinks.tcl: improved case-insensitive
filesystem support.
* unix/mkLinks: Regen.
2001-12-10 Don Porter <dgp@users.sourceforge.net>
* doc/Access.3:
* doc/DString.3:
* doc/ExprLong.3:
* doc/TCL_MEM_DEBUG.3:
* doc/Utf.3:
* doc/file.n: Several typo and formatting corrections discovered
during conversion to TMML. Thanks to Joe English. [Patch
490514]
2001-12-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* stack.base.html:
* stack.full.html: Reports from the local version of the core
instrumented to record stack usage. 'base' - Baseline.
'full' - stack controlling macros engaged in full.
* NOTES: Updated to explain the usage of the various macros
upfront. The original contents remain and are declared to be the
scratchpad.
* tclCmdMZ.c:
* tclCompCmds.c:
* tclCompile.c:
* tclEvent.c:
* tclExecute.c:
* tclNamesp.c:
* tclParse.c:
* tclProc.c:
* tclUtil.c: More places using TCL_STRUCT_ON_HEAP.
2001-12-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* NOTES:
* tcl.h:
* tclInt.h: Moved the macros to control feature exclusion and
stack manipulation into the private area of the tcl
headers. Renamed the macros for TCL_STRUCT_ON_HEAP to make their
names more sensible.
* tclCmdAH.c:
* tclCompCmds.c:
* tclCompExpr.c:
* tclCompile.c:
* tclExecute.c:
* tclIO.c:
* tclParse.c:
* tclParseExpr.c:
* tclScan.c:
* tclUnixChan.c: Adapted to changed macro names, added some more
places there structures go on the heap instead of the stack.
Fixed a problem with TCL_FMT_STATIC_FLOATBUFFER_SZ which
caused the interp to crash when actually used to reduce the
usage of the stack.
2001-12-03 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* NOTES:
* tcl.h:
* tclBasic.c:
* tclCmdAH.c:
* tclCmdIL.c:
* tclCompCmds.c:
* tclCompExpr.c:
* tclCompile.c:
* tclExecute.c:
* tclHash.c:
* tclListObj.c:
* tclLiteral.c:
* tclParse.c:
* tclParseExpr.c:
* tclProc.c:
* tclResult.c:
* tclScan.c:
* tclStringObj.c:
* tclUtil.c: NRE1 patch by Miguel Sofer. Several new controlling
macros for information on the stack. Parser information on the
stack can now be switched to allocation on the heap.
2001-11-29 Miguel Sofer <msofer@users.sourceforge.net>
* generic/tclInt.h:
* generic/tclNamesp.c:
* tests/namespace.test: backporting patch for [Bug 231259]
2001-11-28 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* NOTES: New file. Read here about the new modularization macros,
interdependencies, implications, etc.
* static.sizes.html: New file. Report on the cuts achieved so
far. Regarding the object files only the files which did change
in size are reported. Usage of the MODULAR_TCL macro currently
cuts about 17 % of the code (measured using strip'ped object
files and libraries).
* Changed files so far
* tcl.decls
* tcl.h
* tclBasic.c
* tclCmdAH.c
* tclCmdMZ.c
* tclEncoding.c
* tclEvent.c
* tclFCmd.c
* tclFileName.c
* tclIO.c
* tclIOCmd.c
* tclIOGT.c
* tclIOUtil.c
* tclInt.decls
* tclInterp.c
* tclLoad.c
* tclLoadNone.c
* tclMain.c
* tclPipe.c
* tclStubInit.c
* tclUtil.c
* genStubs.tcl
* tclLoadAout.c
* tclLoadDl.c
* tclLoadDld.c
* tclLoadDyld.c
* tclLoadNext.c
* tclLoadOSF.c
* tclLoadShl.c
* tclUnixChan.c
* tclUnixFCmd.c
* tclUnixFile.c
* tclUnixInit.c
* tclUnixNotfy.c
* tclUnixPipe.c
* tclUnixSock.c
* Working on modularization of the tcl core.
***************************
**** mod-8-3-4-branch ****
***************************
2001-11-20 Kevin B. Kenny <kennykb@users.sourceforge.net>
* generic/tclCmdMZ.c (Tcl_TimeObjCmd) Added extra parentheses to a
cast expression to remove ambiguity and conform with Tcl
Engineering Manual. [Suggestion by Donal Fellows in commentary on
patch #483500]
2001-11-19 Kevin B. Kenny <kennykb@users.sourceforge.net>
* generic/tclCmdMZ.c (Tcl_TimeObjCmd): Corrected bug in [time]
when dealing with test sequences that run more than 2**31
microseconds. [Bug 478847]
2001-11-09 Don Porter <dgp@users.sourceforge.net>
* tests/var.test:
* generic/tclVar.c: Corrected bug in [global] when dealing
with variable names matching :*. [Bug 480176]
2001-11-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIO.c (ReadChars): Fixed bug #478856 reported by
Stuart Cassoff <stwo@users.sourceforge.net>. The bug caused loss
of fileevents when [read]ing less data from the channel than
buffered. Due to an empty input buffer the flag
CHANNEL_NEED_MORE_DATA was set but never reset, causing the I/O
system to wait for more data instead of using a timer to
synthesize fileevents and to flush the pending data out of the
buffers.
2001-10-19 Jeff Hobbs <jeffh@ActiveState.com>
************************
**** 8.3.4 TAGGED ****
************************
* generic/tclInt.h:
* generic/tclObj.c: added -DPURIFY object allocation option.
* unix/configure:
* unix/tcl.m4: added -lc to LIBS on AIX
2001-10-19 Daniel Steffen <das@users.sourceforge.net>
* mac/tclMacFile.c: fix to glob -join, wasn't traversing aliased
folders
* mac/tclMacLoad.c: : corrected utf8 handling, comparison of
package names to code fragment names changed to only match on the
length of package name, this allows for fragment names with version
numbers appended (backport from 8.4)
2001-10-18 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure: regend
* unix/tcl.m4 (SC_ENABLE_GCC): enabled better recognition of gcc.
* tests/clock.test (clock-8.1):
* generic/tclDate.c (RelativeMonth):
* generic/tclGetDate.y (RelativeMonth): corrected off-by-one-day
error in clock scan with relative months and years during swing
hours. [Bug #413397, Patch #414024] (lavana)
2001-10-17 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclUnixPipe.c (PipeInputProc, PipeOutputProc): do immediate
retry when error is returned with errno == EINTR.
[Bug #415131] (leger)
2001-10-17 Daniel Steffen <das@users.sourceforge.net>
* mac/tclMacProjects.sea.hqx: updated projects with new version
numbers and resource reorganization; included XML versions of
the projects for CW Pro5 or Pro7 users.
* mac/tcltkMacBuildSupport.sea.hqx: updated build instructions
and readme's; MoreFiles 1.5.2 added; XML versions of projects.
2001-10-17 Daniel Steffen <das@users.sourceforge.net>
Backport of mac specific changes added to 8.4 since 8.3.3:
* generic/tcl.h: removed line continuation in #if clause as this
breaks the mac resource compiler (note that *.r files include tcl.h)
* compat/strftime.c:
* mac/tclMacTime.c:
* mac/tclMacPort.h:
* generic/tclInt.decls:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c: timezone support for mac via
TclpGetTZName() like on windows, using an inverse timezone table
adapted from tclDate.c to map gmtoffset in seconds gotten from
the MacOS APIs to a timezone string, as there is no good way to get
this info from MacOS. I had to make up some unusual timezones and
arbitrarily decide on the most standard of the multiple choices
* generic/tclCmdAH.c:
* generic/tclDate.c:
* generic/tclGetDate.y:
* mac/tclMacInt.h:
* mac/tclMacFile.c: default mac epoch changed to standard unix
epoch and related mac time/date handling changes from TIP17.
* mac/tclMacFile.c: glob -dir compatibility for unix style
relative paths, from TIP17
* mac/tclMacAppInit.c: support for WASTE text library using
temporary memory, setting has no effect if WASTE is not used.
* tests/cmdAH.test: access time not available on the mac, skip the
atime touch test
* mac/tclMacApplication.r:
* mac/tclMacLibrary.r:
* mac/tclMacOSA.r:
* mac/tclMacResource.r: updated copyrights/dates in version
strings; reorganized resources among these files to avoid
multiple copies in applications and shared libraries, the script
libraries are now no longer duplicated in Tclsh but are only
included in the resources of Tcl.shlb.
* tests/cmdMZ.test:
* tests/exec.test:
* tests/fileName.test: added missing cleanups/tests/catches that
caused tests to fail on the mac.
* doc/tclvars.n: documentation error, env(PWD) should be env(HOME)
2001-10-17 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclUnixFCmd.c: minor casts to prevent warnings
* unix/configure: regened
* unix/configure.in: added preset CFLAGS check from HEAD to
prevent --enable-gcc from adding "-g -O2"
2001-10-17 Don Porter <dgp@users.sourceforge.net>
* changes: First draft of Tcl changes for 8.3.4 release.
2001-10-16 Don Porter <dgp@users.sourceforge.net>
* unix/Makefile.in: Restored install of tclConfig.sh file
to $TCL_EXEC_PREFIX/lib. It contains platform-dependent
definitions, and must not be installed under $TCL_PREFIX.
2001-10-16 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclLoadAout.c (TclGuessPackageName): removed unused vars
and fixed warnings. [Bug #446622] (lim)
2001-10-16 Daniel Steffen <das@users.sourceforge.net>
* unix/Makefile.in:
* unix/configure.in:
* unix/tcl.m4: Added support for MacOSX / Darwin
* unix/configure: Autoconf
* unix/mkLinks:
* unix/mkLinks.tcl: Added check for case-insensitive
filesystems and conditionalized links that only differ by
case (needed for MacOSX/Darwin on HFS+ FS)
* unix/tclLoadDyld.c: change in binary extension format from
MachO bundles to standard .dylib dynamic libraries like on
other unices. **POTENTIAL INCOMPATIBILITY*** extensions
will have to be recompiled as .dylib's.
Improved error handling and use of DStrings and
Tcl_UtfToExternalDString instead of sprintf to build up
symbol and library names. [Patch 435258]
2001-10-16 Don Porter <dgp@users.sourceforge.net>
* tests/trace.test (trace-18.1): Added test to demonstrate
memory corruption problems. [Bug 219393].
* unix/mkLinks: 'make mklinks' for Tcl_SetMainLoop.
* unix/Makefile.in (dist: target): Removed copy of files
matching mac/*.exp; no such files.
2001-10-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclInt.decls (TclExpandCodeArray,TclGetInstructionTable):
Added to internal stubs table. Tclcompiler (Tclpro project)
needs them if used as loadable package under Windows. Changed
signatures. We don't want to describe compiler internal
structures in "tclInt.h".
* generic/tclCompile.h: S.a. Removed function declarations.
* generic/tclCompile.c: S.a. Adapted to changed signatures.
2001-10-15 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure:
* unix/configure.in:
* win/configure:
* win/configure.in:
* win/tcl.m4: reworked to be a little cleaner in comparison to
each other, and to AC_SUBST even empty vars for win/tclConfig.sh
* generic/tcl.h:
* win/tclWinPort.h: moved #define of WIN32 to tcl.h where __WIN32__
is defined and added #ifndef check.
2001-10-12 Jeff Hobbs <jeffh@ActiveState.com>
* tests/winPipe.test: removed obsolete cat16 tests, fixed
winpipe-1.22 to only run on Win9*.
* tests/timer.test: slight skewing of after values to allow for
correct results on burdened machines.
* tests/winFCmd.test: differentiated test results for win2k
versus not.
* win/tclWinInit.c: cleanup back-ported from 8.4 HEAD.
* win/tclWinPort.h: move winsock2.h include, header cleanup
back-ported from 8.4 HEAD.
* library/encoding/ebcdic.enc:
* tools/encoding/ebcdic.txt: EBCDIC charset mapping.
[Patch #219323] (nijtmans)
* library/encoding/tis-620.enc:
* tools/encoding/tis-620.txt: TIS-620 charset mapping.
[Patch #467423] (poonlap)
2001-10-11 Miguel Sofer <msofer@users.sourceforge.net>
* generic/tclLiteral.c: (TclReleaseLiteral) insured that
self-referential bytecodes are properly cleaned up on interpreter
deletion [Bug 467523] (Ronnie Brunner)
2001-10-10 Don Porter <dgp@users.sourceforge.net>
* tests/unixInit.test: Corrected restore of ::env(LANG).
2001-10-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* generic/tclCmdMZ.c: Removed pointless #include and SCAN_* flags.
(Tcl_RegexpObjCmd): Fixed match area offset bug.
(Tcl_StringObjCmd): Fixed STR_INDEX and STR_REPEAT, and tidied up
STR_IS and STR_LENGTH.
2001-10-09 Miguel Sofer <msofer@users.sourceforge.net>
* generic/tclObj.c: removed duplicate definition of tclObjsAlloced
and tclObjsFreed. These variables only exist when compiling with
TCL_COMPILE_STATS, and are already defined in generic/tclExecute.c
2001-10-09 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclFileName.c (ExtractWinRoot): corrected ABR error
* doc/bgerror.n: back-port from 8.4 that indicates new behavior of
bgerror in Tk.
2001-10-09 Miguel Sofer <msofer@users.sourceforge.net>
* generic/tclLiteral.c: (TclReleaseLiteral) reverted previous
patch for [Bug 467523] - cure is worse than the illness.
2001-10-09 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* tests/io.test (io-32.8): Fixed typo.
2001-10-08 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* tests/cmdIL.test: test improvement.
* doc/lsort.n: Doc improvement.
* generic/tclCmdIL.c (InfoBodyCmd): Strengthened bytecode
isolation [fix orig. by Miguel Sofer]
(Tcl_LsortObjCmd, SortCompare): Symbolic indexing values plus
correct handling of indexing relative to end in [lsort].
2001-10-05 Miguel Sofer <msofer@users.sourceforge.net>
* generic/tclLiteral.c: (TclReleaseLiteral) insured that
self-referential bytecodes are properly cleaned up on interpreter
deletion [Bug 467523] (Ronnie Brunner)
2001-10-04 Jeff Hobbs <jeffh@ActiveState.com>
* library/encoding/cp1250.enc:
* library/encoding/cp1251.enc:
* library/encoding/cp1252.enc:
* library/encoding/cp1253.enc:
* library/encoding/cp1254.enc:
* library/encoding/cp1255.enc:
* library/encoding/cp1256.enc:
* library/encoding/cp1257.enc:
* library/encoding/cp1258.enc:
* library/encoding/cp874.enc:
* library/encoding/cp936.enc:
* library/encoding/cp949.enc:
* library/encoding/cp950.enc:
* library/encoding/iso8859-10.enc:
* library/encoding/iso8859-13.enc:
* library/encoding/iso8859-14.enc:
* library/encoding/iso8859-15.enc:
* library/encoding/iso8859-16.enc:
* library/encoding/iso8859-6.enc:
* library/encoding/iso8859-7.enc:
* library/encoding/iso8859-8.enc:
* library/encoding/koi8-u.enc:
* library/encoding/macCroatian.enc:
* library/encoding/macCyrillic.enc:
* library/encoding/macGreek.enc:
* library/encoding/macIceland.enc:
* library/encoding/macRoman.enc:
* library/encoding/macTurkish.enc:
* tools/encoding/cp1250.txt:
* tools/encoding/cp1251.txt:
* tools/encoding/cp1252.txt:
* tools/encoding/cp1253.txt:
* tools/encoding/cp1254.txt:
* tools/encoding/cp1255.txt:
* tools/encoding/cp1256.txt:
* tools/encoding/cp1257.txt:
* tools/encoding/cp1258.txt:
* tools/encoding/cp874.txt:
* tools/encoding/cp932.txt:
* tools/encoding/cp936.txt:
* tools/encoding/cp949.txt:
* tools/encoding/cp950.txt:
* tools/encoding/iso8859-1.txt:
* tools/encoding/iso8859-10.txt:
* tools/encoding/iso8859-13.txt:
* tools/encoding/iso8859-14.txt:
* tools/encoding/iso8859-15.txt:
* tools/encoding/iso8859-16.txt:
* tools/encoding/iso8859-2.txt:
* tools/encoding/iso8859-3.txt:
* tools/encoding/iso8859-4.txt:
* tools/encoding/iso8859-5.txt:
* tools/encoding/iso8859-6.txt:
* tools/encoding/iso8859-7.txt:
* tools/encoding/iso8859-8.txt:
* tools/encoding/iso8859-9.txt:
* tools/encoding/koi8-r.txt:
* tools/encoding/macCentEuro.txt:
* tools/encoding/macCroatian.txt:
* tools/encoding/macCyrillic.txt:
* tools/encoding/macGreek.txt:
* tools/encoding/macIceland.txt:
* tools/encoding/macRoman.txt:
* tools/encoding/macTurkish.txt:
Updated encodings with latest mappings from www.unicode.org. This
did not include some Mac encodings that have special multi-unichar
translations now (like symbols, dingbats and japanese). Also does
not include big5, gb or euc* as those have different formats in
the latest Unicode version that need new conversion tools. Not
all related .enc files changed as some had been updated separately.
2001-10-03 Jeff Hobbs <jeffh@ActiveState.com>
* README:
* generic/tcl.h:
* mac/README:
* tools/tcl.hpj.in:
* tools/tcl.wse.in:
* unix/Makefile.in:
* unix/README:
* unix/configure:
* unix/configure.in:
* unix/tcl.m4:
* unix/tcl.spec:
* win/README:
* win/REAME.binary: updated patchlevel to 8.3.4. Changed urls to
point to www.tcl-tk.net where applicable.
* win/configure:
* win/configure.in:
* win/tcl.m4:
* win/Makefile.in: added proper Win64 build support.
updated patchlevel to 8.3.4.
* generic/tclEvent.c (Tcl_FinalizeThread): moved freeing of
tclLibraryPath to before the thread exit handlers are called.
Slight modification to change on 2001-09-24.
2001-09-28 Miguel Sofer <msofer@users.sourceforge.net>
* doc/FindExec.3: added a comment not to change the working
directory before calling Tcl_GetNameOfExecutable [Bug 219215]
2001-09-28 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIO.c: added (on behalf of Kevin Kenny
<kennykb@users.sourceforge.net>) two more '(ClientData)' casts
on calls to Tcl_Preserve and Tcl_Release -- ones that Vince
apparently missed.
2001-09-27 Don Porter <dgp@users.sourceforge.net>
* generic/tclIO.c (ChannelTimerProc): Added Tcl_Preserve()
and Tcl_Release() to fix segfault introduced by the 2001-09-26
changes. [Bug 465494]
* doc/TCL_MEM_DEBUG.3: Updated out-of-date reference to
#define GUARD_SIZE.
2001-09-26 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* The changes below fix [Bug #462317] where Expect tried to read
more than was in the buffers and then blocked in the OS call as
its pty channel driver provides no blockmodeproc through which
the OS could be notified of blocking-behaviour. Because of this
the general I/O core has to take more care than usual to
preserve the semantics of non-blocking channels.
* generic/tclIO.c (Tcl_ReadRaw): Do not read from the driver if
the channel is non-blocking and the fileevent causing the read
was generated by a timer. We do not know if there is data
available from the OS. Instead of going to the OS for more and
potentially blocking we simply signal EWOULDBLOCK to the higher
levels to cause the system to wait for true fileevents.
(GetInput): Same as before.
(ChannelTimerProc): Added set and clear of CHANNEL_TIMER_FEV.
* generic/tclIO.h (CHANNEL_TIMER_FEV): New flag for channels. Is
set if a fileevent was generated by a timer, the channel is not
blocking and the driver did not provide a blockmodeproc. In that
case the I/O core has to be especially careful about going to
the driver for more data.
2001-09-24 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* The change below fixes [Bug #464380]. The bug was reported by
Ronnie Brunner <rbrunner@users.sourceforge.net>. He also
provided the patch.
* generic/tclEvent.c (Tcl_Finalize): Moved release of
'tclLibraryPath' to Tcl_FinalizeThread.
(Tcl_FinalizeThread): See above, new place for release of
'tclLibraryPath'.
2001-09-20 Jeff Hobbs <jeffh@ActiveState.com>
* win/makefile.vc: updated IA64 compile settings
* win/tclWinInit.c: added extra processor definitions. (mstacy)
* win/tclWinSock.c (SocketThread): corrected pointer cast for _WIN64.
* win/tclWinNotify.c: removed unnecessary winsock include (it is
already in from tclWinPort.h).
* win/tclWinPort.h: changed winsock.h include to winsock2.h.
Reverses change from 2000-11-16, but is necessary for WIN64.
Extensions should comply with defined OS words, or use #ifndef.
2001-09-19 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclTest.c (TestcmdtokenCmd): corrected pointer
storage/retrieval for 64bit machines.
* generic/tclCmdAH.c (Tcl_FormatObjCmd):
* generic/tclScan.c (Tcl_ScanObjCmd): corrected handling of format
and scan on 64-bit machines. [Bug 219223, Patch #412696] (rmax)
* unix/configure: regen'ed
* unix/tcl.m4: added --enable-64bit support for HP-11 with the
64-bit kernel.
* generic/tcl.h: removed forced #define USE_TCLALLOC 1 for
Windows. This means the native system allocator will be used by
default. This should be binary and source compatible with
extensions, as Tcl_Alloc is a properly stubbed function.
2001-09-18 Don Porter <dgp@users.sourceforge.net>
* unix/configure: Regen.
* unix/tcl.m4 (SC_CONFIG_CFLAGS): On Linux, disable inlining when
one of the compat/*.c routines is to be linked in. [Patch 440891]
2001-09-13 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclUtf.c (Tcl_UtfPrev): corrected to return the proper
location when the middle of a UTF-8 byte was passed in.
[Tk Bug #450504]
2001-09-13 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tests/ioCmd.test: Changed the computation of the result for
iocmd-8.1[123] so that the tests work for single- and
multi-process execution of the testsuite. Depending on the
choice of the user stdout is a tty or not and thus reports
different channel options. Fixes [460993] reported by Don
Porter.
2001-09-12 Don Porter <dgp@users.sourceforge.net>
Backport several bug fixes from HEAD to core-8-3-1-branch:
* tests/rename.test:
* tests/split.test: Corrected tests to better isolate tests in
one file from influencing tests in other files. [Bug 460591]
* unix/tclLoadShl.c: Added #include of tclInt.h; access to Tcl
internals, notably TclpUnloadFile(), is required. Thanks to
Bob Techentin for report and patch. [Bug 459305]
* generic/tclInitScript.h (initScript):
* win/tclWinInit.c (TCL_REGISTRY_KEY, TclpSetVariables): Removed
vestiges of Tcl's old initialization from registry variables.
[Bug 455645]
* tests/unixInit.test (unixInit-3.2): Updated test to support
newer HP-UX releases that properly report euc-jp as the system
encoding for Japanese. Bug report and patch verification by Bob
Techentin. [Bug 453883]
* compat/strtod.c (strtod): Fixed failure to handle expressions
like 3eq2 and failure to set errno on overflow. [Bug 440894]
2001-09-10 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclEvent.c (TclInExit): Corrected handling of tsd in
late stages of finalization. [Bug #419449] (darley)
* tests/stack.test:
* generic/tclInterp.c (AliasObjCmd): Check the numLevels to ensure
that we aren't hitting some alias loop condition. [Bug #443184]
2001-09-10 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclInt.decls: Added 'TclWinFlushDirtyChannels' to
the internal platform specific stub table.
2001-09-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* All the changes below serve to fix bug [219148] which reports a
80x performance hit for file I/O on Win* systems. On my system
it was closer to a 120x hit. Problem report by Uwe Traum <no
email address available>.
The fix goes like this: The obstacle is 'FlushFileBuffers',
executed whenever Tcl writes data to the OS, as Tcl has to wait
for the disk to complete I/O, and disks are slow. We remove that
obstacle. This opens another problem, [file size] reports back
wrong numbers. So for [file size] we add the call back in. As
optimization we keep track of the channels which were written to
and flush only these.
* win/tclWinFile.c (TclpObjStat): Added a call to
'TclWinFlushDirtyChannels'. This ensures that [file size] and
related commands report the correct size of a file even if Tcl
has recently written to it. Unixoid OS's always report the
correct size even for files with pending data, but Win*
syssystem don't. They only report what is actually on disk.
* win/tclWinInt.h: Added declaration of
'TclWinFlushDirtyChannels', making it available to other parts
of the tcl core.
* win/tclWinChan.c (TclWinFlushDirtyChannels): New, internal,
procedure. Goes through the list of open file channels and
forces the OS to flush its file buffers for all which were
written to since the last call of this function. This is an
expensive operation as Tcl has to wait for the OS to complete
actual writes to the disk.
(FileInfo): Added dirty flag required by the procedure above.
(FileOutputProc): Removed flushing of file buffers, setting the
dirty flag instead. This means that the previously incurred
delays do not happen anymore.
(TclWinOpenFileChannel): Added initialization of 'dirty' flag.
2001-09-06 Don Porter <dgp@users.sourceforge.net>
* doc/http.n:
* library/http/*.tcl:
* tools/tcl.wse.in:
* tools/tclmin.wse:
* unix/Makefile.in:
* win/{Mm}akefile.*: Updated http package to version 2.4,
reflecting the new features just added.
2001-09-06 Jeff Hobbs <jeffh@ActiveState.com>
* doc/http.n: noted -binary, charset and coding state keys.
* tests/http.test:
* library/http/pkgIndex.tcl:
* library/http/http.tcl (geturl): correctly get charset parameter
and convert text according to specified encoding (if known).
RFC iso8859-1 is used by default. Also recognize
Content-encoding to see if we should do binary translation.
Added a CYA -binary switch for the cases that were missed. [Bug
#219211 #219399]
* tests/ioUtil.test: changed to make better use of constraints and
remove knownBug constraints that weren't valid.
2001-09-01 David Gravereaux <davygrvy@pobox.com>
-=[ Tcl_Async* API merge from HEAD ]=-
* generic/tclInt.decls: Removed TclpAsyncMark permanently and left
the hole not to upset the positions.
* generic/tclDecls.h:
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclPlatDecls.h:
* generic/tclStubInit.c: regen'd tables.
* generic/tclAsync.c: Brought source to match -r1.6 on the HEAD
branch.
* generic/tclEvent.c:
* generic/tclInt.h: Added prototype to and use of new
TclFinalizeAsync() found in tclAsync.c.
* unix/tclUnixPort.h:
* mac/tclMacPort.h: removed #defines for TclpAsyncMark.
* win/tclWinInit.c: Removed the TclpAsyncMark function and the
thread ID saving that was going on in TclpInitPlatform(). [the old
hack]
* win/tclWinThread.c: TclpFinalizeCondition() and
TclpFinalizeMutex() are now properly returning the old
CriticalSection handle to the system. Tcl_CreateThread() is now
decrementing its handle reference, so the system will recover
resources when the thread closes (doh!). These changes are all
already up on the HEAD.
* doc/Async.3: matches HEAD.
2001-08-30 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclIndexObj.c: fixed some casting problems that upset
Crays. [Bug #419528] (andreasen)
* tests/httpd (httpdRespond): added response to timeout value in
query string.
2001-08-30 Don Porter <dgp@users.sourceforge.net>
* generic/tcl.h: Silence warning from Sun compiler. [Bug 454374]
2001-08-27 Jeff Hobbs <jeffh@ActiveState.com>
* doc/Encoding.3: added note that tclPlatDecls.h must be included
for use of Tcl_WinTCharToUtf and Tcl_WinUtfToTChar.
* doc/Tcl_Main.3: added docs for Tcl_SetMainLoop
* generic/tclStubInit.c:
* generic/tclDecls.h:
* generic/tcl.decls: added Tcl_SetMainLoop proc that allows people
to set a main loop that will run for tclsh.
* generic/tcl.h: added Tcl_MainLoopProc typedef
* generic/tclMain.c (Tcl_SetMainLoop, StdinProc, Prompt): new
StdinProc and Prompt static procs and Tcl_SetMainLoop stubs proc.
The first two handle a fileevent based prompt (taken from
tkMain.c). Tcl_SetMainLoop enables the interactive setting of a
main loop procedure. This enables Tk to be a loadable package.
2001-08-24 Don Porter <dgp@users.sourceforge.net>
* tests/unixInit.test (unixInit-2.9): Corrected expected result
to match Tcl's quirky construction of its init library path.
* tests/ioUtil.test (ioUtil-3.*): Corrected errors in tests
revealed by fix of overagressive compiler. [Bug 451200]
* doc/tclsh.1: Added note that the tclsh program is frequently
installed with the Tcl version numer as part of the name.
[Patch 402725]
* generic/tclPkg.c:
* tests/pkg.test: [package forget] now forgets all of the
package arguments it receives, not stopping when a package is
not found. [Bug 415273]
* doc/pkgMkindex.n:
* library/package.tcl: Corrected documentation and usage
message of [pkg_mkIndex].
* tests/unixInit.test (unixInit-2.8): Added extra constraint,
notInstalledInTmp, to stop this test from damaging installations
in /tmp; not much fun to have to reinstall the Tcl library every
time you run the test suite!
* tests/unixInit.test (unixInit-2.9):
* unix/tclUnixInit.c (TclpInitLibraryPath):
* win/tclWinInit.c (TclpInitLibraryPath): Corrected buggy
construction of search path entries relative to executable.
Added test for bad construction. [Bug 438014]
* tests/cmdMZ.test (cmdMZ-1.4): added notLinux constraint to test
to prevent failure message on Linux due to OS caching bug.
* doc/library.n:
* library/init.tcl:
* tests/autoMkindex.t*: Modified [auto_import] to apply
pattern matching in the [namespace import] style. [Bug 420186]
***POTENTIAL INCOMPATIBILITY*** for any callers of [auto_import]
from outside Tcl that expect the pattern matching to be like that
of [string match].
* tools/genStubs.tcl: Add a package require of Tcl 8
at the beginning of the script so that the script
will print a descriptive error message when run
in an old Tcl 7 shell.
2001-08-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* win/tclWinPipe.c (BuildCommandLine): Fixed tcl Bug
[432499]. Part of the code used the non-absolute path to the
executable to determine quoting. This failed if the absolute
path contained spaces, but the application name itself not. This
bug caused no trouble on Win NT 5, but does for other variants
in the Win* family. Report and fix due to Ken Poole
<kenpoole@users.sourceforge.net>.
2001-08-23 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure:
* unix/tcl.m4: added QNX-6 build support. [Bug #219410] (loverso)
2001-08-20 Jeff Hobbs <jeffh@ActiveState.com>
* library/http/http.tcl (geturl): added port number to Host:
header to comply with HTTP/1.1 spec (RFC 2068). [Bug #452217]
2001-08-08 Don Porter <dgp@users.sourceforge.net>
* library/dde1.1/pkgIndex.tcl:
* library/reg1.0/pkgIndex.tcl: Package dependencies. [Patch 448931]
* library/http/http.tcl:
* library/http/pkgIndex.tcl: Upgrade to http 2.3.2.
* library/msgcat/msgcat.tcl:
* library/msgcat/pkgIndex.tcl: Upgrade to msgcat 1.1.1.
* library/opt/optparse.tcl:
* library/opt/pkgIndex.tcl: Upgrade to opt 0.4.3.
* library/tcltest/tcltest.tcl:
* library/tcltest/pkgIndex.tcl: Upgrade to tcltest 1.0.1.
2001-08-07 Miguel Sofer <msofer@users.sourceforge.net>
* generic/tclExecute.c: Avoid panic when there are extra items in
the tcl stack [Bugs #406709 and 439843, Patch #414470]
* tests/foreach.test: test to exercise the patch
2001-08-06 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclCmdMZ.c (Tcl_RegexpObjCmd, Tcl_RegsubObjCmd):
reordered the retrieval of arguments to avoid shimmering bug when
the pattern and string referenced the same object.
* unix/configure: regenerated
* unix/tcl.m4: added GNU (HURD) configuration target. (brinkmann)
[Patch: #442974]
2001-08-03 Jeff Hobbs <jeffh@ActiveState.com>
* win/configure: regenerated
* win/tcl.m4: fixed DLLSUFFIX definition to always be ${DBGX}.dll.
This is necessary for TEA compliant builds that build shared
against a static-built Tcl.
* win/Makefile.in ($(TCLSH)): added $(TCL_STUB_LIB_FILE) to build
target, otherwise it wouldn't get generated in a static build.
2001-08-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIOCmd.c (Tcl_GetsObjCmd): Applied patch from SF item
[442665] to fix the bug reported by it. The function can corrupt
a freed object if it is called with objc == 3. This is because
it retrieves resultPtr and does not increment its reference
count, but then calls Tcl_ObjSetVar2, which causes the retrieved
resultPtr object to be released.
2001-07-18 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* doc/bgerror.n: Fixed Tk! Bug #415757.
2001-07-18 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIO.c: Aftermath to [SF #427196]. Squash empty buffers
if they are smaller than the requested buffersize, to prevent
reusage of old buffers and to honor changes in the requested
buffersize made by the user.
2001-07-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIO.c (GetInput): Fixed [SF #427196]. Memory was
overwritten because a buffer was used after a change of the
requested buffersize together with that requested buffersize and
not its actual size, which was smaller. Note that the continous
reuse of the smaller buffer negatively impacts performance. The
system never allocates a buffer with the newly requested bigger
buffersize.
2001-07-16 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinPipe.c (PipeClose2Proc): constrained the mutex lock to
just the TerminateThread call and waiting for termination. (jsmith)
2001-07-02 Jeff Hobbs <jeffh@ActiveState.com>
* tests/util.test: added util-4.6
* generic/tclUtil.c (Tcl_ConcatObj): Corrected walking backwards
over utf-8 chars. [Bug #227512]
2001-06-27 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclUtf.c (Tcl_UtfBackslash): Corrected backslash
handling of multibyte utf-8 chars. [Bug #217987]
* generic/tclCmdIL.c (InfoProcsCmd): fixed potential mem leak in
info procs that created objects without using them.
* generic/tclCompCmds.c (TclCompileStringCmd): fixed mem leak when
string command failed to parse the subcommand.
2001-05-22 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclObj.c (TclAllocateFreeObjects): simplified
objSizePlusPadding to use sizeof(Tcl_Obj) (max)
2001-05-04 Daniel Steffen <das@users.sourceforge.net>
** Mac 8.3.3 binary release
** detailed change log for changes to mac code for 8.3.3
** (expands on log entries below marked 2001-04-04 Jeff Hobbs)
* generic/tcl.h: MAC_TCL: addition of ConditionalMacros.h and use of
DLLIMPORT and DLLEXPORT like on other platforms. ( => no longer need
the .exp files and can remove use of #pragma export that never worked
well)
* mac/tclMacShLib.exp:
* mac/tclMacOSA.exp:
* mac/tclMacMSLPrefix.h: removed files
* mac/MW_TclBuildLibHeader.h:
* mac/MW_TclBuildLibHeader.pch:
* mac/MW_TclHeaderCommon.h:
* mac/MW_TclStaticHeader.h:
* mac/MW_TclStaticHeader.pch: new precompiled header files
* mac/MW_TclAppleScriptHeader.pch:
* mac/MW_TclHeader.pch:
* mac/MW_TclTestHeader.pch:
* mac/tclMacCommonPch.h: revised precompiled header handling: now
include a common header file 'MW_TclHeaderCommon.h' from all .pch
files, the .pch files themselves now only setup #defines (e.g.
BUILD_tcl, STATIC_BUILD, TCL_DEBUG, TCL_THREADS) like in makefiles on
other platforms.
* mac/tclMac.h:
* mac/tclMacPort.h:
* mac/tclMacInt.h: use of BUILD_tcl and TCL_STORAGE_CLASS like on other
platforms, standardize #include'd files to what's done on other
platforms, removed use of #pragma export.
* mac/tcltkMacBuildSupport.sea.hqx: new archive of mac build support
files & suggested build environment directory hierarchy:
- 'Building MacTclTk' & 'CW Pro6 changes' readme's.
- projects for MoreFiles 1.5.1 static & shared libraries.
- project & sources for 'pseudoCarbonSupport', see below.
* mac/tclMacProjects.sea.hqx: updated mac build project files:
- build support for CodeWarrior Pro6, UnivIntf 3.4 & shared runtime
libraries: the MSL libraries and MoreFiles are no longer compiled into
Tcl.shlb, all non-static binaries now use the Pro6 shared runtime
libraries and MoreFiles.shlb. These shlbs are merged into the standard
Wish and TclShell, but 3rd party applications linking with Tcl.shlb or
Tk.shlb need to setup access to them. (see the "(sh-ppc)" targets
for how to do this.)
- Merging the full MSL.shlb and the other shlbs into Wish & TclShell
makes them a bit larger than before, use unmerged binaries to avoid
copying the shared code with every application, e.g. when deploying
numerous Wish based droplets.
- Note that using CW Pro5 to compile extensions is in principle still
possible, but need to link with Pro6 runtime libraries.
- Tclapplescript now loads and runs on CFM68k.
- Highly experimental "pseudoCarbon" support for Tcl only on OS 8/9:
binaries in "Build:(Carbon):" link against CarbonLib instead of
InterfaceLib, however the actual code has not been carbonized! i.e. it
will not run on OSX and may not even run properly with CarbonLib.
This should in principle allow you to build & test OS9 CFM Carbon
binaries that need to link with Tcl.shlb. On OSX you can use the
native Tcl.framework, but you have to build a MachO binary as there
is no CFM glue lib for Tcl.framework.
the library pseudoCarbonSupport.shlb manually loads the symbols
from InterfaceLib that are not in CarbonLib but are needed by the
uncarbonized code in Tcl.shlb and TclShell.
* generic/tclMain.c: MAC_TCL: workaround for broken/non-standard isatty
on MW Pro6, #include <unistd.h> instead of defining isatty
* mac/tclMacPort.h: MW Pro6 changes for MSL fcntl.h, stat.h & isatty
* mac/tclMacAppInit.c: add EXTERN to InstallConsole to enable DLL
export via the TCL_STORAGE_CLASS mechanism.
* mac/tclMacFCmd.c: fix for FSpDirectoryCopy API change
* mac/tclMacLibrary.c: emit compile time error when
TCL_REGISTER_LIBRARY and USE_TCL_STUBS are both defined at the same
time in an extension, this use is not currently supported and will
result in a crash when dynamically loading the extension.
* mac/tclMacApplication.r:
* mac/tclMacLibrary.r:
* mac/tclMacOSA.r:
* mac/tclMacResource.r: fixed obsolete copyrights/dates in version
strings; updated version strings to standard usage; added support for
'(Support Libraries)' subfolder for shared runtime libraries in
unmerged binaries; commented out demo setting of "Tcl Environment
Variables"
* mac/tclMacChan.c:
* mac/tclMacSock.c: cast for *BlockMode
* mac/tclMacUtil.c:
* mac/tclMacMath.h: removed obsolete hypot() definition
* generic/tclIntPlatDecls.h:
* generic/tclInt.decls:
* generic/tclStubInit.c:
* mac/tclMacNotify.c:
* mac/tclMacOSA.c:
* mac/tclMacUtil.c:
* generic/tclThreadTest.c: renamed routines conflicting with standard
Apple or MoreFiles headers (at compile or link time):
GetGlobalMouse -> GetGlobalMouseTcl
FSpGetDirectoryID -> FSpGetDirectoryIDTcl
FSpOpenResFileCompat -> FSpOpenResFileCompatTcl
FSpCreateResFileCompat -> FSpCreateResFileCompatTcl
NewThread -> NewTestThread
the renamed MoreFiles *Tcl routines are just wrappers calling into the
MoreFiles DLL.
* mac/tclMacCommonPch.h:
* mac/tclMacThrd.c:
* mac/tclMacPanic.c: removed OLDROUTINENAMES define, renamed obsolete
apple API names to modern equivalents; UH3.4 support: added #include
<ControlDefinitions.h>, updated New*Proc() calls to New*UPP().
* mac/tclMacUnix.c: added missing (Tcl_Obj ***) cast to
Tcl_ListObjGetElements call
* mac/tclMacAlloc.c: modernized TclpSysAlloc() to use temporary
memory instead of system heap memory when available (MacOS
>= 7.5 and possibly earlier, use of system heap has been
discouraged for a long time and has many disadvantages, e.g. memory
isn't paged out, and errors can very easily bring the system down);
fixed crashing bug in TclpSysRealloc() and CleanUpExitProc() where
memory was being accessed after having been deallocated; fixed
memory leak in (de)allocation code (for every block ever allocated
with TclpSysAlloc, a Ptr was leaked), if temporary memory is
available, don't track allocated memory, instead use
RecoverHandle() to get Handle from Ptr, otherwise use doubly linked
list to correctly track memory and free all allocated memory; added
new option for ConfigureMemory: MEMORY_DONT_USE_TEMPMEM, disables
use of temporary memory even when it would be available, only
necessary when writing e.g. a driver (using tcl??); increased
fraction of application heap reserved for OS routines to 512K
2001-04-06 Jeff Hobbs <jeffh@ActiveState.com>
* unix/install-sh: added -S option
* unix/tcl.m4: added Rhapsody/Darwin target
* unix/tclLoadDyld.c (TclpLoadFile):
* unix/tclMtherr.c (matherr): added support for Mac OS X
2001-04-05 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclObj.c (TclAllocateFreeObjects): simplified
objSizePlusPadding to use sizeof(Tcl_Obj) (max)
* win/README:
* win/README.binary: removed note about use of registry (hasn't
been used for loading since 8.0).
* win/configure:
* win/tcl.m4: added -link50compat
* mac/tclMacProjects.sea.hqx: fixed accidental swap with Tk
project files.
2001-04-04 Jeff Hobbs <jeffh@ActiveState.com>
** Start changes for improved mac build (steffen) **
* mac/tclMacShLib.exp:
* mac/tclMacMSLPrefix.h: removed files
* generic/tcl.h: addition of ConditionalMacros.h and use of
DLLIMPORT and DLLEXPORT.
* generic/tclIntPlatDecls.h:
* generic/tclInt.decls:
* generic/tclMain.c:
* generic/tclStubInit.c:
* generic/tclThreadTest.c: NewThread -> NewTestThread
* mac/MW_TclAppleScriptHeader.pch:
* mac/MW_TclHeader.pch:
* mac/MW_TclTestHeader.pch:
* mac/tclMac.h:
* mac/tclMacAppInit.c:
* mac/tclMacApplication.r:
* mac/tclMacChan.c: cast for *BlockMode
* mac/tclMacCommonPch.h:
* mac/tclMacFCmd.c:
* mac/tclMacInt.h:
* mac/tclMacLibrary.c:
* mac/tclMacLibrary.r:
* mac/tclMacMath.h:
* mac/tclMacNotify.c:
* mac/tclMacOSA.c:
* mac/tclMacOSA.r:
* mac/tclMacPanic.c:
* mac/tclMacPort.h:
* mac/tclMacResource.r:
* mac/tclMacSock.c: cast for *BlockMode
* mac/tclMacThrd.c:
* mac/tclMacUnix.c:
* mac/tclMacUtil.c: changed mac declarations to use Tcl ending,
fixed copyrights, updated headers, fixed comments, updated
resource files. Mac builds are now meant to be build with
MetroWerks CW 6.
* mac/MW_TclBuildLibHeader.h:
* mac/MW_TclBuildLibHeader.pch:
* mac/MW_TclHeaderCommon.h:
* mac/MW_TclStaticHeader.h:
* mac/MW_TclStaticHeader.pch:
* mac/tcltkMacBuildSupport.sea.hqx: new files
* mac/tclMacProjects.sea.hqx: new mac build project files.
** End changes for improved mac build (steffen) **
* unix/configure:
* unix/tcl.m4: extended test of termios vs. termio vs. sgtty to
better detect result on Linux and when certain configure
redirections are being used. (max) [Patch #402923; Bug #227412,
#219194]
2001-04-03 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclListObj.c (Tcl_SetListObj): set objPtr->length = 0 in
empty object case to maintain sanctity of Tcl_Obj bytes/length
pairing. (porter) [Patch #405998]
* README:
* mac/README:
* win/README:
* win/README.binary:
* unix/README: updated patchlevel information to 8.3.3 and
updated links and notes.
* generic/tcl.h:
* tools/tcl.wse.in:
* win/configure.in (TCL_PATCH_LEVEL):
* win/configure:
* unix/configure:
* unix/configure.in (TCL_PATCH_LEVEL):
* unix/tcl.spec: updated patchlevel information to 8.3.3
***************************************************************
** START OF ASYNC BACKPORT LOG (8.4aCVS 2001-04-03 -> 8.3.3) **
***************************************************************
* doc/CrtChannel.3:
* doc/CrtSlave.3:
* doc/DetachPids.3:
* doc/Eval.3:
* doc/ObjectType.3:
* doc/StrMatch.3:
* doc/after.n:
* doc/append.n:
* doc/bgerror.n:
* doc/binary.n:
* doc/break.n:
* doc/case.n:
* doc/cd.n:
* doc/close.n:
* doc/concat.n:
* doc/continue.n:
* doc/dde.n:
* doc/encoding.n:
* doc/eof.n:
* doc/error.n:
* doc/eval.n:
* doc/exec.n:
* doc/exit.n:
* doc/fblocked.n:
* doc/fileevent.n:
* doc/filename.n:
* doc/flush.n:
* doc/for.n:
* doc/foreach.n:
* doc/format.n:
* doc/gets.n:
* doc/glob.n:
* doc/global.n:
* doc/http.n:
* doc/if.n:
* doc/incr.n:
* doc/join.n:
* doc/lappend.n:
* doc/library.n:
* doc/lindex.n:
* doc/linsert.n:
* doc/list.n:
* doc/llength.n:
* doc/load.n:
* doc/lrange.n:
* doc/lreplace.n:
* doc/lsort.n:
* doc/man.macros:
* doc/memory.n:
* doc/open.n:
* doc/package.n:
* doc/packagens.n:
* doc/pid.n:
* doc/pkgMkIndex.n:
* doc/proc.n:
* doc/puts.n:
* doc/pwd.n:
* doc/read.n:
* doc/regexp.n:
* doc/regsub.n:
* doc/rename.n:
* doc/resource.n:
* doc/return.n:
* doc/scan.n:
* doc/seek.n:
* doc/set.n:
* doc/split.n:
* doc/string.n:
* doc/subst.n:
* doc/switch.n:
* doc/tclvars.n:
* doc/tell.n:
* doc/time.n:
* doc/unknown.n:
* doc/update.n:
* doc/uplevel.n:
* doc/upvar.n:
* doc/variable.n:
* doc/vwait.n:
* doc/while.n: doc clarifications and cleanup from 8.4aCVS docs
2001-04-02 Jeff Hobbs <jeffh@ActiveState.com>
* win/configure:
* win/tcl.m4 (SHLIB_LD): added -incremental:no. [Bug #219381]
2001-03-30 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclCkalloc.c (TclFinalizeMemorySubsystem): set curTagPtr
to NULL to allow for reuse.
* generic/tclEvent.c (Tcl_Finalize): moved the tsdPtr
initialization inside the subsystemsInitialized check to prevent
it potentially getting called twice during finalization. (wu)
[Patch #403532, Bug #219391]
* win/tclWinSock.c (SocketEventProc): Fixed race condition in
readability of socket on Windows.
[Patch #410674, Bug #219205 #219333]
* win/tcl.m4: added imm32.lib to LIBS_GUI for Tk IME support.
* win/Makefile.in (install-doc): improved install-* targets to use
their base build dependency.
2001-03-29 Mo DeJong <mdejong@redhat.com>
* tests/interp.test: Print out warning when
testinterpdelete command is not defined.
Add tests that checks to make sure a
child interp inherits the parent's cwd.
2001-03-29 Jeff Hobbs <jeffh@activestate.com>
* unix/tclUnixPipe.c (TclpCreateTempFile): prevent potential race
condition and security leak in tmp filename creation.
(max) [Patch #402924]
* unix/configure:
* unix/tcl.m4: corrected IRIX-5.x config to not use -n32.
(english) [Patch #403626]
* unix/tclUnixThrd.c (Tcl_ConditionWait): fixed handling of
timeout for threads (corrects excessive CPU usage issue for Tk on
Unix in threaded Tcl environment). (ruppert) [Bug #411603]
2001-03-26 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* win/tclWinInt.h (tclWinTCharEncoding): Removed as now a static
variable in win/tclWin32Dll.c instead.
2001-03-23 Jeff Hobbs <jeffh@activestate.com>
* generic/tclVar.c (Tcl_ArrayObjCmd): Corrected retrieval of
resultPtr to prevent possible corruption.
* generic/tclNamesp.c (Tcl_Import): Correctly freed a DString.
(lavana) [Patch #403755]
2001-03-14 Don Porter <dgp@users.sourceforge.net>
* library/package.tcl (pkg_mkIndex): Added patch from Vince
Darley to make [pkg_mkIndex -verbose] even more verbose.
[Bug 219349, Patch 403529]
2001-03-13 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* generic/tclCmdMZ.c (Tcl_StringObjCmd): A missing
{return TCL_OK;} was causing memory corruption. [Bug #408002]
* generic/tclExecute.c (TclDeleteExecEnv, GrowEvaluationStack,
TclExecuteByteCode): Added some casts to ClientData that are
apparently needed on some architectures.
2001-03-02 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* generic/tclExecute.c (TclExecuteByteCode): Fixed bug that could
pass pointers to freed memory to command implementations, which
most obviously caused some weird behaviour with [info level], but
could have caused problems with user code and command traces too.
[Bug 404865, Patch 405436]
2001-02-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* generic/tclCmdMZ.c (Tcl_SplitObjCmd): Improved efficiency of
splitting strings into individual characters by adding hash so
that only one Tcl_Obj per character is created. Improves
performance of splitting of short strings and makes a huge
difference to splitting of long strings, such as is done in the
mime package in tcllib. [Bug #131523]
2001-01-30 Don Porter <dgp@users.sourceforge.net>
* generic/tclIO.c (CopyData): Moved code that updates the count
of how many bytes are left to copy. Corrects bug that when
writing occurs in the background, the copy loop could be
escaped without updating the count, causing CopyData() to try
to copy more bytes than the toRead value originally passed to
TclCopyChannel(), leading to hangs and misreporting of number
of bytes copied. [Bug 118203, Patch 103432]
2001-01-04 Don Porter <dgp@users.sourceforge.net>
* tests/unixInit.test:
* unix/tclUnixInit.c (TclpInitLibraryPath):
* win/tclWinInit.c (TclpInitLibraryPath): Several entries in
the library path ($tcl_libPath) are determined relative to the
absolute path of the executable. When the executable is
installed in or near the root directory of the file system,
relative pathnames were being incorrectly generated, and in
the worst case, memory access violations were crashing the program.
[Bug 119416, Patch 102972]
2000-12-14 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c:
* tests/expr-old.test: Re-wrote Tcl's [expr rand()] and
[expr srand($seed)] implementations, fixing a range error
on some 64-bit platforms. Added tests that detect the bug.
The rewrite changes the seed -> sequence map on 64-bit
platforms, only for seed >= 2^31, a slight incompatibility.
[Bug 121072, Patch 102781]
2000-12-10 Don Porter <dgp@users.sourceforge.net>
* library/init.tcl:
* library/msgcat/msgcat.tcl:
* library/msgcat/pkgIndex.tcl:
* library/opt/optparse.tcl:
* library/opt/pkgIndex.tcl: Where [uplevel] is used in a proc
to evaluate a Tcl built-in command in the caller's context,
the built-in commands are now fully namespace-qualified. This
prevents problems when the caller context is in a namespace where
the built-in command name has been used by a command in the
namespace. (For example, [::ns::set] might be called instead
of the intended [::set]). [Bug #119422, Patch #102545]
2000-12-09 jeff hobbs <jhobbs@interwoven.com>
* docs/scan.n:
* tests/scan.test:
* generic/tclScan.c (Tcl_ScanObjCmd): changed %o and %x to use
strtoul instead of strtol to correctly preserve scan<>format
conversion of large integers. [Patch #102663, Bug #124600]
* generic/tclExecute.c (TclExecuteByteCode): Commited patch fixing
handling of {!<boolean>} in expressions. [Patch #102702]
2000-12-08 jeff hobbs <jhobbs@interwoven.com>
* library/init.tcl: Added support for PATHEXT variable in
auto_execok, recognizing the proper set of executable extensions
on Windows. [Patch #102719]
2000-12-08 Andreas Kupries <a.kupries@westend.com>
* generic/tclEncoding.c (LoadTableEncoding): Changed dangerous
code to something less critical. This fixes bug 119417, part A
without affecting the speed when loading encodings.
2000-11-24 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* generic/tclExecute.c (TclExecuteByteCode): Logical negation "!"
can now handle string booleans, provided those values are placed
in variables.
* tests/expr.test (expr-13.17): Check that [expr {!$var}] can
negate the string-versions of booleans "yes", "false", etc.
* library/tcltest/tcltest.tcl (getMatchingFiles,
getMatchingDirectories):
* tools/man2html.tcl (doDir):
* tools/man2help.tcl (doDir):
* library/package.tcl (tclPkgUnknown,tclMacPkgSearch):
* library/safe.tcl (AddSubDirs): [glob] uses -directory instead of
unsafe [file join] to fix Bug #123313
* generic/tclIndexObj.c:
* generic/tclTestObj.c (TestindexobjCmd): Changed internal
representation of index objects to fix Bug #119082; fix
shouldn't be visible to outside world...
* generic/tclTest.c (TestGetIndexFromObjStructObjCmd):
* tests/indexObj.test: (indexObj-6.*) Added to test for presence
of Bug #119082.
2000-11-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* generic/tclCmdIL.c (Tcl_LsortObjCmd): Fixed memory leak from Bug
#119398
* library/init.tcl (unknown): Added specific level parameters to
all uplevel invokations to boost performance; didn't dare touch
the "namespace inscope" stuff though, since it looks sensitive
to me! Should fix Bug #123217, though testing is tricky...
2000-11-16 Andreas Kupries <a.kupries@westend.com>
* win/tclWinPort.h (line 69): Changed reference to winsock2.h into
winsock.h. This was a leftover from a foray into using winsock
version 2 (History lesson from Scott Redman and Jeff
Hobbs). This code was no problem when compiling Tcl itself, but
could trip extensions. Fixes bug 122568.
2000-11-02 David Gravereaux <davygrvy@ajubasolutions.com>
* generic/tclEvent.c: tclLibraryPath Tcl_Obj didn't have a way
to share its data among threads. This caused Tcl_Init() to
always fail in threads. Added a way to pass the data around
with a global char*. [BUG: 5301]
2000-11-02 Jeff Hobbs <hobbs@ajubasolutions.com>
* unix/configure:
* unix/dltest/configure:
* win/configure:
* tools/configure: checked in configure scripts so people doing
CVS checkouts aren't required to have autoconf. Changes to
configure.in in the future will require the corresponding
configure script to also be re-autoconf'ed and checked in.
* win/makefile.vc:
* win/tcl.m4: makefile fixes for Win64 support
* generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): minor cast
changes.
2000-11-01 Jeff Hobbs <hobbs@ajubasolutions.com>
* unix/tcl.m4: removed use of -lbsd and -ldl for AIX-5.
* tests/subst.test: added tests for non-zero return code handling
by subst.
* generic/tclParse.c (Tcl_EvalEx): corrected handling of non-zero,
non-error return code cases for subst. [BUG: 119829]
* generic/tclVar.c (TclVarTraceExists): Corrected excessive mem
use when info exists was called on a non-existent array element.
[BUG: 119213, 119336]
2000-10-30 David Gravereaux <davygrvy@ajubasolutions.com>
* win/configure.in:
* win/Makefile.in:
* win/makefile.vc:
* win/tcl.rc:
* win/tclsh.rc: Added logic to derive filenames better in the resource
scripts based on compile options.
2000-10-30 Jeff Hobbs <hobbs@ajubasolutions.com>
* unix/tclUnixInit.c: added default encoding map from
"ja_JP.eucJP" to "euc-jp". (takahashi)
* tests/clock.test: corrected clock-2.* test numbering
* unix/configure.in (SC_TCL_LINK_LIBS): removed code that was
commented out (it had been moved to tcl.m4's SC_TCL_LINK_LIBS
already).
* unix/tcl.m4: consolidated gettimeofday check for AIX.
2000-10-27 Jeff Hobbs <hobbs@ajubasolutions.com>
* unix/configure.in:
* unix/tcl.m4: added support for AIX-5.
* generic/tclIO.c (Tcl_NotifyChannel): removed #ifdef around code
for old channel structures, placed preserve/release around statePtr
* generic/tclIO.c (CloseChannel): the statePtr for a channel was
not being freed when the last channel in a stack was freed,
causing a mem leak.
* unix/tclUnixChan.c: updated channel types to strict
TCL_CHANNEL_VERSION_2 style to avoid compiler warnings. They work
either way, but this avoids compiler warnings (that worries people).
2000-10-26 David Gravereaux <davygrvy@ajubasolutions.com>
* win/tclWinFile.c (TclpMatchFilesTypes): NULL was being set to
"attr" which was a DWORD. Changed NULL to zero because a 'void *'
can't be set to a DWORD to avoid the compiler warning.
2000-10-20 Jeff Hobbs <hobbs@ajubasolutions.com>
* win/tclWinFile.c (TclpMatchFilesTypes): made the stat call only
occur when necessary (for 'glob' command). Significantly speeds
up glob command from 8.3. [BUG: 6216]
2000-10-06 David Gravereaux <davygrvy@ajubasolutions.com>
* win/tclWinChan.c: moved Win2K bug case test with GetStdHandle()
from TclpGetDefaultStdChannel into Tcl_MakeFileChannel to enable
a more general method in detecting invalid OS handles rather than
just a specific known case. [BUG: 5971]
2000-10-06 Jeff Hobbs <hobbs@ajubasolutions.com>
* tests/cmdAH.test: extra tests for 'file channels' that include
multiple interpreter tests and channel sharing
* generic/tclIO.c (Tcl_GetChannelNamesEx): corrected function (and
consequently 'file channels') to return channels that are actually
registered for this specific interp, rather than this thread.
2000-09-29 Jeff Hobbs <hobbs@scriptics.com>
* win/tclWinSerial.c (SerialGetOptionProc): corrected reporting of
space parity on Windows (Eason) [Bug 6057].
* win/Makefile.in: commented use of TESTFLAGS
* unix/Makefile.in: added TESTFLAGS to test target to
conform with Windows makefile and TEA style.
* tests/stack.test: prevented possible crash on systems with low
default stacksize (Tru64, AIX) in infinite recursion test. A
solution to check remaining stack space in the core is best, but
hard to do in a cross-platform manner.
* generic/tclIOGT.c (FLUSH_DELAY): renamed DELAY define to
FLUSH_DELAY to avoid defn conflict using Tru64's cc.
2000-09-28 Jeff Hobbs <hobbs@ajubasolutions.com>
* tools/tcl.wse.in: added tclPlatDecls.h and tkPlatDecls.h to the
Windows .exe install.
* tests/fCmd.test (fCmd-6.20): corrected test to remove
c:/tcl8975@ after creating it.
* tests/fileName.test: cleaned up the testing of glob patterns for
c:/globTest (Windows) to directly create/remove directory.
2000-09-27 Jeff Hobbs <hobbs@ajubasolutions.com>
* generic/tclIO.c (StopCopy): fixed a bug introduced by a partial
fix in 8.3.2 that didn't set nonBlocking correctly when resetting
the flags for the write side. [Bug: 6261]
***************************************************************
** END OF ASYNC BACKPORT LOG (8.4aCVS 2001-04-03 -> 8.3.3) **
***************************************************************
2000-08-08 Jeff Hobbs <hobbs@ajubasolutions.com>
8.3.2 RELEASE finalized
* changes: updated for release notes version of ChangeLog
* library/msgcat1.0/pkgIndex.tcl:
* library/msgcat1.0/msgcat.tcl: bumped msgcat version to 1.1.
2000-08-07 Jeff Hobbs <hobbs@ajubasolutions.com>
* doc/ChnlStack.3:
* doc/CrtChannel.3: updated the docs to be aware of the
TCL_CHANNEL_VERSION_2 style of Tcl channels.
* generic/tclIO.c (Tcl_CreateChannel): added assertion to verify
that the new channel versioning will be binary compatible with
older channel drivers.
* BACKPORTED FROM 8.4 (HEAD) BRANCH:
* doc/memory.n: Man page for Tcl "memory" command, which is
created when TCL_MEM_DEBUG is defined at compile time.
* doc/TCL_MEM_DEBUG.3: Man page with overall information about
TCL_MEM_DEBUG usage.
* doc/DumpActiveMemory.3: Man page for Tcl_DumpActiveMemory,
Tcl_InitMemory, and Tcl_ValidateAllMemory [Bug: 1816, 1835].
* doc/Init.3: Man page for Tcl_Init [Bug: 1820].
* unix/Makefile.in: add tclsh.ico and tcl.spec to dist target
* unix/mkLinks: Regen'd with new mkLinks.tcl.
* unix/mkLinks.tcl: Fixed indentation, made link setup more
intelligent (only do one existance test per man page, instead of
one per function).
* doc/AddErrInfo.3:
* doc/ChnlStack.3:
* doc/Exit.3:
* doc/GetIndex.3:
* doc/Notifier.3:
* doc/Object.3:
* doc/RegExp.3:
* doc/SetResult.3:
* doc/SplitList.3:
* doc/Thread.3: Added missing entries to NAME section.
* doc/AddErrInfo.3:
* doc/CrtObjCmd.3:
* doc/RecEvalObj.3: Changed Tcl_EvalObj to Tcl_EvalObjEx
* doc/library.n: Added entries for auto_qualify and auto_import
[Bug: 1271].
* doc/library.n: Fixed .SH NAME macro to include each function
documented on the page, so that mkLinks will know about the
functions listed there, and so that the Windows help file index
will get set up correctly [Bug: 1898, 5273].
* doc/expr.n: Added documentation for each of the math library
functions that expr supports [Bug: 1054].
* doc/regsub.n: correct regsub docs [Bug: 5346]
* doc/scan.n: minor doc fixes [Bug: 5396]
* doc/RegExp.3: Replaced instances of "Tcl_GetRegExpInfo" with
"Tcl_RegExpGetInfo", the correct name of the function [Bug: 5901].
* doc/package.n: Corrected information about [package forget]
arguments [Bug: 5418].
* generic/tclCkalloc.c: Fixed some function headers.
* tests/clock.test: Added test for "2 days 2 hours ago" style
specifications.
* generic/tclDate.c: Regenerated from tclGetDate.y.
* generic/tclGetDate.y: Tweaked grammar to properly handle the
"ago" keyword when it follows multiple relative unit specifiers,
as in "2 days 2 hours ago". [Bug: 5497].
* generic/tclClock.c (FormatClock): correct code to handle locale
specific return values from strftime, if any. [Bug: 3345]
* unix/tclUnixInit.c (TclpSetInitialEncodings): attempt to
correct setlocale calls for XIM support and locale issues.
[BUG: 5422 3345 4236 2522 2521]
* library/init.tcl (auto_import): added check to see if a valid
pattern was coming in, to avoid simple error cases [Bug: 3326]
* library/history.tcl: Corrected an off-by-one error in HistIndex,
which was causing [history redo] to start its search at the wrong
event index. [Bug: 1269].
* generic/tclPosixStr.c (Tcl_SignalMsg): clarified #defines for
Linux on Sparc to compile correctly. [Bug: 5364]
* generic/tclEnv.c: cast cleanup [Bug: 5624]
* win/tclWinFCmd.c: cast cleanup [Bug: 5627]
* generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Corrected
caching of the index ptr to account for offsets != sizeof(char *).
[Bug: 5153]
* tests/opt.test:
* library/opt0.4/optparse.tcl: Applied patch from [Bug: 5922], which
corrected an incorrect use of [string match].
* tests/stringObj.test: Tweaked tests to avoid hardcoded
high-ASCII characters (which will fail in multibyte locales);
instead used \uXXXX syntax. [Bug: 3842].
2000-08-05 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclIOGT.c (TclChannelTransform): fixed segfault that
would occur when transforming a channel with a proc that did not
yet exist. (Kupries)
* generic/tclTest.c (TestChannelCmd): added some lint init'ing of
statePtr and chan vars.
2000-07-28 Mo DeJong <mdejong@redhat.com>
* win/Makefile.in:
* win/configure.in:
* win/tcl.m4:
* win/tclConfig.sh.in: Back port of gcc for windows
build system from 8.4.
2000-07-26 Jeff Hobbs <hobbs@scriptics.com>
* merged core-8-3-1-io-rewrite back into core-8-3-1-branch.
The core-8-3-1-io-rewrite branch should now be considered defunct.
* generic/tclStubInit.c:
* generic/tclDecls.h:
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclIO.c: moved the Tcl_Channel* macros from tcl.h to
tclIO.c and made them proper stubbed functions. These are:
Tcl_ChannelName, Tcl_ChannelVersion, Tcl_ChannelBlockModeProc,
Tcl_ChannelCloseProc, Tcl_ChannelClose2Proc, Tcl_ChannelInputProc,
Tcl_ChannelOutputProc, Tcl_ChannelSeekProc, Tcl_ChannelSetOptionProc,
Tcl_ChannelGetOptionProc, Tcl_ChannelWatchProc,
Tcl_ChannelGetHandleProc, Tcl_ChannelFlushProc,
and Tcl_ChannelHandlerProc. These should be used to access the
Tcl_ChannelType structure instead of direct pointer dereferencing.
* unix/Makefile.in: undid 07-25 Makefile.in changes because we
don't really want to force all private makefiles on everyone.
This needs to be addressed again in the future. Best possible
solution is to create a tcl/ subdir in the installing include dir
(as is done already with the lib dir).
* tests/iogt.test: added RCS string, marked tests 2.* to be
unixOnly due to underlying system differences.
* tests/all.tcl: corrected additional sets by Kupries for testing.
2000-07-25 Brent Welch <welch@ajubasolutions.com>
* unix/Makefile.in: Need to install all the Tcl headers because
Itcl depends on internal headers.
2000-07-25 Andreas Kupries <a.kupries@westend.com>
* tests/iogt.test: (line 866f) New tests iogt-6.[01], highlighting
buffering trouble when stacking and unstacking transformations.
iogt-6.0 is solved, see the changes below. iogt-6.1 remains, for
now, due to the perceived complexity of solutions.
* generic/tclIO.h: (line 139f) struct Channel, added a buffer
queue, to hold data pushed back when stacking a transformation.
* generic/tclIO.c:
(line 91f, line 7434f) New internal function 'CopyBuffer'.
Derived from 'CopyAndTranslateBuffer', with translation
removed.
(line 1025f, line 1212f): Initialization of new queue.
(line 1164f, Tcl_StackChannel): Pushback of input queue.
(line 1293f, Tcl_UnstackChannel): Discard input and pushback.
(line 3748f, Tcl_ReadRaw): Modified to use data in the push back
area before going to the driver. Uses 'CopyBuffer', s.a.
(line 4702f, GetInput): Modified to use data in the push back
area before going to the driver.
(line 4867f, Tcl_Seek): Modified to take pushback of the topmost
channel in a stack into account.
(line 5620f, Tcl_InputBuffered): See above. Added
'Tcl_ChannelBuffered'. Analogue to 'Tcl_InputBuffered' but for
the buffer area in the channel.
* generic/tcl.decls: New public API 'Tcl_ChannelBuffered'. S.a.
2000-07-19 Jeff Hobbs <hobbs@scriptics.com>
* tests/socket.test: removed doTestsWithRemoteServer constraint
from socket-12.*. It requires 'exec', not a remote server.
Cleaned up some coding errors.
2000-07-18 Brent Welch <welch@ajubasolutions.com>
* win/Makefile.in: Added rules for static tcldde and tclreg libraries.
2000-07-17 Jeff Hobbs <hobbs@scriptics.com>
* README:
* win/README:
* win/README.binary:
* win/configure.in:
* unix/configure.in:
* unix/tcl.spec:
* tools/tcl.wse.in:
* generic/tcl.h (TCL_RELEASE_SERIAL): updated to patchlevel 8.3.2
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc: added tclIOGT.c to objects list to compile.
* generic/tclStubInit.c:
* generic/tclIntDecls.h:
* generic/tclInt.decls: commented out internal decls for
TclTestChannelCmd and TclTestChannelEventCmd as they were moved to
tclTest.c. Added new decls for TclChannelEventScriptInvoker and
TclChannelTransform.
* generic/tclIO.h: new file that contains the main internal
structures of Tcl_Channel code to allow for multiple files to
access them.
* generic/tclTest.c:
* generic/tclIO.c: broke into 3 files - tclIO.c core code, tclIO.h
header code, and tclIOGT.c - the giot test code from Kupries. The
channel test code also moved to tclTest.c.
* generic/tclIO.c (CloseChannel): stopped masking out of the
TCL_READABLE|TCL_WRITABLE bits from the state flags in
CloseChannel, instead adding extra intelligence to
CheckChannelErrors with a new CHANNEL_RAW_MODE bit for special
behavior when called from Raw channel APIs.
2000-07-13 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclIO.c (StackSetBlockMode): moved set of chanPtr
outside of blockModeProc check to avoid infinite loop when
blockModeProc was NULL (Kupries). updated TransformSeekProc to
not call Tcl_Seek directly (Kupries).
* win/tclWinChan.c: updated fileChannelType to v2 channel struct
* win/tclWinConsole.c: updated consoleChannelType to v2 channel struct
* win/tclWinPipe.c: updated pipeChannelType to v2 channel struct
* win/tclWinSerial.c: updated serialChannelType to v2 channel struct
* win/tclWinSock.c: updated tcpChannelType to v2 channel struct
2000-07-11 Brent Welch <welch@ajubasolutions.com>
* win/tclConfig.sh.in: Cleaned up unix-specific autoconf variables.
2000-07-11 Jeff Hobbs <hobbs@scriptics.com>
* tests/iogt.test: made tests [345].0 not run by default as they
were failing in the new design, but I'm not convinced that the
returned result isn't correct.
* generic/tclDecls.h:
* generic/tclStubInit.c:
* generic/tcl.decls: added Tcl_GetTopChannel C API that returns
the current top channel of a channel stack. Tcl_GetChannel was
changed earlier to return the bottommost channel of a stack
because that is the one that is guaranteed to stay around the
longest, and this was needed to compensate for certain
operations that want to look at the state of the main channel.
Most channel APIs already compensate for grabbing the top, so it
shouldn't be needed often.
* generic/tclIO.c (Tcl_StackChannel, Tcl_UnstackChannel): Added
flushing of buffers (Kupries), removed use of DownChannel macro,
added Tcl_GetTopChannel public API to get to the top channel of
the channel stack (necessary for TLS). Rewrote Tcl_NotifyChannel
for new channel design (Kupries). Did some code cleanup in the
transform code. tclIO.c must still be broken into bits (separate
out test code and giot code, create tclIO.h).
2000-07-10 Andreas Kupries <a.kupries@westend.com>
* tests/iogt.test: Reverted some earlier changes as a fix by Jeff
revived the original and correct behaviour. IOW, the tests showed
a genuine error and I didn't see it :(.
* generic/tclIO.c (Tcl_Read|Write_Raw): Changed to directly use
the drivers and not DoRead|DoWrite. The latter use the buffering
system, encoding and eol-translation and this wreaks havoc with
the data going through the transformations. Both procedures use
CheckForchannelErrors and let it believe that there is no
background copy in progress or else stacked channels could not
be used for that.
* generic/tclIO.c (TclCopyChannel, CopyData): Moved access to the
topmost channel from the first to the second procedure to make
the decision about that at the last possible time (Callbacks can
change the stacking).
test suite: failures of iogt-[345].0
2000-07-06 Jeff Hobbs <hobbs@scriptics.com>
* tests/iogt.test: new tests for stacked channel stuff based off
new 'testchannel transform|unstack' code (Kupries IOGT extension).
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclDecls.h:
* generic/tclStubsInit.c:
* generic/tclIO.c: complete rewrite of Tcl Channel code for
stacked channels. Channels are now designed to work in a more
stacked fashion with a shared ChannelState data structure.
2000-06-02 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclIO.c (CloseChannel): removed the &ing out of
(TCL_READABLE|TCL_WRITABLE) from the flags, as CloseChannel does
this on the next pass through for the top channel, and it appeared
to be causing hangs by not allowing the final flush.
2000-06-01 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclIO.c (CloseChannel): Rewrote CloseChannel code to
unstack a channel during the close process. Fixed a refcount bug
in Tcl_UnstackChannel. [Bug: 5623]
(CloseChannel): further extended CloseChannel in the stacked case
to effect certain operations on the next channel that would have
been done in Tcl_Close. Also added CHANNEL_CLOSED and removed
(TCL_READABLE|TCL_WRITABLE) bits from chanPtr->flags. Changed
final reset of the WatchProc to check the chanDownPtr's (next)
interestMask.
2000-05-29 Sandeep Tamhankar <sandeep@scriptics.com>
* tests/http.test
* doc/http.n
* library/http2.3/http.tcl: Fixed bug 5741, where unsuccessful
geturl calls sometimes leaked memory and resources (sockets).
Also, switched around some of the logic so that http::wait never
throws an exception. This is because in an asynchronous geturl,
the command callback will probably end up doing all the error
handling anyway, and in an asynchronous situation, the user
expects to check the state when the transaction completes, as
opposed to being thrown an exception. For the http package, this
menas the user can check http::status for "error" and http::error
for the error message after doing the http::wait.
2000-04-26 Jeff Hobbs <hobbs@scriptics.com>
8.3.1 RELEASE
* README:
* mac/README:
* tools/tcl.wse.in:
* unix/README:
* unix/tcl.spec:
* win/README:
* win/README.binary: Updating URLs to reference dev.scriptics.com
2000-04-25 Jeff Hobbs <hobbs@scriptics.com>
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc: updated for http change and some cleanup
* library/http2.[13]: moved dir http2.1 to http2.3 to match version
* doc/Utf.3: clarified docs for Tcl_(UniChar|Utf)AtIndex
* unix/tclUnixThrd.c: removed {}s around PTHREAD_MUTEX_INITIALIZER
[Bug: 5254]
* unix/tclLoadDyld.c (TclpLoadFile): removed use of interp->result
2000-04-25 Eric Melski <ericm@scriptics.com>
* unix/mkLinks:
* doc/AddErrInfo.3: Added information about Tcl_LogCommandInfo
[Bug: 1818].
2000-04-24 Eric Melski <ericm@scriptics.com>
* unix/mkLinks:
* doc/OpenFileChnl.3: Added man entry for Tcl_Ungets [Bug: 1834].
* unix/mkLinks:
* doc/SourceRCFile.3: Man page for Tcl_SourceRCFile [Bug: 1833].
* unix/mkLinks:
* doc/ParseCmd.3: Added documentation for Tcl_ParseVar [Bug: 1828].
2000-04-24 Jeff Hobbs <hobbs@scriptics.com>
* unix/tclUnixNotfy.c (Tcl_FinalizeNotifier, NotifierThreadProc):
added write of 'q' into triggerPipe for notifier in threaded case,
so that Tcl doesn't hang when children are still running [Bug: 4139]
* unix/tclUnixThrd.c (Tcl_MutexLock): minor comment fixes.
2000-04-23 Jim Ingham <jingham@cygnus.com>
These changes make some error handling marginally better for Mac
sockets. It is still somewhat flakey, however.
* mac/tclMacSock.c (TcpClose): Add timeouts to the close - these
don't seem to be honored, however.
Use a separate PB for the release, since an async connect socket
will still be using the original buffer.
Make sure TCPRelease returns noErr before freeing the recvBuff.
If the call returns an error, then the buffer is not right.
* mac/tclMacSock.c (CreateSocket): Add timeouts to the async
create. These don't seem to trigger, however. Sigh...
* mac/tclMacSock.c (WaitForSocketEvent): If an TCP_ASYNC_CONNECT
socket errors out, then return EWOULDBLOCK & error out.
* mac/tclMacSock.c (NotifyRoutine): Added a NotifyRoutine for
experimenting with MacTCP.
2000-04-22 Jim Ingham <jingham@cygnus.com>
* library/package.tcl (tclPkgUnknown): Fixed a typo in the Mac package
search part of tclPkgUnknown.
2000-04-21 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: Fixed a newly introduced bug where if
there's a -command callback and something goes wrong, geturl threw
an exception, called the callback, and unset the token. I changed
it so that it will not call the callback when throwing an
exception (so the caller only finds out about a given error from
one place). Also, fixed http::ncode so that it actually gives you
back the http return code (i.e. 200, 404, etc.) instead of the
first digit of the version of HTTP being used (i.e. 1).
2000-04-21 Brent Welch <welch@scriptics.com>
* library/http2.1/http.tcl: More thrashing with the "server closes
without reading post data" scenario. Reverted to the previous
filevent configuratiuon, which seems to work better with small
amounts of post data.
2000-04-20 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclAlloc.c: wrapped caddr_t define to not be done on Unix
* unix/tclUnixPort.h: added Tclp*Alloc defines to allow the use of
USE_TCLALLOC on Unix. [Bug: 4731]
2000-04-19 Jeff Hobbs <hobbs@scriptics.com>
* library/dde1.1/pkgIndex.tcl:
* library/reg1.0/pkgIndex.tcl:
* win/tclWinChan.c:
* win/tclWinThrd.c: converted CRLF to LF the */tcl.hpj.in files
were not converted, as it confuses hcw locally. [Bug: 5096]
* win/Makefile.in: expanded cleanup target for help files
* doc/Thread.3: minor macro cleanup
* generic/tclFileName.c (SplitUnixPath): added support for QNX
node ids.
2000-04-18 Jeff Hobbs <hobbs@scriptics.com>
* README:
* generic/tcl.h:
* tools/tcl.wse.in:
* unix/configure.in:
* unix/tcl.spec:
* win/configure.in:
* win/README.binary: bumped version to 8.3.1
* win/tcl.hpj.in: updated copyright date
* generic/tclEnv.c: environment support for Mac OS/X
* unix/tclUnixPort.h: environment support for Mac OS/X
* unix/tclLoadDyld.c: new file for Mac OS/X dl functions
* unix/Makefile.in: added install-strip target; bindir, libdir,
mandir, includedir vars; tclLoadDyld.c target [Bug: 2527]
* unix/tclUnixChan.c (CreateSocket): force a socket back into
blocking mode (default state) after a -async connect succeeds.
[Bug: 4388]
* generic/tclEvent.c (TclInitSubsystems): Moved tclLibraryPath to
thread-local storage to prevent thread-related race condition.
[Bug: 5033]
* unix/tclAppInit.c (main): removed #ifdef TCL_TEST that sets the
library path as it was unnecessary and conflicts with move of
tclLibraryPath to thread-local storage.
2000-04-18 Scott Redman <redman@scriptics.com>
* win/Makefile.in:
* win/tcl.rc:
* win/tclsh.rc:
* win/tclsh.ico: Modified copyright dates in Windows resource
files. Added an icon for tclsh.exe.
2000-04-17 Brent Welch <welch@scriptics.com>
* generic/tcl.h, generic/tclThreadTest.c, unix/tclUnixThrd.c,
win/tclWinThread.c, mac/tclMacThread.c:
Added Tcl_CreateThreadType and TCL_RETURN_THREAD_TYPE
macros for declaring the NewThread callback proc.
2000-04-14 Jeff Hobbs <hobbs@scriptics.com>
* unix/tclUnixChan.c (TtyParseMode): Only allow setting mark/space
parity on platforms that support it [Bug: 5089]
* generic/tclBasic.c (Tcl_GetVersion): adjusted use of major/minor
to not conflict with global decl on some systems [Bug: 2882]
* doc/AppInit.3:
* doc/Async.3:
* doc/BackgdErr.3:
* doc/CrtChannel.3:
* doc/CrtInterp.3:
* doc/CrtMathFnc.3:
* doc/DString.3:
* doc/Eval.3:
* doc/ExprLong.3:
* doc/GetInt.3:
* doc/GetOpnFl.3:
* doc/Interp.3:
* doc/LinkVar.3:
* doc/OpenFileChnl.3:
* doc/OpenTcp.3:
* doc/PkgRequire.3:
* doc/RecordEval.3:
* doc/SetResult.3:
* doc/SplitList.3:
* doc/StaticPkg.3:
* doc/TraceVar.3:
* doc/Translate.3:
* doc/UpVar.3:
* doc/load.n: removed or updated references to interp->result use.
2000-04-13 Jeff Hobbs <hobbs@scriptics.com>
* doc/regexp.n: doc clarification [Bug: 5037]
* doc/update.n: typo fix [Bug: 4996]
* unix/tcl.m4 (SC_ENABLE_THREADS): enhanced the detection of
pthread_mutex_init [Bug: 4359] and (SC_CONFIG_CFLAGS) added
--enable-64bit-vis switch for Sparc VIS compilation [Bug: 4995]
2000-04-12 Jeff Hobbs <hobbs@scriptics.com>
* doc/dde.n: corrected dde poke docs. [Bug: 4991]
2000-04-11 Eric Melski <ericm@scriptics.com>
* win/tclWinPipe.c: Added "CONST" keyword to declaration of char
*native in TclpCreateTempFile, to supress compiler warnings.
2000-04-10 Brent Welch <welch@scriptics.com>
* generic/tcl.h: Fixed Tcl_CreateThread declaration.
* library/tcltest1.0/tcltest.tcl: Fixed the "mainThread"
initialization to work with either testthread or the thread extension
* unix/tclUnixThrd.c: Fixed compiler warning when compiling
with -DTCL_THREADS
2000-04-10 Eric Melski <ericm@scriptics.com>
* win/tclWinPipe.c (TclpCreateTempFile): Added conversion of
contents string from UTF to native encoding [Bug: 4030].
* tests/regexp.test: Added tests for infinite looping in [regexp
-all].
* generic/tclCmdMZ.c: Fixed infinite loop bug with [regexp -all]
[Bug: 4981].
* tests/*.test: Changed all occurances of "namespace import
::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
2000-04-09 Brent Welch <welch@scriptics.com>
* lib/httpd2.1/http.tcl: Worked on the "server closes before
reading post data" case, which unfortunately causes different
error cases on Solaris, which can read the reply, and Linux
and Windows, which cannot read anything. This is all in the
loop-back case - client and server on the same host. Also
unified the error handling so the "ioerror" status goes away
and errors are reflected in a more uniform way. Updated the
man page to document the behavior.
2000-04-09 Jeff Hobbs <hobbs@scriptics.com>
* tests/reg.test (matchexpected): corrected tests to use tcltest
constraint types to skip certain tests.
* generic/tclBasic.c (Tcl_SetCommandInfo): comment fix
* unix/tclUnixThrd.c (Tcl_CreateThread): moved TCL_THREADS ifdef
inside of func as it is declared for non-threads builds as well.
In the non-threads case, it always returns TCL_ERROR (couldn't
create thread).
2000-04-08 Andreas Kupries <a.kupries@westend.com>
* Overall change: Definition of a public API for the creation of
new threads.
* generic/tclInt.h (line 1802f): Removed the definition of
'TclpThreadCreate'. (line 793f) Removed the definition of
'Tcl_ThreadCreateProc'.
* generic/tcl.h (line 388f): Readded the definition of
'Tcl_ThreadCreateProc'. Added Win32 stuff send in by David
Graveraux <davygrvy@bigfoot.com> to that too (__stdcall,
...). Added macros for the default stacksize and allowed flags.
* generic/tcl.decls (line 1356f): Added definition of
'Tcl_CreateThread', slot 393 of the stub table. Two new
arguments in the public API, for stacksize and flags.
* win/tclWinThrd.c:
* mac/tclMacThrd.c: Renamed TclpThreadCreate to Tcl_CreateThread,
added handling of the stacksize. Flags are currently ignored.
* unix/tclUnixThrd.c: See above, but handles joinable
flag. Ignores the specified stacksize if the macro
HAVE_PTHREAD_ATTR_SETSTACKSIZE is not defined.
* generic/tclThreadTest.c (line 363): See below.
* unix/tclUnixNotfy.c (line 210): Adapted to the changes
above. Uses default stacksize and no flags now.
* unic/tcl.m4 (line 382f): Added a check for
'pthread_attr_setstacksize' to detect platforms not implementing
this feature of pthreads. If it is implemented, configure will
define the macro HAVE_PTHREAD_ATTR_SETSTACKSIZE (See
unix/tclUnixThrd.c too).
* doc/Thread.3: Added Tcl_CreateThread and its arguments to the
list of described functions. Removed stuff about not providing a
public C-API for thread-creation.
2000-04-07 Jeff Hobbs <hobbs@scriptics.com>
* doc/binary.n: clarified docs on sign extension in binary scan
[Bug: 3466]
* library/tcltest1.0/tcltest.tcl (initConstraints): removed win32s
references (no longer supported)
* tests/fCmd.test: marked test 8.1 knownBug because it is
dangerous on poorly configured systems [Bug: 3881]
and added 8.2 to keep essence of 8.1 tested.
2000-04-05 Andreas Kupries <a.kupries@westend.com>
* generic/tclIO.c (Tcl_UnstackChannel, line 1831): Forcing
interest mask to the correct value after an unstack and
re-initialization of the notifier via the watchProc. Without this
the first fileevent after an unstack will come through and be
processed, but no more. [Bug: ??].
2000-03-04 Brent Welch <welch@scriptics.com>
* {win,unix}/Makefile.in: added dependency of tclStubInit.c on
tcl.decls and tclInt.decls
* generic/tclThread.c: Tweak so this compiles w/out TCL_THREADS
* generic/{tcl.decls,tclStubInit.c}: Just touched the tcl.decls and
regenerated the tclStubInit.c file
2000-03-29 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: For the -querychannel option,
fconfigure the socket to be binary so that we don't translate
anything while reading the data. This is because we determine the
content length of the data on the channel by using seek (to the end
of the file) and tell on the file handle, and we need the
content-length to match the amount of data actually sent, and
translation can affect the number of bytes posted.
2000-04-03 Andreas Kupries <a.kupries@westend.com>
* Overall change: Definition of public API's for the finalization
of conditions and mutexes. [Bug: 4199].
* generic/tclInt.h: Removed definitions of TclFinalizeMutex and
TclFinalizeCondition.
* generic/tcl.decls: Added declarations of Tcl_MutexFinalize and
Tcl_ConditionFinalize.
* generic/tclThread.c: Renamed TclFinalizeMutex to
Tcl_MutexFinalize. Renamed TclFinalizeCondition to
Tcl_ConditionFinalize.
* generic/tclNotify.c: Changed usage of TclFinalizeMutex to
Tcl_MutexFinalize.
* unix/tclUnixNotfy.c:
* generic/tclThreadTest.c: Changed usages of TclFinalizeCondition to
Tcl_ConditionFinalize.
* generic/tcl.h: Added empty macros for Tcl_MutexFinalize and
Tcl_ConditionFinalize, to be used when the core is compiled
without threads.
* doc/Thread.3: Added description the new API's.
2000-04-03 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclCmdIL.c (InfoVarsCmd): checked for non-NULL procPtr
to prevent itcl info override crash [Bug: 4064]
* tests/foreach.test:
* tests/namespace.test:
* tests/var.test: Added lsorts to avoid random sorted return
problems. [Bug: 2682]
* tests/fileName.test: fixed 14.1 test fragility [Bug: 1482]
* tools/man2help2.tcl: fixed winhelp cross-linking error [Bug: 4156]
improved translation to winhelp [Bug: 3679]
* unix/Makefile.in (MAN_INSTALL_DIR): patch to accept --mandir
correctly [Bug: 4085]
* unix/dltest/pkg[a-e].c: Cleaned up test packages [Bug: 2293]
2000-04-03 Eric Melski <ericm@scriptics.com>
* unix/tclUnixFCmd.c (SetGroupAttribute):
* unix/tclUnixFCmd.c (SetOwnerAttribute): Added (uid_t) and (gid_t)
casts to avoid compiler warnings.
2000-03-31 Eric Melski <ericm@scriptics.com>
* generic/tclGet.c (Tcl_GetDouble): Added additional conditions to
error test (previously only errno was checked, but the return
value of strtod() should be checked as well). [Bug: 4118].
* tests/exec.test: Added test for proper conversion of UTF data
when used with "<< $dataWithUTF" on exec's.
* unix/tclUnixPipe.c (TclpCreateTempFile): Added
Tcl_UtfToExternalDString call, so that if there is UTF content in
the string it will be properly converted to the system encoding
before being written [Bug: 4030].
(TclpCreateTempFile): Added a check on the return value of tmpnam;
some systems (Linux, for example) will start to return NULL after
tmpnam has been called TMP_MAX times; not checking for this can
have bad results (overwriting temp files, core dumps, etc.)
2000-03-30 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclBasic.c (Tcl_DeleteCommandFromToken): Added comments
noting the need to pair ckalloc with ckfree. [Bug: 4262]
* generic/tclInt.decls:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c:
* win/tclWin32Dll.c: removed TclWinSynchSpawn (vestige of Win32s
support).
* win/tclWinReg.c: made use of TclWinGetPlatformId instead of
getting info again
* win/tclWinPort.h:
* win/Makefile.in:
* win/configure.in:
* win/tcl.m4: Added support for gcc/mingw on Windows [Bug: 4234]
2000-03-29 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclCompile.c (TclCleanupByteCode): made ByteCode cleanup
more aware of TCL_BYTECODE_PRECOMPILED flagged structs (gen'd by
tbcload), to correctly clean them up.
* generic/tclClock.c (FormatClock): moved check for empty format
earlier, commented 0 result return value
2000-03-29 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: Removed an unnecessary fileevent
statement from the error processing part of the Write method.
Also, fixed two potential memory leaks in wait and reset, in which
the state array wasn't being unset before throwing an exception.
Prior to this version, Brent checked in a fix to catch a
fileevent statement that was sometimes causing a stack trace when
geturl was called with -timeout. I believe Brent's fix is
necessary because TLS closes bad sockets for secure connections,
and the fileevent was trying to act on a socket that no longer
existed.
2000-03-27 Jeff Hobbs <hobbs@scriptics.com>
* tests/httpd: removed unnecessary 'puts stderr "Post Dispatch"'
* tests/namespace.test:
* generic/tclNamesp.c (Tcl_Export): added a uniq'ing test to the
export list so only one instance of each export pattern would
exist in the list.
* generic/tclExecute.c (TclExecuteByteCode): optimized case for
the empty string in ==/!= comparisons
2000-03-27 Eric Melski <ericm@scriptics.com>
* unix/tclUnixChan.c: Added (off_t) type casts in lseek() call
[Bug: 4409].
* unix/tclLoadAout.c:
* unix/tclUnixPipe.c: Added (off_t) type casts in lseek() calls
[Bug: 4410].
2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: Fixed a bug where string query data
that was bigger than queryblocksize would get duplicate characters
at block boundaries.
2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: Fixed bug 4463, where we were getting
a stack trace if we tried to publish a project to a good host but
a port where there was no server listening. It turned out the
problem was a stray fileevent that needed to be cleared. Also,
fixed a bug where http::code could stack trace if called on a bad
token (one which didn't represent a successful geturl) by adding
an http element to the state array in geturl.
2000-03-21 Eric Melski <ericm@scriptics.com>
* tests/clock.test: Modified some tests that were not robust with
respect to the time zone in which they were run and were thus
failing.
* doc/clock.n: Clarified meaning of -gmt with respect to -base
when used with [clock scan] (-gmt does not affect the
interpretation of -base).
2000-03-19 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: geturl used to throw an exception when
the connection failed; I accidentally returned a token with the
error info, breaking backwards compatibility. I changed it back
to throwing an exception, but unsetting the state array first
(thus still eliminating the original memory leak problem).
2000-03-19 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: Added -querychannel option and altered
some of Brent's modifications to allow asynchronous posts (via
-command). Also modified -queryprogress so that it calls the
query callback as <callback> <token> <total size> <current size>
to be consistent with -progress. Added -queryblocksize option
with default 8192 bytes for post blocksize. Fixed a bunch of
potential memory leaks for the case when geturl receives bad args
or can't open a socket, etc. Overall, the package really rocks
now.
* doc/http.n: Added -queryblocksize, -querychannel, and
-queryprogress. Also, changed the description of -blocksize,
which states that the -progress callback will be called for each
block, to now qualify that with an "if -progress is specified".
* tests/http.test: Added a querychannel test for synchronous and
asynchronous posts, altered the queryprogress test such that the
callback conforms to the -progress format. Also, had to use the
-queryblocksize option to do the post 16K at a time to match
Brent's expected results (and to test that -queryblocksize works).
2000-03-15 Brent Welch <welch@scriptics.com>
* library/http2.1/http.tcl: Added -queryprogress callback to
http::geturl and also changed it so that writing the post data
is event driven if the queryprogress callback or a timeout is given.
This allows a timeout to occur when writing lots of post data.
The queryprogress callback is called after each block of query
data is posted. It has the same signature as the -progress callback.
2000-03-06 Eric Melski <ericm@scriptics.com>
* library/package.tcl: Applied patch from Bug: 2570; rather than
setting geometry of slave interp to 0x0 when Tk was loaded, it now
does "wm withdraw .". Both remove the main window from the
display, but the former caused some internal structures to get
initialized to zero, which caused crashes with some extensions.
2000-03-02 Jeff Hobbs <hobbs@scriptics.com>
* library/package.tcl (tclPkgUnknown): extended to allow
recognizes changes in the auto_path while sourcing in other
pkgIndex.tcl files
* doc/FindExec.3: fixed doc for declaration of Tcl_FindExecutable
[Bug: 4275]
* generic/tclFileName.c (Tcl_TranslateFileName): Applied patch
from Newman to significantly speedup file split/join on Windows
(replaces regexp with custom parser). [Bug: 2867]
* win/README.binary: change mailing lists from @consortium.org
to @scriptics.com [Bug: 4173]
2000-02-28 Eric Melski <ericm@scriptics.com>
* tests/clock.test: Added test for ISO bases < 100000
* generic/tclDate.c: (generated on Solaris)
* generic/tclGetDate.y: Changed condition for deciding if a number
is an ISO 8601 base from number >= 100000 to numberOfDigits >= 6.
Previously it would fail to recognize 000000 as an ISO base.
2000-02-14 Eric Melski <ericm@scriptics.com>
* unix/Makefile.in: Added rpm target to generate Tcl binary RPM.
* unix/tcl.spec: RPM specification file for a Tcl binary RPM for
Linux.
2000-02-10 Jeff Hobbs <hobbs@scriptics.com>
8.3.0 RELEASE
* changes: updated for 8.3.0 release
* doc/load.n: added notes about dll load errors on Windows
* unix/README:
* unix/Makefile.in (dist): removed porting.notes and porting.old
from distribution and CVS. The information was very outdated. Now
refer to http://dev.scriptics.com/services/support/platforms.html
* tests/unixInit.test: fixed japanese LANG encoding test [Bug: 3549]
* unix/configure.in:
* unix/tcl.m4: correct CFLAG_WARNING setting,
fixed gcc config for AIX,
added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998]
* win/tclWinLoad.c (TclpLoadFile): improved error message for load
failures, could perhaps be even more intelligent.
2000-02-09 Jim Ingham <jingham@cygnus.com>
* mac/tclMacSock.c: Don't panic when you get an error closing an async
socket. This doesn't seem to hurt anything, and we return the error so
the caller can do the right thing.
New Files:
* mac/MW_TclHeader.h:
* mac/MW_TclTestHeader.h:
* mac/MW_TclTestHeader.pch:
* mac/MW_TclAppleScriptHeader.h: More convenient to use .h prefix files
in the preference panels...
The above are curtesy of Daniel Steffen (steffen@math.mq.edu.au)
2000-02-08 Eric Melski <ericm@scriptics.com>
* tests/clock.test: Added tests for "next monthname" constructs.
* generic/tclDate.c:
* generic/tclGetDate.y (Message): Added a grammar rule for "next
monthname" so that we can handle "next january" and similar
constructs (bug #4146).
2000-02-08 Jeff Hobbs <hobbs@scriptics.com>
* README:
* tools/tcl.wse.in:
* unix/configure.in:
* win/configure.in:
* win/README:
* win/README.binary:
* generic/tcl.h (TCL_RELEASE_SERIAL): Moved to 8.3.0 patchlevel
* doc/library.n:
* library/auto.tcl: fixed crufty puts code and docs [Bug: 4122]
* library/tcltest1.0/tcltest.tcl: correctly protected searchDirectory
list to allow dirnames with spaces
* unix/tcl.m4: changed all -fpic to -fPIC
* generic/tclDecls.h:
* generic/tcl.decls: change Tcl_GetOpenFile to use decl of 'int
forWriting' instead of 'int write' to avoid shadowing [Bug: 4121]
* tests/httpold.test: changed test script to source in the httpd
server procs from httpd instead of having its own set.
* tests/httpd: improved query support in test httpd to handle fix
in http.tcl. [Bug: 4089 change 2000-02-01]
* unix/README: fixed notes about --enable-shared and add note
about --disable-shared.
2000-02-07 Eric Melski <ericm@scriptics.com>
* tests/package.test:
* library/tclIndex:
* library/package.tcl: Renamed ::package namespace to ::pkg.
2000-02-03 Eric Melski <ericm@scriptics.com>
* doc/Package.n:
* doc/packagens.n: Renamed Package.n -> packagens.n because Windows
can't deal with case-sensitive names.
2000-02-02 Jeff Hobbs <hobbs@scriptics.com>
* tests/regexp.test: added tests for -all and -inline switches
* doc/regexp.n: added docs for -all and -inline switches
* generic/tclCmdMZ.c (Tcl_RegexpObjCmd): added extra comments for
new -all and -inline switches to regexp command
2000-02-01 Eric Melski <ericm@scriptics.com>
* library/init.tcl: Applied patch from rfe 1734 regarding
auto_load errors not setting error message and errorInfo properly.
2000-02-01 Jeff Hobbs <hobbs@scriptics.com>
* win/Makefile.in (install-*): reduced verbosity of install
* generic/tclFileName.c (Tcl_JoinPath): improved support for special
QNX node id prefixes in pathnames [Bug: 4053]
* library/http1.0/http.tcl:
* library/http2.1/http.tcl: The query data POSTed was newline
terminated when it shouldn't be altered [Bug: 4089]
2000-01-31 Eric Melski <ericm@scriptics.com>
* tests/package.test:
* library/tclIndex:
* library/package.tcl: Added ::package namespace and
::package::create function.
* library/init.tcl: Fixed problem with auto_load and determining
if commands were loaded.
* library/auto.tcl: "Fixed" issues with $ in files to be auto indexed.
* doc/Package.n: New man page for package::create function.
* doc/pkgMkIndex.n: Added additional information.
* doc/library.n: Added additional qualification regarding auto_mkindex.
2000-01-28 Eric Melski <ericm@scriptics.com>
* tests/pkg/magicchar2.tcl:
* tests/autoMkindex.test: Test for auto loader fix (bug #2480).
* library/init.tcl: auto_load was using [info commands $name] to
determine if a given command was available; if the command name
had * or [] it, this would fail because info commands uses
glob-style matching. This is fixed. (Bug #2480).
* tests/pkg/spacename.tcl:
* tests/pkgMkIndex.test: Tests for fix for bug #2360.
* library/package.tcl: Fixed to extract only the first element of
the list returned by auto_qualify (bug #2360).
* tests/pkg/magicchar.tcl:
* tests/autoMkindex.test: Test for fix for bug #2611.
* library/auto.tcl: Fixed the regular expression that performs $
escaping before sourcing a file to index. It was erroneously
adding \ escapes even to $'s that were already escaped,
effectively "un-escaping" those $'s. (bug #2611).
2000-01-27 Eric Melski <ericm@scriptics.com>
* tests/autoMkindex.test:
* library/auto.tcl: Applied patch (with slight modification) from
bug #2701: auto_mkIndex uses platform dependent file paths.
Added test for fix.
2000-01-27 Jennifer Hom <jenn@scriptics.com>
* library/tcltest1.0/tcltest.tcl: Changed NormalizePath to
normalizePath and exported it as a public proc. This proc
creates an absolute path given the name of the variable containing
the path to modify. The path is modified in place.
* library/tcltest1.0/pkgIndex.tcl: Added normalizePath.
* tests/all.tcl: Changed code to use normalizePath.
2000-01-27 Eric Melski <ericm@scriptics.com>
* tests/pkg/samename.tcl: test file for bug #1983
* tests/pkgMkIndex.test:
* doc/pkgMkIndex.n:
* library/package.tcl: Per rfe #4097, optimized creation of direct
load packages to bypass computing the list of commands added by
the new package. Also made direct loading the default, and added
a -lazy option.
Fixed bug #1983, dealing with pkg_mkIndex incorrectly handling
situations with two procs by the same name but in different
namespaces (ie, foo::baz and bar::baz).
2000-01-26 Eric Melski <ericm@scriptics.com>
* generic/tclNamesp.c: Undid fix for #956, which broke backwards
compatibility.
* doc/variable.n:
* doc/trace.n:
* doc/namespace.n:
* doc/info.n: Added further information about differences between
"namespace which" and "info exists".
* doc/SetErrno.3: Added descriptions of ErrnoId() and ErrnoMsg()
functions.
2000-01-25 Jeff Hobbs <hobbs@scriptics.com>
* unix/tcl.m4: modified EXTRA_CFLAGS to add -DHAVE_TZSET for
OSF1-V* and ULTRIX-4.* when not using gcc. Also added higher min
stack size for OSF1-V* when building with threads. [Bug: 4063]
* generic/tclClock.c (FormatClock): inlined resultPtr, as it
conflicted with var creation for HAVE_TZSET #def [Bug: 4063]
* generic/tclCmdIL.c (Tcl_LsortObjCmd): fixed potential leak
when calling lsort -command with bad command [Bug: 4067]
* generic/tclFileName.c (Tcl_JoinPath): added support for special
QNX node id prefixes in pathnames [Bug: 4053]
* doc/ListObj.3: clarified Tcl_ListObjGetElements docs [Bug: 4080]
* doc/glob.n: clarified Mac path separator determination docs.
* win/makefile.vc: added some support for building helpfile on Windows
2000-01-23 Jeff Hobbs <hobbs@scriptics.com>
* library/init.tcl (auto_execok): added 'start' to list of
recognized built-in commands for COMSPEC on NT. [Bug: 2858]
* unix/tclUnixPort.h: moved include of <utime.h> lower since some
systems (UTS) require sys/types.h to be included first [Bug: 4031]
* unix/tclUnixChan.c (CreateSocketAddress): changed comparison
with -1 to 0xFFFFFFFF, to ensure 32 bit comparison even on 64 bit
systems. [Bug: 3878]
* generic/tclFileName.c: improved guessing of path separator
for the Mac. (Darley)
* generic/tclInt.h:
* generic/tcl.decls: moved Tcl_ProcObjCmd to stubs table [Bug: 3827]
and removed 'register' from stub definition of
Tcl_AppendUnicodeToObj [Bug: 4038]
2000-01-21 Eric Melski <ericm@scriptics.com>
* unix/mkLinks:
* doc/GetHostName.3: Man page for Tcl_GetHostName (bug #1817).
* doc/lreplace.n: Corrected man page with respect to treatment of
empty lists, and "prettied up" the page. (bug #1705).
2000-01-20 Eric Melski <ericm@scriptics.com>
* tests/namespace.test: Added test for undefined variables with
namespace which (bug #956).
* generic/tclNamesp.c: Added check for undefined variables in
NamespaceWhichCmd (bug #956).
* tests/var.test: Added tests for corrected variable behavior
(bug #981).
* doc/upvar.n: Expanded explanation of upvar behavior with respect to
variable traces. (bugs 3917 1433 2110).
* generic/tclVar.c: Changed behavior of variable command when name
refers to an element in an array (ie, "variable foo(x)") to always
return an error, regardless of existance of that element in the
array (now behavior is consistant with docs too) (bug #981).
2000-01-20 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclCmdIL.c (InfoBodyCmd): made [info body] return a
string if the body has been bytecompiled.
* generic/tclBasic.c (Tcl_EvalObjEx): added pedantic check for
originating proc body of bytecompiled code, #def'd out as the
change for [info body] should make it unnecessary
* unix/tclUnixNotfy.c (Tcl_InitNotifier): added cast for tsdPtr
* tests/set.test: added test for complex array elem name compiling
* generic/tclCompCmds.c (TclCompileSetCmd): Fixed parsing of array
elements during compiling, and slightly optimised same [Bug: 3889]
* doc/tclvars.n: added definitions for tcl_(non)wordchars
* doc/vwait.n: added notes about requirement for vwait var being
globally scoped [Bug: 3329]
* library/word.tcl: changed tcl_(non)wordchars settings to use
new unicode regexp char class escapes instead of char sequences
2000-01-14 Eric Melski <ericm@scriptics.com>
* tests/var.test: Added a test for the array multiple delete
protection in Tcl_UnsetVar2.
* generic/tclVar.c: Added protection in Tcl_UnsetVar2 against
attempts to multiply delete arrays when unsetting them (bug
#3453). This could happen if there was an unset trace on an array
element and the trace proc made a global or upvar link to the
array, and then the array was unset at the global level. See the
bug reference for more information.
* unix/tclUnixTime.c: New clock format format.
* compat/strftime.c: New clock format format.
* generic/tclGetDate.y: New clock scan format.
2000-01-13 Jeff Hobbs <hobbs@scriptics.com>
* changes: updated changes file to reflect 8.3b2 mods
* README:
* generic/tcl.h:
* tools/tcl.wse.in:
* unix/configure.in:
* unix/tcl.m4:
* win/README.binary:
* win/configure.in: updated to patchlevel 8.3b2
* generic/regexec.c: added var initialization to prevent compiler
warning
2000-01-13 Eric Melski <ericm@scriptics.com>
* tests/cmdIL.test: Added tests for lsort -dictionary with
characters that occur between Z and a in ASCII.
* generic/tclCmdIL.c: Modified DictionaryCompare function (used by
lsort -dictionary) to do upper/lower case equivalency before doing
character comparisons, instead of after. This fixes bug #1357, in
which lsort -dictionary [list ` AA c CC] and lsort -dictionary
[list AA c ` CC] gave different (and both wrong) results.
2000-01-12 Eric Melski <ericm@scriptics.com>
* tests/clock.test: Added tests for "next <day-of-week>" and
"<day-of-week>"
Added tests for "monday 1 week ago", etc, from RFE #3671.
* doc/tests/clock.test: Added numerous tests for clock scan.
* doc/generic/tclGetDate.y: Fixed some shift/reduce conflicts in
clock grammar.
* doc/doc/clock.n: Added documentation for new supported clock
scan formats and additional explanation of daylight savings time
correction algorithm.
2000-01-12 Jeff Hobbs <hobbs@scriptics.com>
* doc/file.n:
* tests/unixFCmd.test:
* unix/tclUnixFCmd.c: added support for symbolic permissions
setting in SetPermissionsAttribute (file attr $file -perm ...)
[Bug: 3970]
* generic/tclClock.c: fixed support for 64bit handling of clock
values [Bug: 1806]
* generic/tclThreadTest.c: upped a buffer size to hold double
* tests/info.test:
* generic/tclCmdIL.c: fixed 'info procs ::namesp::*' behavior (Dejong)
* generic/tclNamesp.c: made imported commands also import their
compile proc [Bug: 2100]
* tests/expr.test:
* unix/Makefile.in:
* unix/configure.in:
* unix/tcl.m4: recognize strtod bug on Tru64 v5.0 [Bug: 3378]
and added tests to prevent unnecessary chmod +x in sources while
installing, as well as more intelligent setsockopt/gethostbyname
checks [Bug: 3366, 3389]
* unix/tclUnixThrd.c: added compile time support (through use of
the TCL_THREAD_STACK_MIN define) for increasing the default stack
size for a thread. [Bug: 3797, 1966]
2000-01-11 Eric Melski <ericm@scriptics.com>
* generic/tclGetDate.y: Added comments for the Convert function.
Added a fix for daylight savings time handling for relative time
spans of days, weeks or fortnights. (bug 3441, 3868).
* generic/tclDate.c: Fixed compiler warning issues.
2000-01-10 Jeff Hobbs <hobbs@scriptics.com>
* compat/waitpid.c: use pid_t type instead of int [Bug: 3999]
* tests/utf.test: fixed test that allowed \8 as octal value
* generic/tclUtf.c: changed Tcl_UtfBackslash to not allow
non-octal digits (8,9) in \ooo substs. [Bug: 3975]
* generic/tcl.h: noted need to change win/tcl.m4 and
tools/tclSplash.bmp for minor version changes
* library/http2.1/http.tcl: trim value for $state(meta) key
* unix/tclUnixFile.c: fixed signature style on functions
* unix/Makefile.in: made sure tcl.m4 would be installed with dist
* unix/tcl.m4: added ELF support for NetBSD [Bug: 3959]
2000-01-10 Eric Melski <ericm@scriptics.com>
* generic/tclGetDate.y: Added rules for ISO 8601 formats (BUG #847):
CCYY-MM-DD
CCYYMMDD
YY-MM-DD
YYMMDD
CCYYMMDDTHHMMSS
CCYYMMDD HHMMSS
CCYYMMDDTHH:MM:SS
Fixed "clock scan <number>" to scan the number as an hour for the
current day, rather than a minute after 00:00 for the current day
(bug #2732).
2000-01-07 Eric Melski <ericm@scriptics.com>
* generic/tclClock.c: Changed switch in Tcl_ClockObjCmd to use
enumerated values instead of constants. (ie, COMMAND_SCAN instead
of 3).
1999-12-22 Jeff Hobbs <hobbs@scriptics.com>
* changes: updated changes file
* tools/tclSplash.bmp: updated to show 8.3
1999-12-21 Jeff Hobbs <hobbs@scriptics.com>
* README:
* generic/tcl.h:
* mac/README:
* unix/configure.in:
* tools/tcl.wse.in:
* win/README.binary:
* win/configure.in: updated to patch level 8.3b1
* unix/Makefile.in: added -srcdir=... for 'make html'
* doc/Hash.3: fixed reference to ckfree [Bug: 3912]
* doc/RegExp.3: fixed calling params for Tcl_RegExecFromObj
* doc/open.n: fixed minor formatting errors
* doc/string.n: fixed minor formatting errors
* doc/lsort.n: added -unique docs
* tests/cmdIL.test:
* generic/tclCmdIL.c: added -unique option to lsort
* generic/tclThreadTest.c: changed thread ids to longs [Bug: 3902]
* mac/tclMacOSA.c: fixed applescript for I18N [Bug: 3644]
* win/mkd.bat:
* win/rmd.bat: removed necessity of tag.txt [Bug: 3874]
* win/tclWinThrd.c: changed CreateThread to _beginthreadex and
ExitThread to _endthreadex
1999-12-12 Jeff Hobbs <hobbs@scriptics.com>
* doc/glob.n:
* tests/fileName.test:
* generic/tclInt.decls:
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
* generic/tclEncoding.c:
* generic/tclFileName.c:
* mac/tclMacFile.c:
* unix/tclUnixFile.c:
* win/tclWinFile.c: enhanced the glob command with the new options
-types -path -directory and -join. Deprecated TclpMatchFiles with
TclpMatchFilesTypes, extended TclGlob and TclDoGlob and added
GlobTypeData structure. [Bug: 2363]
1999-12-10 Jeff Hobbs <hobbs@scriptics.com>
* tests/var.test:
* generic/tclCompile.c: fixed problem where setting to {} array
would intermittently not work. (Fontaine) [Bug: 3339]
* generic/tclCmdMZ.c:
* generic/tclExecute.c: optimized INST_TRY_CVT_TO_NUMERIC to
recognize boolean objects. (Spjuth) [Bug: 2815]
* tests/info.test:
* tests/parseOld.test:
* generic/tclCmdAH.c:
* generic/tclProc.c: changed Tcl_UplevelObjCmd (uplevel) and
Tcl_EvalObjCmd (eval) to use TCL_EVAL_DIRECT in the single arg
case as well, to take advantage of potential pure list input
optimization. This means that it won't get byte compiled though,
which should be acceptable.
* generic/tclBasic.c: made Tcl_EvalObjEx pure list object aware in
the TCL_EVAL_DIRECT case for efficiency.
* generic/tclUtil.c: made Tcl_ConcatObj pure list object aware,
and return a list object in that case [Bug: 2098 2257]
* generic/tclMain.c: changed Tcl_Main to not constantly reuse the
commandPtr object (interactive case) as it could be shared. (Fellows)
* unix/configure.in:
* unix/tcl.m4:
* unix/tclUnixPipe.c: removed checking for compatible vfork
function and use of the vfork function. Modern VM systems rarely
suffer any performance degradation when fork is used, and it
solves multiple problems with vfork. Users that still want vfork
can add -Dfork=vfork to the compile flags. [Bug: 942 2228 1312]
1999-12-09 Jeff Hobbs <hobbs@scriptics.com>
* win/aclocal.m4: made it just include tcl.m4
* doc/exec.n:
* doc/open.n:
* win/tclWin32Dll.c:
* win/tclWinChan.c:
* win/tclWinFCmd.c:
* win/tclWinInit.c:
* win/tclWinPipe.c:
* win/tclWinSock.c: removed all code that supported Win32s. It
was no longer officially supported, and likely didn't work anyway.
* win/makefile.vc: removed 16 bit stuff, cleaned up.
* win/tcl16.rc:
* win/tclWin16.c:
* win/winDumpExts.c: these files have been removed from the
source tree (no longer necessary to build)
1999-12-07 Jeff Hobbs <hobbs@scriptics.com>
* tests/io.test: removed 'knownBug' tests that were for
unsupported0, which is now fcopy (that already has tests)
* mac/tclMacPort.h: added utime.h include
* generic/tclDate.c:
* unix/Makefile.in: fixed make gendate to swap const with CONST
so it uses the Tcl defined CONST type [Bug: 3521]
* generic/tclIO.c: removed panic that could occur in FlushChannel
when a "blocking" channel would receive EAGAIN, instead treating
it the same as non-blocking. [Bug: 3773]
* generic/tclUtil.c: fixed Tcl_ScanCountedElement to not step
beyond the end of the counted string [Bug: 3336]
1999-12-03 Jeff Hobbs <hobbs@scriptics.com>
* doc/load.n: added note about NT's buggy handling of './' with
LoadLibrary
* library/http2.1/http.tcl: fixed error handling in http::Event
[Bug: 3752]
* tests/env.test: removed knownBug limitation from working test
* tests/all.tcl: ensured that ::tcltest::testsDirectory would be
set to an absolute path
* tests/expr-old.test:
* tests/parseExpr.test:
* tests/string.test:
* generic/tclGet.c:
* generic/tclInt.h:
* generic/tclObj.c:
* generic/tclParseExpr.c:
* generic/tclUtil.c:
* generic/tclExecute.c: added TclCheckBadOctal routine to enhance
error message checking for when users use invalid octal numbers
(like 08), as well as replumbed the Expr*Funcs with a new
VerifyExprObjType to simplify type handling. [Bug: 2467]
* tests/expr.test:
* generic/tclCompile.c: fixed 'bad code length' error for
'expr + {[incr]}' case, with new test case [Bug: 3736]
and seg fault on 'expr + {[error]}' (different cause) that
was caused by a correct optimization that didn't correctly
track how it was modifying the source string in the opt.
The optimization was removed, which means that:
expr 1 + {[string length abc]}
will be not be compiled inline as before, but this should be
written:
expr {1 + [string length abc]}
which will be compiled inline for speed. This prevents
expr 1 + {[mindless error]}
from seg faulting, and only affects optimizations for
degenerate cases [Bug: 3737]
1999-12-01 Scott Redman <redman@scriptics.com>
* generic/tcl.decls :
* generic/tclMain.c :
* unix/tclAppInit.c:
* win/tclAppInit.c: Added two new internal functions,
TclSetStartupScriptFileName() and TclGetStartupScriptFileName()
and added hooks into the main() code for supporting TclPro and
other "big" shells more easily without requiring a copy of the
main() code.
* generic/tclEncoding.c:
* generic/tclEvent.c: Moved encoding-related startup code from
tclEvent.c into the more appropriate tclEncoding.c.
1999-11-30 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclIO.c: fix from Kupries for Tcl_UnstackChannel that
correctly handles resetting translation and encoding.
* generic/tclLoad.c: #def'd out the unloading of DLLs at finalize
time for Unix in TclFinalizeLoad. [Bug: 2560 3373] Should be
parametrized to allow for user to specify unload or not.
* win/tclWinTime.c: fixed handling of %Z on NT for time zones
that don't have DST.
1999-11-29 Jeff Hobbs <hobbs@scriptics.com>
* library/dde1.1/pkgIndex.tcl:
* library/reg1.0/pkgIndex.tcl: added supported for debugged
versions of the libraries
* unix/tclUnixPipe.c: fixed PipeBlockModeProc to properly set
isNonBlocking flag on pipe. [Bug: 1356 710]
removed spurious fcntl call from PipeBlockModeProc
* tests/scan.test:
* generic/tclScan.c: fixed scan where %[..] didn't match anything
and added test case [Bug: 3700]
1999-11-24 Jeff Hobbs <hobbs@scriptics.com>
* doc/open.n:
* win/tclWinSerial.c: adopted patch from Schroedter to handle
fconfigure $sock -lasterror on Windows. [RFE: 3368]
* generic/tclCmdIL.c: made SORTMODE_INTEGER work with Longs
[Bug: 3652]
1999-11-23 Scott Stanton <stanton@scriptics.com>
* library/tcltest1.0/tcltest.tcl: Fixed bug where tcltest output
went to stdout instead of the specified output file in some
cases.
1999-11-19 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclProc.c: backed out change from 1999-11-18 as it
could affect return string from upvar as well.
* tools/tcl.wse.in: added tcltest1.0 library to distribution list
* doc/http.n:
* library/http2.1/http.tcl:
* library/http2.1/pkgIndex.tcl: updated http package to 2.2
1999-11-18 Jeff Hobbs <hobbs@scriptics.com>
* unix/tcl.m4: added defined for _THREAD_SAFE in --enable-threads
case; added check for pthread_mutex_init in libc; in AIX case,
with --enable-threads ${CC}_r is used; fixed flags when using gcc
on SCO
* generic/tclProc.c: corrected error reporting for default case
at the global level for uplevel command.
* generic/tclIOSock.c: changed int to size_t type for len
in TclSockMinimumBuffers.
* generic/tclCkalloc.c: fixed Tcl_DbCkfree to return a value
on NULL input. [Bug: 3400]
* generic/tclStringObj.c: fixed support for passing in negative
length to Tcl_SetUnicodeObj, et al handling routines. [Bug: 3380]
* doc/scan.n:
* tests/scan.test:
* generic/tclScan.c: finished support for inline scan by
supporting XPG identifiers.
* doc/http.n:
* library/http2.1/http.tcl: added register and unregister
commands to http:: package (better support for tls/SSL),
as well as -type argument to http::geturl. [RFE: 2617]
* generic/tclBasic.c: removed extra decr of numLevels in
Tcl_EvalObjEx that could cause seg fault. (mjansen@wendt.de)
* generic/tclEvent.c: fixed possible lack of MutexUnlock in
Tcl_DeleteExitHandler [Bug: 3545]
* unix/tcl.m4: Added better pthreads library check and inclusion
of _THREAD_SAFE in --enable-threads case
Added support for gcc config on SCO
* doc/glob.n: added note about ..../ glob behavior on Win9*
* doc/tcltest.n: fixed minor example errors [Bug: 3551]
1999-11-17 Brent Welch <welch@scriptics.com>
* library/http2.1/http.tcl: Correctly fixed the -timeout
problem mentioned in the 10-29 change. Also added error
handling for failed writes on the socket during the protocol.
1999-11-09 Jeff Hobbs <hobbs@scriptics.com>
* doc/open.n: corrected docs for 'a' open mode.
* generic/tclIOUtil.c: changed Tcl_Alloc to ckalloc
* generic/tclInt.h:
* generic/tclObj.c: rolled back changes from 1999-10-29
Purify noted new leaks with that code
* generic/tclParse.c: added code in Tcl_ParseBraces to test for
possible unbalanced open brace in a comment
* library/init.tcl: removed the installed binary directory from
the auto_path variable
* tools/tcl.wse.in: updated to 8.3a1, fixed install of twind.tcl
and koi8-r.enc files
* unix/tcl.m4: added recognition of pthreads library for AIX
1999-10-29 Brent Welch <welch@scriptics.com>
* generic/tclInt.h: Modified the TclNewObj and TclDecrRefCount
in two ways. First, in the case of TCL_THREADS, we do not use
the special Tcl_Obj allocator because that is a source of
lock contention. Second, general code cleanup to eliminate
duplicated code. In particular, TclDecrRefCount now uses
TclFreeObj instead of duplicating that code, so it is now
identical to Tcl_DecrRefCount.
* generic/tclObj.c: Changed Tcl_NewObj so it uses the
TclNewObj macro instead of duplicating the code. Adjusted
TclFreeObj so it understands the TCL_THREADS case described
above.
* library/http2.1/http.tcl: Fixed a bug in the handling of
the state(status) variable when the -timeout flag is specified.
Previously it was possible to leave the status undefined
instead of empty, which caused errors in http::status
1999-10-28 Jeff Hobbs <hobbs@scriptics.com>
* unix/aclocal.m4: made it just include tcl.m4
* library/tcltest1.0/tcltest.tcl: updated makeFile to return
full pathname of file created
* generic/tclStringObj.c: fixed Tcl_AppendStringsToObjVA so it only
iterates once over the va_list (avoiding a memcpy of it,
which is not portable).
* generic/tclEnv.c: fixed possible ABR error in environ array
* tests/scan.test:
* generic/tclScan.c: added support for use of inline scan,
XPG3 currently not included
* tests/incr.test:
* tests/set.test:
* generic/tclCompCmds.c: fixed improper bytecode handling of
'eval {set array($unknownvar) 5}' (also for incr) [Bug: 3184]
* win/tclWinTest.c: added testvolumetype command, as atime is
completely ignored for Windows FAT file systems
* win/tclWinPort.h: added sys/utime.h to includes
* unix/tclUnixPort.h: added utime.h to includes
* doc/file.n:
* tests/cmdAH.test:
* generic/tclCmdAH.c: added time arguments to atime and mtime
file command methods (support 'touch' functionality)
1999-10-20 Jeff Hobbs <hobbs@scriptics.com>
* unix/tclUnixNotfy.c: fixed event/io threading problems by
making triggerPipe non-blocking [Bug: 2792]
* library/tcltest1.0/tcltest.tcl:
* generic/tclThreadTest.c: fixed mem leaks in threads
* generic/tclResult.c: fixed Tcl_AppendResultVA so it only
iterates once over the va_list (avoiding a memcpy of it,
which is not portable).
* generic/regc_color.c: fixed mem leak and assertion, from HS
* generic/tclCompile.c: removed savedChar trick that appeared to
be causing a segv when the literal table was released
* tests/string.test:
* generic/tclCmdMZ.c: fixed [string index] to return ByteArrayObj
when indexing into one (test case string-5.16) [Bug: 2871]
* library/http2.1/http.tcl: protected gets with catch [Bug: 2665]
1999-10-19 Jennifer Hom <jenn@scriptics.com>
* tests/tcltest.test:
* doc/tcltest.n:
* library/tcltest1.0/tcltest.tcl: Removed the extra return at the
end of the tcltest.tcl file, added version information about tcl.
Applied patches sent in by Andreas Kupries to add helper procs for
debug output, add 3 new flags (-testsdir, -load, -loadfile), and
internally refactors common code for dealing with paths into
separate procedures. [Bug: 2838, 2842]
Merged code from core-8-2-1 branch that changes the checks for the
value of tcl_interactive to also incorporate a check for the
existence of the variable.
* tests/autoMkindex.test:
* tests/pkgMkIndex.test: Explicitly cd to
::tcltest::testsDirectory at the beginning of the test run
* tests/basic.test: Use version information defined in tcltest
instead of hardcoded version number
* tests/socket.test: package require tcltest before attempting to
use variable defined in tcltest namespace
* tests/unixInit.test:
* tests/unixNotfy.test: Added explicit exits needed to avoid
problems when the tests area run in wish.
1999-10-12 Jim Ingham <jingham@scriptics.com>
* mac/tclMacLoad.c: Stupid bug - we converted the filename to
external, but used the unconverted version.
* mac/tclMacFCmd.c: Fix a merge error in the bug fix for [Bug: 2869]
1999-10-12 Jeff Hobbs <hobbs@scriptics.com>
* generic/regc_color.c:
* generic/regc_cvec.c:
* generic/regc_lex.c:
* generic/regc_locale.c:
* generic/regcomp.c:
* generic/regcustom.h:
* generic/regerrs.h:
* generic/regex.h:
* generic/regexec.c:
* generic/regguts.h:
* generic/tclRegexp.c:
* generic/tclTest.c:
* tests/reg.test: updated to Henry Spencer's new regexp engine
(mid-Sept 99). Should greatly reduce stack space reqs.
* library/tcltest1.0/pkgIndex.tcl: fixed procs in pkgIndex.tcl file
* generic/tclEnv.c: fixed mem leak with putenv and DStrings
* doc/Encoding.3: corrected docs
* tests/basic.test: updated test cases for 8.3
* tests/encoding.test: fixed test case that change system
encoding to a double-byte one (this causes a bogus mem read
error for purify)
* unix/Makefile.in: purify has to use -best-effort to instrument
* unix/tclAppInit.c: identified potential mem leak when compiling
tcltest (not critical)
* unix/tclUnixPipe.c: fixed mem leak in TclpCreateProcess when
doing alloc between vfork and execvp.
* unix/tclUnixTest.c: fixed mem leak in findexecutable test command
1999-10-05 Jeff Hobbs <hobbs@scriptics.com>
* {win,mac,unix,tools,}/README:
* win/README.binary:
* win/makefile.vc:
* {win,unix}/configure.in:
* generic/tcl.h:
* library/init.tcl: updated to 8.3a1 from 8.2.0.
* library/http2.1/http.tcl: fixed possible use of global c var.
* win/tclWinReg.c: fixed registry command to properly 'get'
HKEY_PERFORMANCE_DATA root key data. Needs more work.
* generic/tclNamesp.c:
* generic/tclVar.c:
* generic/tclCmdIL.c: fixed comment typos
* mac/tclMacFCmd.c: fixed filename stuff to support UTF-8 [Bug: 2869]
* win/tclWinSerial.c: changed SerialSetOptionProc to return
TCL_OK by default. (patch from Rolf Schroedter)
1999-09-21 Jennifer Hom <jenn@scriptics.com>
* library/tcltest1.0/tcltest.tcl: Applied patches sent in by
Andreas Kupries to fix typos in comments and ::tcltest::grep,
fix hook redefinition problems, and change "string compare" to
"string equal." [Bug: 2836, 2837, 2839, 2840]
1999-09-20 Jeff Hobbs <hobbs@scriptics.com>
* tests/env.test:
* unix/Makefile.in: added support for AIX LIBPATH env var [Bug: 2793]
removed second definition of INCLUDE_INSTALL_DIR (the one that
referenced @includedir@) [Bug: 2805]
* unix/dltest/Makefile.in: added -lc to LIBS [Bug: 2794]
1999-09-16 Jeff Hobbs <hobbs@scriptics.com>
* tests/timer.test: changed after delay in timer test 6.29 from
1 to 10. [Bug: 2796]
* tests/pkg.test:
* generic/tclPkg.c: fixed package version check to disallow 1.2..3
[Bug: 2539]
* unix/Makefile.in: fixed gendate target - this never worked
since RCS was intro'd.
* generic/tclGetDate.y: updated to reflect previous changes
to tclDate.c (leap year calc) and added CEST and UCT time zone
recognition. Fixed 4 missing UCHAR() casts. [Bug: 2717, 954,
1245, 1249]
* generic/tclCkalloc.c: changed Tcl_DumpActiveMemory to really
dump to stderr and close it [Bug: 725] and changed Tcl_Ckrealloc
and Tcl_Ckfree to not bomb when NULL was passed in [Bug: 1719]
and changed Tcl_Alloc, et al to not panic when a alloc request
for zero came through and NULL was returned (valid on AIX, Tru64)
[Bug: 2795, etc]
* tests/clock.test:
* doc/clock.n:
* generic/tclClock.c: added -milliseconds switch to clock clicks
to guarantee that the return value of clicks is in the millisecs
granularity [Bug: 2682, 1332]
1999-09-15 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclIOCmd.c: fixed potential core dump in conjunction
with stacked channels with result obj manipulation in
Tcl_ReadChars [Bug: 2623]
* tests/format.test:
* generic/tclCmdAH.c: fixed translation of %0#s in format [Bug: 2605]
* doc/msgcat.n: fixed \\ bug in example [Bug: 2548]
* unix/tcl.m4:
* unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition
[Bug: 2070] and fix for IRIX SHLIB_LB_LIBS. [Bug: 2610]
* doc/array.n:
* tests/var.test:
* tests/set.test:
* generic/tclVar.c: added an array unset operation, with docs
and tests. Variation of [Bug: 1775]. Added fix in TclArraySet
to check when trying to set in a non-existent namespace. [Bug: 2613]
1999-09-14 Jeff Hobbs <hobbs@scriptics.com>
* tests/linsert.test:
* doc/linsert.n:
* generic/tclCmdIL.c: fixed end-int interpretation of linsert
to correctly calculate value for end, added test and docs [Bug: 2693]
* doc/regexp.n:
* doc/regsub.n:
* tests/regexp.test:
* generic/tclCmdMZ.c: add -start switch to regexp and regsub
with docs and tests
* doc/switch.n: added proper use of comments to example.
* generic/tclCmdMZ.c: changed switch to complain when an error
occurs that seems to be due to a misplaced comment.
* generic/tclCmdMZ.c: fixed illegal ref for \[0-9] substitutions
in regsub [Bug: 2723]
* generic/tclCmdMZ.c: changed [string equal] to return an Int
type object (was a Boolean)
1999-09-01 Jennifer Hom <jenn@scriptics.com>
* library/tcltest1.0/tcltest.tcl: Process command-line arguments
only ::tcltest doesn't have a child namespace (requires that
command-line args are processed in that namespace)
1999-09-01 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclParseExpr.c: changed '"' to '\"' to make FreeBSD
happy [Bug: 2625]
* generic/tclProc.c: moved static buf to better location and
changed static msg that would overflow in ProcessProcResultCode
[Bug: 2483] and added Tcl_DStringFree to Tcl_ProcObjCmd.
Also reworked size of static buffers.
* tests/stringObj.test: added test 9.11
* generic/tclStringObj.c: changed Tcl_AppendObjToObj to
properly handle the 1-byte dest and mixed src case where
both had had Unicode string len checks made on them. [Bug: 2678]
* unix/aclocal.m4:
* unix/tcl.m4: adjusted fix from 8-21 to add -bnoentry to the
AIX-* case and readjusted the range
1999-08-31 Jennifer Hom <jenn@scriptics.com>
* library/tcltest1.0/tcltest.tcl:
* doc/tcltest.n:
* tests/README: Modified testConstraints variable so that it isn't
unset every time ::tcltest::initConstraints is called and cleaned up
documentation in the README file and the man page.
1999-08-27 Jennifer Hom <jenn@scriptics.com>
* tests/env.test:
* tests/exec.test:
* tests/io.test:
* tests/event.test:
* tests/tcltest.test: Added 'exit' calls to scripts that the tests
themselves write, and removed accidental checkin of knownBugThreaded
constraints for Solaris and Linux.
* library/tcltest1.0/tcltest.tcl: Modified tcltest so that
variables are only initialized to their default values if they did
not previously exist.
1999-08-26 Jennifer Hom <jenn@scriptics.com>
* tests/tcltest.test:
* library/tcltest1.0/tcltest.tcl: Added a -args flag that sets a
variable named ::tcltest::parameters based on whatever's being
sent in as the argument to the -args flag.
1999-08-23 Jennifer Hom <jenn@scriptics.com>
* tests/tcltest.test: Added additional tests for -tmpdir, marked
all tests that use exec as unixOrPc.
* tests/encoding.test:
* tests/interp.test:
* tests/macFCmd.test:
* tests/parseOld.test:
* tests/regexp.test: Applied patches from Jim Ingham to add
encoding to a Mac only interp test, change an error message in
macFCmd.tet, put a comment in parseOld.test, fix tests using the
testencoding path command, and put unixOrPc constraints on tests
that use exec.
1999-08-21 Jeff Hobbs <hobbs@scriptics.com>
* unix/aclocal.m4: Changed AIX-4.[2-9] check to AIX-4.[1-9]
[Bug: 1909]
1999-08-20 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclPosixStr.c: fixed typo [Bug: 2592]
* doc/*: fixed various nroff bugs in man pages [Bug: 2503 2588]
1999-08-19 Jeff Hobbs <hobbs@scriptics.com>
* win/README.binary: fixed version info and some typos [Bug: 2561]
* doc/interp.n: updated list of commands available in a safe
interpreter [Bug: 2526]
* generic/tclIO.c: changed Tcl_GetChannelNames* to use style guide
headers (pleases HP cc)
1999-08-18 Jeff Hobbs <hobbs@scriptics.com>
* doc/Eval.3: fixed doc on input args [Bug: 2114]
* doc/OpenFileChnl.3:
* doc/file.n:
* tests/cmdAH.test:
* tclIO.c:
* tclCmdAH.c: added "file channels ?pattern?" tcl command, with
associated Tcl_GetChannelNames and Tcl_GetChannelNamesEx public
C APIs (added to tcl.decls as well), with docs and tests.
* tests/expr.test:
* generic/tclCompile.c: add TCL_TOKEN_VARIABLE to the part types
that cause differed compilation for exprs, to correct the expr
double-evaluation problem for vars. Added test cases.
Related to [Bug: 732]
* unix/Makefile.in: changed the dependency structure so that
install-* is dependent on * (ie - install-binaries is dependent
on binaries).
* library/auto.tcl:
* library/init.tcl:
* library/ldAout.tcl:
* library/package.tcl:
* library/safe.tcl:
* library/word.tcl:
* library/http2.1/http.tcl:
* library/msgcat1.0/msgcat.tcl: updated libraries to better
Tcl style guide (no more string comparisons with == or !=, spacing
changes).
1999-08-05 Jim Ingham <jingham@cygnus.com>
* mac/tclMacProjects.sea.hqx: Rearrange the projects so that the build
directory is separate from the sources. Much more convenient!
1999-08-13 Scott Redman <redman@scriptics.com>
* /: 8.2.0 tagged for final release
1999-08-12 Scott Stanton <stanton@scriptics.com>
* win/Makefile.in: Added COMPILE_DEBUG_FLAGS macro to make it
easier to turn on compiler tracing.
* tests/parse.test:
* generic/tclParse.c: Fixed bug in Tcl_EvalEx where the termOffset
was not being updated in cases where the evaluation returned a non
TCL_OK error code. [Bug: 2535]
1999-08-12 Scott Redman <redman@scriptics.com>
* win/tclWinSerial.c: Applied patch from Petteri Kettunen to
remove compiler warning.
1999-08-10 Scott Redman <redman@scriptics.com>
* generic/tclAlloc.c:
* generic/tclCmdIL.c:
* generic/tclIO.c:
* generic/tclThread.c:
* win/tclWinThrd.c:
* unix/tclUnixThrd.c: Fixed Brent's changes so that they work on
Windows (and he fixed the bug in the Unix thread implementation).
1999-08-09 Brent Welch <welch@scriptics.com>
* generic/tcl.decls:
* generic/tclAlloc.c:
* generic/tclCkalloc.c:
* generic/tclCmdIL.c:
* generic/tclDecls.h:
* generic/tclIO.c:
* generic/tclInt.decls:
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
* generic/tclVar.c:
* mac/tclMacThrd.c:
* unix/tclUnixThrd.c:
* win/tclWinThrd.c: Added use of Tcl_GetAllocMutex to tclAlloc.c
and tclCkalloc.c so they can be linked against alternate thread
packages. Added Tcl_GetChannelNames to tclIO.c. Added
TclVarTraceExists hook so "info exists" triggers read traces
exactly like it did in Tcl 7.6. Stubs table changes to reflect new
internal and external APIs.
1999-08-09 Jeff Hobbs <hobbs@scriptics.com>
* tests/string.test: added largest_int proc to adapt for >32 bit
machines and int overflow testing.
* tests/tcltest.test: fixed minor error in 8.2 result (from dgp)
* doc/Object.3: clarified Tcl_DecrRefCount docs [Bug: 1952]
* doc/array.n: clarified array pattern docs [Bug: 1330]
* doc/clock.n: fixed clock docs [Bug: 693]
* doc/lindex.n: clarified to account for new end-int behavior.
* doc/string.n: fixed formatting errors [Bug: 2188 2189]
* doc/tclvars.n: fixed doc error [Bug: 2042]
* library/init.tcl: fixed path handling in auto_execok (it could
miss including the normal path on some Windows machines) [Bug: 1276]
1999-08-05 Jeff Hobbs <hobbs@scriptics.com>
* doc/tclvars.n: Made it clear that tcl_pkgPath was not set
for Windows (already mentioned in init.tcl) [Bug: 2455]
* generic/tclLiteral.c: fixed reference to bytes that might
not be null terminated (using objPtr->bytes, which is) [Bug: 2496]
* library/http2.1/http.tcl: Made use of "i" in init section use
local var and start at 0 (was 1). [Bug: 2502]
1999-08-04 Scott Stanton <stanton@scriptics.com>
* tests/reg.test: Added test for REG_EXPECT bug fixed by Henry's
patch.
* generic/regc_nfa.c:
* generic/regcomp.c:
* generic/rege_dfa.c:
* generic/regexec.c:
* generic/regguts.h: Applied patches supplied by Henry Spencer to
greatly enhance the performance of certain classes of regular
expressions. [Bug: 2440, 2447]
1999-08-03 Scott Redman <redman@scriptics.com>
* win/tclWinInt.h: Remove function declarations in header that was
moved to tclInt.decls file in previous changes.
1999-08-02 Scott Redman <redman@scriptics.com>
* unix/configure.in:
* win/configure.in: Change beta level to b2.
* generic/tcl.h:
* generic/tcl.decls:
* generic/tclDecls.h:
* generic/tclInt.h:
* generic/tclInt.decls:
* generic/tclIntDecls.h:
* generic/tclRegexp.h:
* generic/tclStubInit.c: Move some exported public and internal
functions to the stub tables. Removed functions that are in the
stub tables (from this and previous changes) from the original
header files.
1999-08-01 Scott Redman <redman@scriptics.com>
* win/tclWinSock.c: Added comment block to SocketThread()
function. Added code to avoid calling TerminateThread(), but
instead to send a message to the socket event window to tell it to
terminate its thread.
1999-07-30 Jennifer Hom <jenn@scriptics.com>
* tests/tcltest.test:
* library/tcltest1.0/tcltest.tcl: Exit with non-zero status if
there were problems with the way the test suite was started
(e.g. wrong # arguments).
1999-07-30 Jeff Hobbs <hobbs@scriptics.com>
* generic/tclInt.decls: added declaractions necessary for the
Tcl test code to work wth stubs [Bug: 2445]
1999-07-30 <redman@scriptics.com>
* win/tclWinPipe.c:
* win/Makefile.in: Fixing launching of 16-bit apps on Win9x from
wish. The command line was primed with tclpip82.dll, but it was
ignored. Fixed that, then fixed the gmake makefile to build
tclpip82.dll as an executable.
* win/tclWinSock.c: Applied small patch to get thread-specific
data after initializing the socket driver.
* unix/tclUnixThrd.c: Applied patch to fix threads on Irix 6.5.
Patch from James Dennett. [Bug: 2450]
* tests/info.test: Enable test for tclParse.c change (info
complete).
1999-07-30 <hobbs@scriptics.com>
* tclIO.c: added fix for Kupries' trf patch [Bug: 2386]
* tclParse.c: fixed bug in info complete regarding nested square
brackets [Bug: 2382, 2466]
1999-07-29 <redman@scriptics.com>
* win/tclWinChan.c: Allow tcl to open CON and NUL, even for std
channels. Checking for bad/unusable std channels was moved to Tk
since its only purpose was to check whether to use the Tk Console
Window for the std channels. [Bug: 2393 2392 2209 2458]
* unix/mkLinks.tcl: Applied patch to avoid linking pack.n to
pack-old.n. Patch from Don Porter. [Bug: 2469]
* doc/Encoding.n: Applied patch to fix typo in .SH NAME line.
Patch from Don Porter. [Bug: 2451]
* win/tclWinSock.c: Free Win32 Event handles when destroying
the socket helper thread.
1999-07-28 <jenn@scriptics.com>
* tests/tcltest.test:
* library/tcltest1.0/tcltest.tcl: Fixed the condition under which
::tcltest::PrintError had an infinite loop problem and added a
test case for it. Added an optional argument to
::tcltest::getMatchingFiles telling it where to search for test
files.
1999-07-27 <redman@scriptics.com>
* tools/tclSplash.bmp: Updated Windows installer bitmap
to ready Tcl/Tk Version 8.2.
1999-07-26 <redman@scriptics.com>
* tests/tcltest.test: Need to close the new core file, there
seems to be a hang in threaded WinNT if the file isn't closed.
Open issue, need to fix that hang.
* tests/httpold.test: Add time delay in response from Http server
so that test cases can properly detect timeout conditions with
threads enabled on multi-CPU WinNT.
* tests/winFCmd.test: Test case winFcmd-1.33 was looking for
c:\windows, which may not exist. Instead, create a new directory
on c:\ and use it for the test.
* win/tclWinConsole.c:
* win/tclWinPipe.c:
* win/tclWinSock.c: Fix terminating helper threads by holding any
mutexes from the primary thread while waiting for the helper
thread to terminate. Without these changes, the test suite hangs
on WinNT with 2 CPUs and threads enabled. Open issue, seems to be
a sporadic hang on dual CPU systems still (very rare).
1999-07-26 Jennifer Hom <jenn@scriptics.com>
* tests/tcltest.test:
* library/tcltest1.0/tcltest.tcl:
* doc/tcltest.n: Cleaned up code in ::tcltest::PrintError, revised
documentation, and added tests for the tcltest package.
1999-07-23 <redman@scriptics.com>
* tests/info.test:
* generic/tclParse.c: Removed patch for info command, breaks test
cases on Unix. Patch was bad and needs to be redone
properly. [Bug: 2382]
1999-07-22 <redman@scriptics.com>
* Changed version to 8.2b2.
* win/tclWinSock.c: Fixed hang with threads enabled, fixed
semaphores with threads disabled.
* win/safe.test: Fixed safe-6.3 with threads enabled.
* win/Makefile.in: Fixed calling of tcltest to fix safe.test
failures due to path TCL_LIBRARY path.
* win/tclWinPort.h: Block out include of sys/*.h in order to
build extensions with MetroWerks compiler for Win32. [Bug: 2385]
* generic/tclCmdMZ.c:
* generic/tclIO.c: Fix ANSI-style prototypes based on patch from
Ulrich Ring. [Bug: 2391]
* unix/Makefile.in: Need to make install-sh executable before
calling (with chmod +x). [Bug: 2413]
* tests/var.test:
* generic/tclVar.c: Fixed bug that caused a seg. fault when using
"array set a(b) {}", which is a bad array name anyway. Now the
"array set" command will return an error in this case. Added test
case and fixed existing test. [Bug: 2427]
1999-07-21 <redman@scriptics.com>
* tests/info.test:
* generic/tclParse.c: Applied patch to fix "info complete"
for the string {[a [b]}. Patch from Peter Spjuth. [Bug: 2382]
* doc/Utf.3:
* generic/tcl.decls:
* generic/tclDecls.h:
* generic/tclUtf.c: Changed function declarations in
non-platform-specific public APIs to use "unsigned long" instead of
"size_t", which may not be defined on certain compilers (rather
than include sys/types.h, which may not exist).
* unix/Makefile.in: Added the Windows configure script to the
distribution file list, already shipping configure.in and the .m4
files, but needed the configure script itself.
* win/makefile.vc: Changed version number of DDE package in VC++
makefile to use 1.1 instead of 1.0.
* doc/open.n: Added documentation of \\.\comX notation for opening
serial ports on Windows (alternative to comX:).
* tests/ioCmd.test:
* doc/open.n:
* win/tclWinSerial.c: Applied patch from Rolf Schroedter to add
-pollinterval option to fconfigure to modify the maxblocktime used
in the fileevent polling. Added documentation and fixed the test
case as well.
* win/tclWinSock.c: Modified 8.1.0 version of the Win32 socket
driver to move the handling of the socket event window in a
separate thread. It also turned out that Win95 & Win98 were, in
some cases, getting multiple FD_ACCEPTs but only handling one.
Added a count for the FD_ACCEPT to take care of this. Tested on
NT4 SP3, NT4 SP4, Win95, and Win98.
[Bug: 2178 2256 2259 2329 2323 2355]
1999-07-21 <jpeek@scriptics.com>
* README: Small tweaks to clean up typos and wording.
1999-07-20 Melissa Hirschl <hershey@matisse.scriptics.com>
* generic/tclInitScript.h:
* unix/tclUnixInit.c: merged code with 8.0.5. We now use an
intermediate global tcl var "tclDefaultLibrary" to keep the
"tcl_library" var from being set by the default value in the
Makefile. Also fixed a bug in which caused the value of
TCL_LIBRARY env var to be ignored.
* unix/tclWinInit.c: just updated some comments.
1999-07-19 Melissa Hirschl <hershey@matisse.scriptics.com>
* library/http2.1/http.tcl: updated -useragent text to say version
2.1.
1999-07-16 <redman@scriptics.com>
* generic/tcl.decls:
* generic/tclDecls.h:
* generic/tclStubInit.c: Add Tcl_SetNotifier to stub table.
[Bug: 2364]
* unix/aclocal.m4:
* unix/tcl.m4: Add check for Alpha/Linux to correct the IEEE
floating flag to the compiler, should be -mieee. Patch from Don
Porter.
* tools/tcl.hpj.in: Change version number of .cnt file referenced
in .HPJ file.
1999-07-15 <redman@scriptics.com>
* tools/tcl.wse.in: Fixed naming of target files for Windows.
1999-07-14 <jpeek@scriptics.com>
* doc/re_syntax.n: Deleted sentence as suggested by Scott S.
1999-07-12 <jpeek@scriptics.com>
* doc/re_syntax.n: Removed two notes to myself (oops), cleaned
up wording, fixed changebars, made two examples easier to read.
1999-07-11 <redman@scriptics.com>
* win/makefile.vc: Since the makefile.vc should continue to work
while we're working out bugs/issues in the new TEA-style
autoconf/configure/gmake build mechanism for Windows, the version
numbers of the Tcl libraries need to remain in sync. Modified the
version numbers in the makefile to reflect the change to 8.2b1.
1999-07-09 <redman@scriptics.com>
* win/configure.in: Eval DLLSUFFIX, LIBSUFFIX, and EXESUFFIX in
the configure script so that substitutions get expanded before
being placed in the Makefile. The "d" portion for debug libraries
and DLLs was not being set properly.
1999-07-08 <stanton@scriptics.com>
* tests/string.test:
* generic/tclCmdMZ.c: Fixed bug in string range bounds checking
code.
1999-07-08 Jennifer Hom <jenn@scriptics.com>
* doc/tcltest.n:
* library/tcltest1.0/tcltest.tcl: Removed -asidefromdir and
-relateddir flags, removed unused ::tcltest::dotests proc, cleaned
up implementation of core file checking, and fixed the code that
checks for 1-letter flag abbreviations.
1999-07-08 <stanton@scriptics.com>
* win/Makefile.in: Added tcltest target so runtest works
properly. Added missing names to the clean/distclean targets.
* tests/reg.test:
* generic/rege_dfa.c: Applied fix supplied by Henry Spencer for
bug in DFA state caching under lookahead conditions. [Bug: 2318]
1999-07-07 <stanton@scriptics.com>
* doc/fconfigure.n: Clarified default buffering behavior for the
standard channels. [Bug: 2335]
1999-07-06 <redman@scriptics.com>
* win/tclWinSerial.c: New implementation of serial port driver
from Rolf Shroedter (Rolf.Schroedter@dlr.de) that allows more than
one byte to be read from the port. Implemented using polling
instead of threads, there is a max. 10ms latency between checking the
port for file events. [Bug: 1980 2217]
1999-07-06 <welch@scriptics.com>
* library/http2.0/http.tcl: Fixed the -timeout option so it
handles timeouts that occur during connection attempts to
hosts that are down (the only case that really matters!)
1999-07-03 <welch@scriptics.com>
* doc/ChnlStack.3:
* generic/tcl.decls:
* generic/tclIO.c: Added a new variant of the "Trf patch"
from Andreas Kupres that adds new C APIs Tcl_StackChannel,
Tcl_UnstackChannel, and Tcl_GetStackedChannel.
1999-07-03 <welch@scriptics.com>
* generic/tclNotify.c:
* unix/tclUnixNotfy.c:
* unix/tclXtTest.c:
* unix/tclXtNotify.c:
* win/tclWinNotify.c:
* mac/tclMacNotify.c: Added Tcl_SetNotifier and the associated
hook points in the notifiers to be able to replace the notifier
calls at runtime The Xt notifier and test program use this hook.
1999-07-03 <welch@scriptics.com>
* generic/tclParse.c: Changed parsing of variable names to
allow empty array names. Now "$(foo)" is a variable reference!
Previous you had to use something like $::(foo), which is slower.
This change is requested by Jean-Luc Fontaine for his STOOOP
package.
1999-07-01 <redman@scriptics.com>
* generic/tclCmdAH.c:
* generic/tclFCmd.c: Call TclStat instead of TclpStat in order to
allow Tcl_Stat hooks to work properly.
1999-06-29 Jennifer Hom <jenn@scriptics.com>
* library/tcltest1.0/pkgIndex.tcl:
* library/tcltest1.0/tcltest.tcl:
* doc/tcltest.n:
* tests/all.tcl: Added -preservecore, -limitconstraints, -help,
-file, -notfile, -relateddir and -asidefromdir flags to the
tcltest package along with exported proc
::tcltest::getMatchingFiles. The documentation was modified to
match and all.tcl was modified to use the new functionality
instead of implementing -file itself.
1999-06-28 <redman@scriptics.com>
* generic/tclIndexObj.c:
* doc/GetIndex.3:
* tests/binary.test:
* tests/winDde.test: Applied patch from Peter Hardie (with
changes) to fix problem with Tcl_GetIndexFromObj() when the key
being passed is the empty string. It used to match "" and return
TCL_OK, but it should have returned TCL_ERROR instead. Added test
case to "binary" and "dde" commands to check the behavior. Added
documentation note as well.
1999-06-26 <redman@scriptics.com>
* win/tclWinDde.c: Applied patch from Peter Hardie to add poke
command to dde. Also rev'd version of dde package to 1.1.
[Bug: 1738]
1999-06-25 Jennifer Hom <jenn@scriptics.com>
* unix/Makefile.in:
* win/Makefile.in:
* library/tcltest1.0/pkgIndex.tcl:
* library/tcltest1.0/tcltest.tcl:
* library/tcltest1.0: Added initial implementation of the Tcl test
harness package. This package was based on the defs.tcl file that
was part of the tests directory. Reversed the way that tests were
evaluated to fix a problem with false passes.
* doc/tcltest.n: Added documentation for the tcltest package.
* tests/README:
* tests/defs.tcl:
* tests/all.tcl: Modified all test files (tests/*.test) and
all.tcl to use the new tcltest package and removed references to
the defs.tcl file. Modified the README file to point to the man
page for tcltest.
1999-06-25 <stanton@scriptics.com>
* tests/reg.test:
* generic/regexec.c: Fixed bugs in non-greedy quantifiers.
1999-06-23 <jpeek@scriptics.com>
* doc/re_syntax.n:
* doc/switch.n:
* doc/lsearch.n:
* doc/RegExp.3:
* doc/regexp.n:
* doc/regsub.n: Moved information about syntax of 8.1 regular
expressions from regexp(n) manpage into new re_syntax(n) page.
Added pointers from other manpages to new re_syntax(n) page.
1999-06-23 <stanton@scriptics.com>
* unix/Makefile.in: Changed install-doc to install-man.
* tools/uniParse.tcl:
* tools/uniClass.tcl:
* tools/README:
* tests/string.test:
* generic/regc_locale.c:
* generic/tclUniData.c:
* generic/tclUtf.c:
* doc/string.n: Updated Unicode character tables to reflect latest
Unicode 2.1 data. Also rationalized "regexp" and "string is"
definitions of character classes.
1999-06-21 <stanton@scriptics.com>
* unix/tclUnixThrd.c (TclpThreadCreate): Fixed memory leak where
thread attributes were not being released. [Bug: 2254]
1999-06-17 <stanton@scriptics.com>
* tests/regexp.test:
* generic/tclCmdMZ.c:
* generic/tclCmdIL.c: Changed to use new regexp interfaces. Added
-expanded, -line, -linestop, and -lineanchor switches to regsub.
* doc/RegExp.3: Documented the new regexp interfaces and
the compile/execute flags.
* generic/tclTest.c:
* generic/tclRegexp.h:
* generic/tclRegexp.c:
* generic/tcl.h:
* generic/tcl.decls: Renamed Tcl_RegExpMatchObj to
Tcl_RegExpExecObj and added a new Tcl_RegExpMatchObj that is
equivalent to Tcl_RegExpMatch. Added public macros for the regexp
compile/execute flags. Changed to store either an object pointer
or a string pointer in the TclRegexp structure. Changed to avoid
adding a reference to the object or copying the string.
* generic/regcomp.c: lint
* tests/reg.test:
* generic/regex.h:
* generic/regc_lex.c: Added REG_BOSONLY flag to allow Expect to
iterate through a string an only find matches that start at the
current position within the string.
1999-06-16 <wart@scriptics.com>
* unix/configure.in:
* unix/Makefile.in:
* unix/tcl.m4:
* unix/aclocal.m4: Numerous build changes to make Tcl conform to the
proposed TEA spec
1999-06-16 Melissa Hirschl <hershey@matisse.scriptics.com>
* generic/tclVar.c (Tcl_VariableObjCmd): fixed premature increment
in loop that was causing out-of-bounds reads on array "varName".
1999-06-16 <stanton@scriptics.com>
* tests/execute.test:
* generic/tclExecute.c (TclExecuteByteCode): Fixed crash caused by
a bug in INST_LOAD_SCALAR1 where the scalar index was read as
a signed 1 byte value instead of unsigned. [Bug: 2243]
1999-06-14 Melissa Hirschl <hershey@matisse.scriptics.com>
* doc/StringObj.3
* test/stringObj.test
* unix/Makefile.in
* win/Makefile.in
* win/makefile.vc
* generic/tclStringObj.c:
Merged String and Unicode object types. Added new functions to
the puplic API: Tcl_NewUnicodeObj, Tcl_SetUnicodeObj,
Tcl_GetUnicode, Tcl_GetUniChar, Tcl_GetCharLength, Tcl_GetRange,
Tcl_AppendUnicodeToObj.
1999-06-09 <stanton@scriptics.com>
* generic/tclUnicodeObj.c: Lots of cleanup and simplification.
Fixed several memory bugs. Added TclAppendUnicodeToObj.
* generic/tclInt.h: Added declarations for various Unicode string
functions.
* generic/tclRegexp.c:
* generic/tclCmdMZ.c: Changed to use new Unicode string interfaces
for better performance.
* generic/tclRegexp.h:
* generic/tclRegexp.c:
* generic/tcl.h:
* generic/tcl.decls: Added Tcl_RegExpMatchObj and
Tcl_RegExpGetInfo calls to access lower level regexp API. These
features are needed by Expect. This is a preliminary
implementation pending final review and cleanup.
* generic/tclCmdMZ.c:
* tests/string.test: Fixed bug where string map failed on null
strings.
* generic/regexec.c:
* unix/tclUnixNotfy.c: lint
* tools/genStubs.tcl: Changed to always write output in LF mode.
1999-06-08 <stanton@scriptics.com>
* win/tclWinSock.c: Rolled back to the 8.1.0 implementation
because of serious problems with the new driver. Basically no
incoming socket connections would be reported to a server port.
The 8.1.1 code needs to be redesigned and fixed correctly.
1999-06-07 Melissa Hirschl <hershey@matisse.scriptics.com>
* tests/string.test:
* generic/tclVar.c (Tcl_SetVar2Ex):
* generic/tclStringObj.c (Tcl_AppendObjToObj):
* generic/tclCmdMZ.c (Tcl_StringObjCmd): optimized the string
index, string length, string range, and append command in cases
where the object's internal rep is a bytearray. Objects with
other internal reps are converted to have the new unicode internal
rep.
* unix/Makefile.in:
* win/Makefile.in:
* win/Makefile.vc:
* tests/unicode.test:
* generic/tclInt.h:
* generic/tclObj.c:
* generic/tclUnicodeObj.c: added a new object type to store the
unicode representation of a string.
* generic/tclTestObj.c: added the objtype option to the testobj
command. This option returns the name of the type of internal rep
an object has.
1999-06-04 <stanton@scriptics.com>
* win/configure.in:
* win/Makefile.in: Windows build now handles static/dynamic
debug/nodebug builds and supports the standard targets using
Cygwin user tools plus GNU make and autoconf.
1999-06-03 <stanton@scriptics.com>
* generic/tclCmdMZ.c (Tcl_StringObjCmd):
* tests/string.test: Fixed bug where string equal/compare -nocase
reported wrong result on null strings. [Bug: 2138]
1999-06-02 <stanton@scriptics.com>
* generic/tclUtf.c (Tcl_UtfNcasecmp): Fixed incorrect computation
of relative ordering. [Bug: 2135]
1999-06-01 <stanton@scriptics.com>
* unix/configure.in: Fixed various small configure.in patches
submitted by Jan Nijtmans. [Bug: 2121]
* tests/reg.test:
* generic/regc_color.c:
* generic/regc_cvec.c:
* generic/regc_lex.c:
* generic/regc_locale.c:
* generic/regc_nfa.c:
* generic/regcomp.c:
* generic/regcustom.h:
* generic/rege_dfa.c:
* generic/regerror.c:
* generic/regerrs.h:
* generic/regex.h:
* generic/regexec.c:
* generic/regfree.c:
* generic/regfronts.c:
* generic/regguts.h:
* generic/tclCmdMZ.c:
* generic/tclRegexp.c:
* generic/tclRegexp.h:
* generic/tclTest.c: Applied Henry Spencer's latest regexp patches
that fix an infinite loop bug and add support for testing whether
a string could match with additional input. [Bug: 2117]
1999-05-28 <stanton@scriptics.com>
* generic/tclObj.c: Changed to eliminate use of isupper/tolower in
favor of the Unicode versions.
* win/Makefile.in:
* win/configure.in: Added preliminary TEA implementation.
* win/tclWinDde.c: Fixed bug where dde calls were being passed an
invalid dde handle because Initialize had not been called.
[Bug: 2124]
1999-05-26 <redman@scriptic.com>
* generic/tclThreadTest.c: Fixed race condition in testthread
code that showed up in the WinNT test suite intermittently.
* win/tclWinSock.c: Fixed a hang in the WinNT socket driver, wake
up the socket thread every 100ms to check for events on the
sockets that did not wake up the thread (race condition).
1999-05-24 <stanton@scriptics.com>
* tools/genStubs.tcl: Changed to allow a list of platforms instead
of just one at a time.
* generic/tcl.decls:
* generic/tclCmdMZ.c:
* generic/tclDecls.h:
* generic/tclInt.decls:
* generic/tclIntDecls.h:
* generic/tclPort.h:
* generic/tclStubInit.c:
* generic/tclStubLib.c: Various header file related changes and other
lint to try to get the Mac builds working.
1999-05-21 <redman@scriptics.com>
* win/tclWinPipe.c: Fix bug when launching command.com on
Win95/98. Need to wait for the procInfo.hProcess of the process that
was created, not the hProcess of the current process. [Bug: 2105]
1999-05-20 <redman@scriptics.com>
* library/init.tcl: Add the directory where the executable is, and
the ../lib directory relative to that, to the auto_path variable.
1999-05-19 <stanton@scriptics.com>
Merged in various changes submitted by Jeff Hobbs:
* generic/tcl.decls:
* generic/tclUtf.c: Added Tcl_UniCharIs* functions for control,
graph, print, and punct classes.
* generic/tclUtil.c:
* doc/StrMatch.3: Added Tcl_StringCaseMatch() implementation to
support case-insensitive globbing.
* doc/string.n:
* unix/mkLinks:
* tests/string.test:
* generic/tclCmdMZ.c: Added additional character class tests,
added -nocase switch to "string match", changed string first/last
to use offsets.
1999-05-19 <redman@scriptics.com>
* generic/tcl.h: Add extern "C" block around entire header file for
C++ compilers to fix linkage issues. Submitted by Don Porter and
Paul Duffin.
* generic/tclRegexp.c: Fix bug when the regexp cache is empty
and an empty pattern is used in regexp ( such as {} or "" ).
1999-05-18 <stanton@scriptics.com>
* win/tclWinChan.c: Modified initialization code to avoid
inherenting closed or invalid channels. If the standard input is
anything other than a console, file, serial port, or pipe, then we
fall back to the standard Tk window console.
1999-05-14 <stanton@scriptics.com>
* generic/tclCmdAH.c (Tcl_ForObjCmd): Fixed crash caused by
failure to reset the result before evaluating the test
expression.
1999-05-14 <surles@scriptics.com>
* generic/tclBasic.c (Tcl_CreateInterp): Added introspection
variable for threaded interps. If the interp was compiled with
threads enabled, the tcl_platform(threaded) variable will exist.
1999-05-14 <redman@scriptics.com>
* generic/tclDate.c: Applied patch to fix 100-year and 400-year
boundaries in leap year code, from Isaac Hollander. [Bug: 2066]
1999-05-13 <stanton@scriptics.com>
* unix/Makefile.in:
* unix/tclAppInit.c: Minor cleanup related to Xt notifier.
* unix/tclUnixInit.c (TclpSetInitialEncodings): Tcl now looks for
an encoding subfield in the LANG/LC_ALL variables in cases where
the locale is not found in the locale table. Ensure that
setlocale() is called at least once so X11 will initialize
properly. Also, forces the LC_NUMERIC locale to be "C" so numeric
processing in scripts is not affected by the current locale
setting. [Bug: 1989]
* generic/tclRegexp.c: Increased per-thread regexp cache to 30
slots. This seems to be about the right number for larger
applications like exmh. [Bug: 1063]
1999-05-12 <stanton@scriptics.com>
* doc/tclsh.1: Updated references to rc script names to accurately
reflect the platform differences on Windows.
* tests/regexp.test:
* generic/tclInt.h:
* generic/tclBasic.c:
* generic/tclRegexp.h:
* generic/tclRegexp.c: Replaced the per-interpreter regexp cache
with a per-thread cache. Changed the Regexp object to take
advantage of this extra cache. Added a reference count to the
TclRegexp type so regexps can be shared by multiple objects.
Removed the per-interp regexp cache from the interpreter. Now
regexps can be used with no need for an interpreter. [Bug: 1063]
* win/tclWinInit.c (TclpSetVariables): Avoid calling GetUserName
if the value can be determined from the USERNAME environment
variable. GetUserName is very slow.
1999-05-07 <stanton@scriptics.com>
* win/winDumpExts.c:
* win/makefile.vc: Removed incorrect patch. [Bug: 1998]
* generic/tcl.decls: Replaced const with CONST.
* generic/tclResult.c (Tcl_AppendResultVA):
* generic/tclStringObj.c (Tcl_AppendStringsToObjVA): Fixed to copy
arglist using memcpy instead of assignment so it works properly on
OS/390. [Bug: 1997]
* generic/tclLoadNone.c: Updated to use current interfaces, added
TclpUnloadFile. [Bug: 2003]
* win/winDumpExts.c:
* win/makefile.vc: Changed to emit library name in defs
file. [Bug: 1998]
* unix/configure.in: Added fix for OS/390. [Bug: 1976]
1999-05-06 <stanton@scriptics.com>
* tests/string.test:
* generic/tclCmdMZ.c:
* doc/string.n: Fixed bug in string equal/compare code when using
-length option. Cleaned up docs a bit more.
* tests/http.test: Unset "data" array before running tests to
avoid failures due to previous tests.
* doc/string.n:
* tests/cmdIL.test:
* tests/cmdMZ.test:
* tests/error.test:
* tests/ioCmd.test:
* tests/lindex.test:
* tests/linsert.test:
* tests/lrange.test:
* tests/lreplace.test:
* tests/string.test:
* tests/cmdIL.test:
* generic/tclUtil.c:
* generic/tclCmdMZ.c: Replaced "string icompare/iequal" with
-nocase and -length switches to "string compare/equal". Added a
-nocase option to "string map". Changed index syntax to allow
integer or end?-integer? instead of a full expression. This is
much simpler with safeTcl scripts since it avoids double
substitution issues.
* doc/Utf.3:
* generic/tclStubInit.c:
* generic/tclDecls.h:
* generic/tclUtf.c:
* generic/tcl.decls: Added Tcl_UtfNcmp and Tcl_UtfNcasecmp.
1999-05-05 <stanton@scriptics.com>
* win/makefile.vc: Added encoding directory to install-libraries
target.
1999-05-03 <stanton@scriptics.com>
* doc/string.n:
* tests/cmdMZ.test:
* tests/string.test:
* generic/tclCmdMZ.c (Tcl_StringObjCmd): Changed "string length"
to avoid regenerating the string rep of a ByteArray object.
* tests/cmdIL.test:
* tests/cmdMZ.test:
* tests/error.test:
* tests/lindex.test:
* tests/linsert.test:
* tests/lrange.test:
* tests/lreplace.test:
* tests/string.test:
* generic/tclCmdMZ.c (Tcl_StringObjCmd):
* generic/tclUtil.c (TclGetIntForIndex): Applied Jeff Hobbs's
string patch which includes the following changes [Bug: 1845]:
- string compare now takes optional length arg (for strncmp
behavior)
- added string equal (just a few lines of code blended
in with string compare)
- added string icompare/iequal for case-insensitive comparisons
- string index's index can now be ?end[+-]?expression
I made this change in the private TclGetIntForIndex,
which means that the list commands also benefit, as
well as string range, et al.
- added [string repeat string count]
Repeats given string number of times
- added string replace, string equiv to lreplace
(quasi opposite of string range):
string replace first last ?string?
Example of use, replacing end of string with ...
should the string be more than 16 chars long:
string replace $string 16 end "..."
This just returns the string len < 16, so it
will only affect the long strings.
- added optional first and last args to string to*
This allows you to just affect certain regions of
a string with the command (like just capping the
first letter). I found the original totitle to
be too draconian to be useful.
- added [string map charMap string]
where charMap is a {from to from to} list that equates to
what one might get from [array get]. Each and
can be multiple chars (or none at all). For Tcl/CGI users,
this is a MAJOR speed booster.
* generic/tclParse.c (Tcl_ParseCommand): Changed to avoid
modifying eval'ed strings that are already null terminated.
[Bug: 1793]
* tests/binary.test:
* generic/tclBinary.c (DupByteArrayInternalRep): Fixed bug where
type was not being set in duplicated object. [Bug: 1975, 2047]
1999-04-30 <stanton@scriptics.com>
* Changed version to 8.1.1.
1999-04-30 <stanton@scriptics.com>
* Merged changes from 8.1.0 branch:
* generic/tclParse.c: Fixed memory leak in CommandComplete.
* generic/tclPlatDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclIntDecls.h:
* generic/tclDecls.h:
* tools/genStubs.tcl: Added 'extern "C" {}' block around the stub
table pointer declaration so the stub library can be used from
C++. [Bug: 1934]
* Lots of documentation and other release engineering fixes.
1999-04-28 <stanton@scriptics.com>
* mac/tclMacResource.c:
* generic/tclListObj.c:
* generic/tclObj.c:
* generic/tclStringObj.c: Changed to avoid freeing the string
representation before freeing the internal rep. This helps with
debugging since the string rep will still be valid when the free
proc is invoked.
1999-04-27 <stanton@scriptics.com>
* generic/tclLiteral.c (TclHideLiteral): Fixed so hidden literals
get duplicated to avoid accidental sharing in the global object
table.
1999-04-23 <stanton@scriptics.com>
* generic/tclStubInit.c:
* tools/genStubs.tcl: Changed to avoid the need for forward
declarations in stub initializers.
1999-04-23 <stanton@scriptics.com>
* library/encoding/koi8-r.enc:
* tools/encoding/koi8-r.txt: Added support for the koi8-r Cyrillic
encoding. [Bug: 1771]
1999-04-22 <stanton@scriptics.com>
* win/tclWinFCmd.c:
* win/tclWin32Dll.c: Changed uses of "try" to "__try", since that
is the actual keyword. This eliminates the need for some -D flags
from the makefile.
* generic/tclPort.h: Added include of tcl.h since it defines
various Windows macros that are needed before deciding which
platform porting file to use.
* generic/tclEvent.c: lint
* win/tclWinInit.c (TclpInitPlatform): Added call to TclWinInit
when building a static library since DllMain will not be invoked.
This could break old code that explicitly called TclWinInit, but
should be simpler in the long run.
1999-04-22 Scott Stanton <stanton@scriptics.com>
* generic/tclInt.h:
* generic/tclInt.decls:
* generic/tclCompile.c: Added TclSetByteCodeFromAny that takes a
hook procedure to invoke after compilation but before the byte
codes are emitted. This makes it possible to do postprocessing on
the compiled byte codes before the ByteCode is generated.
* generic/tclLiteral.c: Added TclHideLiteral and TclAddLiteralObj
to make it possible to create local unshared literal objects.
* win/tclWinInit.c:
* unix/tclUnixInit.c: Changed initial search path to match that
found used by tcl_findLibrary.
1999-04-22 <redman@scriptics.com>
* win/tclWinPort.h:
* win/tclWinSock.c: Added code to use WinSock 2.0 API on NT to
avoid creating a window to handle sockets. API not available on
Win95 and needs to be fixed on Win98, until then continue to use
the older (window-based) scheme on those two OSes.
1999-04-15 <stanton@scriptics.com>
* Merged 8.1 back into the main trunk
1999-04-13 <stanton@scriptics.com>
* library/encoding/gb2312.enc:
* library/encoding/euc-cn.enc:
* tools/encoding/gb2312.txt:
* tools/encoding/cp950.txt:
* tools/encoding/Makefile: Restored the double byte definition of
GB2312 and added the EUC-CN encoding. EUC-CN is a variant of
GB2312 that shifts the characters into bytes with the high bit set
and includes ASCII as a subset. [Bug: 632]
1999-04-13 <redman@scriptics.com>
* win/tclWinSock.c: Apply patch to allow write access to a socket
if FD_WRITE is sent but FD_CONNECT is not. Some strange problem
with either Win32 or a socket driver. [Bug: 1664 1776]
1999-04-09 <redman@scriptics.com>
* unix/tclUnixNotfy.c: Fixed notifier deadlock situation when the
pipe used to talk back notifier thread is filled with data. When
calling the write() function to feed data down that pipe, unlock
the notifierMutex to allow the notifier to wake up again. Found
as a result of the focus.test for Tk hanging. [Bug: 1700]
1999-04-06 <stanton@scriptics.com>
* tests/unixNotfy.test: Fixed hang in tests when built with thread
support.
* tests/httpold.test: Fixed broken test that didn't wait long
enough for events to arrive.
* tests/unixInit.test: Fixed race condition in test.
* tests/unixInit.test:
* tests/fileName.test: Minor test nits.
* unix/tclUnixInit.c (TclpSetInitialEncodings): Fixed bad initial
encoding string.
1999-04-06 <surles@scriptics.com>
* generic/tclVar.c:
* generic/tclEnv.c: Moved the "array set" C level code into a
common routine (TclArraySet). The TclSetupEnv routine now uses
this API to create an env array w/ no elements.
* generic/tclEnv.c:
* generic/tclWinInit.h:
* generic/tclUnixInit.h:
* generic/tclInt.h: Made the Env module I18N compliant. Changed the
FindVariable routine to TclpFindVariable, that now does a case
insensitive string comparison on Windows, and not on UNIX. [Bug:
1299, 1500]
1999-04-05 <stanton@scriptics.com>
* tests/io.test: Minor test cleanup.
* generic/tclEncoding.c (Tcl_CreateEncoding): Minor lint to make
it easier to compile on Digital-unix. [Bug: 1659]
* unix/configure.in:
* unix/tclUnixPort.h: Applied patch for OS/390 to handle lack of
sys/param.h. [Bug: 1725]
* unix/configure.in: Fixed BSD/OS 4.* configuration to support
shared libraries properly. [Bug: 1730]
1999-04-05 <redman@scriptics.com>
* win/tclWinDde.c: decrease timeout value for DDE calls to 30k
[Bug: 1639]
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclDecls.h:
* generic/tclInt.decls:
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
* generic/tclUtil.c: Added more functions to the Tcl stubs table,
including all Tcl_ functions not already in it (except Cmd
functions) and Tcl_GetCwd() and Tcl_Chdir() (new functions).
* tests/safe.test:
* doc/safe.n:
* generic/tclBasic.c:
* library/safe.tcl: The encoding command is not safe as-is, so
create a safe alias to mask out the "encoding system <name>" but
allow all other uses including "encoding system". Added test cases
and updated the man page for Safe Tcl.
1999-04-05 <stanton@scriptics.com>
* tests/winTime.test:
* win/tclWinTime.c: Fixed crash in clock command that occurred
when manipulating negative time values in timezones east of
GMT. [Bug: 1142, 1458]
* tests/platform.test:
* tests/fileName.test: Fixed broken tests.
* generic/tclFileName.c: Moved global regexps into thread local
storage.
* tests/socket.test: Changed so tests don't reuse sockets,
since Windows is slow to release sockets.
* win/tclWinConsole.c:
* win/tclWinPipe.c:
* win/tclWinSerial.c: Fixed race condition where background
threads were terminated while they still held a lock in the
notifier.
1999-04-02 <stanton@scriptics.com>
* tests/http.test: Fixed bad test initialization code.
* generic/tclThreadTest.c (ThreadExitProc): Fixed bug where static
memory was being returned instead of a dynamically allocated
result in error cases.
1999-04-02 <redman@scriptics.com>
* doc/dde.n:
* tools/tcl.wse.in:
* win/makefile.vc:
* win/pkgIndex.tcl:
* win/tclWinDde.c: Add new DDE package, code removed from Tk now
separated into its own package. Changed DDE-based send code into
"dde eval" command. Can be loaded into tclsh (not just wish).
Windows only.
1999-04-02 <stanton@scriptics.com>
* tests/expr.test:
* tests/for-old.test:
* tests/for.test:
* tests/foreach.test:
* tests/format.test:
* tests/httpold.test:
* tests/if.test:
* tests/init.test:
* tests/interp.test:
* tests/while.test: Added some tests for known bugs (marked with
knownBug constraint), and cleaned up a few bad tests.
* generic/regc_locale.c:
* generic/regcustom.h:
* generic/tcl.decls:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclInt.h:
* generic/tclRegexp.c:
* generic/tclScan.c:
* generic/tclTest.c:
* generic/tclUtf.c:
* win/tclWinFCmd.c:
* win/tclWinFile.c: Made various Unicode utility functions
public. The following functions were made public and added to the
stubs table:
Tcl_UtfToUniCharDString, Tcl_UniCharToUtfDString,
Tcl_UniCharLen, Tcl_UniCharNcmp, Tcl_UniCharIsAlnum,
Tcl_UniCharIsAlpha, Tcl_UniCharIsDigit, Tcl_UniCharIsLower,
Tcl_UniCharIsSpace, Tcl_UniCharIsUpper, Tcl_UniCharIsWordChar
1999-04-01 <stanton@scriptics.com>
* tests/registry.test:
* win/tclWinReg.c: Internationalized the registry code. It now
uses Unicode interfaces on NT. [Bug: 1197]
* tests/parse.test:
* generic/tclParse.c: Fixed crash due to multiple frees in parser
during error cleanup when parsing commands with more tokens than
will fit in the static area of the parse structure. [Bug: 1681]
* generic/tclInt.h: Removed duplicate declarations.
* generic/tclInt.decls:
* generic/tcl.decls: Added Tcl_WinUtfToTChar and Tcl_WinTCharToUtf
to the tclPlat table.
1999-04-01 <redman@scriptics.com>
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclBasic.c:
* generic/tclDecls.h:
* generic/StubInit.c:
* tools/genStubs.tcl:
* unix/Makefile.in:
* win/makefile.vc: Applied patch from Jan Nijtmans to fix Ultrix
multiple symbol definition problem. Now, even Tcl includes a copy
of the Tcl stub library. Also fixed TCL_MEM_DEBUG mode (for Tk).
1999-03-31 <redman@scriptics.com>
* win/tclWinConsole.c: WinNT has a bug when reading a single
character from the console. Rewrote the code for the console to
read an entire line at a time using the reader thread.
1999-03-30 <stanton@scriptics.com>
* unix/Makefile.in: Removed trailing backslash that broke the
"depend" target.
* unix/tclUnixInit.c (TclpSetInitialEncodings): Changed to avoid
calling setlocale(). We now look directly at env(LANG) and
env(LC_CTYPE) instead. [Bug: 1636]
* generic/tclFileName.c:
* generic/tclDecls.h:
* generic/tcl.decls: Removed CONST from Tcl_JoinPath and
Tcl_TranslateFileName because it changes the signature of
Tcl_JoinPath in an incompatible manner.
* generic/tclInt.h:
* generic/tclLoad.c (TclFinalizeLoad):
* generic/tclEvent.c (Tcl_Finalize): Defer unloading of loadable
modules until all exit handlers have been invoked.
[Bug: 998, 1273, 1573, 1593]
1999-03-29 <stanton@scriptics.com>
* generic/tclFileName.c:
* generic/tclDecls.h:
* generic/tcl.decls: Added CONST to Tcl_JoinPath and
Tcl_TranslateFileName.
1999-03-29 <redman@scriptics.com>
* tools/genStubs.tcl:
* unix/configure.in:
* unix/Makefile.in:
* win/makefile.vc:
* generic/tcl.h:
* generic/tclBasic.c:
* generic/tclDecls.h:
* generic/tclIntDecls.h:
* generic/tclPlatDecls.h:
* generic/tclIntPlatDecls.h: Removed the stub functions and
changed the stub macros to just use the name without params. Pass
&tclStubs into the interp (don't use tclStubsPtr because of
collisions with the stubs on Solaris).
1999-03-27 <redman@scriptics.com>
* win/makefile.bc: Removed makefile for Borland compiler, no
longer supported.
1999-03-26 <redman@scriptics.com>
* win/tclWinSerial.c:
* win/tclWinConsole.c:
* win/tclWinPipe.c: Don't close the Win32 handle for a channel if
it's a stdio handle (GetStdHandle()) during shutdown of a thread
to prevent it from destroying the stdio of other threads.
1999-03-26 <suresh@scriptics.com>
* unix/configure.in
--nameble-shared is now the default and build Tcl as a shared
library; specify --disable-shared to build a static Tcl library
and shell.
1999-03-25 <stanton@scriptics.com>
* tests/interp.test:
* generic/tclInterp.c (AliasObjCmd): Changed so aliases are
invoked at current scope in the target interpreter instead of at
the global scope. This was an incompatibility introduced in 8.1
that is being removed. [Bug: 1153, 1556]
* library/encoding/big5.enc:
* library/encoding/gb2312.enc:
* tools/encoding/big5.enc:
* tools/encoding/gb2312.enc: Added ASCII to big5 and gb2312
encodings. [Bug: 632]
* generic/tclPkg.c (Tcl_PkgRequireEx): Fixed broken clientData
initialization in package code.
* unix/Makefile.in (dist): Added tcl.decls and tclInt.decls to
source distribution. [Bug: 1571]
* doc/Thread.3: Updated documentation of Tcl_MutexLock to indicate
that the recursive locking behavior is undefined. On Windows, it
does not block, on Unix it deadlocks. [Bug: 1275]
1999-03-24 <stanton@scriptics.com>
* tests/execute.test:
* generic/tclExecute.c (TclExecuteByteCode): Fixed expression code
that incorrectly returned floating point values for integers if
the internal rep happened to be a double. Now we check to see if
the object has a string rep that looks like an integer before
using the double internal rep. [Bug: 1516]
1999-03-24 <redman@scriptics.com>
* generic/tclAlloc.c:
* generic/tclEncoding.c:
* generic/tclProc.c:
* unix/tclUnixTime.c:
* win/tclWinSerial.c: Fixed compilation warnings/errors for VC++
5.0 and 6.0 and HP-UX native compiler without -Aa or -Ae.
[Bug: 1323 1518 1324 1583 1585 1586]
* win/tclWinSock.c: Make sockets thread-safe on Windows. The
current implementation uses windows to handle events on the
socket, one for each thread (thread local storage). Previously,
there was only one window shared between threads, which didn't
work. [Bug: 1326]
1999-03-23 <stanton@scriptics.com>
* tools/tcl.wse: Fixed file association to look in the right place
for the wish icon. [Bug: 1544]
* tests/winNotify.test:
* tests/ioCmd.test:
* tests/event.test: Changed to use new style conditionals.
* tests/encoding.test: Fixed nonportable test.
* unix/dltest/configure.in:
* unix/dltest/Makefile.in: Added missing DBGX macros. [Bug: 1564]
* tests/winNotify.test:
* mac/tclMacNotify.c:
* win/tclWinNotify.c:
* unix/tclUnixNotfy.c:
* generic/tclNotify.c: Added a new Tcl_ServiceModeHook interface
that is invoked whenever the service mode changes. This is needed
to allow the Windows notifier to create a communication window the
first time Tcl is about to enter an external modal event loop
instead of at startup time. This will avoid the various problems
that people have been seeing where the system hangs when tclsh
is running outside of the event loop. [Bug: 783]
* generic/tclInt.h:
* generic/tcl.decls: Renamed TclpAlertNotifier back to
Tcl_AlertNotifier since it is part of the public notifier driver
API.
1999-03-23 <redman@scriptics.com>
* win/tclWinSerial.c: Fixed problem with fileevent on the serial
port and nonblocking mode. Gets no longer hangs, fileevents fire
whenever there is any character data on the port.
* tests/winConsole.test:
* win/tclWinConsole.c: Fixed problem with fileevents and gets from
a console stdin. Previously, fileevents were firing before an
entire line was available for reading, which meant that when you
did a gets or read, it blocked (even in nonblocking mode). Now, it
should work the same as Unix: fileevents fire when an entire line
is ready, and gets and read do not block in non-blocking mode.
Added an interactive test case to check for this.
1999-03-22 <stanton@scriptics.com>
* tests/reg.test:
* generic/regc_color.c: Applied regexp bug fix from Henry Spencer.
1999-03-19 <redman@scriptics.com>
* generic/tclCmdIL.c: Fixed the initialization of an array so that
the Sun 5.0 C compiler wouldn't complain.
* unix/configure.in: Added support for --enable-64bit. For now,
this is only supported on Solaris 7 64bit (SunOS 5.7) using the Sun
compiler (not gcc).
1999-03-18 <stanton@scriptics.com>
* win/tclWinChan.c (TclpOpenFileChannel, Tcl_MakeFileChannel):
Changed to only test for console or comm handles when the type is
FILE_TYPE_CHAR to avoid useless tests on simple files. Also
reordered tests so consoles are tested first as this is more
common.
* win/makefile.vc: Regularized usage of mkd and rmd and rm.
* library/encoding/shiftjis.enc:
* tools/encoding/shiftjis.txt: Missing/incorrect characters in
shift-jis table. [Bug: 1008, 1526]
* generic/tclInt.decls:
* generic/tcl.decls: Eliminated use of "string" and "list" from
argument lists to avoid conflicts with C++ STL. [Bug: 1181]
* win/tclWinFile.c (TclpMatchFiles): Changed to ignore the
FS_CASE_IS_PRESERVED bit and always return exactly what we get
from the system.
1999-03-17 <stanton@GASPODE>
* win/README.binary:
* win/README:
* unix/configure.in:
* generic/tcl.h:
* README: Updated version to 8.1b3.
1999-03-14 <stanton@GASPODE>
* win/tclWinConsole.c:
* win/tclWinPipe.c:
* win/tclWinSerial.c: Changed so channel drivers wait for the
reader/writer threads to exit before returning during a close
operation. This ensures that the main thread is the last thread
to exit, so the process return value is set properly.
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclIntPlatStubs.c:
* generic/tclIntStubs.c:
* generic/tclPlatDecls.h:
* generic/tclPlatStubs.c:
* generic/tclStubInit.c:
* generic/tclStubs.c: Fixed bad eol characters.
* generic/tclInt.decls: Changed "const" to "CONST" in
declarations for better portability.
* generic/tcl.decls: Renamed panic and panicVA to Tcl_Panic and
Tcl_PanicVA in the stub files.
* generic/tclInterp.c (Tcl_MakeSafe): Remove tcl_platform(user)
from safe interps.
1999-03-11 <stanton@GASPODE>
* unix/Makefile.in:
* unix/configure.in: Include compat files in the stub library in
addition to the main library. Compat files are now built for
dynamic use in all cases.
* generic/tcl.h: Changed magic number so it doesn't match the plus
patch, at Jan's request.
* unix/tclConfig.sh.in:
* unix/dltest/Makefile.in:
* unix/dltest/configure.in:
* unix/dltest/pkga.c:
* unix/dltest/pkgb.c:
* unix/dltest/pkgc.c:
* unix/dltest/pkgd.c:
* unix/dltest/pkge.c:
* unix/dltest/pkgf.c: Changed package tests to build against the
stubs library.
1999-03-10 <stanton@GASPODE>
* generic/tcl.h:
* generic/tcl.decls: Changed Tcl_ReleaseType from an enum to
macros so it can be used in .rc files.
Added Tcl_GetString.
* mac/tclMacNotify.c:
* generic/tclNotify.c:
* generic/tclInt.h:
* win/tclWinNotify.c:
* generic/tcl.h: Renamed Tcl_AlertNotifier to TclpAlertNotifier.
* generic/tclInt.decls: Added TclWinAddProcess to make it possible
for expect to use Tcl_WaitForPid(). This patch is from Gordon
Chaffee.
* mac/tclMacPort.h:
* win/tclWinInit.c:
* unix/tclUnixPort.h:
* generic/tclAsync.c: Added TclpAsyncMark to fix bug in async
handling on Windows where async events don't wake up the event
loop. This patch comes from Gordon Chaffee.
* generic/tcl.decls: Fixed declarations of reserved slots.
1999-03-10 <redman@scriptic.com>
* generic/tclCompile.h: Ensure that the ByteCode struct is binary
compatible with the version in 8.0.6.
* generic/tcl.h:
* generic/tclBasic.c: Add Tcl_GetVersion() function to the public
C API to allow programs to check the version number of the Tcl
library at runtime. Also added an enum to clarify the release
level (alpha, beta, final).
1999-03-09 <stanton@GASPODE>
* Integrated changes from Tcl 8.0 including:
stubs mechanism
configure patches from Jan Nijtmans
rename of panic to Tcl_Panic
1999-03-08 <lfb@scriptics.com>
* win/tclWin32Dll.c: Removed Dll instance from thread-local
storage.
1999-03-08 <stanton@GASPODE>
* generic/tcl.h: Moved Tcl_Mutex, etc. macros above the inclusion
of tclDecls.h to avoid macro conflicts.
* generic/tclInt.h:
* generic/regc_color.c:
* generic/regcomp.c:
* generic/tclCmdIL.c:
* generic/tclCmdAH.c:
* generic/tclIOCmd.c:
* generic/tclParse.c:
* generic/tclStringObj.c:
* unix/tclUnixNotfy.c: Cleaned up various compiler warnings,
eliminated UCHAR bugs.
* unix/tclUnixNotfy.c:
* unix/tclUnixThrd.c:
* generic/tclThreadTest.c:
* mac/tclMacThrd.c: Changed TclpCondition*() to Tcl_Condition*().
* INTEGRATED PATCHES FROM 8.0.6:
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclBasic.c:
* generic/tclDecls.h:
* generic/tclInt.decls:
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclIntPlatStubs.c:
* generic/tclIntStubs.c:
* generic/tclPlatDecls.h:
* generic/tclPlatStubs.c:
* generic/tclStubInit.c:
* generic/tclStubLib.c:
* generic/tclStubs.c:
* tools/genStubs.tcl:
* unix/configure.in:
* unix/Makefile.in:
* unix/tclConfig.sh.in:
* win/makefile.vc:
* win/tclWinPort.h: Added Tcl stubs implementation. There are
now two new macros USE_TCL_STUBS and USE_TCL_STUB_PROCS that
enable use of stubs and disable stub macros respectively. All of
the public and private function declarations from tcl.h and
tclInt.h have moved into the *.decls files and the *Stubs.c and
*Decls.h files are generated using the genStubs.tcl script.
* unix/Makefile.in:
* unix/configure.in:
* unix/ldAix: Enhanced AIX shared library support.
* win/tclWinSock.c: Removed a bunch of extraneous PASCAL FAR
attributes from internal functions.
* win/tclWinReg.c: Changed registry package to use stubs mechanism
so it no longer depends on the specific version of Tcl.
* doc/AddErrInfo.3:
* doc/Eval.3:
* doc/PkgRequire.3:
* doc/SetResult.3:
* doc/StringObj.3:
* generic/tcl.h:
* generic/tclBasic.c:
* generic/tclPanic.c:
* generic/tclStringObj.c:
* generic/tclUtil.c:
* unix/mkLinks: Added va_list versions of all VARARGS
functions so they can be invoked from the stub functions.
* doc/package.n:
* doc/PkgRequire.3:
* generic/tclPkg.c: Added Tcl_PkgProvideEx, Tcl_RequireEx,
Tcl_PresentEx, and Tcl_PkgPresent. Added "package present"
command.
* generic/tclFileName.c:
* mac/tclMacFile.c:
* mac/tclMacShLib.exp:
* unix/tclUnixFile.c:
* win/tclWinFile.c: Changed so TclGetUserHome is defined on
all platforms, even though it is currently a noop on mac and
windows, and renamed it to TclpGetUserHome.
* generic/tclPanic.c:
* generic/panic.c: Renamed panic to Tcl_Panic.
1999-02-25 <redman@scriptics.com>
* win/makefile.vc: Added tclWinConsole.c and tclWinSerial.c
* win/tclWinConsole.c: New code to properly deal with fileevents
and nonblocking mode on consoles.
* win/tclWinSerial.c: New code to properly deal with fileevents
and nonblocking mode on serial ports.
* win/tclWinPipe.c:
* win/tclWinPort.h: Exported functions to allow creation of pipe
channels from tclWinChan.c
* win/tclWinChan.c: Check the type of a channel, including for the
standard (stdin/stdout/stderr), and use the correct channel type
to create the channel (file, serial, console, or pipe).
1999-02-11 <stanton@GASPODE>
* README:
* generic/tcl.h:
* win/README.binary:
* win/README:
* unix/configure.in:
* mac/README: Updated version numbers to 8.1b2.
1999-02-10 <stanton@GASPODE>
* library/auto.tcl: Fixed auto_mkindex so it handles .tbc files.
Did some general cleanup to handle bad eval statements that didn't
use "list".
* unix/mkLinks:
* doc/SetVar.3:
* generic/tcl.h:
* generic/tclVar.c: Restored Tcl_ObjGetVar2 and Tcl_ObjSetVar2
from 8.0. Renamed Tcl_Get/SetObjVar2 to Tcl_GetVar2Ex and
Tcl_SetVar2Ex.
1999-02-10 <stanton@GASPODE>
INTEGRATED PATCHES FROM 8.0.5b2:
* test/winPipe.test: Changed to remove echoArgs.tcl temporary file
when done.
* tests/cmdAH.test:
* generic/tclFileName.c (TclGetExtension): Changed behavior so the
split happens at the last period in the name instead of the first
period of the last run of periods. So, "foo..o" is split into
"foo." and ".o" now. [Bug: 1126]
* win/makefile.vc: Added better support for paths with spaces in
the name. Added .lib and support .dlls to the install-binaries
target. Added generate of a pkgIndex.tcl script to the
install-libraries target.
* win/tclAppInit.c:
* unix/tclAppInit.c:
* mac/tclMacAppInit.c:
* generic/tclTest.c: Changed some EXTERN declarations to extern
since they are not defining exported interfaces. This avoids
generating useless declspec() attributes and makes the windows
makefile simpler.
* generic/tcl.h: Moved Tcl_AppInit declaration to end and cleared
out TCL_STORAGE_CLASS so it is not declared with a declspec().
* tests/interp.test:
* generic/tclInterp.c (DeleteAlias): Changed to use
Tcl_DeleteCommandFromToken so we handle renames properly. This
avoids senseless panic. [Bug: 736]
* unix/tclUnixChan.c:
* win/tclWinSock.c:
* doc/socket.n: Applied Gordon Chaffee's patch to handle failures
during asynchronous socket connection operations. This adds a new
"-error" fconfgure option to socket channels. [Bug: 893]
* generic/tclProc.c:
* generic/tclNamesp.c:
* generic/tclInt.h:
* generic/tclCmdIL.c:
* generic/tclBasic.c:
* generic/tclVar.c: Applied patch from Viktor Dukhovni to
rationalize TCL_LEAVE_ERR_MSG behavior when creating variables.
* generic/tclVar.c: Fixed bug in namespace tail computation.
Fixed bug where upvar could resurrect a namespace variable whose
namespace had been deleted.
* generic/tclCompile.c (TclCompileExprCmd): Eliminated yet another
bogus optimization in expression compilation.
* unix/configure.in: Added branch for BSD/OS-4* to shared library
case statement. [Bug: 975]
Fixed to correctly handle IRIX 6.5 n32 library support. [Bug: 1117]
* win/winDumpExts.c: Patched to be pickier about stripping
@'s. [Bug: 920]
* library/http2.0/http.tcl: Added catch around eof test in
CopyDone since the user may have already called http::reset.
[Bug: 1108]
* unix/configure.in: Changed Linux and IRIX to set SHLIB_LIBS to
LIBS so shared libraries are linked with the system
libraries. [Bug: 1018]
* generic/tclCompile.c (CompileExprWord): Fixed exception stack
overflow bug caused by missing statement. [Bug: 928]
* generic/tclIOCmd.c:
* generic/tclBasic.c: Objectified the "open" command. [Bug: 1113]
* generic/tclPosixStr.c (Tcl_ErrnoId, Tcl_ErrnoMsg): When using
egcs, ENOTSUP and EOPNOTSUPP are the same, so now we handle that
case. [Bug: 1137]
* library/init.tcl: Various small changes requested by Jan Nijtmans.
- If the variable $tcl_library contains the empty string, this
empty string will be put in $auto_path. This is not useful at all,
it only slows down later package processing.
- If the variable tcl_pkgPath is not set, the "unset __dir"
fails. Thich makes init.tcl totally unusable. Better put a "catch"
around it.
- In the function tcl_findLibraries, the "string match" function
only works correctly if $tcl_patchLevel is in one of the forms
"?.?a?", "?.?b?" or "?.?.?". Could a "regexp" be used instead,
then it allows anything to be appended to the patchLevel
string. And it is more efficient.
- The tclPkgSetup function assumes that if $type != "load" then
the type must be "source". This needn't be true. Some users want
to add their own setup types.
[RFE: 1138] [Bug: 978]
* win/tclWinReg.c:
* doc/registry.n: Added support for HKEY_PERFORMANCE_DATA and
HKEY_DYN_DATA keys. [Bug: 1109]
* win/tclWinInit.c (TclPlatformInit): Added code to ensure
tcl_pkgPath is set to "" when no registry entry is found. [Bug: 978]
1999-02-01 <stanton@GASPODE>
* generic/tclBasic.c:
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclExecute.c:
* generic/tclHistory.c:
* generic/tclIO.c:
* generic/tclIOUtil.c:
* generic/tclInterp.c:
* generic/tclMain.c:
* generic/tclNamesp.c:
* generic/tclParse.c:
* generic/tclProc.c:
* generic/tclTest.c:
* generic/tclTimer.c:
* generic/tcl.h: Made eval interfaces compatible with 8.0 by
renaming Tcl_EvalObj to Tcl_EvalObjEx, renaming Tcl_Eval2 to
Tcl_EvalEx and restoring Tcl_EvalObj and Tcl_GlobalEvalObj
interfaces so they match Tcl 8.0.
1999-01-28 <stanton@GASPODE>
* Merged Tcl 8.0.5b1 changes.
* generic/tclUtil.c (Tcl_DStringSetLength): Changed so the buffer
overallocates in a manner similar to Tcl_DStringAppend. This
should improve performance for TclUniCharToUtfDString.
1998-12-11 === Tcl 8.1b1 Release ===
1998-12-10 <stanton@GASPODE>
* Fixed lots of files that used TCL_THREAD instead of TCL_THREADS.
* generic/tclEncoding.c (Tcl_FreeEncoding): Moved most of the code
into a static FreeEncoding routine that does not grab the
encodingMutex to avoid deadlocks/races when called from other
routines that already have the mutex.
1998-12-09 <stanton@GASPODE>
* library/msgcat1.0/msgcat.tcl: Fixed bad export list, fixed so
all locale strings are converted to lower case, including file
names.
* generic/regcomp.c (makescan): Fixed bug in longest match case
that caused anchored patterns to fail. [Bug: 897]
1998-12-08 <stanton@GASPODE>
* library/msgcat1.0/msgcat.tcl: changed mc to invoke mcunknown in
the calling context, changed locale lookups to be case insensitive
1998-12-07 <stanton@GASPODE>
* generic/tclAlloc.c (TclpRealloc): Fixed a memory allocation bug
where big blocks that were reallocated into a different heap
location were not being placed into the bigBlocks list. [Bug: 933]
* tests/msgcat.test: Added message catalog test suite.
* library/msgcat1.0/msgcat.tcl: minor bug fixes, integrated latest
changes from Mark Harrison.
1998-12-04 <stanton@GASPODE>
* library/msgcat1.0/msgcat.tcl: Changed code to conform to Tcl
coding standards. Changed to use file join for portability.
* library/msgcat1.0: Added initial implementaion of Tcl message
catalog package contributed by Mark Harrison.
1998-12-03 <stanton@GASPODE>
* win/tclWinPipe.c (BuildCommandLine): Fixed bug that kept
arguments containing spaces from being properly quoted.
* tests/defs: Changed so auto_path is set to only contain the Tcl
library directory. This keeps the tests from accidentally picking
up stuff in installed packages.
* generic/tclUtil.c (Tcl_StringMatch): Changed to match 8.0
behavior in corner case where there is no closing bracket.
1998-12-02 <stanton@GASPODE>
* win/tclWinPipe.c (TclpCreateCommandChannel): Changed
reader/writer threads to have THREAD_PRIORITY_HIGHEST so they will
have a chance to run whenever there is something to do.
* generic/tclIO.c (WriteBytes, WriteChars): Fixed so extraneous
flushes do not happen in line mode.
(TranslateOutputEOL): Made translation more efficient in line mode
and fixed a buffer overflow bug in CRLF translation. [Bug: 887]
1998-12-02 <welch@SAGE>
* Updated patchlevel to 8.1b1
1998-12-02 <stanton@GASPODE>
* generic/regc_color.c (subcolor): Added check for error case to
avoid an out of bounds array reference.
* generic/tclCmdAH.c (Tcl_EncodingObjCmd): Changed to avoid using
Tcl_DStringResult because it is not binary clean.
* generic/tclParse.c (Tcl_ParseCommand): Fixed bug in comment
parsing where a trailing comment looked like an incomplete
command.
1998-12-02 <welch@SAGE>
* Merged changes from 8.0.4, especially the new pkg_mkIndex
1998-12-01 <stanton@GASPODE>
* generic/tclIO.c (Tcl_ReadChars): Added a call to UpdateInterest
so we don't block when there is data sitting in the buffers.
* generic/tclTest.c (TestevalobjvObjCmd): Updated for EvalObjv
change.
* tests/parse.test: Updated tests for EvalObjv change.
* generic/tclParse.c (EvalObjv, Tcl_EvalObjv): Changed
Tcl_EvalObjv interface to remove string and length arguments,
preserved original interface as EvalObjv for internal use.
* generic/tcl.h: Changed Tcl_EvalObjv interface to remove string
and length arguments.
* doc/Eval.3: Updated documentation for Tcl_EvalObjv to remove
string and length arguments.
* generic/tclCompCmds.c (TclCompileForeachCmd): Fixed code that
corrupted the exceptDepth value in the compile environment when
foreach failed to compile inline. [Bug: 884]
* library/encoding/euc-kr.enc:
* library/encoding/ksc5601.enc:
* tools/encoding/ksc5601.txt:
* unix/tclUnixInit.c: Added support for Korean EUC.
* win/tclWinChan.c (TclpGetDefaultStdChannel): added check for a
failure during Tcl_MakeFileChannel.
1998-11-30 <stanton@GASPODE>
* unix/tclUnixNotfy.c (Tcl_WaitForEvent): Fixed hang that occurs
when trying to close a pipe that is currently being waited on by
the notifier thread. [Bug: 607]
* unix/tclUnixFCmd.c (GetPermissionsAttribute): Increase size of
returnString buffer to avoid overflow. [Bug: 584]
* generic/tclThreadTest.c (TclThreadSend): Fixed memory leak due
to use of TCL_VOLATILE instead of TCL_DYNAMIC.
* generic/tclThread.c (TclRememberSyncObject): Fixed memory leak
caused by failure to reuse condition variables.
* unix/tclUnixNotfy.c: (Tcl_AlertNotifier, Tcl_WaitForEvent,
NotifierThreadProc, Tcl_InitNotifier): Fixed race condition caused
by incorrect use of condition variables when sending messages
between threads.. [Bug: 607]
* generic/tclTestObj.c (TeststringobjCmd): MAX_STRINGS was off by one
so the strings array was too small.
* generic/tclCkalloc.c (Tcl_DbCkfree): Moved mutex lock so
ValidateMemory is done inside the mutex to avoid a race condition
when validate_memory is enabled. [Bug: 880]
1998-11-23 <stanton@GASPODE>
* regexec.c: more performance tuning from Henry Spencer.
1998-11-17 <stanton@GASPODE>
* tclScan.c: moved "scan" implementation out of tclCmdMZ.c and
added Unicode support. This required a complete reimplementation
of the command to avoid using scanf(), which isn't Unicode aware.
Two new features were added in the process: %n to return the
current number of characters consumed, and XPG3-style %n$ argument
order specifiers similar to those provided by the "format"
command. [Bug: 833]
* tclAlloc.c: changed so allocated memory is always 8-byte aligned
to improve memory performance and to ensure that it will work on
systems that don't like accessing 4-byte aligned values
(e.g. Solaris and HP-UX). [Bug: 834]
1998-11-06 <stanton@GASPODE>
* tclVar.c (TclGetIndexedScalar): Fixed bug 796, var name was
getting lost before being passed to CallTraces.
1998-10-21 <stanton@GASPODE>
* added "encoding" command
* Moved internal regexp declarations from tclInt.h to tclRegexp.h
* integrated regexp updates from Henry Spencer
1998-10-15 <stanton@GASPODE>
* tclUtf.c: added Unicode character table support
* tclInt.h: added TclUniCharIsWordChar
* tclCmdMZ.c (Tcl_StringObjCmd): added "totitle" subcommand,
changed "wordend" and "wordstart" to properly handle Unicode word
characters and connector punctuation
1998-10-05 <stanton@GASPODE>
* auto.tcl, package.tcl: fixed SCCS strings
* tclIndex: updated index to reflect 8.1 files
* tclCompile.c (TclCompileScript): changed to avoid modifying the
input string in place because name lookup operations could have
arbitrary side effects
* tclInterp.c: added guard against deleting current interpreter
* tclMacFile.c, tclUnixFile.c, tclWinFile.c, tclFileName.c: added
warnings around code that modifies strings in place
* tclExecute.c: fixed off-by-one copying error, fixed merge bugs
* tclEvent.c: changed so USE_TCLALLOC is tested for value instead
of definition
* tclCompCmds.c: replaced SCCS strings, added warnings around code
that modifies strings in place
* interp.test: added test for interp deleting itself
1998-09-30 <stanton@GASPODE>
* makefile.vc: fixed so TCL_LIBRARY is set before running tcltest
* tclWin32Dll.c: removed TclpFinalize, cleanup of merges
|