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
|
2006-10-30 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c (TEOVI): insured that the interp's callObjc/v
fields are restored after traces run, as they be spoiled. This was
causing a segfault in tcllib's profiler tests.
2006-10-30 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c (INST_MOD): Corrected improper testing of
* tests/expr.test: the sign of bignums when applying Tcl's
division rules. Thanks to Peter Spjuth. [Bug 1585704]
2006-10-29 Miguel Sofer <msofer@users.sf.net>
* generic/tclNamesp.c (EnsembleImplementationCmd):
* tests/namespace.test (47.7-8): reverted a wrong "optimisation" that
completely broke snit; added two tests.
2006-10-28 Donal K. Fellows <dkf@users.sf.net>
* generic/tclProc.c (ObjInterpProcEx, TclObjInterpProcCore): Split the
core of procedures to make it easier to build procedure-like code
without going through horrible contortions. This is the last critical
component to make advanced OO systems workable as simple loadable
extensions. TOIPC is now in the internal stub table.
(MakeProcError, MakeLambdaError): Refactored ProcessProcResultCode to
be simpler, some of which goes to TclObjInterpProcCore, and the rest
of which is now in these far simpler routines which just do errorInfo
stack generation for different types of procedure-like entity.
* tests/apply.test (apply-5.1): Updated to expect the more informative
form of message.
2006-10-27 Donal K. Fellows <dkf@users.sf.net>
* generic/tclVar.c (HasLocalVars): New macro to make various bits and
pieces cleaner.
* generic/tclNamesp.c (TclSetNsPath): Expose SetNsPath() through
internal stubs table with semi-external name.
* generic/tclInt.h (CallFrame): Add a field for handling context data
for extensions (like object systems) that should be tied to a call
frame (and not a command or interpreter).
* generic/tclBasic.c (TclRenameCommand): Change to take CONST args;
they were only ever used in a constant way anyway, so this appears to
be a spot that was missed during TIP#27 work.
2006-10-26 Miguel Sofer <msofer@users.sf.net>
* generic/tclProc.c (SetLambdaFromAny): minor change, eliminate
redundant call to Tcl_GetString (thanks aku).
* generic/tclInterp.c (ApplyObjCmd):
* generic/tclNamesp.c (EnsembleImplementationCmd): replaced ckalloc
(heap) with TclStackAlloc (execution stack).
2006-10-24 Miguel Sofer <msofer@users.sf.net>
* tests/info.test (info-9.11-12): tests for [Bug 1577492]
* tests/apply.test (apply-4.3-5): tests for [Bug 1574835]
* generic/tclProc.c (ObjInterpProcEx): disable itcl hacks for calls
from ApplyObjCmd (islambda==1), as they mess apply's error messages
[Bug 1583266]
2006-10-23 Miguel Sofer <msofer@users.sf.net>
* generic/tclProc.c (ApplyObjCmd): fix wrong#args for apply by using
the ensemble rewrite engine, [Bug 1574835].
* generic/tclInterp.c (AliasObjCmd): previous commit missed usage of
TCL_EVAL_NOREWRITE for aliases.
* generic/tclBasic.c (TclEvalObjvInternal): removed redundant check
for ensembles [Bug 1577628].
* library/clock.tcl (format, scan): corrected wrong # args messages to
* tests/clock.test (3.1, 34.1): make use of the new rewrite
capabilities of [info level]
* generic/tcl.h: Lets TEOV update the iPtr->callObj[cv] new
* generic/tclBasic.c: fields, except when the flag bit
* generic/tclInt.h: TCL_EVAL_NOREWRITE is present. These values
* generic/tclNamesp.c: are used by Tcl_PushCallFrame to initialise
* generic/tclProc.c: the frame's obj[cv] fields, and allows
* tests/namespace.test: [info level] to know and use ensemble
rewrites [Bug 1577492].
***POTENTIAL INCOMPATIBILITY***
The return value from [info level 0] on interp alias calls is changed:
previously returned the target command (including curried values), now
returns the source - what was actually called.
2006-10-23 Miguel Sofer <msofer@users.sf.net>
* generic/tcl.h: Modified the Tcl call stack so there is
* generic/tclBasic.c: always a valid CallFrame, even at level 0
* generic/tclCmdIL.c: [Patch 1577278]. Most of the changes
* generic/tclInt.h: involve removing tests for a NULL
* generic/tclNamesp.c: iPtr->(var)framePtr. There is now a
* generic/tclObj.c: CallFrame pushed at interp creation with a
* generic/tclProc.c: pointer to it stored in iPtr->rootFramePtr.
* generic/tclTrace.c: A second unused field in Interp is
* generic/tclVar.c: hijacked to enable further functionality,
currently unused (but with several FRQs depending on it).
***POTENTIAL INCOMPATIBILITY***
Any user that includes tclInt.h and needs to determine if it is
running at level 0 should change (iPtr->varFramePtr == NULL) to
(iPtr->varFramePtr == iPtr->rootFramePtr).
2006-10-23 Don Porter <dgp@users.sourceforge.net>
* README: Bump version number to 8.5a6
* generic/tcl.h:
* library init.tcl:
* tools/tcl.wse.in:
* unix/configure.in:
* unix/tcl.spec:
* win/README.binary:
* win/configure.in:
* unix/configure: autoconf-2.59
* win/configure:
2006-10-21 Miguel Sofer <msofer@users.sf.net>
* generic/tcl.h:
* generic/tclHash.c: Tcl_FindHashEntry now calls Tcl_CreateHashEntry
with a newPtr set to NULL: this would have caused a segfault
previously and eliminates duplicated code. A macro has been added to
tcl.h (only used when TCL_PRESERVE_BINARY_COMPATABALITY is not set -
ie, not by default).
2006-10-20 Reinhard Max <max@tclers.tk>
* unix/configure.in: Added autodetection for OS-supplied timezone
* unix/Makefile.in: files and configure switches to override the
* unix/configure: detected default.
2006-10-20 Daniel Steffen <das@users.sourceforge.net>
*** 8.5a5 TAGGED FOR RELEASE ***
* tools/tcltk-man2html.tcl: add support for alpha & beta versions to
useversion glob pattern. [Bug 1579941]
2006-10-18 Don Porter <dgp@users.sourceforge.net>
* changes: 8.5a5 release date set
* doc/Encoding.3: Missing doc updates (mostly Table of
* doc/Ensemble.3: Contents) exposed by `make checkdoc`
* doc/FileSystem.3:
* doc/GetTime.3:
* doc/PkgRequire.3:
2006-10-17 Miguel Sofer <msofer@users.sf.net>
* generic/tclInterp.c (ApplyObjCmd): fixed bad error in 2006-10-12
commit: interp released too early. Spotted by mistachkin.
2006-10-16 Miguel Sofer <msofer@users.sf.net>
* tclProc.c (SetLambdaFromAny):
* tests/apply.test (9.1-9.2): plugged intrep leak [Bug 1578454],
found by mjanssen.
2006-10-16 Andreas Kupries <andreask@activestate.com>
* generic/tclBasic.c: Moved TIP#219 cleanup to DeleteInterpProc.
2006-10-16 Daniel Steffen <das@users.sourceforge.net>
* changes: updates for 8.5a5 release.
* unix/tclUnixThrd.c (TclpThreadGetStackSize): Darwin: fix for main
thread, where pthread_get_stacksize_np() returns incorrect info.
* macosx/GNUmakefile: don't redo prebinding of non-prebound binaires.
2006-10-16 Don Porter <dgp@users.sourceforge.net>
* generic/tclPkg.c (ExactRequirement): Plugged memory leak. Also
changed Tcl_Alloc()/Tcl_Free() calls to ckalloc()/ckfree() for easier
memory debugging in the future. [Bug 1568373]
* library/tcltest/tcltest.tcl: Revise tcltest bump to 2.3a1.
* library/tcltest/pkgIndex.tcl: This permits more features to be
* unix/Makefile.in: added to tcltest before we reach version 2.3.0,
* win/Makefile.in: best timed to match the release of Tcl 8.5.0.
* win/makefile.vc: This also serves as a demo of TIP 268 features.
2006-10-13 Colin McCormack <coldstore@users.sf.net>
* win/tclWinFile.c: corrected erroneous attempt to protect against
NULL return from Tcl_FSGetNormalizedPath per [Bug 1548263] causing
[Bug 1575837].
* win/tclWinFile.c: alfredd supplied patch to fix [Bug 1575837]
2006-10-13 Daniel Steffen <das@users.sourceforge.net>
* unix/tclUnixThrd.c (TclpThreadGetStackSize): on Darwin, use
* unix/tcl.m4: pthread_get_stacksize_np() API to get thread stack size.
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
2006-10-12 Miguel Sofer <msofer@users.sf.net>
* generic/tclInterp.c (ApplyObjCmd):
* tests/interp.test (interp-14.5-10): made [interp alias] use the
ensemble rewrite machinery to produce better error messages [Bug
1576006]
2006-10-12 David Gravereaux <davygrvy@pobox.com>
* win/nmakehlp.c: Replaced all wnsprintf() calls with snprintf().
wnsprintf was not in my shwlapi header file (VC++6)
2006-10-11 Don Porter <dgp@users.sourceforge.net>
* generic/tclPkg.c (Tcl_PackageRequireEx): Corrected crash when
argument version=NULL passed in.
2006-10-10 Don Porter <dgp@users.sourceforge.net>
* changes: Updates for 8.5a5 release.
* generic/tclNamespace.c (TclTeardownNamespace): After the
commandPathSourceList of a namespace is cleared, set the
commandPathSourceList to NULL so we don't try to walk the list a
second time, possibly after it is freed. [Bug 1566526]
* tests/namespace.test (namespace-51.16): Added test.
2006-10-09 Miguel Sofer <msofer@users.sf.net>
* doc/UpVar.3: brough the docs in accordance to the code. Ever since
8.0, Tcl_UpVar(2)? accepts TCL_NAMESPACE_ONLY as a flag value, and
var-3.4 tests for proper behaviour. The docs only allowed 0 and
TCL_GLOBAL_ONLY. [Bug 1574099]
2006-10-09 Miguel Sofer <msofer@users.sf.net>
* tests/*.test: updated all tests to refer explicitly to the global
variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many
were relying on the alternative lookup in the global namespace, that
feature is tested specifically in namespace and variable tests.
The modified testfiles are: apply.test, basic.test, case.test,
cmdIL.test, cmdMZ.test, compExpr-old.test, error.test, eval.test,
event.test, expr.test, fileSystem.test, for.test, http.test, if.test,
incr-old.test, incr.test, interp.test, io.test, ioCmd.test, load.test,
misc.test, namespace.test, parse.test, parseOld.test, pkg.test,
proc-old.test, set.test, switch.test, tcltest.test, thread.test,
var.test, while-old.test, while.test.
2006-10-06 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/rules.vc: [Bug 1571954] avoid /RTCc flag with MSVC8
2006-10-06 Pat Thoyts <patthoyts@users.sourceforge.net>
* doc/binary.n: TIP #275: Support unsigned values in binary
* generic/tclBinary.c: command. Tests and documentation updated.
* tests/binary.test:
2006-10-05 Andreas Kupries <andreask@activestate.com>
* library/tm.tcl: Fixed bug in TIP #189 implementation, now allowing
'_' in module names.
2006-10-05 Jeff Hobbs <jeffh@ActiveState.com>
* library/http/http.tcl (http::geturl): only do geturl url rfc 3986
validity checking if $::http::strict is true (default true for 8.5).
[Bug 1560506]
* generic/tcl.h: note limitation on changing Tcl_UniChar size
* generic/tclEncoding.c (UtfToUnicodeProc, UnicodeToUtfProc):
* tests/encoding.test (encoding-16.1): fix alignment issues in
unicode <> utf conversion procs. [Bug 1122671]
2006-10-05 Miguel Sofer <msofer@users.sf.net>
* generic/tclVar.c (Tcl_LappendObjCmd):
* tests/append.test(4.21-22): fix for longstanding [Bug 1570718],
lappending nothing to non-list. Reported by lvirden
2006-10-04 Kevin Kenny <kennykb@acm.org>
* tzdata/: Olson's tzdata2006m.
2006-10-01 Kevin Kenny <kennykb@acm.org>
* tests/clock.test (clock-49.2): Removed a locale dependency that
caused a spurious failure in the German locale. [Bug 1567956]
2006-10-01 Miguel Sofer <msofer@users.sf.net>
* doc/Eval.3 (TclEvalObjv): added note on refCount management for the
elements of objv, [Bug 730244].
2006-10-01 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/tclWinFile.c: Handle possible missing define.
* win/tclWinFile.c (TclpUtime): [Bug 1420432] file mtime fails for
* tests/cmdAH.test: directories on windows
* tests/winFile.test: Handle Msys environment a little differently in
getuser function. Fix for [Bug 1567956].
2006-09-30 Miguel Sofer <msofer@users.sf.net>
* generic/tclUtil.c (Tcl_SplitList): optimisation, [Patch 1344747] by
dgp.
* generic/tclInt.decls:
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclObj.c:
* generic/tclStubInit.c: added an internal function TclObjBeingDeleted
to provide info as to the reason for the loss of an internal rep. [FR
1512138]
* generic/tclCompile.c:
* generic/tclHistory.c:
* generic/tclInt.h:
* generic/tclProc.c: made Tcl_RecordAndEvalObj not call "history" if
it has been redefined to an empty proc, in order to reduce the noise
when debugging [FR 1190441]. Moved TclCompileNoOp from tclProc.c to
tclCompile.c
2006-09-28 Andreas Kupries <andreask@activestate.com>
* generic/tclPkg.c (CompareVersions): Bugfix. Check string lengths
* tests/pkg.test: before comparison. The shorter string is the smaller
number. Added testcases as well. Interestingly all existing test cases
for vcompare compared numbers of the same length with each other. See
[Bug 1563836].
2006-09-28 Miguel Sofer <msofer@users.sf.net>
* generic/tclIO.c (Tcl_GetsObj): added two test'n'panic guards for
possible NULL derefs, [Bug 1566382] and coverity #33.
2006-09-27 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Corrected error in INST_LSHIFT in the
* tests/expr.test: calculation done to determine whether a shift
in the (long int) type is possible. The calculation had literal value
"1" where it needed a value "1L" to compute the correct result. Error
detected via testing with the math::bigfloat package [Bug 1567222]
* generic/tclPkg.c (CompareVersion): Flatten strcmp() results to
{-1, 0, 1} to match expectations of CompareVersion() callers.
2006-09-27 Miguel Sofer <msofer@users.sf.net>
* generic/regc_color.c (singleton):
* generic/regc_cvec.c (addmcce):
* generic/regcomp.c (compile, dovec): the static function addmcce does
nothing when called with two NULL pointers; the only call is by
compile with two NULL pointers (regcomp.c #includes regc_cvec.c).
Large parts (all?) the code for mcce (multi character collating
element) that we do not use is ifdef'ed out with the macro
REGEXP_MCCE_ENABLE.
This silences coverity bugs 7, 16, 80
* generic/regc_color.c (uncolorchain):
* generic/regc_nfa.c (freearc): changed tests and asserts to
equivalent formulation, designed to avoid an explicit comparison to
NULL and satisfy coverity that 6 and 9 are not bugs.
2006-09-27 Andreas Kupries <andreask@activestate.com>
* tests/pkg.test: Added test for version comparison at the 32bit
boundary. [Bug 1563836].
* generic/tclPkg.c: [Bug 1563836]. Rewrote CompareVersion to perform
string comparison instead of numeric. This breaks through the 32bit
limit on version numbers. See code for details (handling of leading
zeros, signs, etc.). un-CONSTed some arguments of CompareVersions,
RequirementSatisfied, and AllRequirementsSatisfied. The new compare
modifies the string (temporary string terminators). All callers use
heap-allocated ver-intreps, so we are good with that.
2006-09-27 Miguel Sofer <msofer@users.sf.net>
* generic/tclFileName.c (TclGlob): added a panic for a call with
TCL_GLOBMODE_TAILS and pathPrefix==NULL. This would cause a segfault,
as found by coverity #26.
2006-09-26 Kevin Kenny <kennykb@acm.org>
* doc/Encoding.3: Added covariant 'const' qualifier for the
* generic/tcl.decls: Tcl_EncodingType argument to
* generic/tclEncoding.c: Tcl_CreateEncoding. [Further TIP#27 work.]
* generic/tclDecls.h: Reran 'make genstubs'.
2006-09-26 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/makefile.vc: Additional compiler flags and amd64 support.
* win/nmakehlp.c:
* win/rules.vc:
2006-09-26 Don Porter <dgp@users.sourceforge.net>
* generic/tcl.h: As 2006-09-22 commit from Donal K. Fellows
demonstrates, "#define NULL 0" is just wrong, and as a quotable chat
figure observed, "If NULL isn't defined, we're not using a C compiler."
Improper fallback definition of NULL removed.
2006-09-25 Pat Thoyts <patthoyts@users.sourceforge.net>
* generic/tcl.h: More fixing which struct stat to refer to.
* generic/tclGetDate.y: Some casts from time_t to int required.
* generic/tclTimer.c: Tcl_Time structure members are longs.
* win/makefile.vc: Support for varying compiler options
* win/rules.vc: and build to platform-specific subdirs.
2006-09-25 Andreas Kupries <andreask@activestate.com>
* generic/tclIO.c (Tcl_StackChannel): Fixed [Bug 1564642], aka
coverity #51. Extended loop condition, added checking for NULL to
prevent seg.fault.
2006-09-25 Andreas Kupries <andreask@activestate.com>
* doc/package.n: Fixed nits reported by Daniel Steffen in the TIP#268
changes.
2006-09-25 Kevin B. Kenny <kennykb@acm.org>
* generic/tclNotify.c (Tcl_DeleteEvents): Simplified the code in hopes
of making the invariants clearer and proving to Coverity that the
event queue memory is managed correctly.
2006-09-25 Donal K. Fellows <dkf@users.sf.net>
* generic/tclNotify.c (Tcl_DeleteEvents): Make it clear what happens
when the event queue is mismanaged. [Bug 1564677], coverity bug #10.
2006-09-24 Miguel Sofer <msofer@users.sf.net>
* generic/tclParse.c (Tcl_ParseCommand): also return an error if
start==NULL and numBytes<0. This is coverity's bug #20
* generic/tclStringObj.c (STRING_SIZE): fix allocation for 0-length
strings. This is coverity's bugs #54-5
2006-09-22 Andreas Kupries <andreask@activestate.com>
* generic/tclInt.h: Moved TIP#268's field 'packagePrefer' to the end
of the structure, for better backward compatibility.
2006-09-22 Andreas Kupries <andreask@activestate.com>
TIP#268 IMPLEMENTATION
* generic/tclDecls.h: Regenerated from tcl.decls.
* generic/tclStubInit.c:
* doc/PkgRequire.3: Documentation of extended API, extended testsuite.
* doc/package.n:
* tests/pkg.test:
* generic/tcl.decls: Implementation.
* generic/tclBasic.c:
* generic/tclConfig.c:
* generic/tclInt.h:
* generic/tclPkg.c:
* generic/tclTest.c:
* generic/tclTomMathInterface.c:
* library/init.tcl:
* library/package.tcl:
* library/tm.tcl:
2006-09-22 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclThreadTest.c (TclCreateThread): Use NULL instead of 0 as
end-of-strings marker to Tcl_AppendResult; the difference matters on
64-bit machines. [Bug 1562528]
2006-09-21 Don Porter <dgp@users.sourceforge.net>
* generic/tclUtil.c: Dropped ParseInteger() routine. TclParseNumber
covers the task just fine.
2006-09-19 Donal K. Fellows <dkf@users.sf.net>
* generic/tclEvent.c (Tcl_VwaitObjCmd): Rewrite so that an exceeded
limit trapped in a vwait cannot cause a dangerous dangling trace.
2006-09-19 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c (INST_EXPON): Native type overflow detection
* tests/expr.test: was completely broken. Falling back on use of
bignums for all non-trivial ** calculations until
native-type-constrained special cases can be done carefully and
correctly. [Bug 1561260].
2006-09-15 Jeff Hobbs <jeffh@ActiveState.com>
* library/http/http.tcl: Change " " -> "+" url encoding mapping
* library/http/pkgIndex.tcl: to " " -> "%20" as per RFC 3986.
* tests/http.test (http-5.1): bump http to 2.5.3
* unix/Makefile.in:
* win/Makefile.in:
2006-09-12 Andreas Kupries <andreask@activestate.com>
* unix/configure.in (HAVE_MTSAFE_GETHOST*): Modified to recognize
HP-UX 11.00 and beyond as having mt-safe implementations of the
gethost functions.
* unix/configure: Regenerated, using autoconf 2.59
* unix/tclUnixCompat.c (PadBuffer): Fixed bug in calculation of the
increment needed to align the pointer, and added documentation
explaining why the macro is implemented as it is.
2006-09-11 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/rules.vc: Updated to install http, tcltest and msgcat as
* win/makefile.vc: Tcl Modules (as per Makefile.in).
* win/makefile.vc: Added tommath_(super)class headers.
2006-09-11 Andreas Kupries <andreask@activestate.com>
* unix/Makefile.in (install-libraries): Fixed typo tcltest 2.3.9 ->
2.3.0.
2006-09-11 Daniel Steffen <das@users.sourceforge.net>
* unix/tclUnixCompat.c: make compatLock static and only declare it when
it will actually be used; #ifdef parts of TSD that are not always
needed; adjust #ifdefs to cover all possible cases; fix whitespace.
2006-09-11 Andreas Kupries <andreask@activestate.com>
* tests/msgcat.test: Bumped version in auxiliary files as well.
* doc/msgcat.n:
2006-09-11 Kevin Kenny <kennykb@acm.org>
* unix/Makefile.in: Bumped msgcat version to 1.4.2 to be
* win/Makefile.in: consistent with dgp's commits of 2006-09-10.
2006-09-11 Don Porter <dgp@users.sourceforge.net>
* library/msgcat/msgcat.tcl: Removed some unneeded [uplevel]s.
2006-09-10 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Corrected INST_EXPON flaw that treated
* tests/expr.test: $x**1 as $x**3. [Bug 1555371]
* doc/tcltest.n: Bump to version tcltest 2.3.0 to
* library/tcltest/pkgIndex.tcl: account for new "-verbose line"
* library/tcltest/tcltest.tcl: feature.
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.bc:
* win/makefile.vc:
* library/msgcat/msgcat.tcl: Bump to version msgcat 1.4.2 to account
* library/msgcat/pkgIndex.tcl: for modifications.
2006-09-10 Daniel Steffen <das@users.sourceforge.net>
* library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback of
* tests/msgcat.test: default msgcat locale to
* unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier
if available (via private ::tcl::mac::locale global, set at interp init
when on Mac OS X 10.3 or later with CoreFoundation).
* library/tcltest/tcltest.tcl: add 'line' verbose level: prints source
* doc/tcltest.n: file line information of failing tests.
* macosx/Tcl.xcodeproj/project.pbxproj: add new tclUnixCompat.c file;
revise tests target to use new tcltest 'line' verbose level.
* unix/configure.in: add descriptions to new AC_DEFINEs for MT-safe.
* unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers.
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
2006-09-08 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* unix/tclUnixCompat.c: Added fallback to gethostbyname() and
gethostbyaddr() if the implementation is known to be MT-safe
(currently for Darwin 6 or later only).
* unix/configure.in: Assume gethostbyname() and gethostbyaddr() are
MT-safe starting with Darwin 6 (Mac OSX 10.2).
* unix/configure: Regenerated with autoconf V2.59
2006-09-08 Andreas Kupries <andreask@activestate.com>
* unix/tclUnixCompat.c: Fixed conditions for CopyArray/CopyString, and
CopyHostent. Also fixed bad var names in TclpGetHostByName.
2006-09-07 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* unix/tclUnixCompat.c: Added fallback to MT-unsafe library calls if
TCL_THREADS is not defined.
Fixed alignment of arrays copied by CopyArrayi() to be on the
sizeof(char *) boundary.
2006-09-07 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* unix/tclUnixChan.c: Rewritten MT-safe wrappers to return ptrs to
* unix/tclUnixCompat.c: TSD storage making them all look like their
* unix/tclUnixFCmd.c: MT-unsafe pendants API-wise.
* unix/tclUnixPort.h:
* unix/tclUnixSock.c:
2006-09-06 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* unix/tclUnixChan.c: Added TCL_THREADS ifdef'ed usage of MT-safe
* unix/tclUnixFCmd.c: calls like: getpwuid, getpwnam, getgrgid,
* unix/tclUnixSock.c: getgrnam, gethostbyname and gethostbyaddr.
* unix/tclUnixPort.h: See [Bug 999544]
* unix/Makefile.in:
* unix/configure.in:
* unix/tcl.m4:
* unix/configure: Regenerated.
* unix/tclUnixCompat.c: New file containing MT-safe implementation of
some library calls.
2006-09-04 Don Porter <dgp@users.sourceforge.net>
* generic/tclCompExpr.c: Removed much complexity that is no
longer needed.
* tests/main.text (Tcl_Main-4.4): Test corrected to not be
timing sensitive to the Bug 1481986 fix. [Bug 1550858]
2006-09-04 Jeff Hobbs <jeffh@ActiveState.com>
* doc/package.n: correct package example
2006-08-31 Don Porter <dgp@users.sourceforge.net>
* generic/tclCompExpr.c: Corrected flawed logic for disabling
the INST_TRY_CVT_TO_NUMERIC instruction at the end of an expression
when function arguments contain operators. [Bug 1541274]
* tests/expr-old.test: The remaining failing tests reported in
* tests/expr.test: [Bug 1381715] are all new in Tcl 8.5, so
there's really no issue of compatibility with Tcl 8.4 result to deal
with. Fixed by updating tests to expect 8.5 results.
2006-08-29 Don Porter <dgp@users.sourceforge.net>
* generic/tclParseExpr.c: Dropped the old expr parser.
2006-08-30 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadId
* win/tclWinChan.c [Bug 819667] Improve logic for identifying COM
ports.
* generic/tclIOGT.c (ExecuteCallback):
* generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj)
with more efficient Tcl_Eval(Obj)Ex
* unix/Makefile.in (valgrindshell): add valgrindshell target and
update default VALGRINDARGS. User can override, or add to it with
VALGRIND_OPTS env var.
* generic/tclFileName.c (DoGlob): match incrs with decrs.
2006-08-29 Don Porter <dgp@users.sourceforge.net>
* generic/tclParseExpr.c: Use the "parent" field of orphan
ExprNodes to store the closure of left pointers. This lets us avoid
repeated re-scanning leftward for the left boundary of subexpressions,
which in worst case led to near O(N^2) runtime.
2006-08-29 Joe Mistachkin <joe@mistachkin.com>
* unix/tclUnixInit.c: Fixed the issue (typo) that was causing
* unix/tclUnixThrd.c (TclpThreadGetStackSize): stack.test to fail on
FreeBSD (and possibly other Unix platforms).
2006-08-29 Colin McCormack <coldstore@users.sourceforge.net>
* generic/tclIOUtil.c: Added test for NULL return from
* generic/tclPathObj.c: Tcl_FSGetNormalizedPath which was causing
* unix/tclUnixFile.c: segv's per [Bug 1548263]
* win/tclWinFCmd.c:
* win/tclWinFile.c:
2006-08-28 Kevin Kenny <kennykb@acm.org>
* library/tzdata/America/Havana: Regenerated from Olson's
* library/tzdata/America/Tegucigalpa: tzdata2006k.
* library/tzdata/Asia/Gaza:
2006-08-28 Don Porter <dgp@users.sourceforge.net>
* generic/tclStringObj.c: Revised ObjPrintfVA to take care to
* generic/tclParseExpr.c: copy only whole characters when doing
%s formatting. This relieves callers of TclObjPrintf() and
TclFormatToErrorInfo() from needing to fix arguments to character
boundaries. Tcl_ParseExpr() simplified by taking advantage. [Bug
1547786]
* generic/tclStringObj.c: Corrected TclFormatObj's failure to
count up the number of arguments required by examining the format
string. [Bug 1547681]
2006-08-27 Joe Mistachkin <joe@mistachkin.com>
* generic/tclClock.c (ClockClicksObjCmd): Fix nested macro breakage
with TCL_MEM_DEBUG enabled. [Bug 1547662]
2006-08-26 Miguel Sofer <msofer@users.sf.net>
* doc/namespace.n:
* generic/tclNamesp.c:
* tests/upvar.test: bugfix, docs clarification and new tests for
[namespace upvar] as follow up to [Bug 1546833], reported by Will
Duquette.
2006-08-24 Kevin Kenny <kennykb@acm.org>
* library/tzdata: Regenerated, including several new files,
from Olson's tzdata2006j.
* library/clock.tcl:
* tests/clock.test: Removed an early testing hack that allowed
loading 'registry' from the build tree rather than an installed
one. This is a workaround for [Bug 15232730], which remains open
because it's a symptom of a deeper underlying problem.
2006-08-23 Don Porter <dgp@users.sourceforge.net>
* generic/tclParseExpr.c: Minimal collection of new tests
* tests/parseExpr.test: testing the error messages of the
new expr parser. Several bug fixes and code simplifications that
appeared during that effort.
2006-08-21 Don Porter <dgp@users.sourceforge.net>
* generic/tclIOUtil.c: Revisions to complete the thread finalization
of the cwdPathPtr. [Bug 1536142]
* generic/tclParseExpr.c: Revised mistaken call to
TclCheckBadOctal(), so both [expr 08] and [expr 08z] have same
additional info in error message.
* tests/compExpr-old.test: Update existing tests to not fail
* tests/compExpr.test: with the new expr parser.
* tests/compile.test:
* tests/expr-old.test:
* tests/expr.test:
* tests/for.test:
* tests/if.test:
* tests/parseExpr.test:
* tests/while.test:
2006-08-21 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* win/Makefile.in (gdb): Make this target work so that debugging an
msys build is possible.
2006-08-21 Daniel Steffen <das@users.sourceforge.net>
* macosx/tclMacOSXNotify.c (Tcl_WaitForEvent): if the run loop is
already running (e.g. if Tcl_WaitForEvent was called recursively),
re-run it in a custom run loop mode containing only the source for the
notifier thread, otherwise wakeups from other sources added to the
common run loop modes might get lost.
* unix/tclUnixNotfy.c (Tcl_WaitForEvent): on 64-bit Darwin,
pthread_cond_timedwait() appears to have a bug that causes it to wait
forever when passed an absolute time which has already been exceeded by
the system time; as a workaround, when given a very brief timeout, just
do a poll on that platform. [Bug 1457797]
* generic/tclClock.c (ClockClicksObjCmd): add support for Darwin
* generic/tclCmdMZ.c (Tcl_TimeObjCmd): nanosecond resolution timer
* generic/tclInt.h: to [clock clicks] and [time]
* unix/configure.in (Darwin): when TCL_WIDE_CLICKS defined.
* unix/tclUnixTime.c (TclpGetWideClicks, TclpWideClicksToNanoseconds):
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
* unix/tclUnixPort.h (Darwin): override potentially faulty configure
detection of termios availability in all cases, since termios is known
to be present on all Mac OS X releases since 10.0. [Bug 497147]
2006-08-18 Daniel Steffen <das@users.sourceforge.net>
* unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, for
universal builds including x86_64, for 64-bit CoreFoundation on Leopard
and for use of -mmacosx-version-min instead of MACOSX_DEPLOYMENT_TARGET
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
* generic/tcl.h: add fixes for building on Leopard and support
* unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard.
* macosx/tclMacOSXFCmd.c:
* unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it
causes execve to fail intermittently. (rdar://4685553)
* generic/tclTomMath.h: on Darwin 64-bit, for now disable use of
128-bit arithmetic through __attribute__ ((mode(TI))), as it leads to
link errors due to missing fallbacks. (rdar://4685527)
* macosx/Tcl.xcodeproj/project.pbxproj: add x86_64 to universal build,
switch native release targets to use DWARF with dSYM, Xcode 3.0 changes
* macosx/README: updates for x86_64 and Xcode 2.4.
* macosx/Tcl.xcodeproj/default.pbxuser: add test suite target that runs
* macosx/Tcl.xcodeproj/project.pbxproj: the tcl test suite at build
time and shows clickable test suite errors in the GUI build window.
* tests/macOSXFCmd.test: fix use of deprecated resource fork paths.
* unix/tclUnixInit.c (TclpInitLibraryPath): move code that is only
needed when TCL_LIBRARY is defined to run only in that case.
* generic/tclLink.c (LinkTraceProc): fix 64-bit signed-with-unsigned
comparison warning from gcc4 -Wextra.
* unix/tclUnixChan.c (TclUnixWaitForFile): with timeout < 0, if
select() returns early (e.g. due to a signal), call it again instead of
returning a timeout result. Fixes intermittent event-13.8 failures.
2006-08-17 Don Porter <dgp@users.sourceforge.net>
* generic/tclCompile.c: Revised the new set of expression parse
* generic/tclParseExpr.c: error messages.
2006-08-16 Don Porter <dgp@users.sourceforge.net>
* generic/tclParseExpr.c: Replace PrecedenceOf() function with
prec[] static array.
2006-08-14 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* library/clock.tcl (::tcl::clock::add): Added missing braces to
clockval validation code. Pointed out on comp.lang.tcl.
2006-08-11 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclNamesp.c: Improvements in buffer management to make
namespace creation faster. Plus selected other minor improvements to
code quality. [Patch 1352382]
2006-08-10 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
Misc patches to make code more efficient. [Bug 1530474] (afredd)
* generic/*.c, macosx/tclMacOSXNotify.c, unix/tclUnixNotfy.c,
* win/tclWinThrd.c: Tidy up invokations of Tcl_Panic() to promote
string constant sharing and consistent style.
* generic/tclBasic.c (Tcl_CreateInterp): More efficient handling of
* generic/tclClock.c (TclClockInit): registration of commands not
in global namespace.
* generic/tclVar.c (Tcl_UnsetObjCmd): Remove unreachable clause.
2006-08-09 Don Porter <dgp@users.sourceforge.net>
* generic/tclEncoding.c: Replace buffer copy in for loop
with call to memcpy(). Thanks to afredd. [Patch 1530262]
2006-08-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclCmdIL.c (Tcl_LassignObjCmd): Make the wrong#args message a
bit more consistent with those used elsewhere. [Bug 1534628]
* generic/tclDictObj.c (DictForCmd): Stop crash when attempting to
iterate over an invalid dictionary. [Bug 1531184]
* doc/ParseCmd.3, doc/expr.n, doc/set.n, doc/subst.n, doc/switch.n:
* doc/tclvars.n: Ensure that uses of [expr] in documentation examples
are also good style (with braces) unless otherwise necessary. [Bug
1526581]
2006-08-03 Daniel Steffen <das@users.sourceforge.net>
* unix/tclUnixPipe.c (TclpCreateProcess): for USE_VFORK: ensure
standard channels are initialized before vfork() so that the child
doesn't potentially corrupt global state in the parent's address space.
* tests/compExpr-old.test: add 'oldExprParser' constraint to all tests
* tests/compExpr.test: that depend on the exact format of the error
* tests/compile.test: messages of the pre-2006-07-05 expression
* tests/expr-old.test: parser. The constraint is on by default (i.e
* tests/expr.test: those tests still fail), but can be turned
* tests/for.test: off by passing '-constraints newExprParser'
* tests/if.test: to tcltest, which will skip the 196 failing
* tests/parseExpr.test: tests in the testsuite that are caused by
* tests/while.test: the new expression parser error messages.
2006-07-31 Kevin Kenny <kennykb@acm.org>
* generic/tclClock.c (ConvertLocalToUTCUsingC): Corrected a regression
that caused dates before 1969 to be one day off in the :localtime time
zone if TZ is not set. [Bug 1531530]
2006-07-30 Kevin Kenny <kennykb@acm.org>
* generic/tclClock.c (GetJulianDayFromEraYearMonthDay): Corrected
several errors in converting dates before the Common Era. [Bug 1426279]
* library/clock.tcl: Corrected syntax errors in generated code for %EC,
%Ey, and %W format groups [Bug 1505383]. Corrected a bug in cache
management for format strings containing [glob] metacharacters [Bug
1494664]. Corrected several errors in formatting/scanning of years
prior to the Common Era, and added the missing %EE format group to
indicate the era.
* tools/makeTestCases.tcl: Added code to make sure that %U and %V
format groups are included in the tests. (The code depends on %U and %V
formatting working correctly when 'makeTestCases.tcl' is run, rather
than making a completely independent check.) Added tests for [glob]
metacharacters in strings. Added tests for years prior to the Common
Era.
* tests/clock.test: Rebuilt with new test cases for all the above.
2006-07-30 Joe English <jenglish@users.sourceforge.net>
* doc/AppInit.3: Fix typo [Bug 1496886]
2006-07-26 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Corrected flawed overflow detection in
* tests/expr.test: INST_EXPON that caused [expr 2**64] to return 0
instead of the same value as [expr 1<<64].
2006-07-24 Don Porter <dgp@users.sourceforge.net>
* win/tclWinSock.c: Correct un-initialized Tcl_DString. Thanks to
afredd. [Bug 1518166]
2006-07-21 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c:
* tests/execute.test (execute-9.1): dgp's fix for [Bug 1522803].
2006-07-20 Daniel Steffen <das@users.sourceforge.net>
* macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): create
notifier thread lazily upon first call to Tcl_WaitForEvent() rather
than in Tcl_InitNotifier(). Allows calling exeve() in processes where
the event loop has not yet been run (Darwin's execve() fails in
processes with more than one thread), in particular allows embedders to
call fork() followed by execve(), previously the pthread_atfork() child
handler's call to Tcl_InitNotifier() would immediately recreate the
notifier thread in the child after a fork.
* macosx/tclMacOSXFCmd.c (TclMacOSXCopyFileAttributes): add support
* macosx/tclMacOSXNotify.c (Tcl_InitNotifier): for weakly
* unix/tclUnixInit.c (Tcl_GetEncodingNameFromEnvironment): importing
symbols not available on OSX 10.2 or 10.3, enables binaires built on
later OSX versions to run on earlier ones.
* macosx/Tcl.xcodeproj/project.pbxproj: enable weak-linking; turn on
extra warnings.
* macosx/README: document how to enable weak-linking; cleanup.
* unix/tclUnixPort.h: add support for weak-linking; conditionalize
AvailabilityMacros.h inclusion; only disable realpath on 10.2 or
earlier when threads are enabled.
* unix/tclLoadDyld.c (TclpLoadMemoryGetBuffer): change runtime Darwin
* unix/tclUnixInit.c (TclpInitPlatform): release check to use
global initialized once
* unix/tclUnixFCmd.c (DoRenameFile, TclpObjNormalizePath): add runtime
Darwin release check to determine if realpath is threadsafe.
* unix/configure.in: add check on Darwin for compiler support of weak
* unix/tcl.m4: import and for AvailabilityMacros.h header; move
Darwin specific checks & defines that are only relevant to the tcl
build out of tcl.m4; restrict framework option to Darwin; clean up
quoting and help messages.
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
* generic/regc_locale.c (cclass):
* generic/tclExecute.c (TclExecuteByteCode):
* generic/tclIOCmd.c (Tcl_ExecObjCmd):
* generic/tclListObj.c (NewListIntRep):
* generic/tclObj.c (Tcl_GetLongFromObj, Tcl_GetWideIntFromObj)
(FreeBignum, Tcl_SetBignumObj):
* generic/tclParseExpr.c (Tcl_ParseExpr):
* generic/tclStrToD.c (TclParseNumber):
* generic/tclStringObj.c (TclAppendFormattedObjs):
* unix/tclLoadDyld.c (TclpLoadMemory):
* unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned
comparison and other warnings from gcc4 -Wextra.
2006-07-13 Andreas Kupries <andreask@activestate.com>
* unix/tclUnixPort.h: Added the inclusion of <AvailabilityMacros.h>.
The missing header caused the upcoming #if conditions to wrongly
exclude realpath, causing file normalize to ignore symbolic links in
the path.
2006-07-11 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclAsync.c: Made Tcl_AsyncDelete() more tolerant when called
after all thread TSD has been garbage-collected.
2006-07-05 Don Porter <dgp@users.sourceforge.net>
* generic/tclParseExpr.c: Completely new expression parser that
builds a parse tree instead of operating with deep recursion. This
corrects reports of stack-blowing crashes parsing long expressions [Bug
906201] and replaces a fundamentally O(N^2) algorithm with an O(N) one
[RFE 903765]. The new parser is better able to generate error messages
that clearly report both the nature and context of the syntax error
[Bugs 1029267, 1381715]. For now, the code for the old parser is still
present and can be activated with a "#define OLD_EXPR_PARSER 1". This
is for the sake of a clean implementation patch, and for ease of
benchmarking. The new parser is non-recursive, so much lighter in stack
consumption, but it does use more heap, so there may be cases where
parsing of long expressions that succeeded with the old parser will
lead to out of memory panics with the new one. There are still more
improvements possible on that point, though significant progress may
require changes to the Tcl_Token specifications documented for the
public Tcl_Parse*() routines.
***POTENTIAL INCOMPATIBILITY*** for any callers that rely on the exact
(usually terrible) error messages generated by the old parser. This
includes a large number of tests in the test suite.
* generic/tclInt.h: Replaced TclParseWhiteSpace() with
* generic/tclParse.c: TclParseAllWhiteSpace() which is what
* generic/tclParseExpr.c: all the callers really needed. Breaking
whitespace runs at newlines is useful only to the command parsing
function, and it can call the file scoped routine ParseWhiteSpace() to
do that.
* tests/expr-old.test: Removed knownBug constraints that masked
* tests/expr.test: failures due to revised error messages.
* tests/parseExpr.test:
2006-06-20 Don Porter <dgp@users.sourceforge.net>
* generic/tclIOUtil.c: Changed default configuration to
* generic/tclInt.decls: #undef USE_OBSOLETE_FS_HOOKS which disables
* generic/tclTest.c: access to the Tcl 8.3 internal routines for
hooking into filesystem operations. Everyone ought to have migrated to
Tcl_Filesystems by now.
***POTENTIAL INCOMPATIBILITY*** for any code still stuck in the
pre-Tcl_Filesystem era.
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclStrToD.c: Removed dead code that permitted disabling of
recognition of the new 0b and 0o numeric formats.
* generic/tclExecute.c: Removed dead code that implemented alternative
* generic/tclObj.c: design where numeric values did not
automatically narrow to the smallest Tcl_ObjType required to hold them.
* generic/tclCmdAH.c: Removed dead code that was old implementation
of [format].
2006-06-14 Daniel Steffen <das@users.sourceforge.net>
* unix/tclUnixPort.h (Darwin): support for MAC_OS_X_VERSION_MAX_ALLOWED
define from AvailabilityMacros.h: override configure detection and only
use API available in the indicated OS version or earlier.
2006-06-14 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/format.n, doc/scan.n: Added examples for converting between
characters and their numeric interpretations following user prompting.
2006-06-13 Donal K. Fellows <dkf@users.sf.net>
* unix/tclLoadDl.c (TclpDlopen): Workaround for a compiler bug in Sun
Forte 6. [Bug 1503729]
2006-06-06 Don Porter <dgp@users.sourceforge.net>
* doc/GetStdChan.3: Added recommendation that each call to
Tcl_SetStdChannel() be accompanied by a call to Tcl_RegisterChannel().
2006-06-05 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/Alloc.3: Added documentation of promise that Tcl_Realloc(NULL,x)
is the same as Tcl_Alloc(x), as discussed in comp.lang.tcl. Also fixed
nonsense sentence to say something meaningful.
2006-05-29 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tcl.h (Tcl_DecrRefCount): use if/else construct to allow
placement in unbraced outer if/else conditions. (jcw)
2006-05-27 Daniel Steffen <das@users.sourceforge.net>
* macosx/tclMacOSXNotify.c: implemented pthread_atfork() handler that
* unix/tcl.m4 (Darwin): recreates CoreFoundation state and notifier
thread in the child after a fork(). Note that pthread_atfork is
available starting with Tiger only. Because vfork() is used by the core
on Darwin, [exec]/[open] are not affected by this fix, only extensions
or embedders that call fork() directly (such as TclX). However, this
only makes fork() safe from corefoundation tcl with --disable-threads;
as on all platforms, forked children may deadlock in threaded tcl due
to the potential for stale locked mutexes in the child. [Patch 923072]
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
2006-05-24 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/tcl.m4 (SC_CONFIG_SYSTEM): Fixed quoting of command script to
awk; it was a rarely used branch, but it was wrong. [Bug 1494160]
2006-05-23 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/chan.n, doc/refchan.n: Tighten up the documentation to follow a
slightly more consistent style with regard to argument capitalization.
2006-05-13 Don Porter <dgp@users.sourceforge.net>
* generic/tclProc.c (ProcCompileProc): When a bump of the compile epoch
forces the re-compile of a proc body, take care not to overwrite any
Proc struct that may be referred to on the active call stack. This
fixes [Bug 1482718]. Note that the fix will not be effective for code
that calls the private routine TclProcCompileProc() directly.
2006-05-13 Daniel Steffen <das@users.sourceforge.net>
* generic/tclEvent.c (HandleBgErrors): fix leak. [Coverity issue 86]
2006-05-05 Don Porter <dgp@users.sourceforge.net>
* generic/tclMain.c (Tcl_Main): Corrected flaw that required
* tests/main.test: (Tcl_Main-4.5): processing of one interactive
command before passing control to the loop routine registered with
Tcl_SetMainLoop() [Bug 1481986].
2006-05-04 Don Porter <dgp@users.sourceforge.net>
* README: Bump version number to 8.5a5
* generic/tcl.h:
* tools/tcl.wse.in:
* unix/configure.in:
* unix/tcl.spec:
* win/README.binary:
* win/configure.in:
* unix/configure: autoconf-2.59
* win/configure:
* generic/tclBasic.c (ExprSrandFunc): Restore acceptance of wide/big
* doc/mathfunc.n: integer values by srand() [Bug 1480509].
2006-04-26 Don Porter <dgp@users.sourceforge.net>
*** 8.5a4 TAGGED FOR RELEASE ***
* changes: Updates for another RC.
* generic/tclBinary.c: Revised the handling of the Q and q format
* generic/tclInt.h: specifiers for [binary] to account for the
* generic/tclStrToD.c: "middle endian" floating point format used in
Nokia N770.
2006-04-25 Don Porter <dgp@users.sourceforge.net>
* doc/DoubleObj.3: More doc updates for TIP 237.
* doc/expr.n:
* doc/format.n:
* doc/mathfunc.n:
* doc/scan.n:
* doc/string.n:
* generic/tclScan.c: [scan $s %u] is documented to accept only
* tests/scan.test: decimal formatted integers. Fixed to match.
2006-04-19 Kevin B. Kenny <kennykb@acm.org>
* generic/tclStrToD.c: Added code to support the "middle endian"
floating point format used in the Nokia N770's software-based floating
point. Thanks to Bruce Johnson for reporting this bug, originally on
http://wiki.tcl.tk/15408.
* library/clock.tcl: Fixed a bug with Daylight Saving Time and Posix
time zone specifiers reported by Martin Lemburg in
http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/9a8b15a4dfc0b7a0
(and not at SourceForge).
* tests/clock.test: Added test case for the above bug.
2006-04-18 Donal K. Fellows <dkf@users.sf.net>
* doc/IntObj.3: Minor review fixes, including better documentation of
the behaviour of Tcl_GetBignumAndClearObj.
2006-04-17 Don Porter <dgp@users.sourceforge.net>
* doc/IntObj.3: Documentation changes to account for TIP 237 changes.
* doc/Object.3: [Bug 1446971]
2006-04-12 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/regc_locale.c (cclass): Redefined the meaning of [:print:] to
be exactly UNICODE letters, numbers, punctuation, symbols and spaces
(*not* whitespace). [Bug 1376892]
2006-04-11 Don Porter <dgp@users.sourceforge.net>
* generic/tclTrace.c: Stop some interference between enter traces
* tests/trace.test: and enterstep traces. [Bug 1458266]
2006-04-07 Don Porter <dgp@users.sourceforge.net>
* generic/tclPathObj.c: Yet another revised fix for the [Bug 1379287]
* tests/fileSystem.test: family of path normalization bugs.
2006-04-06 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclRegexp.c (FinalizeRegexp): full reset data to indicate
readiness for reinitialization.
2006-04-06 Don Porter <dgp@users.sourceforge.net>
* generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seems there
* tests/indexObj.test: are extensions that rely on the prior behavior
* doc/GetIndex.3: that the empty string cannot succeed as a
unique prefix matcher, so I'm restoring Donal Fellows's solution. Added
mention of this detail to the documentation. [Bug 1464039]
* tests/compExpr-old.test: Updated testmathfunctions constraint
* tests/compExpr.test: to post-TIP-232 world.
* tests/expr-old.test:
* tests/expr.test:
* tests/info.test:
* tests/indexObj.test: Corrected other test errors revealed by
* tests/upvar.test: testing outside the tcltest application.
* generic/tclPathObj.c: Revised fix for the [Bug 1379287] family of
path normalization bugs.
2006-04-06 Daniel Steffen <das@users.sourceforge.net>
* unix/tcl.m4: removed TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING
define on Darwin. [Bug 1457515]
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
2006-04-05 Don Porter <dgp@users.sourceforge.net>
* win/tclWinInit.c: More careful calls to Tcl_DStringSetLength()
* win/tclWinSock.c: to avoid creating invalid DString states.
* win/tclWinDde.c: Bump to version 1.3.2. [RFE 1366195]
* library/dde/pkgIndex.tcl:
* library/reg/pkgIndex.tcl: Bump to registry 1.2 because
* win/tclWinReg.c: Registry_Unload() is a new public routine
* win/Makefile.in: compared to the 1.1.* releases.
* win/configure.in: Bump package version numbers.
* win/configure: autoconf 2.59
2006-04-05 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow empty
strings to be matched by the Tcl_GetIndexFromObj machinery, in the
same manner as any other key. [Bug 1464039]
2006-04-03 Andreas Kupries <andreask@activestate.com>
* generic/tclIO.c (ReadChars): Added check, panic and commentary to a
piece of code which relies on BUFFER_PADDING to create enough space at
the beginning of each buffer for the insertion of partial multibyte
data at the beginning of a buffer. Commentary explains why this code is
OK, and the panic is as a precaution if someone twiddled the
BUFFER_PADDING into uselessness.
* generic/tclIO.c (ReadChars): [Bug 1462248]. Temporarily suppress the
use of TCL_ENCODING_END set when EOF was reached while the buffer we
are converting is not truly the last buffer in the queue. Together with
the Utf bug below it was possible to completely wreck the buffer data
structures, eventually crashing Tcl.
* generic/tclEncoding.c (UtfToUtfProc): Stop accessing memory beyond
the end of the input buffer when TCL_ENCODING_END is set and the last
bytes of the buffer start a multi-byte sequence. This bug contributed
to [Bug 1462248].
2006-03-30 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: remove unused var and silence gcc warning
2006-03-29 Jeff Hobbs <jeffh@ActiveState.com>
* win/Makefile.in: convert _NATIVE paths to use / to avoid ".\"
path-as-escape issue.
2006-03-29 Don Porter <dgp@users.sourceforge.net>
* changes: Updates for another RC.
* generic/tclPathObj.c: More fixes for path normalization when /../
* tests/fileSystem.test: tries to go beyond root.[Bug 1379287]
* generic/tclExecute.c: Revised INST_MOD implementation to do
calculations in native types as much as possible, moving to mp_ints
only when necessary.
2006-03-28 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinPipe.c (TclpCreateProcess): change panics to Tcl errors and
do proper refcounting of noe objPtr. [Bug 1194429]
* unix/tcl.m4, win/tcl.m4: []-quote AC_DEFUN functions.
2006-03-28 Daniel Steffen <das@users.sourceforge.net>
* macosx/Tcl.xcode/default.pbxuser: add '-singleproc 1' cli arg to
* macosx/Tcl.xcodeproj/default.pbxuser: tcltest to ease test debugging
* macosx/Tcl.xcode/project.pbxproj: removed $prefix/share from
* macosx/Tcl.xcodeproj/project.pbxproj: TCL_PACKAGE_PATH as per change
to unix/configure.in of 2006-03-13.
* unix/tclUnixFCmd.c (TclpObjNormalizePath): deal with *BSD/Darwin
realpath() converting relative paths into absolute paths. [Bug 1064247]
2006-03-28 Vince Darley <vincentdarley@sourceforge.net>
* generic/tclIOUtil.c: fix to nativeFilesystemRecord comparisons
(lesser part of [Bug 1064247])
2006-03-27 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/tclWinTest.c: Fixes for [Bug 1456373] (mingw-gcc issue)
2006-03-27 Andreas Kupries <andreask@activestate.com>
* doc/CrtChannel.3: Added TCL_CHANNEL_VERSION_5, made it the version
* generic/tcl.h: where the "truncateProc" is defined at, and
* generic/tclIO.c: moved all channel drivers of Tcl to v5.
* generic/tclIOGT.c, generic/tclIORChan.c, unix/tclUnixChan.c:
* unix/tclUnixPipe.c, win/tclWinChan.c, win/tclWinConsole.c:
* win/tclWinPipe.c, win/tclWinSerial.c, win/tclWinSock.c:
2006-03-27 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Merge INST_MOD computation in with the
INST_?SHIFT instructions, which also operate only on two integral
values. Also corrected flaw that made INST_BITNOT of wide values
require mp_int calculations. Also corrected type that missed optimized
handling of the tclBooleanType by the TclGetBooleanFromObj macro.
* changes: Updates for another RC.
2006-03-25 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Corrections to INST_EXPON detection of overflow
to use mp_int calculations.
2006-03-24 Kevin Kenny <kennykb@acm.org>
* generic/tclExecute.c (TclExecuteByteCode): Added a couple of missing
casts to 'int' that were affecting compilablity on VC6.
2006-03-24 Don Porter <dgp@users.sourceforge.net>
* generic/tclEncoding.c: Reverted latest change [Bug 506653] since it
reportedly killed test performance on Windows.
* generic/tclExecute.c: Revised INST_EXPON implementation to do
calculations in native types as much as possible, moving to mp_ints
only when necessary.
2006-03-23 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Merged INST_EXPON handling in with the other
binary operators that operate on all number types (INST_ADD, etc.).
* tests/env.test: With case preserved (see 2006-03-21 commit) be sure
to do case-insensitive filtering. [Bug 1457065]
2006-03-23 Reinhard Max <max@suse.de>
* unix/tcl.spec: Cleaned up and completed the spec file. An RPM can now
be built from the tcl source distribution with "rpmbuild -tb <tarball>"
2006-03-22 Reinhard Max <max@suse.de>
* tests/stack.test: Run the stack tests in subshells, so that they are
reported as failed tests rather than bugs in the test suite if the
recursion causes a segfault.
2006-03-21 Don Porter <dgp@users.sourceforge.net>
* changes: Updates for another RC.
* generic/tclStrToD.c: One of the branches of AccumulateDecimalDigit
* tests/parseExpr.test: did not. [Bug 1451233]
* tests/env.test: Preserve case of saved env vars. [Bug 1409272]
2006-03-21 Daniel Steffen <das@users.sourceforge.net>
* generic/tclInt.decls: implement globbing for HFS creator & type
* macosx/tclMacOSXFCmd.c:codes and 'hidden' flag, as documented in
* tests/macOSXFCmd.test: glob.n; objectified OSType handling in [glob]
* unix/tclUnixFile.c: and [file attributes]; fix globbing for
hidden files with pattern==NULL arg. [Bug 823329]
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c: make genstubs
2006-03-20 Andreas Kupries <andreask@activestate.com>
* win/Makefile.in (install-libraries): Generate tcl8/8.4 directory
under Windows as well (cygwin Makefile). Related entry: 2006-03-07,
dgp. This moved the installation of http from 8.2 to 8.4, partially. A
fix of the required directory creation was done for unix on Mar 10,
without entry in the Changelog. This entry is for the fix of the
directory creation under Windows.
* unix/installManPage: There is always one even more broken "sed".
Moved the # comment starting character in the sed script to the
beginning of their respective lines. The AIX sed will not recognize
them as comments otherwise :( The actual text stays indented for better
association with the commands they belong to.
2006-03-20 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* tests/cmdAH.test, tests/fCmd.test, tests/unixFCmd.test:
* tests/winFCmd.test: Cleanup of some test constraint handling, and a
few other minor issues.
2006-03-18 Vince Darley <vincentdarley@sourceforge.net>
* generic/tclFileName.c:
* doc/FileSystem.3:
* tests/fileName.test: Fix to [Bug 1084705] so that 'glob -nocomplain'
finally agrees with its documentation and doesn't swallow genuine
errors.
***POTENTIAL INCOMPATIBILITY*** for scripts that assumed '-nocomplain'
removes the need for 'catch' to deal with non-understood path names.
Small optimisation to implementation of pattern==NULL case of TclGlob,
and clarification to the documentation. [Tclvfs bug 1405317]
2006-03-18 Vince Darley <vincentdarley@sourceforge.net>
* tests/fCmd.test: added knownBug test case for [Bug 1394972]
* tests/winFCmd.test:
* tests/tcltest.test: corrected tests to better account for behaviour
of writable/non-writable directories on Windows 2000/XP. This, with the
previous patches, closes [Bug 1193497]
2006-03-17 Andreas Kupries <andreask@activestate.com>
* doc/chan.n: Updated with documentation for the commands 'chan create'
and 'chan postevent' (TIP #219).
* doc/refchan.n: New file. Documentation of the command handler API for
reflected channels (TIP #219).
2006-03-17 Joe Mistachkin <joe@mistachkin.com>
* unix/tclUnixPort.h: Include pthread.h prior to pthread_np.h [Bug
1444692]
* win/tclWinTest.c: Corrected typo of 'initializeMutex' that prevented
successful compilation.
2006-03-16 Andreas Kupries <andreask@activestate.com>
* doc/open.n: Documented the changed behaviour of 'a'ppend mode.
* tests/io.test (io-43.1 io-44.[1234]): Rewritten to be self-contained
with regard to setup and cleanup. [Bug 681793].
* generic/tclIOUtil.c (TclGetOpenMode): Added the flag O_APPEND to the
list of POSIX modes used when opening a file for 'a'ppend. This
enables the proper automatic seek-to-end-on-write by the OS. See [Bug
680143] for longer discussion.
* tests/ioCmd.test (iocmd-13.7.*): Extended the testsuite to check the
new handling of 'a'.
2006-03-15 Andreas Kupries <andreask@activestate.com>
* tests/socket.test: Extended the timeout in socket-11.11 from 10 to 40
seconds to allow for really slow machines. Also extended
actual/expected results with value of variable 'done' to make it
clearer when a test fails due to a timeout. [Bug 792159].
2006-03-15 Vince Darley <vincentdarley@sourceforge.net>
* win/fCmd.test: add proper test constraints so the new tests don't run
on Unix.
2006-03-14 Andreas Kupries <andreask@activestate.com>
* generic/tclPipe.c (TclCreatePipeline): Modified the processing of
pipebars to fail if the last bar is followed only by redirections. [Bug
768659]
2006-03-14 Andreas Kupries <andreask@activestate.com>
* doc/fconfigure.n: Clarified that -translation is binary is reported
as lf when queried, because it is identical to lf, except for the
special additional behaviour when setting it. [Bug 666770].
2006-03-14 Andreas Kupries <andreask@activestate.com>
* doc/clock.n: Removed double-quotes around section title NAME; not
needed.
* unix/installManpage: Reverted part to handle double-quotes in section
NAME, chokes older sed installations.
2006-03-14 Andreas Kupries <andreask@activestate.com>
* library/tm.tcl (::tcl::tm::Defaults): Fixed handling of environment
variable TCLX.y_TM_PATH, bad variable reference. [Bug 1448251]. Thanks
to Julian Noble.
2006-03-14 Vince Darley <vincentdarley@sourceforge.net>
* win/tclWinFile.c: updated patch to deal with 'file writable' issues
on Windows XP/2000.
* generic/tclTest.c:
* unix/tclUnixTest.c:
* win/tclWinTest.c:
* tests/fCmd.test: updated test suite to deal with correct permissions
setting and differences between XP/2000 and 95/98 3 tests still fail;
to be dealt with shortly
2006-03-13 Don Porter <dgp@users.sourceforge.net>
* generic/tclEncoding.c: Report error when an escape encoding is
missing one of its sub-encodings [Bug 506653].
* unix/configure.in: Revert change from 2005-07-26 that sometimes
* unix/configure: added $prefix/share to the tcl_pkgPath. See
[Patch 1231015]. autoconf-2.59.
2006-03-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclProc.c (ObjInterpProcEx):
* tests/apply.test (apply-5.1): Fix [apply] error messages so that they
quote the lambda expression [Bug 1447355].
2006-03-10 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
-- Summary of changes fixing [Bug 1437595] --
* generic/tclEvent.c: Cosmetic touches and identation
* generic/tclInt.h: Added TclpFinalizeSockets() call.
* generic/tclIO.c: Calls TclpFinalizeSockets() as part of the
TclFinalizeIOSubsystem().
* unix/tclUnixSock.c: Added no-op TclpFinalizeSockets().
* win/tclWinPipe.c, win/tclWinSock.c: Finalization of sockets/pipes is
now solely done in TclpFinalizeSockets() and TclpFinalizePipes() and
not over the thread-exit handler, because the order of actions the Tcl
generic core will impose may result in cores/hangs if the thread exit
handler tears down corresponding subsystem(s) too early.
2006-03-10 Vince Darley <vincentdarley@sourceforge.net>
* win/tclWinFile.c: previous patch breaks tests, so removed.
2006-03-09 Vince Darley <vincentdarley@sourceforge.net>
* win/tclWinFile.c: fix to 'file writable' in certain XP directories.
Thanks to fvogel and jfg. [Patch 1344540] Modified patch to make use of
existing use of getSecurityProc.
2006-03-08 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Complete missing bit of TIP 215 implementation
* tests/incr.test:
2006-03-07 Joe English <jenglish@users.sourceforge.net>
* unix/tcl.m4: Set SHLIB_LD_FLAGS='${LIBS}' on NetBSD, as per the other
*BSD variants [Bug 1334613].
* unix/configure: Regenerated.
2006-03-07 Don Porter <dgp@users.sourceforge.net>
* changes: Update in prep. for 8.5a4 release.
* unix/Makefile.in: Package http 2.5.2 requires Tcl 8.4, so the
* win/Makefile.in: *.tm installation has to be placed in an "8.4"
directory, not an "8.2" directory.
2006-03-06 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Revised handling of TCL_EVAL_* flags to
* tests/parse.test: simplify TclEvalObjvInternal and to correct the
auto-loading of alias targets (parse-8.12). [Bug 1444291]
2006-03-03 Don Porter <dgp@users.sourceforge.net>
* generic/tclPathObj.c: Revised yesterday's fix for [Bug 1379287] to
work on Windows.
* generic/tclObj.c: Compatibility support for existing code that
calls Tcl_GetObjType("boolean").
2006-03-02 Don Porter <dgp@users.sourceforge.net>
* generic/tclPathObj.c: Fix for failed normalization of paths
* tests/fileSystem.test: with /../ that lead back to the root of
the filesystem, like /foo/.. [Bug 1379287]
2006-03-01 Reinhard Max <max@suse.de>
* unix/installManPage: Fix the script for manpages that have quotes
around the .SH arguments, as doctools produces them [Bug 1292145]. Some
minor cleanups and improvements.
2006-02-28 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBAL
* tests/namespace.test: evaluations act the same as [uplevel #0]
* tests/parse.test: evaluations, even when execution traces or
* tests/trace.test: invocations of [::unknown] are present.
[Bug 1439836].
2006-02-22 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Corrected a few bugs in how [namespace
* tests/namespace.test: unknown] interacts with TCL_EVAL_* flags.
[Patch 958222]
2006-02-17 Don Porter <dgp@users.sourceforge.net>
* generic/tclIORChan.c: Revised error message generation and handling
* tests/ioCmd.test: of exceptional return codes in the channel
reflection layer. [Bug 1372348]
2006-02-16 Don Porter <dgp@users.sourceforge.net>
* generic/tclIndexObj.c: Disallow the "ambiguous" error message
* tests/indexObj.test: when TCL_EXACT matching is requested.
* tests/ioCmd.test:
2006-02-15 Don Porter <dgp@users.sourceforge.net>
* generic/tclIO.c: Made several routines tolerant of
* generic/tclIORChan.c: interp == NULL arguments. [Bug 1380662]
* generic/tclIOUtil.c:
2006-02-09 Don Porter <dgp@users.sourceforge.net>
TIP#215 IMPLEMENTATION
* doc/incr.n: Revised [incr] to auto-initialize when varName
* generic/tclExecute.c: argument is unset. [Patch 1413115].
* generic/tclVar.c:
* tests/compile.test:
* tests/incr-old.test:
* tests/incr.test:
* tests/set.test:
* tests/main.test (Tcl_Main-6.7): Improved robustness of
command auto-completion test. [Bug 1422736].
2006-02-08 Donal K. Fellows <dkf@users.sf.net>
* doc/Encoding.3, doc/encoding.n: Updates due to review at request of
Don Porter. Mostly minor changes.
2006-02-08 Don Porter <dgp@users.sourceforge.net>
TIP#258 IMPLEMENTATION
* doc/Encoding.3: New subcommand [encoding dirs].
* doc/encoding.n: New routine Tcl_GetEncodingNameFromEnvironment
* generic/tcl.decls: Made public:
* generic/tclBasic.c: TclGetEncodingFromObj
* generic/tclCmdAH.c: -> Tcl_GetEncodingFromObj
* generic/tclEncoding.c:TclGetEncodingSearchPath
* generic/tclInt.decls: -> Tcl_GetEncodingSearchPath
* generic/tclInt.h: TclSetEncodingSearchPath
* generic/tclTest.c: -> Tcl_SetEncodingSearchPath
* library/init.tcl: Removed commands:
* tests/cmdAH.test: [tcl::unsupported::EncodingDirs]
* tests/encoding.test: [testencoding path] (Tcltest)
* unix/tclUnixInit.c: [Patch 1413934].
* win/tclWinInit.c:
* generic/tclDecls.h: make genstubs
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
2006-02-01 Miguel Sofer <msofer@users.sf.net>
* generic/tclProc.c: minor improvements to [apply]
* tests/apply.test: new tests; apply-5.1 currently fails to indicate
missing work in error reporting
2006-02-01 Don Porter <dgp@users.sourceforge.net>
TIP#194 IMPLEMENTATION
* doc/apply.n: (New file) New command [apply]. [Patch 944803].
* doc/uplevel.n:
* generic/tclBasic.c:
* generic/tclInt.h:
* generic/tclProc.c:
* tests/apply.test: (New file)
* tests/proc-old.test:
* tests/proc.test:
TIP#181 IMPLEMENTATION
* doc/Namespace.3: New command [namespace unknown]. New public C
* doc/namespace.n: routines Tcl_(Get|Set)NamespaceUnknownHandler.
* doc/unknown.n: [Patch 958222].
* generic/tcl.decls:
* generic/tclBasic.c:
* generic/tclInt.h:
* generic/tclNamesp.c:
* tests/namespace.test:
* generic/tclDecls.h: make genstubs
* generic/tclStubInit.c:
TIP#250 IMPLEMENTATION
* doc/namespace.n: New command [namespace upvar]. [Patch 1275435]
* generic/tclInt.h:
* generic/tclNamesp.c:
* generic/tclVar.c:
* tests/namespace.test:
* tests/upvar.test:
2006-01-26 Donal K. Fellows <dkf@users.sf.net>
* doc/dict.n: Fixed silly bug in example. Thanks to Heiner Marxen
<heiner.marxen@unsel.de> for catching this! [Bug 1415725]
2006-01-26 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/tclUnixChan.c (TclpOpenFileChannel): Tidy up and comment the
mess to do with setting up serial channels. This (deliberately) breaks
a broken FreeBSD port, indicates what we're really doing, and reduces
the amount of conditional compilation sections for better maintenance.
2006-01-25 Donal K. Fellows <dkf@users.sf.net>
* unix/tclUnixInit.c (TclpInitPlatform): Improved conditions on when to
update the FP rounding mode on FreeBSD, taken from FreeBSD port.
2006-01-23 Donal K. Fellows <dkf@users.sf.net>
* tests/string.test (string-12.21): Added test for [Bug 1410553] based
on original bug report.
2006-01-23 Miguel Sofer <msofer@users.sf.net>
* generic/tclStringObj.c: fixed incorrect handling of internal rep in
Tcl_GetRange [Bug 1410553]. Thanks to twylite and Peter Spjuth.
* generic/tclProc.c: fixed args handling for precompiled bodies [Bug
1412695]; thanks to Uwe Traum.
2006-01-16 Reinhard Max <max@suse.de>
* generic/tclPipe.c (FileForRedirect): Prevent nameString from being
freed without having been initialized.
* tests/exec.test: Added a test for the above.
2006-01-12 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclPathObj.c (Tcl_FSGetInternalRep): backported patch from
core-8-4-branch. A freed pointer has been overwritten causing all sorts
of coredumps.
2006-01-12 Vince Darley <vincentdarley@sourceforge.net>
* win/tclWinFile.c: fix to sharing violation [Bug 1366227]
2006-01-11 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Moved Tcl_LogCommandInfo from tclBasic.c to
* generic/tclNamesp.c: tclNamesp.c to get access to identifier with
* tests/error.test (error-7.0): file scope. Added check for traces on
::errorInfo, and when present fall back to contruction of the stack
trace in the variable so that write trace notification timings are
compatible with earlier Tcl releases. This reduces, but does not
completely eliminate the ***POTENTIAL INCOMPATIBILITY*** created by the
2004-10-15 commit. [Bug 1397843].
2006-01-10 Daniel Steffen <das@users.sourceforge.net>
* unix/configure: add caching, use AC_CACHE_CHECK instead of
* unix/configure.in: AC_CACHE_VAL where possible, consistent message
* unix/tcl.m4: quoting, sync relevant tclconfig/tcl.m4 changes
and gratuitous formatting differences, fix SC_CONFIG_MANPAGES with
default argument, Darwin improvements to SC_LOAD_*CONFIG.
2006-01-09 Don Porter <dgp@users.sourceforge.net>
* generic/tclNamesp.c (NamespaceInscopeCmd): [namespace inscope]
* tests/namespace.test: commands were not reported by [info level]
[Bug 1400572].
2006-01-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclTrace.c: Stop exporting the guts of the trace command;
nothing outside this file needs to see it. [Bug 971336]
2006-01-05 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/tcl.m4 (TCL_CONFIG_SYSTEM): Factor out the code to determine
the operating system version number, as it was replicated in several
places.
2006-01-04 David Gravereaux <davygrvy@pobox.com>
* win/tclAppInit.c: WIN32 native console signal handler removed. This
was found to be interfering with TWAPI extension one. IMO, special
services such as signal handlers should best be done with extensions to
the core after discussions on c.l.t. about Roy Terry's tclsh children
of a real windows service shell.
2005-12-30 Kevin B. Kenny <kennykb@acm.org>
* generic/tclStubLib.c: Corrected a typo in "missing Stubs table
pointer."
2005-12-27 Kevin B. Kenny <kennykb@acm.org>
* generic/tcl.decls: Destubbed TclTomMathInitializeStubs - it is in
* generic/tcl.h: the stub library, not the main shared
* generic/tclBasic.c: library. Exported Tcl_InitBignumFromDouble.
* generic/tclExecute.c:
* generic/tclInt.h:
* generic/tclStrToD.c:
* generic/tclDecls.h:
* generic/tclStubLib.c:
* generic/tclStubInit.c: Regenerated.
* generic/clock.tcl: Reverted to using the time zone abbreviation and
not its name to "stop the bleeding" on [Bug 1386377]. This is *not* a
good long-term solution, but there may not be one.
* libtommath/bn_mp_sqrt.c: Improved the initial approximation to the
square root, roughly doubling the speed of the routine. (This is a
local change that needs to be communicated to Tom.)
* win/Makefile.in: Corrected a bug where tommath_class.h and
tommath_superclass.h were not installed, making it impossible for
client code to compile against the tommath stubs.
* library/tzdata: Updated to Olson's tzdata2005r. (Latest changes to
Daylight Saving Time in Canada, plus redefinition of the Posix-style
zones [e.g., EST5EDT] to be locale-independent.)
* libtommath: Updated to Tom St.Denis's release 0.37.
2005-12-20 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclThreadAlloc.c (Tcl_GetMemoryInfo): Format values as longs
and not ints, so they are less likely to wrap on 64-bit machines.
2005-12-19 Don Porter <dgp@users.sourceforge.net>
* generic/tclCmdMZ.c: Modified [string is double] to use
* tests/string.test: TclParseNumber() to parse trailing whitespace.
Ensures consistency, and makes it easier to cleanup after invalid
internal reps left behind by parsing [Bugs 1360532 1382287].
* generic/tclParseExpr.c: Added TCL_PARSE_NO_WHITESPACE to
* generic/tclScan.c: TclParseNumber() calls since [scan] and [expr]
* tests/scan.test: parsing don't want spaces in parsed numbers.
* generic/tclInt.h: Added TCL_PARSE_NO_WHITESPACE flag to the
* generic/tclStrToD.c: TclParseNumber() interface.
2005-12-19 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/Tcl.n: Clarify what is going on in variable substitution
following thread on comp.lang.tcl.
2005-12-18 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclCompCmds.c (TclCompileDictCmd): Ensure that we only do an
'endCatch' when there's a preceding 'beginCatch'. [Bug 1382528] Many
thanks to Anton Kovalenko for finding this and pointing out that it was
a catch stack handling problem!
2005-12-14 Daniel Steffen <das@users.sourceforge.net>
* generic/tclIOUtil.c: workaround gcc warning "comparison is always
* generic/tclTest.c: false due to limited range of data type".
* macosx/Tcl.xcode/project.pbxproj:
* macosx/Tcl.xcodeproj/project.pbxproj:
* unix/Makefile.in: add new tclTomMath* files.
* generic/tclBasic.c: replace panic with Tcl_Panic.
2005-12-13 Kevin B. Kenny <kennykb@acm.org>
* generic/tcl.decls: Added changes to export an additional stubs
* generic/tclBasic.c: table to represent the 'libtommath' routines
* generic/tclDecls.h: that Tcl uses and export them to callers.
* generic/tclInt.decls: Reran 'genstubs'
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c:
* generic/tclStubLib.c:
* generic/tclTomMath.decls:
* generic/tclTomMath.h:
* generic/tclTomMathDecls.h:
* generic/tclTomMathInterface.c:
* generic/tommath.h:
* tools/fix_tommath_h.tcl:
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc:
* generic/tclClock.c: Made changes to silence a number of compiler
* generic/tclIO.c: warnings when building with mingw.
* generic/tclIORChan.c:
* generic/tclLink.c:
* generic/tclListObj.c:
* generic/tclObj.c:
* generic/tclParseExpr.c:
* generic/tclProc.c:
* generic/tclTimer.c:
* win/tclWinChan.c:
* win/tclWinConsole.c:
* win/tclWinDde.c:
* win/tclWinFCmd.c:
* win/tclWinFile.c:
* win/tclWinReg.c:
* win/tclWinSock.c:
2005-12-13 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclExecute.c (TEBC:DICT_FIRST,DICT_DONE): Only decrease the
references to the dictionary once the iteration completes. Do this by
storing the dict in the iterator context variable. [Bug 1379349] Thanks
to Ulrich Ring and Tobias Hippler for finding this.
2005-12-12 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tcl.m4, unix/configure: Fix sh quoting error reported in
bash-3.1+ [Bug 1377619] (schafer)
2005-12-12 Kevin B. Kenny <kennykb@acm.org>
* doc/mathfunc.n: Changed two examples from the incorrect 'tcl::math::'
to 'tcl::mathfunc::' [Bug 1378818]
2005-12-09 Mo DeJong <mdejong@users.sourceforge.net>
* win/configure: Regen.
* win/tcl.m4 (SC_CONFIG_CFLAGS): Define MACHINE for gcc builds. The
lack of a definition of this variable in the manifest file was causing
a runtime error in wish built with gcc.
2005-12-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* tests/lsearch.test (lsearch-10.8..10): If the -start is off the end,
* generic/tclCmdIL.c (Tcl_LsearchObjCmd): searching should find nothing
at all. [Bug 1374778]
2005-12-08 Jeff Hobbs <jeffh@ActiveState.com>
* win/Makefile.in, win/makefile.vc: Add Win x64 and CE build support
* win/tcl.m4, win/configure: CE still requires C code fixes.
* generic/tcl.h: use struct __stat64 (not _stat64) for MSC_VER >= 1400
(i.e. latest Platform SDK).
2005-12-07 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/socket.n: Cross-referenced the socket documentation better to the
fconfigure documentation on the topic of asynch sockets.
* doc/fconfigure.n: Added keyword to documentation of -blocking option
so that people looking for "asynch" can find it as well.
2005-12-05 Daniel Steffen <das@users.sourceforge.net>
* unix/tclUnixPort.h (Darwin): fix incorrect __DARWIN_UNIX03 configure
overrides that were originally copied from Darwin CVS (rdar://3693001)
2005-12-05 Kevin B. Kenny <kennykb@acm.org>
* tools/tclZIC.tcl: Updated to reflect changes in calling sequence when
GetJulianDateFromEraYearMonthDay moved to C.
* library/tzdata: Regenerated from Olson's tzdata2005p.tar.gz - the
'systemv' changes appear not to affect Tcl's processing of the dates.
2005-12-05 Daniel Steffen <das@users.sourceforge.net>
* unix/configure.in: move check for fts API to configure.in and run it
* unix/tcl.m4: on all platforms, since Linux glibc2 and *BSDs
also have this; using fts is more efficient than a recursive
opendir/readdir.
* unix/tclUnixFCmd.c (TraverseUnixTree): add support to fts code for
platforms with stat64.
* unix/configure:
* unix/tclConfig.h.in: regen.
2005-12-05 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure: Use fts file API on Darwin if available.
* unix/tcl.m4: Addresses file delete issues in readdir noted
* unix/tclUnixFCmd.c: in [Bug 1034337]. (steffen)
Remove redundant stat call for each file in DoCopyFile. (steffen)
2005-12-02 Kevin B. Kenny <kennykb@acm.org>
* generic/tclClock.c: Moved a tiny bit more of [clock format] from run
* library/clock.tcl: time to compile time, and fixed a l10n bug in the
process. [Bug 1371446]. Also, conditoned the call to SetupTimeZone to
speed the common case where TZData($timezone) already exists, and
achieved a puny speedup by making ::tcl::clock::getenv not throw
errors.
* unix/Makefile.in: Made some changes to support a 'make' command that
is present on some antiquated versions of Solaris.
2005-12-01 Kevin B. Kenny <kennykb@acm.org>
* library/clock.tcl: Continued rationalizing the code, eliminating
numerous redundant [mc] calls. Added another time boost by precompiling
a [::format] command to do the bulk of the work of [clock format].
2005-12-01 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/Makefile.in: Add remaining dependency info. While automated
maintenance of this information would be good, having it at all is much
better than a poke in the eye with a sharp stick...
2005-12-01 Daniel Steffen <das@users.sourceforge.net>
* generic/tclClock.c: fix warning.
* unix/tcl.m4 (Darwin): fix error when MACOSX_DEPLOYMENT_TARGET unset
* unix/configure: regen.
2005-11-30 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/Makefile.in: Add dependency information relating to tclCompile.h
since when the list of opcodes changes it is usually useful to rebuild
everything that depends on it (but which is nonetheless a small
fraction of the total set of Tcl source files).
***POTENTIAL INCOMPATIBILITY*** for bytecode savers/loaders. See below
* generic/tclCompCmds.c (TclCompileSwitchCmd): Arrange for very simple
[switch] invokations to be compiled into hash lookups into jump tables;
only a very specific kind of [switch] can be safely compiled this way,
but that happens to be the most common kind. This makes around 5-10%
difference to the speed of execution of clock.test.
* generic/tclExecute.c (TEBC:INST_JUMP_TABLE): New instruction to allow
for jumps to locations looked up in a hashtable. Requires a new AuxData
type, tclJumptableInfoType (supported by the functions DupJumptableInfo
and FreeJumptableInfo in tclCompCmds.c) so anything that saves bytecode
containing this *must* be updated!
2005-11-30 Kevin Kenny <kennykb@acm.org>
* generic/tclClock.c: Fixed a bad refcount in previous commit that led
to a corrupted heap. Also silenced a warning that some compilers gave
about the excessively long constant for JULIAN_SEC_POSIX_EPOCH. Also
fixed a bug where [clock format] would fail in the :localtime zone for
times before the Posix Epoch. Thanks to Miguel Sofer for pointing out
all of these. Also rationalized the code a little bit by moving parts
of [clock scan] into C, eliminating some code that was duplicated in
the C and Tcl layers.
2005-11-29 Kevin Kenny <kennykb@acm.org>
* generic/tclBasic.c: Moved a big part of [clock format] down
* generic/tclClock.c: to the C level in order to make it go faster.
* generic/tclInt.h: Preliminary measurements suggest that it
* generic/clock.tcl: more than doubles in speed with this change.
2005-11-29 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclCmdIL.c (Tcl_LsearchObjCmd): Allow [lsearch -regexp] to
process REs that contain backreferences. This expensive mode of
operation is only used if the RE would otherwise cause a compilation
failure. [Bug 1366683]
2005-11-28 Kevin Kenny <kennykb@acm.org>
* tools/tclZIC.tcl (convertTimeOfDay): Corrected a typo that caused
wrong DST transitions in any time zone where the transition is
specified as local Standard Time (as opposed to wall-clock or UTC).
(Also updated the code to be bignum-safe.)
* tests/clock.test (clock-51.1): Added regression test for the above.
* library/tzdata: Updated to Olson's 'tzdata2005o' (changes for Cuba,
Nicaragua, Jordan, and Georgia) and regenerated. Thanks to Paul
Mackerras for reporting this problem.
2005-11-27 Daniel Steffen <das@users.sourceforge.net>
* unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),
add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to
configure (flag can't be present twice, so can't be in both CFLAGS and
LDFLAGS during configure), don't use -prebind when deploying on 10.4,
define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542).
(SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete
autoconf macros. Sync with tk/unix/tcl.m4.
* unix/configure.in: fix obsolete autoconf macros, sync gratuitous
formatting/ordering differences with tk/unix/configure.in.
* unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable
linking the same as during configure (needed to avoid losing any linker
relevant flags in CFLAGS, in particular flags that cannot be in
LDFLAGS). Avoid concurrent linking of tclsh and compiling of
tclTestInit.o or xtTestInit.o during parallel make.
(checkstubs, checkdoc, checkexports): dependency and Darwin fixes
(dist): add new macosx files.
* unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING
on second NSAddImage only. [Bug 1204237]
(TclGuessPackageName): should not be MODULE_SCOPE.
(TclpLoadMemory): ppc64 and endian (i386) fixes, add support for
loading universal (fat) bundles from memory.
* unix/tclUnixFCmd.c:
* macosx/tclMacOSXFCmd.c: ppc64 and endian (i386) fixes.
(TclMacOSXCopyFileAttributes): add support for new Tiger copyfile() API
to enable copying of xattrs & ACLs by [file copy].
* generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE
defines to support fat compiles of ppc and ppc64 at the same time,
(replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location
of version numbers in macosx files.
* generic/tclInt.h: clarify fat compile comment.
* unix/tclUnixPort.h: add Darwin specifc configure overrides to support
fat compiles, where configure runs only once for multiple architectures
(replaces Darwin CVS fix by emoy, rdar://3693001).
* macosx/tclMacOSXBundle.c:
* macosx/tclMacOSXNotify.c:
* unix/tclUnixNotfy.c:
* unix/tclUnixPort.h: fix #include order to support compile time
override of HAVE_COREFOUNDATION in tclUnixPort.h when building for
ppc64
* macosx/Tcl.pbproj/default.pbxuser (new file):
* macosx/Tcl.pbproj/jingham.pbxuser:
* macosx/Tcl.pbproj/project.pbxproj:
* macosx/Tcl.xcode/default.pbxuser (new file):
* macosx/Tcl.xcode/project.pbxproj (new file):
* macosx/Tcl.xcodeproj/default.pbxuser (new file):
* macosx/Tcl.xcodeproj/project.pbxproj (new file): new/updated
projects for Xcode 2.2 on 10.4, Xcode 1.5 on 10.3 & ProjectBuilder on
10.2, with native tcltest targets and support for universal (fat)
compiles.
* macosx/README: clarification/cleanup, document new Xcode projects and
universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once).
* unix/Makefile.in:
* unix/aclocal.m4:
* unix/configure.in:
* unix/dltest/Makefile.in:
* macosx/configure.ac (new file): add support for inclusion of
unix/configure.in by macosx/configure.ac, allows generation of a config
headers enabled configure script in macosx (required by Xcode
projects).
* macosx/GNUmakefile: rename from Makefile to avoid overwriting by
configure run in tcl/macosx, add support for reusing configure cache,
build target fixes, remove GENERIC_FLAGS override now handled by
tcl.m4.
* generic/tcl.decls: add Tcl_Main declaration as comment to avoid
'checkstubs' target complaining about it missing from stubs.
* generic/regex.h:
* generic/tclDate.c:
* generic/tclEnv.c:
* generic/tclGetDate.y:
* generic/tclIOUtil.c:
* generic/tclObj.c:
* generic/tclStubInit.c:
* generic/tclStubLib.c:
* generic/tclPathObj.c:
* generic/tclThreadAlloc.c:
* generic/tclThreadStorage.c:
* generic/tclTrace.c:
* generic/tclVar.c:
* generic/tommath.h:
* tools/fix_tommath_h.tcl:
* unix/tclUnixFCmd.c: ensure externally visible symbols not contained
in stubs table are declared as MODULE_SCOPE (or as static if not used
outside of own source file). These changes allow 'make checkstubs' to
complete without error on Darwin with gcc 4.
* generic/rege_dfa.c (getvacant):
* generic/regexec.c (cfind):
* generic/tclCompExpr.c (CompileSubExpr):
* generic/tclNamesp.c (NamespaceEnsembleCmd):
* unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to
silence gcc 4 warnings.
* generic/tclExecute.c (TclExecuteByteCode): fix unused variable
warning when NO_WIDE_TYPE is defined.
* generic/regguts.h: only #define NDEBUG if not already #defined.
* unix/tclUnixNotfy.c:
* macosx/tclMacOSXNotify.c: sync whitespace & comments.
* unix/tclUnixPort.h:
* win/tclWinPort.h: remove declaration of obsolete&unused TclpMutex
API.
* unix/configure:
* unix/tclConfig.h.in: regen.
2005-11-21 Andreas Kupries <andreask@activestate.com>
* unix/Makefile.in (install-libraries): Updated Makefile to new
* win/Makefile.in (install-libraries): version of the http package.
This fixes the ifneeded/provide mismatch reported when trying to
require http. Should we maybe try to automatically extract the version
number from the http code to prevent future breakage ?
This follows the update of the version number by dgp on Nov 15 (No
entry found in the ChangeLog).
2005-11-20 Joe English <jenglish@users.sourceforge.net>
* generic/tclStubLib.c: Don't set tclStubsPtr to 0 when
Tcl_PkgRequireEx() fails [Fix for [Bug 1091431] "Tcl_InitStubs failure
crashes wish"]
2005-11-18 Miguel Sofer <msofer@users.sf.net>
* tests/trace.test (trace-34.5): [Bug 1047286], added a second test
illustrating the role of "ns in callStack" in the ns's visibility
during deletion traces.
2005-11-18 Kevin B. Kenny <kennykb@acm.org>
* doc/clock.n: Restored several missing lines near the %w format group
so that %w and %W are documented with their actual behaviour. [Bug
1359183]
2005-11-18 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclIO.c (TclFinalizeIOSubsystem): preserve statePtr until we
retrieve the next statePtr from it.
2005-11-18 Miguel Sofer <msofer@users.sf.net>
* generic/tclObj.c (GetBignumFromObj): replace NULL with
tclEmptyStringRep to stop memcpy from complaining in a debug build
(the corresponding branch is eliminated by the optimiser otherwise).
2005-11-18 Andreas Kupries <andreask@activestate.com>
* generic/tclIO.c (TclFinalizeIOSubsystem): Applied Pat Thoyts' patch
for [Bug 1359094]. This moves the retrieval of the next channel state
to the end of the loop, as the called closeproc may close other
channels, i.e. modify the list we are iterating, invalidating any
pointer retrieved earlier.
2005-11-18 Don Porter <dgp@users.sourceforge.net>
* generic/tclListObj.c: Restored the SetListFromAny routine to the
* generic/tclObj.c: "list" Tcl_ObjType, and restored the
Tcl_RegisterObjType() call for "list". This addresses the needs of some
"bridge" extensions to examine whether the Tcl_ObjType of a Tcl_Obj is
that of the "list" Tcl_ObjType.
2005-11-18 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* library/http/http.tcl (http::geturl): Improved syntactic validation
of URLs, and better error messages in some cases. [Bug 1358369]
2005-11-17 Miguel Sofer <msofer@users.sf.net>
* tests/namespace.test: fix comment
2005-11-14 Don Porter <dgp@users.sourceforge.net>
* generic/tclStrToD.c: More data in the "can't happen" Tcl_Panic to
aid debugging.
* generic/tclBasic.c (CallCommandTraces): Save/restore the interp
result during traces to fix [Bug 1355342].
2005-11-13 Miguel Sofer <msofer@users.sf.net>
* generic/tclInt.h:
* generic/tclNamesp.c:
* tests/namespace.test: fix for [Bug 1354540] and [Bug 1355942]. The
new tests 7.3-6 and the modified 51.13 fail due to the unrelated [Bug
1355342]
* tests/trace.test: added tests 20.13-16 for [Bug 1355342]
2005-11-12 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c (Tcl_DeleteCommandFromToken):
* generic/tclObj.c (Tcl_GetCommandFromObj): more partial fixes for
[Bug 1354540] - making sure that cached references to a command being
deleted cannot be made reusable by a delete trace.
2005-11-12 Donal K. Fellows <dkf@users.sf.net>
* generic/tclNamesp.c (Tcl_FindCommand): Do not find commands in dead
namespaces on the path. Partial fix for [Bug 1354540].
2005-11-11 Don Porter <dgp@users.sourceforge.net>
* generic/tclInt.h: Revised TclParseNumber interface to enable
* generic/tclScan.c: revision to the [scan] command implementation
* generic/tclStrToD.c: to permit tests scan-4.44,55 to pass again.
[Bug 1348067].
2005-11-11 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c (Tcl_DeleteCommandFromToken):
* generic/tclObj.c (Tcl_GetCommandFromObj): bump the cmd epoch early
to insure that cached references to this command are invalidated.
Partial fix for [Bug 1352734] - at least insures that namespace-51.13
does not cause a panic. The test is still marked as knownbug, pending
resolution of what is actually the correct return value ([Bug
1354540])
2005-11-09 Kevin B. Kenny <kennykb@acm.org>
* generic/tclTimer.c: Changed [after] so that it behaves correctly
* tests/timer.test: with negative arguments [Bug 1350293] and
arguments that overflow a 32-bit word. [Bug 1350291]
2005-11-08 Don Porter <dgp@users.sourceforge.net>
* tests/compile.test: Updated tests with changed behavior
* tests/execute.test: due to addition of bignums.
* tests/expr-old.test:
* tests/expr.test:
* tests/parseExpr.test:
* tests/platform.test:
* tests/string.test:
2005-11-08 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclUnixFCmd.c (MAX_READDIR_UNLINK_THRESHOLD): reduce to 130
based on errors seen on OS X 10.3 with lots of links in a dir.
[Bug 1034337 followup]
2005-11-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/Makefile.in (gdb-test): Added a new target to make it easier to
run the test suite inside a debugger.
2005-11-08 Don Porter <dgp@users.sourceforge.net>
* tests/compExpr-old.test: Updated tests with changed behavior due
to addition of bignums.
* tests/expr.test: Portable tests expr-46.13-18 [Bug 1341368]
* generic/tclPkg.c: Corrected inconsistencies in the value returned
* tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned
values will always agree with what is stored in the package database.
This way repeated calls to Tcl_PkgRequire(Ex) have the same results.
Thanks to Hemang Lavana. [Bug 1162286].
2005-11-08 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclTrace.c (TraceVarEx): Factor out heart of Tcl_TraceVar2
(TclTraceVariableObjCmd,TraceVarProc): Use the new internal API to
arrange for the clientData to be cleaned up at the same time as the
rest of the main trace record. This simplifies the code a bit at the
same time.
2005-11-07 Miguel Sofer <msofer@users.sf.net>
* tests/trace.test (trace-13.2-4): added tests to detect leak, see [Bug
1348775]. The recently added trace-8.9 test is now 13.4.
2005-11-07 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* tests/dict.test (dict-19.2): arrange for the stress testing code to
only stress test the dict code and not the trace code as well. [Bug
1342858]
2005-11-05 Miguel Sofer <msofer@users.sf.net>
* tests/trace.test (trace-8.9): added test to detect leak, see [Bug
1348775].
2005-11-04 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/tclWinPort.h: Applied [Patch 1267871] by Matt Newman for
* win/tclWinPipe.c: extended error code support on Windows.
* tests/exec.test: Tests for extended error codes.
* generic/tclPipe.c: Permit long codes (platform macros permitting).
2005-11-04 Miguel Sofer <msofer@users.sf.net>
* generic/tclBinary.c:
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclIOCmd.c:
* generic/tclLink.c:
* generic/tclTest.c:
* generic/tclVar.c: fix for [Bug 1334947]. The functions TclPtrSetVar,
Tcl_ObjSetVar2 and Tcl_SetVar2Ex now always consume the newValuePtr
argument - i.e., they will free a 0-refCount object if they failed to
set the variable. Fixed all callers in the core.
2005-11-04 Kevin Kenny <kennykb@acm.org>
* generic/tclGetDate.y: Added abbreviations for the Korean
* library/clock.tcl: timezone. [Patch 1298737]
* generic/tclDate.c: Regenerated.
* tools/findBadExternals.tcl: Added this script, which locates external
symbols that do not begin with 'Tcl' or 'tcl' and hence might be in
conflict with other link libraries. Thanks to George Peter Staplin for
the idea and the initial version of the script. [Bug 1263012]
* unix/Makefile.in: Trimmed a bunch of fat out of the tommath/
directory in 'make dist'. [RFE 1333318]
* unix/tcl.m4: Added code to enable [load] on LynxOS. Thanks to
heidibr@users.sf.net for the patch. [Bug 1163896]. Removed the last
vestiges of GNU dld from the Unix build [RFE 1071992].
* unix/tclLoadDld.c: Removed.
* unix/configure: Regenerated.
2005-11-04 Miguel Sofer <msofer@users.sf.net>
* generic/tclInt.h:
* generic/tclNamesp.c:
* generic/tclVar.c:
* tests/trace.test: fix for [Bugs 1338280/1337229]; changed to use the
same approach as the 8.4 patch in the ticket (i.e., removed the patch
committed on 2005-31-10).
2005-11-03 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/tclWin32Dll.c: Applied [Patch 1256872] to provide unicode
* win/tclWinConsole.c: support in the console on suitable systems.
* win/tclWinInt.h: Patch by Anton Kovalenko
2005-11-02 Pat Thoyts <patthoyts@users.sourceforge.net>
Applied [Patch 1096916] to support building with MSVC 8.
* generic/regerror.c: Avoid use of reserved word.
* generic/tcl.h: Select the right Tcl_Stat structure
* generic/tclDate.c: Casts to handle 64 bit time_t case.
* tests/env.test: Include essential envvar on Win32
* win/nmakehlp.c: Handle new return codes.
* win/makefile.vc: Use the selected options.
* win/rules.vc: Check options are applicable
* win/tclWinPort.h: Disable deprecated function warnings
* win/tclWinSock.c: Provide default value to avoid warning.
* win/tclWinTime.c: Add casts to handle 64bit time_t type.
2005-11-01 Don Porter <dgp@users.sourceforge.net>
* generic/tclTrace.c (TclCheckExecutionTraces): Corrected mistaken
assumption that all command traces are set at the script level.
Report/fix from Jacques H. de Villiers. [Bug 1337941]
* tests/unixNotfy.test (1.1,2): Update error message whitespace to
match changes in code.
* tests/expr-old.test (expr-32.52): Use int(.) to restrict result of
left shift to the C long range.
* expr.test (expr-46.13): Added test that illustrates shortcoming of
[Patch 1340260].
2005-10-31 Miguel Sofer <msofer@users.sf.net>
* generic/tclNamesp.c: fix for [Bugs 1338280/1337229]. Thanks Don.
* tests/trace.test: fix duplicate test numbers
2005-10-31 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* win/tclWinSerial.c (SerialSetOptionProc): Cleaned up option parsing
to produce more informative error messages and separate error and
non-error code paths better.
* tests/ioCmd.test (iocmd-8-19): Updated.
2005-10-29 Miguel Sofer <msofer@users.sf.net>
* generic/tclTrace.c (TraceVarProc): [Bug 1337229], partial fix. Ensure
that a second call with TCL_TRACE_DESTROYED does not lead to a second
call to Tcl_EventuallyFree(). It is still true that that second call
should not happen, so the bug is not completely fixed.
* tests/trace.test (test-18.3-4): added tests for [Bug 1337229] and
[Bug 1338280].
2005-10-23 Vince Darley <vincentdarley@sourceforge.net>
* generic/tclFileName.c: fix to memory leak in glob [Bug 1335006] Obj
leak detection and patch by Eric Melbardis.
* tests/fCmd.test:
* win/tclWinFile.c: where appropriate windows API is available, try to
set 'nlink' and 'ino' stat fields (previously they were always 0). [Bug
1325803]
2005-10-22 Miguel Sofer <msofer@users.sf.net>
* tests/foreach.test (foreach-8.1): added test for [Bug 1189274]
2005-10-22 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c (INST_INCR_*): fixed [Bug 1334570]. Obj leak
detection and patch by Eric Melbardis.
2005-10-21 Kevin B. Kenny <kennykb@acm.org>
* generic/tclStrToD.c (RefineApproximation): Plugged a memory leak
where two intermediate results were not freed on one return path. [Bug
1334461]. Thanks to Eric Melbardis for the patch.
2005-10-21 Donal K. Fellows <dkf@users.sf.net>
* doc/binary.n: Clarify that virtually all code that uses the 'h'
format in [binary scan] should be using the 'H' format instead. It is
nearly always a bug to use the other!
2005-10-20 Miguel Sofer <msofer@users.sf.net>
* generic/tclListObj.c (TclLsetFlat):
* tests/lset.test (lset-10.3): fixed handling of unshared lists with
shared sublists, [Bug 1333036] reported by neuronstorm.
2005-10-19 Donal K. Fellows <dkf@users.sf.net>
* generic/tclIORChan.c (PassReceivedError,PassReceivedErrorInterp):
Fix crash caused by passing -1 as the length to TclNewStringObj(). Only
Tcl_NewStringObj (the function call, not the macro) handles that sort
of thing correctly. This makes ioCmd.test pass again.
2005-10-19 Don Porter <dgp@users.sourceforge.net>
* generic/tclClock.c: Removed some dead code.
* generic/tclCmdIL.c:
* generic/tclCompCmds.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclLiteral.c:
* generic/tclParseExpr.c:
* generic/tclScan.c:
* generic/tclUtil.c:
* generic/tclVar.c:
2005-10-19 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclIORChan.c: General cleanup, removing checks that are
unnecessary due to the general contracts of other functions in the
core, converting to using ANSI declarations, etc. Note that nearly the
whole file has changed, but it is often just cosmetic.
2005-10-19 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c (INST_DICT_APPEND, INST_DICT_LAPPEND): fixed
faulty peephole optimisation that can cause crashes, [Bug 1331475]
reported by Aric Bills.
2005-10-18 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Added optimization for I32L64 systems to avoid
using bignums to perform int multiplies. The improvement shows up most
dramatically in tclbench's matrix.bench.
2005-10-15 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Restored some optimizations of the
INST_INCR_SCALAR1_IMM opcode.
2005-10-14 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclIO.c (Tcl_ClearChannelHandlers): removed change dated
2005-10-04 (see below). Look into [Bug 1323992] for detailed
discussion.
* generic/tcl.h: Fixed bad definition of CRTEXPORT which should have
been CRTIMPORT rather. This broke compilation of generic/tclMain.c and
was probably introduced by mistake while applying the fix for [Bug
1256937] below.
2005-10-14 Kevin Kenny <kennykb@acm.org>
* generic/tclExecute.c (TclIncrObj, TclExecuteByteCode): Tidied up a
couple of infelicitous do {...} while(0) constructs.
2005-10-14 Pat Thoyts <patthoyts@users.sourceforge.net>
* generic/tcl.h: Fix for [Bug 1256937] - correctly decorate
* generic/tclMain.c: imported functions from msvcrt in static builds.
2005-10-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* tests/format.test: "Forward"-port of test updates relating to [Bug
1284178]. The bug itself was fixed by TIP#237.
2005-10-13 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclIO.c (Tcl_ClearChannelHandlers): temporary ifdef
TCL_THREADS changes done to de-activate pending event processing when
channel is being closed/cutted.
2005-10-13 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Removed obsolete use of NO_ERRNO_H.
* tools/man2tcl.c:
* unix/tcl.m4:
* unix/tclConfig.h.in:
* win/configure.in:
* unix/configure: autoconf-2.59
* win/configure:
* compat/tclErrno.h: Removed obsolete file.
* generic/tclStrToD.c (TclParseNumber): Missing goto caused crash when
parsing "Na". [Bug 1325833]
2005-10-12 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c (GetNumberFromObj): Restored some lost
optimizations for empty string values. We avoid cost of a call to
TclParseNumber just to tell us an empty string isn't a number.
2005-10-12 Donal K. Fellows <dkf@users.sf.net>
* generic/tclPathObj.c (SetFsPathFromAny): TclGetString macro must not
be combined with post-increment arguments. [Bug 1325099]
2005-10-12 Kevin Kenny <kennykb@acm.org>
* generic/tclExecute.c (Tcl_ExecuteByteCode, TclIncrObj): Several
common cases inlined in hopes of gaining a little performance in [incr]
2005-10-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclCompCmds.c: New convenience macro CompileTokens().
2005-10-10 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Corrections to the NO_WIDE_TYPE build. Also
added missing "break" to a switch that broke wide XOR operations.
2005-10-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclInterp.c (DeleteScriptLimitCallback)
(SetScriptLimitCallback): Improve the interlocking between the script
limit callback record and the hash table of current such records, to
prevent crashes in callbacks that create callbacks.
(Tcl_LimitSetTime): Reset the correct flag. Problem reported by
Nicolas Castagne <castagne@imag.fr> on comp.lang.tcl
2005-10-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: Fixing errors in last commit. (Two commits, the
second removes wrong comment).
2005-10-09 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c:
* generic/tclExecute.c:
* generic/tclStrToD.c:
* generic/tclStringObj.c: Initialise variables to avoid compiler
warnings ([Bug 1320818] among others).
2005-10-08 Don Porter <dgp@users.sourceforge.net>
TIP#237 IMPLEMENTATION
[kennykb-numerics-branch] Resynchronized with the HEAD; at this
checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and
kennykb-numerics-branch contain identical code.
[kennykb-numerics-branch] Merge updates from HEAD
* generic/tclExecute.c: More performance macros and special handling of
the wide integer type for performance on 32-bit systems.
2005-10-07 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Macro GetNumberFromObj() is version of
TclGetNumberFromObj() that saves a function call for common uses.
* generic/tclInt.h: Made #undef NO_WIDE_TYPE the default on 32-bit
systems. Being able to use 64-bit values without leaping to mp_int
should help with performance.
* generic/tclObj.c: Bug fixes in the #undef NO_WIDE_TYPE
* generic/tclExecute.c: configuration.
* generic/tclExecute.c: Improved performance of comparison opcodes and
bitwise operations and removed yet more dead code.
2005-10-07 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclUnixFCmd.c (TraverseUnixTree): Adjust 2004-11-11 change to
* tests/fCmd.test (fCmd-20.2): account for NFS special files
with a readdir rewind threshold. [Bug 1034337]
2005-10-06 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Improved performance of INST_RSHIFT and
INST_LSHIFT.
2005-10-05 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Improved performance of INST_MULT, INST_DIV,
INST_ADD, and INST_SUB and replaced a "goto... label" with a "break
from loop" in TclIncrObj() and removed some dead code.
2005-10-05 Andreas Kupries <andreask@activestate.com>
* generic/tclPipe.c (TclCreatePipeline): Fixed [Bug 1109294]. Applied
the patch provided by David Gravereaux.
* doc/CrtChannel.3: Fixed [Bug 1104682], by application of David
Welton's patch for it, and added a note about wideSeekProc.
* generic/tclIORChan.c (RcClose): Removed unreachable panic/return
statements. This fixes the remainder of [Bug 1286256].
2005-10-05 Jeff Hobbs <jeffh@ActiveState.com>
* tests/env.test (env-6.1):
* win/tclWinPort.h: define USE_PUTENV_FOR_UNSET 1
* generic/tclEnv.c (TclSetEnv, TclUnsetEnv): add USE_PUTENV_FOR_UNSET
to existing USE_PUTENV define to account for various systems that have
putenv(), but can't unset env vars with it. Note difference between
Windows and Linux for actually unsetting the env var (use of '=').
Correct the resizing of the environ array. We assume that we are in
full ownership, but that's not correct.[Bug 979640]
2005-10-04 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Updated TclIncrObj() to more efficiently add
native long integers. Also updated IllegalExprOperandType and the
INST_UMINUS, INST_UPLUS, INST_BITNOT, and INST_TRY_CVT_TO_NUMERIC
sections for performance.
* generic/tclBasic.c: Updated more callers to make use of
TclGetNumberFromObj. Removed some dead code.
2005-10-04 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinSerial.c (SerialSetOptionProc): free argv [Bug 1067708]
* tests/http.test: do not URI encode -._~ according
* library/http/http.tcl (init): to RFC3986. [Bug 1182373] (aho)
* unix/tclLoadShl.c (TclpDlopen): use DYNAMIC_PATH on second shl_load
only. [Bug 1204237]
* doc/scan.n: scan %[] requires "one or more chars" [Bug 1277503]
* tests/winFile.test (getuser): allow valid Windows usernames. [Bug
1311285]
* generic/tclParse.c (Tcl_ParseCommand): add code that recognizes {} in
addition to {expand} for word expansion (make with
-DALLOW_EMPTY_EXPAND).
2005-10-04 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclIO.c (Tcl_ClearChannelHandlers): now deletes any
outstanding timer for the channel. Also, prevents events still in the
event queue from triggering on the current channel.
* generic/tclTimer.c (Tcl_DeleteTimerHandler): bail out early if passed
NULL argument.
2005-10-03 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclBasic.c: Re-implemented ExprRoundFunc and
ExprEntierFunc to use TclGetNumberFromObj.
* generic/tclInt.h: Added new routine TclGetNumberFromObj to
* generic/tclObj.c: provide efficient access to the actual
internal rep of a numeric Tcl_Obj without conversions.
2005-10-03 Kevin Kenny <kennykb@acm.org>
* tools/loadICU.tcl: Changed the file names of message catalogs to
lowercase.
* tools/makeTestCases.tcl:
* library/tzdata/*: Olson's tzdata2005n.tar.gz. Includes new DST
rules for USA and a number of changes to other locales.
* tests/clock.test: Regenerated for new US DST rules.
2005-09-30 Don Porter <dgp@users.sourceforge.net>
* generic/tclMain.c: Separate encoding conversion of command line
arguments from list formatting. [Bug 1306162].
2005-09-30 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclStringObj.c: Bug fix: Missing cast to large enough
integral size before << operations led to broken [format %llx] results.
Thanks to Robert Henry for reporting the bug.
2005-09-29 Jeff Hobbs <jeffh@ActiveState.com>
* doc/mathfunc.n: implementation for TIP #255, expr min/max
* library/init.tcl:
* tests/info.test, tests/expr-old.test:
2005-09-27 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tcl.h: Changed name of the new Tcl_Obj intrep field
* generic/tclObj.c: from "bignumValue" to "ptrAndLongRep" as
* generic/tclProc.c: described in TIP 237, and more suitable for
other more general uses.
2005-09-27 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* tests/binary.test (binary-14.18): Added test for [Bug 1116542] though
the bug itself was already fixed by unrelated changes.
2005-09-26 Kevin Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Merge updates from HEAD.
2005-09-26 Kevin Kenny <kennykb@acm.org>
* libtommath/: Updated to release 0.36.
* generic/tommath.h: Regenerated.
* generic/tclTomMathInterface.h: Added ten missing aliases for mp_*
functions to avoid namespace pollution in Tcl's exported symbols. [Bug
1263012]
2005-09-23 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* unix/Makefile.in: Added -DMP_PREC=4 switch to all compiles so
* win/Makefile.in: that minimum memory requirements of mp_int's
* win/makefile.vc: will not be quite so large. [Bug 1299153].
* generic/tclStrToD.c: Fixed memory leak. [Bug 1299803].
* generic/tclObj.c:
2005-09-20 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Revise TclIncrObj() to call
Tcl_GetBignumAndClearObj.
* generic/tcl.decls: Add Tcl_GetBignumAndClearObj.
* generic/tclObj.c:
* generic/tclDecls.h: make genstubs
* generic/tclStubInit.c:
2005-09-16 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclInt.h: Added TclBNInitBigNumFromWideInt() so
* generic/tclTomMathInterface.c: that every caller isn't required to
duplicate the sign logic to use the unsigned interface.
* generic/tclBasic.c: Reduce the number of places where Tcl intrudes
* generic/tclExecute.c: into the internal format details of the mp_int
* generic/tclObj.c: struct.
* generic/tclStrToD.c:
* generic/tcLStringObj.c:
* generic/tclTomMath.h: Added mp_cmp_d to routines from libtommath
* unix/Makefile.in: used by Tcl.
* win/Makefile.in:
* win/makefile.vc:
* libtommath/bn_mp_add_d.c: Bug fix. For mp_add_d(&a, d, &c), when &a
has the value -d, then the value &c computed should be zero, but
mp_add_d was producing an inconsistent zero value with a sign field of
MP_NEG, something like a value of -0, which other routines in
libtommath can't handle.
* generic/tclExecute.c: Dropped all creation of "bigOne" values and
just use tommath routines that accept the value "1" directly.
2005-09-15 Miguel Sofer <msofer@users.sf.net>
* doc/ParseCmd.3: copy/paste fix [Bug 1292427]
2005-09-15 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Merge updates from HEAD.
* generic/tclStringObj.c (TclAppendFormattedObjs): Revision to
eliminate one round of string copying.
* generic/tclBasic.c: More callers of TclObjPrintf and
* generic/tclCkalloc.c: TclFormatToErrorInfo.
* generic/tclCmdMZ.c:
* generic/tclExecute.c:
* generic/tclIORChan.c:
* generic/tclMain.c:
* generic/tclProc.c:
* generic/tclTimer.c:
* generic/tclUtil.c:
* unix/tclUnixFCmd.c
* unix/configure: autoconf-2.59
2005-09-15 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* unix/tcl.m4 (SC_TCL_EARLY_FLAGS): Added extra hack to allow Tcl to
transparently open large files on RHEL 3. [Bug 1287638]
2005-09-14 Don Porter <dgp@users.sourceforge.net>
* generic/tclStringObj.c: Bug fixes: ObjPrintfVA needed to
support "*" fields and needed to interpret precision limits on %s
conversions as a maximum number of bytes, not Tcl_UniChars, to take
from the (char *) argument.
* generic/tclBasic.c: Updated several callers to use
* generic/tclCkalloc.c: TclFormatToErrorInfo() and/or
* generic/tclCmdAH.c: TclObjPrintf().
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclIORChan.c:
* generic/tclIOUtil.c:
* generic/tclNamesp.c:
* generic/tclProc.c:
* library/init.tcl: Keep [unknown] in sync with errorInfo
formatting rules.
2005-09-13 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: First caller of TclFormatToErrorInfo.
* generic/tclInt.h: Using stdarg.h conventions, add more
* generic/tclStringObj.c: fixed arguments to TclFormatObj() and
TclObjPrintf(). Added new routine TclFormatToErrorInfo().
* generic/tcl.h: Explicitly standardized on the use of stdarg.h
* generic/tclBasic.c: conventions for functions with variable number
* generic/tclInt.h: of arguments. Support for varargs.h has been
* generic/tclPanic.c: implicitly gone for some time now. All
* generic/tclResult.c: TCL_VARARGS* macros purged from Tcl sources,
* generic/tclStringObj.c: leaving only some deprecated #define's
* tools/genStubs.tcl: in tcl.h for the sake of older extensions.
* generic/tclDecls.h: make genstubs
* doc/AddErrInfo.3: Replaced all documented requirement for use of
* doc/Eval.3: TCL_VARARGS_START() with requirement for use of
* doc/Panic.3: va_start().
* doc/SetResult.3:
* doc/StringObj.3:
2005-09-12 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Merge updates from HEAD.
* generic/tclCmdAH.c: Added support for the "ll" width
* generic/tclStringObj.c: specifier to [format].
* generic/tclStringObj.c (TclAppendFormattedObjs): Bug fix: make
sure %ld formats force the collection of a wide value, when the value
could be a different long.
2005-09-09 Andreas Kupries <andreask@activestate.com>
* generic/tclIORChan.c (RcDecodeEventMask): Added missing type
declaration for the parameter 'mask'. This fixes the [Bug 1286256]. The
other warning can be removed only by removing the panic/return code.
2005-09-09 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Merge updates from HEAD.
2005-09-09 Kevin Kenny <kennykb@acm.org>
* generic/tclStringObj.c: Added two missing casts to silence messages
from MSVC6.
2005-09-09 Don Porter <dgp@users.sourceforge.net>
* generic/tclInt.h: New internal routine TclObjPrintf()
* generic/tclStringObj.c: is similar to TclFormatObj() but
accepts arguments in non-Tcl_Obj format.
* generic/tclInt.h: New internal routines TclFormatObj()
* generic/tclStringObj.c: and TclAppendFormattedObjs() to offer
sprintf()-like means to append to Tcl_Obj. Work in progress toward
[RFE 572392].
* generic/tclCmdAH.c: Compiler directive NEW_FORMAT when #define'd
directs the [format] command to be implemented in terms of the new
TclAppendFormattedObjs() routine.
2005-09-08 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
TIP#254 IMPLEMENTATION
* generic/tclLink.c (LinkTraceProc,ObjValue): Added many new of C var
* generic/tcl.h: to link to, making it
* doc/LinkVar.3: easier to seamlessly
* generic/tclTest.c (TestlinkCmd): couple C code and Tcl
* tests/link.test: scripts in an
application. [Patch 1242844]
2005-09-07 Don Porter <dgp@users.sourceforge.net>
* generic/tclUtf.c (Tcl_UniCharToUtf): Corrected handling of negative
* tests/utf.test (utf-1.5): Tcl_UniChar input value. Incorrect
handling was producing byte sequences outside of Tcl's legal internal
encoding. [Bug 1283976].
2005-09-06 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclInt.h (List): Added flag to keep track of whether a list
* generic/tclListObj.c: with a string rep is provably canonical.
* generic/tclUtil.c (Tcl_ConcatObj): Do efficient concatenation and
* generic/tclBasic.c (Tcl_EvalObjEx): evaluation when the list is
canonical, and not just when the list is pure. This should make the
"pure list" hacking introduced in 8.3 much more robust.
2005-09-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclObj.c (pendingObjDataKey): Added missing 'static' to stop
symbol from leaking outside the Tcl library. [Bug 1263012]
2005-09-02 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclScan.c: Bug fix: The %o, %x, %i formats of [scan] must
not accept any 0b or 0o prefixes. [scan $s %o] must continue to work
even with KILL_OCTAL enabled.
* generic/tclInt.h: Added TCL_PARSE_SCAN_PREFIXES to the flags
* generic/tclStrToD.c: accepted by TclParseNumber.
2005-09-01 Andreas Kupries <andreask@activestate.com>
* unix/tclUnixSock.c (InitializeHostName): Synchronized use of static
modifier in declaration and definition of function.
* unix/tclUnixChan.c (FileTruncateProc): Synchronized use of static
modifier in declaration and definition of function.
* generic/tclResult.c (ReleaseKeys): Synchronized use of static
modifier in declaration and definition of function.
* generic/tclListObj.c (NewListIntRep): Synchronized use of static
modifier in declaration and definition of function.
* generic/tclEncoding.c (InitializeEncodingSearchPath): Synchronized
use of static modifier in declaration and definition of function.
* generic/tclEncoding.c (FillEncodingFileMap): Synchronized use of
static modifier in declaration and definition of function.
* generic/tclIORChan.c (RcNewHandle): Synchronized use of static
modifier in declaration and definition of function.
2005-09-01 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclObj.c: TclParseNumber calls meant to parse an integer
value now pass the TCL_PARSE_INTEGER_ONLY flag.
* generic/tclScan.c: Extended [scan] to accept the %lld, %llo, %llx,
and %lli formats. Numeric scanning is now done via TclParseNumber calls
* generic/tclInt.h: Extended TclParseNumber to accept new flag
* generic/tclStrToD.c: values TCL_PARSE_INTEGER_ONLY,
TCL_PARSE_OCTAL_ONLY, and TCL_PARSE_HEXIDECIMAL_ONLY, to give caller
more control over the parsing rules.
2005-08-31 Vince Darley <vincentdarley@sourceforge.net>
* doc/FileSystem.3:
* unix/tclUnixFile.c:
* windows/tclWinFile.c: clarify that Tcl_FSMatchInDirectory may be
called with a NULL interpreter, and fix the code so this is allowed.
Tcl's core itself (tclEncoding.c:FillEncodingFileMap()) calls this
with a NULL interpreter.
2005-08-30 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclObj.c: Extended bignum support to include bignums so
large they will not pack into a Tcl_Obj. When they outgrow Tcl's string
rep length limits, a panic will result.
* generic/tclTomMath.h: Added mp_sqrt to routines from
* unix/Makefile.in: libtommath used by Tcl.
* win/Makefile.in:
* win/makefile.vc:
* generic/tclBasic.c: Extended sqrt(.) so that range covers the
entire double range, accepting as many bignums in the domain as that
will allow.
2005-08-29 Andreas Kupries <andreask@activestate.com>
* library/tm.tcl (::tcl::tm::roots): Accepted Don Porter's patch for
[Bug 1189657]. Syncs the implementation to the specification (TIP #189)
2005-08-29 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Merge updates from HEAD.
* generic/tclBasic.c: Restored round(.) to the Tcl 8.4 rules.
2005-08-29 Kevin Kenny <kennykb@acm.org>
* generic/tclBasic.c (ExprMathFunc): Restored "round away from zero"
* tests/expr.test (expr-46.*): behaviour to the "round" function.
Added test cases for the behavior, including the awkward case of a
number whose fractional part is 1/2-1/2ulp. [Bug 1275043]
2005-08-26 Andreas Kupries <andreask@activestate.com>
* generic/tclIO.c: Moved Tcl_{Cut,Splice}Channel to
{Cut,Splice}Channel for internal use, and created new public functions
for Tcl_{Cut,Splice}Channel which walk the whole stack of
transformations and invoke the necessary thread actions. Added code to
Tcl_(Un)StackChannel to properly invoke the thread actions when pushing
and popping transformations on/from a channel.
2005-08-26 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclNamesp.c (NamespaceEnsembleCmd): Reset the result after
creating an ensemble to clear any result object sharing (potentially
caused by delete traces) so that we can safely return the name of the
ensemble. Previously, this caused crashes in Snit's test suite.
2005-08-25 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclListObj.c (UpdateStringOfList): Stop uncontrolled and
unsafe crashes from happening when working with very large string
representations. [Bug 1267380]
* generic/tclExecute.c (TEBC:INST_DICT_LAPPEND): Stop dropping a
duplicated object on the floor, which was a memory leak (and a wrong
result too). Thanks to Andreas Kupries for reporting this.
2005-08-25 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Merge updates from HEAD
* generic/tclExecute.c: Bug fix. INST_RSHIFT: shift of negative values
produced incorrect results.
* generic/tclExecute.c: Bug fix. INST_*SHIFT opcodes stack management.
[expr 0<<6] should be 0, not 6.
* generic/tclBasic.c: Extended the domain of round(.) to all non-Inf,
non-NaN doubles, using bignums for the result as needed.
2005-08-24 Andreas Kupries <andreask@activestate.com>
TIP#219 IMPLEMENTATION
* doc/SetChanErr.3: ** New File **. Documentation of the new channel
API functions.
* generic/tcl.decls: Stub declarations of the new channel API.
* generic/tclDecls.h: Regenerated
* generic/tclStubInit.c:
* tclIORChan.c: ** New File **. Implementation of the reflected
channel.
* generic/tclInt.h: Integration of reflected channel and new error
* generic/tclIO.c: propagation into the generic I/O core.
* generic/tclIOCmd.c:
* generic/tclIO.h:
* library/init.tcl:
* tests/io.test: Extended testsuite.
* tests/ioCmd.test:
* tests/chan.test:
* generic/tclTest.c:
* generic/tclThreadTest.c:
* unix/Makefile.in: Integration into the build machinery.
* win/Makefile.in:
* win/Makefile.vc:
2005-08-24 Kevin Kenny <kennykb@acm.org>
* generic/tclStrToD.c (Tcl_DoubleDigits): Fixed the corner cases of
* tests/binary.test (binary-65.*) formatting floating point
numbers with the largest and smallest possible significands, and added
test cases for them.
2005-08-24 Kevin Kenny <kennykb@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Corrected some TRACE bugs that prevented
compilation with --enable-symbols=all.
* generic/tclStrToD.c: Revised commentary to prepare for a renaming of
the file, removed some dead code, and fixed a bug where
TclBignumToDouble failed on huge negative numbers.
* tests/binary.test (binary-65.*): Added missing 'ieeeFloatingPoint'
to large/small significand tests.
* tests/expr.test (expr-45.*) Added missing braces around expressions.
2005-08-24 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclBasic.c: Revised implementation of the ceil(.) and
* generic/tclInt.h: floor(.) math functions in light of the
* generic/tclStrToD.c: revised comparison operators, so that it is
always true that ($x <= ceil($x)) and ($x >= floor($x)). The simple
approach of "convert to double and call ceil() or floor()" could not
guarantee that.
* generic/tclExecute.c: Bug fix: TclBignumToDouble return -Inf when
appropriate. Removed declarations of removed routines.
* generic/tclExecute.c: Revised the type promotion rules of the
comparison operators so that they form proper equivalence classes over
the set of numeric strings.
2005-08-23 Mo DeJong <mdejong@users.sourceforge.net>
* unix/configure.in:
* win/configure: Regen.
* win/configure.in: Update minimum autoconf version to 2.59.
2005-08-23 Kevin Kenny <kennykb@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclCmdMZ.c (Tcl_StringObjCmd):
* generic/tclInt.h:
* generic/tclObj.c (Tcl_GetBooleanFromObj, SetDoubleFromAny,
Tcl_GetLongFromObj, Tcl_GetWideIntFromObj, Tcl_GetBignumFromObj):
* generic/tclParseExpr.c (GetLexeme):
* generic/tclScan.c (Tcl_ScanObjCmd):
* generic/tclStrToD.c (TclParseNumber):
* tests/binary.test (binary-62.1-65.7):
* tests/expr.test (expr-40.1-42.1):
* scan.test (scan-14.1,14.2):
Modified Tcl_ParseNumber to accept an argument to force interpretation
as decimal, and modified [scan] to use it. Corrected a bug where Not a
Number with hexadecimal information bits returned consistently
incorrect values. #ifdef-ed out some code that is needed only for IBM
hexadecimal floating point. Fixed bugs in code to handle the corner
cases of smallest and largest significands. Added test cases to improve
test coverage in generic/tclStrToD.c. Added test cases for 0b notation
(TIP #114). Removed TclStrToD, and the static functions that it calls,
which are now dead code (TclParseNumber now does all input
floating-point conversions.)
2005-08-23 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclStrToD.c: Bug fix: set shift magnitude properly whether
we're expanding to mp_int type or not.
* generic/tclExecute.c: Bug fix: ACCEPT_NAN under INST_UMINUS.
* generic/tclStrToD.c: New macros TIP_114_FORMATS and KILL_OCTAL to
configure acceptance of 0o and 0b numbers and rejection of "leading
zero as octal".
* generic/tclBasic.c: Re-used the guts of int(.) and wide(.) math
functions to perform conversions in OldMathFuncProc.
* generic/tclBasic.c: Support for ACCEPT_NAN.
* generic/tclExecute.c:
* generic/tclInt.decls: Restored TclExprFloatError to internal stubs
* generic/tclBasic.c: table, and moved definition back to
* generic/tclExecute.c: tclExecute.c from tclBasic.c to handle #undef
ACCEPT_NAN.
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclInt.h: New internal macros TclIsNaN and TclIsInfinite
* generic/tclBasic.c: replace the IS_NAN and IS_INF macros scattered
* generic/tclExecute.c: here and there.
* generic/tclObj.c:
* generic/tclStrToD.c:
* generic/tclUtil.c:
2005-08-22 Daniel Steffen <das@users.sourceforge.net>
* unix/tclConfig.h.in: autoheader-2.59.
2005-08-22 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclInt.h: New ACCEPT_NAN macro to mark code that
* generic/tclCmdAH.c: supports or disables accepting of the NaN
* generic/tclExecute.c: value at various points.
* generic/tclLink.c:
* generic/tclStrToD.c: Bug fix. Parsing of +/- Infinity was reversed.
* generic/tclTestObj.c: Disabled unused [testconvertobj] command.
* generic/tclBasic: Added [expr {entier(.)}]. Rewrote int(.) and
wide(.) to use the same guts, accepting all non-Inf doubles as
arguments.
* generic/tclInt.h: New routine TclInitBignumFromDouble.
* generic/tclStrToD.c: Modified to return code and write error
message.
* generic/tclInt.h: TCL_WIDE_INT_IS_LONG implies NO_WIDE_TYPE.
* generic/tclObj.c: Removed now unnecessary tests of the
* generic/tclStrToD.c: TCL_WIDE_INT_IS_LONG definition.
* generic/tclInt.h: New internal routine TclSetBignumIntRep
* generic/tclObj.c: consolidates packing of bignum value into a
* generic/tclStrToD.c: Tcl_Obj within one source code file.
* tests/expr.test: Corrected the wideIs64bit constraint.
* tests/format.test:
* tests/scan.test:
2005-08-21 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclInt.h: Moved TclParseInteger to tclUtil.c and
* generic/tclParseExpr.c: made it static.
* generic/tclUtil.c:
* generic/tclInt.decls: Moved TclExprFloatError to tclBasic.c and made
* generic/tclBasic.c: it static.
* generic/tclExecute.c:
* generitc/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclExecute.c: errno, IS_NAN, IS_INF, LLD no longer called in
this file; dropped/disabled support for them.
* generic/tclCompExpr.c: errno no longer used in these files;
* generic/tclParseExpr.c: dropped support "hack" for it.
* generic/tclStrToD.c: Disabled out of date support "hack" for errno.
* generic/tclBasic.c: Eliminated VerifyExprObjType. Initialize errno
to zero in OldMathFuncProc.
2005-08-19 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclBasic.c: Updated OldMathFuncProc and ExprAbsFunc to do
less invasion into numeric Tcl_Obj internals. Made ExprDoubleFunc,
ExprIntFunc, ExprWideFunc, and ExprRoundFunc bignum-aware. Revised
ExprSrandFunc error message.
* generic/tclProc.c: Wrapped a few tclWideIntType uses in
* generic/tclCmdMZ.c: #ifndef NO_WIDE_TYPE.
* generic/tclInt.h: #define'd NO_WIDE_TYPE.
* generic/tclVar.c: Replaced TclPtrIncrVar and TclPtrIncrWideVar
* generic/tclInt.h: with TclPtrIncrObjVar and replaced TclIncrVar2
* generic/tclInt.decls: and TclIncrWideVar2 with TclIncrObjVar2. New
routines call on TclIncrObj to do the work.
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclCmdIL.c: Rework Tcl_IncrObjCmd and the INST_*INCR*
* generic/tclExecute.c: opcodes to use the new routines.
2005-08-18 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Fixed string rep invalidation bug in
* tests/dict.test (dict-11.17): INST_DICT_INCR_IMM rewrite.
* generic/tclDictObj.c: DictIncrCmd rewrite to use TclIncrObj.
* generic/tclInt.h: TclIncrObj static -> internal
* generic/tclExecute.c:
2005-08-17 George Peter Staplin <GeorgePS@XMission.com>
* generic/tclBasic.c: eliminate a namespace clash caused by
BuiltinFuncTable not being static.
* generic/tclObj.c: fix a namespace clash caused by a missing
static for pendingObjData.
2005-08-17 Kevin Kenny <kennykb@acm.org>
* generic/tclEvent.c (Tcl_Finalize): Removed a copy-and-paste accident
that caused a (mostly harmless) double finalize of the load and
filesystem subsystems.
* tests/clock.test: Eliminated the bad test clock-43.1, and split
clock-50.1 into two tests, with a more permissive check on the error
message for an out-of-range value.
2005-08-17 Kevin Kenny <kennykb@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclBasic.c (Tcl_Expr{Long,Double}{,Obj}): Updated to
* generic/tclTest.c: deal with
* tests/expr-old.test: bignums (well,
* tests/expr.test: mostly).
Added a missing "errno=0;" in ExprUnaryFunc so that spurious error
returns aren't detected.
Added test cases for Tcl_Expr* and Tcl_Expr*Obj because there was very
poor test coverage in those areas.
* generic/tclParseExpr.c: Reworked parsing of numbers to call
TclParseNumber rather than trying to do things locally.
* generic/tclStrToD.c: Corrected a comment. Changed so that *endPtrPtr
does not include any trailing whitespace.
2005-08-17 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: New routine TclIncrObj to centralize the
increment operation needed in many places. Updated INST_DICT_INCR_IMM
to make use of it.
2005-08-16 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Made bit shifting opcodes and INST_MOD
bignum-aware.
* tests/scan.test: Making << bignum-aware means that repeated
* tests/string.test: left shifting cannot turn a positive into a
negative. Revised [int_range] and [largest_int] utility commands in the
test suite that relied on that happening. Without revision they became
infinite loops.
* generic/tclExecute.c: Made binary bitwise opcodes bignum-aware.
* generic/tclTomMath.h: Added mp_or and mp_xor to routines from
* unix/Makefile.in: libtommath used by Tcl.
* win/Makefile.in:
* win/makefile.vc:
2005-08-15 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Updates from HEAD.
* generic/tclExecute.c: More revisions to IllegalExprOperandType.
Merged INST_BITNOT with INST_UMINUS and make it bignum-aware according
to the rule: ~a = -a - 1. Disabled unused code and noted more TODOs.
* generic/tclInt.decls: Disabled TclLooksLikeInt() and all callers.
* generic/tclUtil.c:
* generic/tclCompCmds.c:
* generic/tclBasic.c: Rewrite of VerifyExprObjType().
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclExecute.c: Updated execution of comparison bytecodes to
be bignum-aware, routing string compares through INST_STR_CMP.
2005-08-14 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Updated execution of arithmetic bytecodes to
be bignum-aware, and to allow calculations on NaN to produce a NaN
result. INST_UMINUS updated to call mp_neg.
* generic/tclTomMath.h: Added mp_and, mp_expt_d, and mp_neg to
* unix/Makefile.in: routines from libtommath used by Tcl.
* win/Makefile.in:
* win/makefile.vc:
2005-08-13 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclObj.c: Extended Bignum auto-narrowing to auto-narrow
to tclWideIntType when appropriate; this helps keep things working as
the bytecode execution code is migrated to supporting bignums.
* generic/tclExecute.c: Major overhaul of IllegalExprOperandType.
Changed several TclNewFooObj() calls to more logically appropriate
ones. Added several TODO comments marking opportunies for future work.
Made more use of the eePtr->constants. Made INST_UMINUS bignum aware.
2005-08-12 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Simplify doCondJump. Use eePtr->constants as
result of INST_DICT_NEXT, INST_LAND, and INST_LOR. Separate INST_LNOT
from INST_UMINUS and simplify.
2005-08-12 Kevin Kenny <kennykb@acm.org>
* generic/tclClock.c (MktimeObjCmd):
* library/clock.tcl (GetSystemTimeZone, LoadZoneinfoFile)
(ReadZoneinfoFile):
* tests/clock.test (clock-50.1):
Added functionality to read /etc/localtime if it exists, so that Tcl's
time can track system time on Linux even if TZ is not set. Changed
::tcl::clock::Mktime to check for failure, and added a test case that
mimics failure but is really success.
2005-08-11 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Rewrite of INST_LAND/INST_LOR to take advantage
of loss of "pure double" issues. Merged INST_UPLUS with
INST_TRY_CVT_TO_NUMERIC and updated to use improved rules for impure
"double"s as well.
* generic/tclStrToD.c: Restored conditional generation of
tclWideIntType values by TclParseNumber so that Tcl's not completely
broken while bignum calculation support is incomplete. The NO_WIDE_TYPE
macro can be used to disable this.
* generic/tclBasic.c (ExprAbsFunc): First pass making [expr abs(.)]
bignum-aware.
2005-08-11 Kevin Kenny <kennykb@acm.org>
* generic/tclEvent.c: Eliminated the USE_THREAD_STORAGE option
* generic/tclInt.h: (which is on in every build generated by
* generic/tclThread.c: by the standard configurator).
* generic/tclThreadStorage.c: Eliminated the code for thread specific
* unix/configure: data without USE_THREAD_STORAGE and
* unix/tcl.m4: radically refactored the code for
* unix/tclConfig.h.in: USE_THREAD_STORAGE so that it has fewer
* unix/tclUnixThrd.c: dependencies on the order of
* win/configure: finalization. (Also, made 'make
* win/Makefile.in: distclean' on Windows clean just a little
* win/rules.vc: bit cleaner.)
* win/tcl.m4:
* win/tclWinThrd.c:
2005-08-10 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclTomMath.h: Added mp_shrink, mp_to_unsigned_bin,
* unix/Makefile.in: mp_to_unsigned_bin_n, and mp_unsigned_bin_size
* win/Makefile.in: to routines from libtommath used by Tcl.
* win/makefile.vc:
* generic/tommath.h: make gentommath_h
* generic/tclObj.c: Substantial rewrite to make all number parsing
flow through TclParseNumber(). Also established the NO_WIDE_TYPE and
BIGNUM_AUTO_NARROW #ifdef's to help track the assumptions of different
portions of the code.
* generic/tclInt.h: Added NO_WIDE_TYPE #ifdefs
2005-08-10 Kevin Kenny <kennykb@acm.org>
* generic/tclEvent.c (Tcl_Finalize): Pushed Tcl_FinalizeLoad and
Tcl_ResetFilesystem down after Tcl_FinalizeThreadAlloc because we can't
unload DLL's until after their TSD keys are finalized. (Note that we'll
still see aborts if an unloaded DLL has TSD - that still needs to be
fixed.
* tests/compExpr-old.test (compExpr-3.8): Made tests conditional on
* tests/expr.test (expr-3.8): 'unix' because they get
stack overflows on Win32 threaded builds,
2005-08-09 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tclPathObj.c: fix to [file rootname] bug in optimized code
path reported on comp.lang.tcl.
2005-08-08 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclObj.c: Replaced some goto's with loops and started
use of BIGNUM_AUTO_NARROW and NO_WIDE_TYPE.
2005-08-06 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclThreadStorage.c: Stop exposing the guts of the thread
storage system through the internal stubs table. Client code should
always use the standard API.
2005-08-05 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclObj.c: Rewrote Tcl_GetDoubleFromObj().
2005-08-05 Donal K. Fellows <dkf@users.sf.net>
* unix/tclUnixInit.c (localeTable): Solaris uses a non-standard name
for the cp1251 charset. Thanks to Victor Wagner for reporting this.
[Bug 1252475]
2005-08-05 Kevin Kenny <kennykb@users.sourceforge.net>
* win/makefile.vc: Removed unused file ldAout.tcl.
* win/makefile.bc: [Bug 1244361]
* tests/binary.test: Cleaned up testing for scanning of NaN. [Bug
1246264]
* generic/tclBasic.c (ExprAbsFunc): Added code to handle the corner
* tests/expr.test (expr-38.1): case of applying 'abs' to the
smallest 32-bit integer. [Bug 1241572]
2005-08-04 Andreas Kupries <andreask@activestate.com>
* generic/tclIO.c (CloseChannel): Fixed comment nit, added apparently
missing word to complete a sentence.
* generic/tclObj.c (Tcl_DbDecrRefCount): Fixed whitespace nit in panic
message.
2005-08-04 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Updated from HEAD
* generic/tclObj.c: Rewrote Tcl_GetBooleanFromObj() and supporting
routines to make use of TclParseNumber. This reduces the potential
number of times a string value must be scanned.
* generic/tclObj.c: Simplified routines that manage the typeTable.
Deleted the UpdateStringOfBoolean() routine, that can never be called.
2005-08-03 Don Porter <dgp@users.sourceforge.net>
* generic/tclCompExpr.c: Untangled some dependencies in the
* generic/tclEvent.c: order of finalization routines.
* generic/tclInt.h: [Bug 1251399]
* generic/tclObj.c:
2005-08-02 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch] Updated from HEAD
2005-07-30 Daniel Steffen <das@users.sourceforge.net>
* unix/tclLoadDyld.c (TclpDlopen, TclpLoadMemory): workarounds for
bugs/changes in behaviour in Mac OS X 10.4 Tiger.
2005-07-29 Donal K. Fellows <dkf@users.sf.net>
* generic/tclCmdIL.c (InfoGlobalsCmd): Even in high-speed mode, still
have to take care with non-existant variables. [Bug 1247135]
2005-07-28 Mo DeJong <mdejong@users.sourceforge.net>
* win/README: Update link to msys_mingw8.zip.
2005-07-28 Don Porter <dgp@users.sourceforge.net>
* tests/compExpr-old.test: Still more conversion of "nonPortable"
* tests/error.test: tests into tests with constraints that
* tests/expr-old.test: describe the limits of their
* tests/expr.test: portability. Also more consolidation
* tests/fileName.test: of constraint synonyms.
* tests/format.test: wideis64bit, 64bitInts => wideIs64bit
* tests/get.test: wideIntegerUnparsed => wideIs32bit
* tests/load.test: wideIntExpressions => wideBiggerThanInt
* tests/obj.test:
* tests/parseExpr.test: Dropped "roundOffBug" constraint that
* tests/string.test: protected from buggy sprintf.
2005-07-28 Donal K. Fellows <dkf@users.sf.net>
* generic/tclPipe.c (TclCreatePipeline): Arrange for POSIX systems to
* unix/tclUnixPipe.c (TclpOpenFile): use the O_APPEND flag for
* tests/exec.test (exec-19.1): files opened in a pipeline
like ">>this". Note that Windows cannot support such access; there is
no equivalent flag on the handle that can be set at the kernel-call
level. The test is unix-specific in every way. [Bug 1245953]
2005-07-27 Don Porter <dgp@users.sourceforge.net>
* generic/tclUtil.c: Converted the $::tcl_precision value to be kept
per-thread to prevent different threads from stomping on each others'
formatting prescriptions.
***POTENTIAL INCOMPATIBILITY*** Multi-threaded programs that set the
value of ::tcl_precision will now have to set it in each thread.
* tests/expr.test: Consolidated equivalent constraints into
* tests/fileName.test: single definitions and (more precise) names:
* tests/get.test: longis32bit, 32bit, !intsAre64bit => longIs32bit
* tests/listObj.test: empty => emptyTest; winOnly => win
* tests/obj.test: intsAre64bit => longIs64bit
Also updated some "nonPortable" tests to use constraints that mark
precisely what about them isn't portable, so the tests can run where
they work.
* library/init.tcl ([unknown]): Corrected return code handling in the
portions of [unknown] that expand incomplete commands during
interactive operations. [Bug 1214462].
2005-07-26 Mo DeJong <mdejong@users.sourceforge.net>
* unix/configure: Regen.
* unix/configure.in: Check for a $prefix/share directory and add it the
the package if found. This will check for Tcl packages in
/usr/local/share when Tcl is configured with the default dist install.
[Patch 1231015]
2005-07-26 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c (Tcl_CallWhenDeleted): Converted to use
per-thread counter, rather than a process global one that required
mutex protection. [RFE 1077194]
* generic/tclNamesp.c (TclTeardownNamespace): Re-ordering so that
* tests/trace.test (trace-34.4): command delete traces fire
while the command still exists. [Bug 1047286]
2005-07-24 Mo DeJong <mdejong@users.sourceforge.net>
* unix/configure: Regen.
* unix/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH):
* win/configure: Regen.
* win/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH): Split confused search
for tclsh on PATH and build and install locations into two macros.
SC_PROG_TCLSH searches just the PATH. SC_BUILD_TCLSH determines the
name of the tclsh executable in the Tcl build directory. [Bug 1160114]
[Patch 1244153]
2005-07-23 Don Porter <dgp@users.sourceforge.net>
* library/auto.tcl: Updates to the Tcl script library to make use
* library/history.tcl: of Tcl 8.4 features. Forward port of
* library/init.tcl: appropriate portions of [Patch 1237755].
* library/package.tcl:
* library/safe.tcl:
* library/word.tcl:
2005-07-23 Mo DeJong <mdejong@users.sourceforge.net>
* tests/string.test: Add string is tests for functionality that was not
tested.
* win/README: Update msys + mingw URL. Remove old Cygwin + mingw info.
2005-07-23 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c (INST_DICT_*): stop 2 compiler warnings for
uninitialised variables.
2005-07-23 Donal K. Fellows <dkf@users.sf.net>
* generic/tclExecute.c (TEBC:INST_DICT_INCR_IMM): Fix the incrementor
to work correctly with wide values.
2005-07-21 Donal K. Fellows <dkf@users.sf.net>
* generic/tclCompCmds.c (TclCompileDictCmd): First run at a compiler
* generic/tclExecute.c (TclExecuteByteCode): for dictionaries. Also
added an instruction to support 'finally'-like clauses, exposed more of
the dict guts to the rest of the core, and defined a few tests to
exercise more obscure parts of the compiler's operation that were bugs
during development.
2005-07-21 Kevin B. Kenny <kennykb@acm.org>
* library/ldAout.tcl (***REMOVED***): Removed support for ancient
* unix/configure: BSD's, IRIX 4, RISCos and
* unix/Makefile.in: Ultrix. Removed two files whose
* unix/tcl.m4: code is used only on those
* unix/tclLoadAout.c (***REMOVED***): antique platforms.
***POTENTIAL INCOMPATIBILITY*** if anyone actually uses those
platforms; it is to be noted though, that an error in the installer has
actually not caused a necessary file to be installed on those platforms
in several releases, and nobody's complained.
2005-07-16 Kevin B. Kenny <kennykb@acm.org>
* generic/tclStrToD.c (RefineResult): Plugged a stupid memory leak in
RefineResult (called from Tcl_StrToD). [Tk Bug 1227781]
2005-07-15 Kevin B. Kenny <kennykb@acm.org>
* generic/tclClock.c (TclClockLocaltimeObjCmd,ThreadSafeLocalTime):
* library/clock.tcl (GuessWindowsTimeZone, ClearCaches):
* tests/clock.test (clock-49.1, clock-49.2):
Handle correctly the case where localtime() returns NULL to report a
conversion error. Also handle the case where the Windows registry
contains timezone values that can be mapped to a tzdata file name but
the corresponding file does not exist or is corrupted, by falling back
on a Posix timezone string instead; this last case will avoid calls to
localtime() in starpacks on Windows. [Bug 1237907]
2005-07-14 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclCompile.c: Update to follow style guidelines.
(TclPrintInstruction): Reorganize to do better printing out of bytecode
with far fewer "special hacks" for particular opcodes.
* generic/tclCompile.h: Requires two new opcode types.
2005-07-13 Don Porter <dgp@users.sourceforge.net>
* unix/tclUnixSock.c: Use a ProcessGlobalValue to store the value
* win/tclWinSock.c: returned by Tcl_GetHostName() ([info
hostname]). Also re-order initialization of the value on Windows to
favor GetComputerName() over gethostname() as a source of the
information.
2005-07-12 Kevin Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Updated from HEAD
* generic/tclCmdMZ.c (Tcl_StringObjCmd):
* generic/tclInt.h:
* generic/tclObj.c (Tcl_GetDoubleFromObj, SetDoubleFromAny)
(Tcl_GetIntFromObj, SetIntOrWideFromAny):
* generic/tclStrToD.c (TclParseNumber, etc.):
* tclTomMathInterface.c (TclBNInitBignumFromWideUInt):
* tests/obj.test (obj-1.1, obj-2.2, obj-3.1, obj-3.2):
Initial attempt at an implementation of TIP #249, comprising a unified
parser and modifications to the Tcl_Get*FromObj routines to use it.
Further integration of the parser is necessary and planned.
2005-07-12 Donal K. Fellows <dkf@users.sf.net>
* doc/lsearch.n: Clarify documentation of -exact option; wording was
open to misinterpretation by non-English speakers.
2005-07-11 Donal K. Fellows <dkf@users.sf.net>
* generic/tclExecute.c: General style cleanup.
2005-07-08 Mo DeJong <mdejong@users.sourceforge.net>
* generic/tclExecute.c (TclExecuteByteCode): Reimplement long and wide
type integer division and modulus operations so that the smallest and
largest integer values are handled properly. The divide operation is
more efficient since it no longer does a modulus or negation and only
checks for a remainder when the quotient will be a negative number.
The modulus operation is now a bit more complex because of a number of
special cases dealing with the smallest and largest integers.
* tests/expr.test: Add test cases for division and modulus operations
on the smallest and largest integer values for 32 and 64 bit types.
[Patch 1230205]
2005-07-06 Don Porter <dgp@users.sourceforge.net>
* generic/tclLink.c: Simplified LinkTraceProc [Bug 1208108].
2005-07-05 Don Porter <dgp@users.sourceforge.net>
* unix/Makefile.in: Purged use of TCLTESTARGS [RFE 1161550].
* generic/tclUtil.c: Converted TclFormatInt() into a macro.
* generic/tclInt.decls: [RFE 1194015]
* generic/tclInt.h:
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclNamesp.c: Allow for [namespace import] of a command
* tests/namespace.test: over a previous [namespace import] of itself
without throwing an error. [RFE 1230597]
2005-07-04 Donal K. Fellows <dkf@users.sf.net>
* generic/tclDictObj.c (DictForCmd, DictFilterCmd): Interlocking of
dictionary internal representations is now done in the core of the dict
iterator. Purge the last attempts at doing it at a higher level as they
didn't work and were no longer needed.
2005-07-01 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* unix/tclUnixNotfy.c: protect against spurious wake-ups while waiting
on the condition variable when tearing down the notifier thread [Bug
1222872].
2005-06-28 Mo DeJong <mdejong@users.sourceforge.net>
* generic/tclExecute.c (TclExecuteByteCode): When parsing an integer
operand for a unary minus expression operator, check for a wide integer
that is actually LONG_MIN. If found, convert back to a long int type.
* tests/expr.test: Add constraint for 32bit long int type and 64bit
wide int type. Add tests that parse the smallest/largest long int and
wide int values.
2005-06-24 Kevin Kenny <kennykb@acm.org>
* generic/tclEvent.c (Tcl_Finalize):
* generic/tclInt.h:
* generic/tclPreserve.c (TclFinalizePreserve): Changed the finalization
logic so that Tcl_Preserve finalizes after exit handlers run; a lot of
code called from Tk's exit handlers presumes that Tcl_Preserve will
still work even from an exit handler.
2005-06-24 Don Porter <dgp@users.sourceforge.net>
* library/auto.tcl: Make file safe to re-[source] without
destroying registered auto_mkindex_parser hooks.
2005-06-23 Kevin Kenny <kennykb@acm.org>
* win/tclWinChan.c: More rewriting of __asm__ blocks that implement
* win/tclWinFCmd.c: SEH in GCC, because mingw's gcc 3.4.2 is not as
forgiving of violations committed by the old code and caused panics.
[Bug 1225957]
2005-06-23 Daniel Steffen <das@users.sourceforge.net>
* tools/tcltk-man2html.tcl: fixed useversion glob pattern to accept
multi-digit patchlevels.
2005-06-22 Don Porter <dgp@users.sourceforge.net>
* win/tclWinFile.c: Potential buffer overflow. [Bug 1225571] Thanks to
Pat Thoyts for discovery and fix.
2005-06-22 Kevin Kenny <kennykb@acm.org>
* generic/tclInt.h: Changed the finalization
* generic/tclEvent.c (Tcl_Finalize): logic to defer the
* generic/tclIO.c (TclFinalizeIOSubsystem): shutdown of the pipe
* unix/tclUnixPipe.c (TclFinalizePipes): management until after all
* win/tclWinPipe.c (TclFinalizePipes): channels have been closed,
in order to avoid a situation where the Windows PipeCloseProc2 would
re-establish the exit handler after exit handlers had already run,
corrupting the heap. [Bug 1225727] Also corrected a potential read of
uninitialized memory in PipeClose2Proc [Bug 1225044]
2005-06-21 Andreas Kupries <andreask@activestate.com>
* generic/tclInt.h: Followup to change made on 2005-06-18 by Daniel
Steffen. There are compilers (*) who error out on the redefinition of
WORDS_BIGENDIAN. We have to undef the previous definition (on the
command line) first to make this acceptable. (*): AIX native.
2005-06-21 Kevin B. Kenny <kennykb@acm.org>
* generic/tclFileName.c: Changed [file split] and [file join] to treat
Windows drive letters similarly to ~ syntax and make sure that they
appear with "./" in front when they are in intermediate components of
the path. [Bug 1194458]
* tests/fileName.test: Added test for the above bug.
2005-06-21 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Added missing walk of the list of active
* generic/tclTrace.c: traces to cleanup references to traces being
* generic/tclInt.h: deleted. [Bug 1201035] Made the walk of the
* tests/trace.test (trace-34.*): active trace list aware of the
direction of trace scanning, so the proper correction can be made.
[Bug 1224585]
2005-06-21 Donal K. Fellows <dkf@users.sf.net>
* unix/tcl.m4 (SC_ENABLE_SYMBOLS): Only enable the 'compile' special
debugging feature when requested in configure.in; removes irrelevant
junk from the configure files of extensions that use Tcl's tcl.m4.
2005-06-20 Donal K. Fellows <dkf@users.sf.net>
* generic/tclCompile.h (INST_PUSH_RETURN_OPTIONS): New opcode to allow
* generic/tclCompCmds.c (TclCompileCatchCmd): compilation of
* generic/tclCompile.c: TIP#90 catch [Bug
* generic/tclExecute.c (TclExecuteByteCode): 1219112]
* generic/tclCompCmds.c (TclCompileSwitchCmd): Ensure we spill to the
command form in all cases where it generates an error.
2005-06-20 Mo DeJong <mdejong@users.sourceforge.net>
* generic/tclCmdMZ.c (Tcl_SwitchObjCmd): Generate an error if a mode
argument like -exact is passed more than once to the switch command.
The previous implementation silently accepted invalid switch
invocations like [switch -exact -glob $str ...].
* tests/for.test: Check some error cases when invoking continue and
break inside a for loop next script.
* tests/switch.test: Add checks for shortened version of a mode
argument like -exact. Add test for more than one mode argument. Add
test for odd case of passing a variable as a body script.
2005-06-18 Daniel Steffen <das@users.sourceforge.net>
* generic/tclInt.h: ensure WORDS_BIGENDIAN is defined correctly with
fat compiles on Darwin (i.e. ppc and i386 at the same time), the
configure AC_C_BIGENDIAN check is not sufficient in this case because a
single run of the compiler builds for two architectures with different
endianness.
* unix/tcl.m4 (Darwin): add -headerpad_max_install_names to LDFLAGS to
ensure we can always relocate binaries with install_name_tool.
* unix/configure: autoconf-2.59
2005-06-18 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclCmdAH.c (Tcl_FormatObjCmd): Fix for [Bug 1154163]; only
* tests/format.test: insert 'l' modifier when it is needed.
2005-06-17 Donal K. Fellows <dkf@users.sf.net>
* generic/tclTimer.c (AfterDelay): Split out the code to manage
synchronous-delay [after] commands.
* tests/interp.test (interp-34.10): Time limits and synch-delay [after]
did not mix well... [Bug 1221395]
2005-06-14 Donal K. Fellows <dkf@users.sf.net>
* generic/tclBasic.c (Tcl_DeleteCommandFromToken): Only delete a
* tests/namespace.test (namespace-49.2): command from the hashtable on
reentrant processing if it has not been already deleted; at least three
deletes of the same command are possible. [Bug 1220058]
* generic/tclTrace.c (TraceCommandProc): Remove bogus error message
creation when traces trigger in situations where the command has
already been deleted.
2005-06-13 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tclFCmd.c: correct fix to file mkdir 2005-06-09 [Bug 1219176]
2005-06-12 Donal K. Fellows <dkf@users.sf.net>
* generic/tclCompCmds.c: Factor out some common idioms into named forms
for greater clarity.
2005-06-10 Donal K. Fellows <dkf@users.sf.net>
* doc/chan.n: Fold in the descriptive parts of the documentation for
all the commands that [chan] builds on top of.
2005-06-09 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tclFCmd.c: fix to race condition in file mkdir [Bug 1217375]
* doc/glob.n: improve glob documentation [Bug 1190891]
2005-06-09 Donal K. Fellows <dkf@users.sf.net>
* doc/expr.n, doc/mathfunc.n: Fix minor typos [Bug 1211078] and add
mention of distinctly-relevant [namespace path] subcommand.
2005-06-07 Don Porter <dgp@users.sourceforge.net>
* generic/tclInt.h: Reduced the Tcl_ObjTypes "index",
* generic/tclIndexObj.c: "ensembleCmd", "localVarName", and
* generic/tclNamesp.c: "levelReference" to file static scope.
* generic/tclProc.c:
* generic/tclVar.c:
* generic/tclObj.c: Restored registration of the "procbody"
Tcl_ObjType, as required by the tclcompiler application.
* generic/tclDecls.h: make genstubs
* generic/tclStubInit.c:
2005-06-07 Donal K. Fellows <dkf@users.sf.net>
* generic/tclIO.c (Tcl_ChannelTruncateProc): Stop proliferation of
* generic/tcl.h: channel type versions
* doc/CrtChannel.3: following advice from AKu
Bump patchlevel to a4 to distinguish from a3 release.
* generic/tclInt.h (INTERP_TRACE_IN_PROGRESS): Add flag so the error
* generic/tclIndexObj.c (Tcl_WrongNumArgs): messages from ensembles
* generic/tclIOCmd.c (Tcl_ReadObjCmd): can be correct.
TIP#208 IMPLEMENTATION
* library/init.tcl: Create the chan ensemble.
* tests/chan.test: Rudimentary test suite.
* doc/chan.n: General documentation.
TRUNCATION API (part of TIP#208)
* generic/tcl.h, generic/tcl.decls: Declaration of the API.
* doc/CrtChannel.3, doc/OpenFileChnl.3: Documentation of the API.
* generic/tclBasic.c (Tcl_CreateInterp): Create the mapping into Tcl.
* generic/tclIOCmd.c (TclChanTruncateObjCmd): Implementation of
Tcl-level truncation API.
* generic/tclIO.c (Tcl_TruncateChannel): Generic C-level truncation API
implementation.
* unix/tclUnixChan.c (FileTruncateProc): Basic implementation of
truncating driver.
* win/tclWinChan.c (FileTruncateProc): Added implementation of file
truncation for Windows.
* tests/chan.test (chan-15.2): Added real test of truncation.
2005-06-06 Kevin B. Kenny <kennykb@acm.org>
* win/tclWin32Dll.c: Corrected another buglet in the assembly code for
stack probing on Win32/gcc. [Bug 1213678]
* generic/tclObj,c: Added missing 'static' on definition of
UpdateStringOfBignum, and removed a 'switch' on a 'long long' operand
(which HP-UX native 'cc' seems unable to handle). [Bug 1215775]
2005-06-04 Jeff Hobbs <jeffh@ActiveState.com>
*** 8.5a3 TAGGED FOR RELEASE ***
* unix/Makefile.in (dist): add libtommath
2005-06-03 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* library/parray.tcl (parray): Only generate the sorted list of element
names once. Thanks to Andreas Leitgeb for spotting this.
2005-06-03 Daniel Steffen <das@users.sourceforge.net>
* macosx/Makefile: fixed 'embedded' target.
2005-06-02 Jeff Hobbs <jeffh@ActiveState.com>
* unix/Makefile.in (html): add BUILD_HTML_FLAGS optional var
* tools/tcltk-man2html.tcl: add a --useversion to prevent confusion
when multiple Tcl source dirs exist.
2005-06-01 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: For compatibility with earlier Tcl releases,
* generic/tclResult.c: when a command procedure simply does a
* generic/tclTest.c: "return TCL_RETURN;" we must interpret that
* tests/result.test: the same as
"return Tcl_SetReturnOptions(interp, Tcl_NewObj());" [Bug 1209759].
2005-06-01 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclCompCmds.c (TclCompileSwitchCmd): Allow compilation of
-nocase -glob [switch]es (only one we know how to compile).
TIP#241 IMPLEMENTATION from Joe Mistachkin
* generic/tclCmdIL.c (Tcl_LsearchObjCmd, Tcl_LsortObjCmd):
* generic/tclCmdMZ.c (Tcl_SwitchObjCmd): Implementation of -nocase
option for [lsearch], [lsort] and [switch] commands.
* win/tclWinPort.h: Win uses nonstandard function names...
* tests/cmdIL.test, tests/lsearch.test, tests/switch.test: Tests
* doc/lsearch.n, doc/lsort.n, doc/switch.n: Docs
* generic/tclCompCmds.c (TclCompileLindexCmd): Compile the most common
case of [lindex] more efficiently.
* unix/tclUnixNotfy.c (Tcl_FinalizeNotifier): Pass the correct number
of arguments to Tcl_JoinThread.
2005-05-31 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* unix/configure.in, unix/tcl.m4: Standardize generation of help
messages to always use AC_HELP_STRING and always (except for --with-tcl
and --with-tk, where the default is complex) say what the default is.
2005-05-31 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* unix/tclUnixNotfy.c: the notifier thread is now created as joinable
thread and it is properly joined in Tcl_FinalizeNotifier. This is an
attempt to fix the [Bug 1082283].
2005-05-30 Zoran Vasiljevic <vasiljevic@users.sf.net>
* win/tclWinThrd.c: Fixed [Bug 1204064]
2005-05-30 Donal K. Fellows <donal.k.fellows@man.ac.uk>
TIP #229 IMPLEMENTATION
* generic/tclNamesp.c (Tcl_FindCommand, TclResetShadowedCmdRefs)
(NamespacePathCmd, SetNsPath, UnlinkNsPath, TclInvalidateNsPath):
Implementation of the [namespace path] command and the command name
resolution engine.
* doc/info.n, doc/namespace.n: Doc updates.
* tests/namespace.test (namespace-51.*): Test updates.
* generic/tclResolve.c (BumpCmdRefEpochs, Tcl_SetNamespaceResolvers):
* generic/tclBasic.c (Tcl_CreateCommand, Tcl_CreateObjCommand): Ensure
that people don't see stale paths.
* generic/tclInt.h (Namespace, NamespacePathEntry): Structure defs.
* generic/tclCmdIL.c (InfoCommandsCmd): Updates to [info commands].
2005-05-26 Daniel Steffen <das@users.sourceforge.net>
* macosx/Makefile: moved & corrected EMBEDDED_BUILD check.
* unix/configure.in: corrected framework finalization to softlink stub
library to Versions/8.x subdir instead of Versions/Current.
* unix/configure: autoconf-2.59
2005-05-25 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclCmdMZ.c (Tcl_TimeObjCmd): add necessary cast
2005-05-25 Don Porter <dgp@users.sourceforge.net>
TIP#182 IMPLEMENTATION [Patch 1165062]
* doc/mathfunc.n: New built-in math function bool().
* generic/tclBasic.c:
* tests/expr.test:
* tests/info.test:
2005-05-24 Don Porter <dgp@users.sourceforge.net>
* library/init.tcl: Updated [unknown] to be sure the [return]
* tests/init.test: options from an auto-loaded command are seen
correctly by the caller.
2005-05-24 Daniel Steffen <das@users.sourceforge.net>
* tests/env.test: added DYLD_FRAMEWORK_PATH to the list of env vars
that need to be handled specially.
* macosx/Makefile:
* macosx/README:
* macosx/Tcl-Info.plist.in (new file):
* unix/Makefile.in:
* unix/configure.in:
* unix/tcl.m4:
* unix/tclUnixInit.c: moved all Darwin framework build support from
macosx/Makefile into the standard unix configure/make buildsystem, the
macosx/Makefile is no longer required to build Tcl.framework (but its
functionality is still available for backwards compatibility).
* unix/configure: autoconf-2.59
* generic/tclIOUtil.c (TclLoadFile):
* generic/tclInt.h:
* unix/tcl.m4:
* unix/tclLoadDyld.c: added support for [load]ing .bundle binaries in
addition to .dylib's: .bundle's can be [unload]ed (unlike .dylib's),
and can be [load]ed from memory, e.g. directly from VFS without needing
to be written out to a temporary location first. [Bug 1202209]
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
* generic/tclCmdMZ.c (Tcl_TimeObjCmd): change [time] called with a
count > 1 to return a string with a float value instead of a rounded
off integer. [Bug 1202178]
* doc/expr.n:
* doc/string.n: fixed roff syntax complaints from 'make html'.
2005-05-20 Don Porter <dgp@users.sourceforge.net>
* generic/tclParseExpr.c: Corrected parser to recognize all
boolean literals accepted by Tcl_GetBoolean, including prefixes like
"y" and "f", and to allow "eq" and "ne" as function names in the proper
context. [Bug 1201589].
2005-05-19 Donal K. Fellows <dkf@users.sf.net>
* generic/tclBasic.c (TclEvalObjvInternal): Rewrite for greater
clarity; although 'goto' is Bad, the contortions you have to go through
to avoid it can be worse...
2005-05-19 Daniel Steffen <das@users.sourceforge.net>
* macosx/tclMacOSXNotify.c (Tcl_InitNotifier): fixed crashing CFRelease
of runLoopSource in Tcl_InitNotifier (reported by Zoran):
CFRunLoopAddSource doesn't CFRetain, so can only CFRelease the
runLoopSource in Tcl_FinalizeNotifier.
2005-05-18 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c (Tcl_ExprBoolean): Rewrite as wrapper around
Tcl_ExprBooleanObj.
* generic/tclCmdMZ.c ([string is boolean/true/false]): Rewrite dropping
string-based Tcl_GetBoolean call, so that internal reps are kept for
subsequent quick boolean operations.
* generic/tclExecute.c: Dropped most special handling of the "boolean"
Tcl_ObjType, since that type should now be rarely encountered.
* doc/BoolObj.3: Rewrite of documentation dropping many details
about the internals of Tcl_Objs. Shorter documentation focuses on the
function and use of the routines.
* generic/tclInt.h: Revision to the "boolean" Tcl_ObjType, so that
* generic/tclObj.c: only string values like "yes" and "false" are
* tests/obj.test: kept as the "boolean" Tcl_ObjType. The string
values "0" and "1" are kept as "int" Tcl_ObjType, which also produce
quick calls to Tcl_GetBooleanFromObj(). Since this internal change
means a Tcl_ConvertToType to a "boolean" Tcl_ObjType might not produce
a Tcl_Obj of type "boolean", the registration of the "boolean" type is
also removed.
***POTENTIAL INCOMPATIBILITY***
For callers of Tcl_GetObjType on the type name "boolean".
2005-05-17 Don Porter <dgp@users.sourceforge.net>
* generic/tclObj.c (TclInitObjSubsystem): Removed the
* tests/listObj.test: registration of the Tcl_ObjType's "list",
* tests/obj.test: "procbody", "index", "ensembleCommand",
"localVarName", and "levelReference". The only reason to register a
Tcl_ObjType is to have it returned by Tcl_GetObjType, and the only
reason for that is to retrieve a (Tcl_ObjType *) to pass to
Tcl_ConvertToType(). None of the types above can support a
Tcl_ConvertToType() call; they panic. Better not to offer something
than to lead users into a panic.
***POTENTIAL INCOMPATIBILITY***
For callers of Tcl_GetObjType on the type names listed above.
2005-05-15 Kevin Kenny <kennykb@users.sourceforge.net>
* win/tclWin32Dll.c: conditioned definition of EXCEPTION_REGISTRATION
structures on HAVE_NO_SEH, to fix a bug in buildability on MSVC.
2005-05-14 Daniel Steffen <das@users.sourceforge.net>
* generic/tclInt.decls:
* generic/tclTest.c:
* generic/tclUtil.c:
* win/tclWin32Dll.c: fixed link error due to direct access by tclTest.c
to the MODULE_SCOPE tclPlatform global: renamed existing
TclWinGetPlatform() accessor to TclGetPlatform() and moved it to
generic code so that it can be used by on all platforms where
MODULE_SCOPE is enforced.
* macosx/tclMacOSXBundle.c:
* unix/tclUnixInit.c:
* unix/tcl.m4 (Darwin): made use of CoreFoundation API configurable and
added test of CoreFoundation availablility to allow building on ppc64,
replaced HAVE_CFBUNDLE by HAVE_COREFOUNDATION; test for availability of
Tiger or later OSSpinLockLock API.
* unix/tclUnixNotfy.c:
* unix/Makefile.in:
* macosx/tclMacOSXNotify.c (new file): when CoreFoundation is
available, use new CFRunLoop based notifier: allows easy integration
with other event loops on Mac OS X, in particular the TkAqua Carbon
event loop is now integrated via a standard tcl event source (instead
of TkAqua upon loading having to finalize the exsting notifier and
replace it with its custom version). [Patch 1202052]
* tests/unixNotfy.test: don't run unthreaded tests on Darwin since
notifier may be using threads even in unthreaded core.
* unix/tclUnixPort.h:
* unix/tcl.m4 (Darwin): test for thread-unsafe realpath during
configure, as Darwin 7 and later realpath is threadsafe.
* macosx/Makefile: enable configure caching.
* unix/configure.in: wrap tclConfig.h header in #ifndef _TCLCONFIG so
that it can be included more than once without warnings from gcc4.0 (as
happens e.g. when including both tclInt.h and tclPort.h)
* macosx/tclMacOSXBundle.c:
* unix/tclUnixChan.c:
* unix/tclLoadDyld.c:
* unix/tclUnixInit.c: fixed gcc 4.0 warnings.
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c: make genstubs
2005-05-13 Kevin Kenny <kennykb@acm.org>
* win/tclWin32Dll.c: Further rework of the SEH logic. All
EXCEPTION_REGISTRATION records are now in the activation record rather
than pushed on the stack.
2005-05-13 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Dropped the TCL_NO_MATH configuration. It's
* generic/tclBinary.c: believed this has not been working in a long
* generic/tclExecute.c: time. Tcl needs math.h. [RFE 1200680]
* unix/Makefile.in:
2005-05-12 Kevin Kenny <kennykb@acm.org>
* doc/mathfunc.n: Changed NAME line to match the name of the page.
2005-05-11 Kevin Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Resynchronized with the HEAD; at this
checkpoint [-rkennykb-numerics-branch-20050511], the HEAD and
kennykb-numerics-branch contain identical code.
2005-05-11 Kevin Kenny <kennykb@acm.org>
* generic/tclStrToD.c (TclStrToD, RefineResult, ParseNaN): Changed the
code to cast 'char' to UCHAR explicitly when using ctype macros, to
silence complaints from the Solaris compiler.
2005-05-10 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclUnixFCmd.c: add lint attr to enum to satisfy strictly
compliant compilers that don't like trailing ,s.
* tests/string.test: string-10.[21-30]
* generic/tclCmdMZ.c (Tcl_StringObjCmd): add extra checks to prevent
possible UMR in unichar cmp function for string map.
2005-05-10 Kevin Kenny <kennykb@acm.org>
* generic/tclBinary.c (FormatNumber): Fixed a bug where NaN's resulted
in reads of uninitialized memory when using 'd', 'q', or 'Q' format.
* generic/tclStrToD.c (ParseNaN, TclFormatNaN): Added code to handle
the peculiarities of HP's PA_RISC, which uses a different 'quiet' bit
in NaN from everyone else.
* libtommath/tommath_superclass.h: Corrected C++-style comment.
2005-05-10 Kevin Kenny <kennykb@acm.org>
Merged all changes on kennykb-numerics-branch back into the HEAD.
TIP's 132 and 232 are now Final.
2005-05-10 Kevin Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Merged changes from HEAD.
2005-05-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c (ExponLong, ExponWide):
* tests/expr.test (expr-23.34/35): fixed special case 'i**0' for i>0
[Bug 1198892]
2005-05-09 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* win/tclWin32Dll.c (TclpCheckStackSpace, TclWinCPUID): Reworked
structured event handling to function even with -fomit-frame-pointers.
2005-05-08 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* generic/tclStrToD.c: Made code more portable by finding a workaround
for MSVC's 'volatile' issue that does not require conditional
compilation.
* win/tclWin32Dll.c (TclWinCPUID): Removed structured event handling
from the GCC code since (a) bad code is generated by the instruction
scheduling with -O2, and (b) it's not needed on any reasonably modern
CPU.
2005-05-07 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* generic/tclEvent.c: Moved initialization of tclStrToD.c's
* generic/tclInt.h: static constants into a procedure called
* generic/tclStrToD.c: from TclInitSubsystems to avoid double checked
locking protocol. Cleaned up an issue where MSVC ignored the
'volatile' specifier, causing incorrect comparison of an underflowed
number against zero.
2005-05-06 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tcl.m4, unix/configure: correct Solaris 10 (5.10) check and add
support for x86_64 Solaris cc builds.
2005-05-05 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Merged with HEAD.
2005-05-05 Kevin B. Kenny <kennykb@acm.org>
* win/tclWinThrd.c: Corrected a compilation error on the
--enable-threads configuration.
2005-05-05 Don Porter <dgp@users.sourceforge.net>
* generic/tclInt.decls: Converted TclMatchIsTrivial to a macro.
* generic/tclInt.h:
* generic/tclUtil.c:
* generic/tclIntDecls.h: `make genstubs`
* generic/tclStubInit.c:
* generic/tclBasic.c: Added callers of TclMatchIsTrivial where a
* generic/tclCmdIL.c: search can be done more efficiently when it is
* generic/tclCompCmds.c:recognized that a pattern match is really an
* generic/tclDictObj.c: exact match. [Patch 1076088]
* generic/tclIO.c:
* generic/tclNamesp.c:
* generic/tclVar.c:
* generic/tclCompCmds.c: Factored common efficiency trick into a
macro named CompileWord.
* generic/tclCompCmds.c: Replaced all instance of
* generic/tclCompile.c: TCL_OUT_LINE_COMPILE with TCL_ERROR.
* generic/tclInt.h: Now that we've eradicated the mistaken
* tests/appendComp.test: notion of a "compile-time error", we
can use the TCL_ERROR return code to signal any failure to produce
bytecode.
2005-05-03 Don Porter <dgp@users.sourceforge.net>
* doc/DString.3: Eliminated use of identifier "string" in Tcl's
* doc/Environment.3: public C API to avoid conflict/confusion with
* doc/Eval.3: the std::string of C++.
* doc/ExprLong.3, doc/ExprLongObj.3, doc/GetInt.3, doc/GetOpnFl.3:
* doc/ParseCmd.3, doc/RegExp.3, doc/SetResult.3, doc/StrMatch.3:
* doc/Utf.3, generic/tcl.decls, generic/tclBasic.c, generic/tclEnv.c:
* generic/tclGet.c, generic/tclParse.c, generic/tclParseExpr.c:
* generic/tclRegexp.c, generic/tclResult.c, generic/tclUtf.c:
* generic/tclUtil.c, unix/tclUnixChan.c:
* generic/tclDecls.h: `make genstubs`
2005-05-02 Don Porter <dgp@users.sourceforge.net>
* generic/tcl.decls:
* generic/tclBasic.c: Simplified implementation of Tcl_ExprString.
* tests/expr-old.test:
* generic/tclDecls.h: `make genstubs`
2005-04-30 Daniel Steffen <das@users.sourceforge.net>
* unix/tclUnixNotfy.c: applied dkf's tkMacOSXNotify.c cleanup changes.
2005-04-29 Don Porter <dgp@users.sourceforge.net>
TIP#176 IMPLEMENTATION [Patch 1165695]
* generic/tclUtil.c: Extended TclGetIntForIndex to recognize index
formats including end+integer and integer+/-integer.
* generic/tclCmdMZ.c: Extended the -start switch of [regexp] and
[regsub] to accept all index formats known by TclGetIntForIndex.
* doc/lindex.n: Updated docs to note new index formats.
* doc/linsert.n, doc/lrange.n, doc/lreplace.n, doc/lsearch.n:
* doc/lset.n, doc/lsort.n, doc/regexp.n, doc/regsub.n, doc/string.n:
* tests/cmdIL.test: Updated tests.
* tests/compile.test, tests/lindex.test, tests/linsert.test:
* tests/lrange.test, tests/lreplace.test, tests/lsearch.test:
* tests/lset.test, tests/regexp.test, tests/regexpComp.test:
* tests/string.test, tests/stringComp.test, tests/util.test:
2005-04-28 Don Porter <dgp@users.sourceforge.net>
* tests/unixInit.test (7.1): Alternative fix for the 2004-11-11 commit.
2005-04-27 Don Porter <dgp@users.sourceforge.net>
* library/init.tcl: Corrected flaw in interactive command
* tests/main.test: auto-completion. [Bug 1191409].
TIP#183 IMPLEMENTATION [Patch 577093]
* generic/tclIOUtil.c (TclGetOpenModeEx): New routine.
* generic/tclInt.h:
* generic/tclIO.c (Tcl_OpenObjCmd): Support for "b" and
* doc/open.n: "BINARY" in "access" argument to [open].
* tests/ioCmd.test:
2005-04-26 Kevin B. Kenny <kennykb@users.sourceforge.net>
* generic/tclBinary.c (FormatNumber): Dredge the NaN out of the
internal representation if Tcl_GetDoubleFromObj returns TCL_ERROR on a
NaN.
* generic/tclObj.c (Tcl_GetDoubleFromObj): Restored silent
overflow/underflow behaviour that the merge of 2004-04-25 messed up.
Thanks to Don Porter for calling attention to this bug. Also removed an
uninitialised memory reference in this function that valgrind caught.
Also changed to return TCL_ERROR on a pure NaN.
* generic/tclStrToD.c (RefineResult): Added a test for the initial
approximation being HUGE_VAL; this test avoids EDOM being returned from
ldexp on some platforms on input values exceeding the floating point
range.
* tests/expr.test (expr-29.*, expr-30.*): Added further tests of
overflow/underflow on input conversions.
2005-04-25 Kevin B. Kenny <kennykb@users.sourceforge.net>
[kennykb-numerics-branch] Merged with HEAD.
* doc/CrtMathFunc.n: Revised documentation for TIP 232
2005-04-25 Daniel Steffen <das@users.sourceforge.net>
* compat/string.h: fixed memchr() protoype for __APPLE__ so that we
build on Mac OS X 10.1 again.
* generic/tclNotify.c (TclFinalizeNotifier): fixed notifier not being
finalized in unthreaded core (was testing for notifier initialization
in current thread by checking thread id != 0 but thread id is always 0
in untreaded core).
* win/tclWinNotify.c (Tcl_WaitForEvent):
* unix/tclUnixNotfy.c (Tcl_WaitForEvent): don't call ScaleTimeProc for
zero wait times (as specified in TIP 233).
* unix/Makefile.in: added @PLAT_SRCS@ to SRCS and split out NOTIFY_SRCS
from UNIX_SRCS for parity with UNIX_OBJS & NOTIFY_OBJS.
* unix/tcl.m4 (Darwin): added configure checks for recently added
linker flags -single_module and -search_paths_first to allow building
with older tools (and on Mac OS X 10.1), use -single_module in SHLIB_LD
and not just T{CL,K}_SHLIB_LD_EXTRAS, added unexporting from Tk of
symbols from libtclstub to avoid duplicate symbol warnings, added
PLAT_SRCS definition for Mac OS X, defined MODULE_SCOPE to
__private_extern__.
(SC_MISSING_POSIX_HEADERS): added caching of dirent.h check.
* unix/configure: autoconf-2.59
2005-04-25 Kevin B. Kenny <kennykb@users.sourceforge.net>
* library/tzdata/America/Boise:
* library/tzdata/America/Chicago:
* library/tzdata/America/Denver
* library/tzdata/America/Indianapolis:
* library/tzdata/America/Los_Angeles:
* library/tzdata/America/Louisville:
* library/tzdata/America/Managua:
* library/tzdata/America/New_York:
* library/tzdata/America/Phoenix:
* library/tzdata/America/Port-au-Prince:
* library/tzdata/America/Indiana/Knox:
* library/tzdata/America/Indiana/Marengo:
* library/tzdata/America/Indiana/Vevay:
* library/tzdata/America/Kentucky/Monticello:
* library/tzdata/America/North_Dakota/Center:
* library/tzdata/Asia/Tehran:
Olson's tzdata2005i. Corrects exact time at which Standard Time was
adopted in the US (generally, noon, Standard Time, rather than noon,
Local Mean Time). Adopts new civil rules for Nicaragua and Iran.
2005-04-25 Don Porter <dgp@users.sourceforge.net>
* library/init.tcl: Use "ni" and "in" operators.
2005-04-25 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: fix for [Bug 1189274].
2005-04-24 Don Porter <dgp@users.sourceforge.net>
* generic/tclLiteral.c: Silence compiler warnings.
* generic/tclObj.c: [Bug 1188863].
2005-04-22 Don Porter <dgp@users.sourceforge.net>
The 2005-04-21 changes to Tcl_GetBooleanFromObj were done to bring it
into agreement with its docs. Further investigation reveals it was the
docs that were incorrect.
* doc/BoolObj.3: Corrections to the documentation of
Tcl_GetBooleanFromObj to bring it into agreement with what this public
interface has always done, including noting the difference in function
between Tcl_GetBooleanFromObj and Tcl_GetBoolean.
* generic/tclGet.c: Revised Tcl_GetBoolean to no longer be a
wrapper around Tcl_GetBooleanFromObj (different function!).
* generic/tclObj.c: Removed TclGetTruthValueFromObj routine that
was added yesterday. Revisions so that only Tcl_GetBoolean-approved
values get the "boolean" Tcl_ObjType. This retains the fix for [Bug
1187123].
* tests/string.test: Test string-23.0 for Bug 1187123.
* generic/tclInt.h: Revert most recent change.
* generic/tclBasic.c:
* generic/tclCompCmds.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* tests/obj.test:
2005-04-21 Don Porter <dgp@users.sourceforge.net>
* doc/GetInt.3: Convert argument "string" to "str" to agree with code.
Also clarified a few details on int and double formats.
* generic/tclGet.c: Radical code simplification. Converted
Tcl_GetFoo() routines into wrappers around Tcl_GetFooFromObj(). Reduces
code duplication, and the resulting potential for inconsistency.
* generic/tclObj.c: Several changes:
- Re-ordered error detection code so all values with trailing garbage
receive a "not an integer" message instead of an "integer too large"
message.
- Removed inactive code meant to deal with strtoul* routines that fail
to parse leading signs. All of them do, and if any are detected that
do not, the correct fix is replacement with compat/strtoul*.c, not a
lot of special care by the callers.
- Tcl_GetDoubleFromObj now avoids shimmering away a "wideInt" intrep.
- Fixed Tcl_GetBooleanFromObj to agree with its documentation and with
Tcl_GetBoolean, accepting only "0" and "1" and not other numeric
strings. [Bug 1187123]
- Added new private routine TclGetTruthValueFromObj to perform the more
permissive conversion of numeric values to boolean that is needed by
the [expr] machinery.
* generic/tclInt.h (TclGetTruthValueFromObj): New routine.
* generic/tclExecute.c: Updated callers to call new routine.
* generic/tclBasic.c: Updated callers to call new routine.
* generic/tclCompCmds.c: Updated callers to call new routine.
* generic/tclDictObj.c: Updated callers to call new routine.
* tests/obj.test: Corrected bad tests that actually expected
values like "47" and "0xac" to be accepted as booleans.
* generic/tclLiteral.c: Disabled the code that forces some literals
into the "int" Tcl_ObjType during registration. We can re-enable it if
this change causes trouble, but it seems more sensible to let Tcl's
"on-demand" shimmering rule, and not try to pre-guess things.
2005-04-20 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* doc/expr.n:
* doc/mathfunc.n (new file): Revised documentation for TIP 232
2005-04-20 Don Porter <dgp@users.sourceforge.net>
* generic/tclGet.c (Tcl_GetInt): Corrected error that did not
* generic/tclObj.c (Tcl_GetIntFromObj): permit 0x80000000 to be
recognized as an integer on TCL_WIDE_INT_IS_LONG systems [Bug 1090869].
2005-04-20 Kevin B. Kenny <kennykb@acm.org>
* generic/tclFileName.c: Silenced a compiler warning about '/*' within
a comment.
2005-04-19 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c: Added unsupported command
* generic/tclCmdAH.c: [::tcl::unsupported::EncodingDirs] to permit
* generic/tclInt.h: query/set of the encoding search path at
* generic/tclInterp.c: the script level. Updated init.tcl to make
* library/init.tcl: use of the new command. Also updated several
coding practices in init.tcl ("eq" for [string equal], etc.)
2005-04-19 Kevin B. Kenny <kennykb@acm.org>
* library/clock.tcl (Initialize): Put initialization code into a proc
to avoid inadvertently clobbering global variables. [Bug 1185933]
* tests/clock.test (clock-48.1): Added regression test for the above
bug.
Thanks to Ulrich Ring for reporting this bug.
2005-04-16 Miguel Sofer <msofer@users.sf.net>
* generic/Var.c (Tcl_ArrayObjCmd - ARRAY_NAMES): fix Tcl_Obj leak. [Bug
1084111]
2005-04-16 Zoran Vasiljevic <vasiljevic@users.sf.net>
* generic/tclIOUtil.c: force clenaup of the interp result in
TclLoadFile(). Some implementations of TclpFindSymbol() will seed the
interp result with error message when unable to find the requested
symbol (this is not considered to be an error).
Set of changes correcting huge memory waste (not a leak) when a thread
exits. This has been introduced in 8.4.7 within an attempt to correctly
cleanup after ourselves when Tcl library is being unloaded with the
Tcl_Finalize() call.
This fixes the [Bug 1178445]
* generic/tclInt.h: added prototypes for TclpFreeAllocCache() and
TclFreeAllocCache()
* generic/tclThreadAlloc.c: modified TclFinalizeThreadAlloc() to
explicitly call TclpFreeAllocCache with the NULL-ptr as argument
signalling cleanup of private tsd key used only by the threading
allocator.
* unix/tclUnixThrd.c: fixed TclpFreeAllocCache() to recognize when
being called with NULL argument. This is a signal for it to clean up
the tsd key associated with the threading allocator.
* win/tclWinThrd.c: renamed TclWinFreeAllocCache to TclpFreeAllocCache
and fixed to recognize when being called with NULL argument. This is a
signal for it to clean up the tsd key associated with the threading
allocator.
2005-04-13 Don Porter <dgp@users.sourceforge.net>
* tests/unixInit.test: Disabled obsolete tests and removed code
* tests/encoding.test: that supported them.
* generic/tclInterp.c:
* library/init.tcl: Use auto-loading to bring in Tcl Module support
* library/tclIndex: as needed. This reduces startup time by
* library/tm.tcl: delaying this initialization to a later time.
2005-04-15 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: missing semicolons caused failure to compile
with TCL_COMPILE_DEBUG.
2005-04-13 David Gravereaux <davygrvy@pobox.com>
* generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limit
* tests/io.test: changed from ten bytes to one byte. Need for
* tests/iogt.test: this change was proven by Ross Cartlidge
<rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed
by starting a child process that was intended to continue reading from
stdin. Even with -buffersize set to one, nine chars were getting lost
by the buffersize over reading for the native read() caused by [read].
2005-04-13 Don Porter <dgp@users.sourceforge.net>
* unix/tclUnixInit.c (TclpGetEncodingNameFromEnvironment): Reversed
order of verifying candidate [encoding system] value, checking against
a table in memory first before calling Tcl_GetEncoding and potentially
scanning through the filesystem. Also ordered the table so that a
binary search could be used within it. Improves startup time a bit more
on some systems.
2005-04-13 Kevin B. Kenny <kennykb@acm.org>
* library/clock.n: Added a missing '--' on several [switch] commands to
improve performance of [clock format] and related operations. [FRQ
1182459]
2005-04-13 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/fcopy.n: Improved documentation on copying binary files, added an
example and mentioned the use of [file copy].
* doc/fconfigure.n: Improved documentation of -encoding binary option.
This is all following comments from Steve Manning <steve@manning.net>
on comp.lang.tcl that the current documentation was not clear.
2005-04-13 Miguel Sofer <msofer@users.sf.net>
* generic/tclCompile.c:Commented out the functions
TclPrintInstruction(), TclPrintObject() and TclPrintSource() when not
debugging the compiler, as they are never called in that case.
2005-04-12 Don Porter <dgp@users.sourceforge.net>
* generic/tclInterp.c: Corrected bad syntax of Tcl_Panic() call.
* generic/tclUtil.c (TclGetProcessGlobalValue): More robust handling
of bad TclInitProcessGlobalValueProc behavior; an immediate panic
rather than a mysterious crash later.
* generic/tclEncoding.c: Several changes to the way the
encodingFileMap cache is maintained. Previously, it was attempted to
keep the file map filled and up to date with changes in the encoding
search path. This contributed to slow startup times since it required
an expensive "glob" operation to fill the cache. Now the validity of
items in the cache are checked at the time they are used, so the cache
is permitted to fall out of sync with the encoding search path. Only
[encoding names] and Tcl_GetEncodingNames() now pay the full expense.
[Bug 1177363]
2005-04-12 Kevin B. Kenny <kennykb@acm.org>
* compat/strstr.c: Added default definition of NULL to accommodate
building on systems with badly broken headers. [Bug 1175161]
2005-04-11 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* tools/tclZIC.tcl: Rewrote to take advantage of more features of Tcl
8.5 (on which it was dependent anyway). Also added a [package require]
line to formalize the relationship.
2005-04-11 Kevin Kenny <kennykb@users.sf.net>
[kennykb-numerics-branch] Merged with HEAD. Updated to libtommath 0.35.
* generic/tclBasic.c: Attempted to repeat changes that applied to
tclExecute.c in Miguel Sofer's commit of 2005-04-01, together with
(possibly) a few more uses of his new object creation macros. Also
plugged a memory leak in TclObjInvoke. [Bug 1180368]
2005-04-10 Kevin Kenny <kennykb@acm.org>
* library/tzdata/America/Montevideo:
* library/tzdata/Asia/Almaty:
* library/tzdata/Asia/Aqtau:
* library/tzdata/Asia/Aqtobe:
* library/tzdata/Asia/Baku:
* library/tzdata/Asia/Jerusalem:
* library/tzdata/Asia/Oral:
* library/tzdata/Asia/Qyzylorda:
* library/tzdata/Indian/Chagos:
* library/tzdata/Indian/Cocos: Olson's tzdata2005h
2005-04-10 Don Porter <dgp@users.sourceforge.net>
* generic/tclBasic.c (TclObjInvoke): Plug memory leak. [Bug 1180368]
2005-04-09 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: fix possible leak of expansion Tcl_Objs
2005-04-09 Daniel Steffen <das@users.sourceforge.net>
* macosx/README: updated requirements for OS & developer tool versions
and other small fixes/cleanup.
* generic/tclListObj.c (Tcl_ListObjIndex): added missing NULL return
when getting index from an empty list.
* unix/tcl.m4 (Darwin): added -single_module linker flag to
TCL_SHLIB_LD_EXTRAS and TK_SHLIB_LD_EXTRAS.
* unix/configure: autoconf-2.59
2005-04-08 Don Porter <dgp@users.sourceforge.net>
* generic/tclInt.h (TclGetEncodingFromObj): New function to
* generic/tclEncoding.c (TclGetEncodingFromObj): retrieve a
Tcl_Encoding value, as well as cache it in the internal rep of a new
"encoding" Tcl_ObjType.
* generic/tclCmdAH.c (Tcl_EncodingObjCmd): Updated to call new
function so that Tcl_Encoding's used by [encoding convert*] routines
are not freed too quickly. [Bug 1077262]
2005-04-08 Donal K. Fellows <dkf@users.sf.net>
* generic/tclCompCmds.c (TclCompileSwitchCmd): Rewritten to be able to
handle the other form of [switch] and generate slightly simpler (but
longer) code.
2005-04-06 Donal K. Fellows <dkf@users.sf.net>
* doc/upvar.n, doc/unset.n, doc/tell.n, doc/tclvars.n, doc/subst.n:
* doc/seek.n, doc/scan.n, doc/regsub.n, doc/registry.n, doc/regexp.n:
* doc/read.n, doc/puts.n, doc/pkgMkIndex.n, doc/open.n, doc/lreplace.n:
* doc/lrange.n, doc/load.n, doc/llength.n, doc/linsert.n, doc/lindex.n:
* doc/lappend.n, doc/info.n, doc/gets.n, doc/format.n, doc/flush.n:
* doc/fileevent.n, doc/file.n, doc/fblocked.n, doc/close.n:
* doc/array.n, doc/Utf.3, doc/TraceVar.3, doc/StrMatch.3, doc/RegExp.3:
* doc/PrintDbl.3, doc/OpenTcp.3, doc/OpenFileChnl.3, doc/Object.3:
* doc/Notifier.3, doc/LinkVar.3, doc/IntObj.3, doc/Interp.3:
* doc/GetOpnFl.3, doc/GetIndex.3, doc/Eval.3, doc/CrtMathFnc.3:
* doc/CrtFileHdlr.3, doc/CrtCommand.3, doc/CrtChannel.3:
* doc/Backslash.3: Purge old .VS/.VE macro instances.
* tools/man2html2.tcl (IPmacro): Rewrote to understand what .IP really
is (.IP and .TP are really just two ways of doing the same thing).
Change below made this relevant.
* doc/re_syntax.n: Change some uses of .TP to .IP to work around bugs
in various *roff implementations. Also reworded the atom descriptions
slightly.
2005-04-05 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c (ExprSrandFunc): Replaced incursions into the
* generic/tclUtil.c (TclGetIntForIndex): intreps of numeric types with
simpler calls of Tcl_GetIntFromObj and Tcl_GetLongFromObj, now that
those routines are better behaved wrt shimmering. [Patch 1177219]
2005-04-05 Miguel Sofer <msofer@users.sf.net>
* generic/tclInt.h:
* generic/tclObj.c: Change in TclDecrRefCount and TclFreeObj, to speed
up the freeing of simple Tcl_Obj [Patch 1174551]
2005-04-04 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: small opts in obj handling
2005-04-02 Miguel Sofer <msofer@users.sf.net>
* generic/tclVar.c: converted a few function calls to macros.
2005-04-01 Miguel Sofer <msofer@users.sf.net>
* doc/ListObj.3:
* generic/tclBasic.c:
* generic/tclCmdIL.c:
* generic/tclConfig.c:
* generic/tclExecute.c:
* generic/tclInt.decls:
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclListObj.c:
* generic/tclStubInit.c:
* generic/tclVar.c: Changed the internal representation of lists to
(a) reduce the malloc/free calls at list creation (from 2 to 1), (b)
reduce the cost of handling empty lists (we now never create a list
internal rep for them), (c) allow refcounting of the list internal rep.
The latter permits insuring that the pointers returned by
Tcl_ListObjGetElements remain valid even if the object shimmers away
from its original list type. This is [Patch 1158008]
* generic/tclExecute.c:
* generic/tclInt.h:
* generic/tclObj.c:
* generic/tclStringObj.c:
(1) defined new internal macros for creating and setting frequently
used obj types (int,long, wideInt, double, string). Changed TEBC to use
eg 'TclNewIntObj(objPtr, i)' to avoid the function call in 'objPtr =
Tcl_NewIntObj(i)'
(2) ExecEnv now stores two Tcl_Obj* pointing to the constants "0" and
"1", for use by TEBC.
(3) slight reduction in cost of INST_START_CMD
2005-03-31 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c (INST_JUMP_TRUE/FALSE): replaced "test and
branch" with "compute index into table"
2005-03-30 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/FileSystem.3: Defined loadHandle argument. [Bug 1172401]
2005-03-29 Jeff Hobbs <jeffh@ActiveState.com>
* win/tcl.m4, win/configure: do not require cygpath in macros to allow
msys alone as an alternative.
2005-03-24 Don Porter <dgp@users.sourceforge.net>
* generic/tclCompile.h: Move the TclInterpReady() declaration from
* generic/tclInt.h: tclCompile.h to tclInt.h. Should have been done
as part of the 1115904 bug fix on 2005-03-18.
* generic/tclThreadTest.c: Stop providing the phony package
"Thread 1.0" when the [::testthread] command is defined. It's never
used by anything, and conflicts with loading the real "Thread" package.
2005-03-18 Don Porter <dgp@users.sourceforge.net>
* generic/tclCompCmds.c (TclCompileIncrCmd): Corrected checks for
immediate operand usage to permit leading space and sign characters.
Restores more efficient bytecode for [incr x -1] that got lost in the
CONST string reforms of Tcl 8.4. [Bug 1165671]
* generic/tclBasic.c (Tcl_EvalEx): Restored recursion limit
* generic/tclParse.c (TclSubstTokens): testing in nested command
* tests/basic.test (basic-46.4): substitutions within direct
* tests/parse.test (parse-19.*): script evaluation (Tcl_EvalEx)
that got lost in the parser reforms of Tcl 8.1. Added tests for correct
behavior. [Bug 1115904]
2005-03-15 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tclFileName.c:
* win/tclWinFile.c:
* tests/winFCMd.test: fix to 'file pathtype' and 'file norm' failures
on reserved filenames like 'COM1:', etc.
2005-03-15 Pat Thoyts <patthoyts@users.sourceforge.net>
* unix/tcl.m4: Updated the OpenBSD configuration and regenerated
* unix/configure: the configure script.
2005-03-15 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Merged with HEAD.
* generic/tclBasic.c (many):
* generic/tclCompExpr.c (CompileMathFuncCall):
* generic/tclCompile.h:
* generic/tclExecute.c (many):
* generic/tclParseExpr.c (ParsePrimaryExpr):
* tests/compExpr-old.test:
* tests/compExpr.test:
* tests/compile.test:
* tests/expr-old.test:
* tests/expr.test:
* tests/for.test:
* tests/parseExpr.test: Initial implementation of TIP #232.
* generic/tclObj.c (Tcl_DbNewBignumObj): Fixed typo that broke
--enable-symbols=mem build
* tests/binary.test (binary-40.3, binary-40.6): Corrected tests to
allow NaN(7ffffffffffff).
2005-03-14 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: fixed INST_PUSH1's debugging code (wrong obj
ref passed to TRACE_WITH_OBJ).
2005-03-14 Miguel Sofer <msofer@users.sf.net>
* generic/tclCompile.c: fixed INST_RETURN's stack effect in
tclInstructionTable (-1 instead of -2)
2005-03-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclCompCmds.c: removed debugging line
2005-03-10 Don Porter <dgp@users.sourceforge.net>
* generic/tclTrace.c (TclCheckInterpTraces): Corrected mistaken cast
of ClientData to (TraceCommandInfo *) when not warranted. Thanks to
Yuri Victorovich for the report. [Bug 1153871]
* generic/tcl.h: Moved flag values TCL_TRACE_ENTER_EXEC and
* generic/tclInt.h: TCL_TRACE_LEAVE_EXEC from public interface into
private. Should be used only by internal workings of execution traces.
2005-03-09 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Merged from HEAD.
* doc/PrintDbl.3:
* doc/tclVars.n: Documented new semantics for tcl_precision.
* generic/tclExecute.c (Tcl_ExecuteByteCode): Removed the check for
division-by-zero on IEEE-754 machines.
* generic/tclUtil.c (Tcl_PrintDouble): Corrected bug where numbers in
the range [1e-4 .. 1.) were printed incorrectly.
* tests/compExpr-old.test (compExpr-old-11.13): Revised test case for
division by zero.
* tests/expr-old.test (expr-34.11, expr-34.12): Revised test cases for
overflow in pow() to deal with infinities.
* tests/expr.test (expr-11.13, expr-29.1, expr-29.2): Revised test case
for division by zero and for underflow on input conversions.
* tests/parseExpr.test (parseExpr-16.11): Revised test case for
overflow on input conversion.
* tests/string.test (string-6.38 deleted): Removed test case for
underflow on input conversion, which is no longer an error.
* tests/util.test (util-10.*): Added test case for the bug in tclUtil.c
2005-03-08 Jeff Hobbs <jeffh@ActiveState.com>
* win/makefile.vc: clarify necessary defined vars that can come from
MSVC or the Platform SDK.
2005-03-07 Donal K. Fellows <dkf@users.sf.net>
* doc/string.n: Minor typo. [Bug 1158247]
2005-03-07 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: new peephole optimisation for INST_PUSH1; fixed
the peephole opt in INST_POP so that it is not used when
TCL_COMPILE_DEBUG is defined.
2005-03-04 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* generic/tclCmdMZ.c: Changed [scan] to treat out-of-range floating
point values as infinities and zeroes.
* generic/tclExecute.c: Changed [expr] to be permissive about
infinities, allowing them to propagate.
* generic/tclGet.c: Changed Tcl_GetDouble to be permissive about
over/underflow.
* generic/tclObj.c: Changed SetDoubleFromAny to be permissive about
over/underflow.
* generic/tclParseExpr.c: Made [expr] permissive about input numbers
out of range.
2005-03-03 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* generic/tclInt.h:
* generic/tclStrToD.c (Tcl_DoubleDigits, TclFormatNaN):
* generic/tclUtil.c (Tcl_PrintDouble): Changed the signature of
TclDoubleDigits so that it accepts a pointer to the signum of the
argument, and returns the signum via that pointer. Added very hacky
code to handle IEEE signed zeroes in Tcl_DoubleDigits. (It can't be
done other than as a hack until C9x; C89 simply doesn't deal with the
concept of -0.0). Added output conversion of tagged NaN values.
* generic/tclBinary.c (FormatNumber): Changed to allow [binary format]
to handle NaN.
* tests/binary.test (binary-60.1): Added a quick-n-dirty test to make
sure that NaN's can be scanned and formatted.
* generic/tclParseExpr.c (GetLexeme, ParseMaxDoubleLength): Modified so
that tagged NaN (e.g., NaN(DEADBEEF)) can be recognized.
2005-03-02 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Merged with HEAD as of 2005-02-23.
* generic/tclExecute.c: Broadened test for NaN to work on Windows.
* generic/tclInt.h:
* generic/tclStrToD.c (Tcl_DoubleDigits):
* generic/tclUtil.c (Tcl_PrintDouble, TclPrecTraceProc): Added
Tcl_DoubleDigits to format 'double' numbers with the minimum number of
significant digits to yield correct rounding. Modified tcl_precision
to accept 0 as a precision (meaning "minimum digits"), and made 0 the
default. [TIP #132]
* generic/tclObj.c: Made NaN's throw an error in Tcl_GetDoubleFromObj.
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc: Added libtommath/bn_mp_init_set.c to the build.
* libtommath/tommath.h (mp_iseven): Fixed a bug that caused zero to
test 'odd'.
* generic/tommath.h: Regenerated.
* tests/binary.test:
* tests/expr-old.test:
* tests/expr.test:
* tests/scan.test: Corrected a number of tests that depended on
tcl_precision, and removed the {eformat} condition from tests that no
longer require it.
* tests/util.test: Corrected a number of tests that depended on
tcl_precision, and removed the {eformat} condition from tests that no
longer require it. Added a series of tests for correct rounding in
Tcl_PrintDouble. [TIP #132].
2005-03-01 David N. Welton <davidw@dedasys.com>
* doc/CrtSlave.3: Changed to Tcl_Object to Tcl_Obj in the man page.
2005-02-24 Don Porter <dgp@users.sourceforge.net>
* library/tcltest/tcltest.tcl: Better use of [glob -types] to avoid
* tests/tcltest.test: failed attempts to [source] a directory, and
similar matters. Thanks to "mpettigr". [Bug 1119798]
* library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.8
* unix/Makefile.in:
* win/Makefile.in:
2005-02-23 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* doc/CrtChannel.3 (THREADACTIONPROC): Formatting fix. [Bug 1149605]
2005-02-17 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinFCmd.c (TraverseWinTree): use wcslen on wchar, not
Tcl_UniCharLen.
2005-02-16 Miguel Sofer <msofer@users.sf.net>
* doc/variable.n: fix for [Bug 1124160], variables are detected by
[info vars] but not by [info locals].
2005-02-11 Jeff Hobbs <jeffh@ActiveState.com>
* unix/Makefile.in: remove SHLIB_LD_FLAGS (only for AIX, inlined into
* unix/tcl.m4: SHLIB_LD). Combine AIX-* and AIX-5 branches in
* unix/configure: SC_CONFIG_CFLAGS. Correct gcc builds for AIX-4+
and HP-UX-11. autoconf-2.59 gen'd.
2005-02-11 Miguel Sofer <msofer@users.sf.net>
* tests/basic.test (basic-26.3): new test
2005-02-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c (Tcl_EvalObjEx):
* tests/basic.test (basic-26.2): preserve the arguments passed to TEOV
in the pure-list branch, in case the list shimmers away. Fix for [Bug
1119369], reported by Peter MacDonald.
2005-02-10 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tclFileName.c: fix for test failures introduced on 2005-01-17
[Bug 1119092]
2005-02-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* doc/binary.n: Made the documentation of sign bit masking and [binary
scan] consistent. [Bug 1117017]
2005-02-08 David N. Welton <davidw@dedasys.com>
* doc/CrtChannel.3: Typo: return->returns.
2005-02-06 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* generic/tclStrToD.c (TclStrToD, SafeLdExp): Added code to manage the
FPU precision on gcc+x86. Enabled fast conversion of floats with small
exponents now that precision is correct.
* tests/expr.test: Corrected test for the smallest representible value
to the right IEEE values.
2005-02-06 David N. Welton <davidw@dedasys.com>
* doc/Thread.3: One-word grammar fix.
2005-02-05 David N. Welton <davidw@dedasys.com>
* doc/Thread.3: Fixed sentence describing flags for Tcl_CreateThread.
* doc/FileSystem.3: Cleaned up typo in Tcl_FSNewNativePath
documentation.
* generic/tclPathObj.c: Cleaned up typo in comment.
2005-02-03 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* generic/tclStrToD.c (TclStrToD, RefineResult, SafeLdExp): Added code
to ensure that 'ldexp' is never called with a value that will underflow
* tests/expr.test: Added tests for the smallest representible value,
and rounding between it and zero. (The tests reflect current
behaviour; plan is to change the specification of Tcl so that input
conversion of doubles underflows silently.)
2005-02-02 Mo DeJong <mdejong@users.sourceforge.net>
* generic/tclProc.c (TclInitCompiledLocals): Add check for type of the
framePtr->procPtr->bodyPtr passed to TclInitCompiledLocals and panic if
it is not the correct type. If the body of the proc is not of the
compiled byte code type then the code will crash. This was discovered
while tracking down a crash in Itcl, that crash is fixed by Itcl patch
1115085.
2005-02-01 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Merged with HEAD as of today.
* generic/tclInt.decls: Changed numbers of new stubs to resolve a
conflict.
* generic/tclInt.h: Added new TclStrToD routine that replaces the
native 'strtod' throughout Tcl.
* generic/tclCmdMZ (Tcl_StringObjCmd):
* generic/tclGet.c (Tcl_GetDouble):
* generic/tclObj.c (SetBooleanFromAny, SetDoubleFromAny):
* generic/tclParseExpr.c (GetLexeme):
* generic/tclScan.c (Tcl_ScanObjCmd): Replaced all uses of the native
'strtod' with a TclStrToD routine that performs correct rounding and
handles denormals.
* generic/tclStrToD.c: (new file)
New scanning function for extracting 'double' from a string that rounds
correctly, and handles denormals and infinities.
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc:
Added tclStrToD.c and the tommath routines that support it.
These changes represent a partial implementation of TIP #132. Output
conversion of floating point numbers, and proper handling of infinities
within expressions, still need to be addressed.
2005-02-01 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c (TclCompEvalObj): Removed stray statement left
behind in prior code reorganization.
2005-01-31 Don Porter <dgp@users.sourceforge.net>
* unix/configure: autoconf-2.57
2005-01-30 Joe English <jenglish@users.sourceforge.net>
* unix/configure.in: Restored two double-evals that were removed in the
DBGX purge; these are still needed on some platforms to account for
TCL_TRIM_DOTS. [Bug 1112654]
* unix/configure: NOT REGENERATED: only have autoconf 2.59 here, need
to find someone with autoconf 2.57.
2005-01-28 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure, unix/tcl.m4: add solaris 64-bit gcc build support.
[Bug 1021871]
2005-01-28 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* tests/expr-old.test (expr-old-37.2): Added test for [Bug 1109484]
2005-01-27 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclBasic.c (Tcl_ExprBoolean, Tcl_ExprDouble)
(Tcl_ExprLong): Fix to recognize Tcl_WideInt type. [Bug 1109484]
2005-01-26 Andreas Kupries <andreask@activestate.com>
TIP#218 IMPLEMENTATION
* generic/tclDecls.h: Regenerated from tcl.decls.
* generic/tclStubInit.c:
* doc/CrtChannel.3: Documentation of extended API,
* generic/tcl.decls: extended testsuite, and
* generic/tcl.h: implementation. Removal of old
* generic/tclIO.c: driver-specific TclpCut/Splice
* generic/tclInt.h: functions. Replaced with generic
* tests/io.test: thread-action calls through the
* unix/tclUnixChan.c: new hooks. Update of all builtin
* unix/tclUnixPipe.c: channel drivers to version 4.
* unix/tclUnixSock.c: Windows drivers extended to
* win/tclWinChan.c: manage thread state in a thread
* win/tclWinConsole.c: action handler.
* win/tclWinPipe.c:
* win/tclWinSerial.c:
* win/tclWinSock.c:
2005-01-25 Don Porter <dgp@users.sourceforge.net>
* library/auto.tcl: Updated [auto_reset] to clear auto-loaded
commands in namespaces other than :: and to clear auto-loaded commands
that do not happen to be procs. [Bug 1101670]
***POTENTIAL INCOMPATIBILITY***
2005-01-25 Daniel Steffen <das@users.sourceforge.net>
* unix/tcl.m4 (Darwin): fixed bug with static build linking to dynamic
library in /usr/lib etc instead of linking to static library earlier in
search path. [Bug 956908] Removed obsolete references to Rhapsody.
* unix/configure: autoconf-2.57
2005-01-21 Andreas Kupries <andreask@activestate.com>
* generic/tclStubInit.c: Regenerated the stubs support code from the
* generic/tclDecls.h: modified tcl.decls (TIP #233, see below).
* doc/GetTime.3: Implemented TIP #233, i.e. the
* generic/tcl.decls: 'Virtualization of Tcl's Sense of Time'.
* generic/tcl.h: Declared, implemented, and documented the
* generic/tclInt.h: specified new API functions. Moved the
* unix/tclUnixEvent.c: native (OS) access to time information
* unix/tclUnixNotfy.c: into standard handler functions. Inserted
* unix/tclUnixTime.c: hooks calling on the handlers where native
* win/tclWinNotify.c: access was done before, and where scaling
* win/tclWinTime.c: between domains (real/virtual) is required.
2005-01-21 Andreas Kupries <andreask@activestate.com>
* generic/tclThread.c: Typo police. Fixed some nits
* generic/tclCmdAH.c: in header comments of functions.
* generic/tclBasic.c: (Missing --).
* generic/tclFileName.c:
2005-01-21 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* doc/FileSystem.3: Add missing ARGUMENTS section definitions for
arguments to Tcl_FSLink. [Bug 1106272]
2005-01-21 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch]
* unix/Makefile.in: Updated Makefile to build libtommath on Unix as
well as Windows. [Bug 1106865]
* generic/tclTestObj.c (TestbignumobjCmd): Silenced a compiler warning
about a mismatched 'const'.
2005-01-20 Kevin B. Kenny <kennykb@acm.org>
[kennykb-numerics-branch] Development checkpoint.
* compat/strtoll.c: Reverted to HEAD.
* compat/strtoull.c:
* doc/Ensemble.3:
* generic/tclBasic.c:
* generic/tclCmdIL.c:
* generic/tclNamesp.c:
* generic/tclPathObj.c:
* generic/tclPort.h:
* unix/configure:
* unix/configure.in:
* unix/tcl.m4:
* win/configure:
* win/configure.in:
* win/rules.vc:
* win/tcl.m4:
* generic/tcl.h: Added declarations for bignum types, and for a
'bignumValue' in the Tcl_Obj structure.
* generic/tclInt.h: Added declarations of interface procedures for
memory allocation in libtommath.
* generic/tcl.decls: Added new interface to bignum objects.
* generic/tclInt.decls: Added internal stubs for bignum routines used
by the test code in tclTestObj.c.
* generic/tclDecls/h: Regen.
* generic/tclIntDecls.h:
* generic/tclStubInit.h:
* tools/fix_tommath_h.tcl: (New file) Script to edit
libtommath/tommath.h and produce generic/tommath.h so that storage
classes, allocation routines, and data types conform to Tcl's
conventions.
* generic/tommath.h: (New file) Generated by the above.
* generic/tclTomMath.h: (New file) Additional declarations to be
included in tommath.h when building Tcl.
* generic/tclTomMathInterface.c: (New file) Small 'glue' routines
adapting tommath's API to Tcl.
* libtommath/bn_fast_s_mp_mul_digs.c:
* libtommath/bn_mp_mul_d.c:
* libtommath/bn_mp_read_radix.c:
* libtommath/tommath.h: Applied suggested changes from Tom St Denis
that correct an off-by-one error in single-digit multiplication
(leading to a pointer smash if uncorrected) and change the string
argument to 'mp_read_radix' from 'char*' to 'const char*'.
* libtommath/bn_mp_radix_size.c: Local patch to ensure that sufficient
memory is requested even if the number has a single digit.
* libtommath/bn_mp_read_radix.c: Local patch to return MP_VAL if the
input string contains an invalid character.
* generic/tclObj.c: Added accessor functions for bignums.
* generic/tclTestObj.c: Added a 'testbignumobj' command to exercise the
accessor functions for bignums.
* win/Makefile.in: Added rules for making libtommath.
2005-01-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
TIP#235 IMPLEMENTATION
* doc/Ensemble.3: Documentation for the new public API.
* generic/tclNamesp.c (Tcl_CreateEnsemble,...): Rename of
* generic/tcl.decls: existing API into TIPped form.
2005-01-19 Mo DeJong <mdejong@users.sourceforge.net>
* win/tclWinChan.c (FileCloseProc): Invoke TclpCutFileChannel() to
remove a FileInfo from the thread local list before deallocating it.
This should have been done via an earlier call to Tcl_CutChannel, but I
was running into a crash in the next call to Tcl_CutChannel during the
I/O finalization stage.
2005-01-18 Kevin Kenny <kennykb@acm.org>
* library/tzdata/GMT+0:
* library/tzdata/GMT-0:
* library/tzdata/GMT0:
* library/tzdata/Greenwich:
* library/tzdata/Navajo:
* library/tzdata/Universal:
* library/tzdata/Zulu:
* library/tzdata/America/Asuncion:
* library/tzdata/America/Rosario:
* library/tzdata/Asia/Jerusalem:
* library/tzdata/Brazil/Acre:
Routine update per Olson's tzdata2005c. Removed links to links
(Greenwich in several aliases; Navajo; Acre). Updated Paraguayan DST
rules and "best guess" at this year's Israeli rules.
2005-01-17 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tclFileName.c: fix for glob failure on Windows shares [Bug
1100542].
* doc/pkgMkIndex.n: added documentation that 'pkg_mkIndex -lazy' is not
a good idea. [Bug 1101678]
2005-01-14 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* tests/compile.test (compile-17.1): Document known issue with binding
time of compiled command interpretations in [expr].
* generic/tclIOUtil.c (TclFSFileAttrIndex): New helper function so that
we don't need to hard-code attribute indexes. [Bug 1100671]
2005-01-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* doc/string.n: Removed the term 'set' from the documentation of the
[string trim] commands, as it caused confusion.
2005-01-12 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* unix/tcl.m4 (SC_PATH_{TCL,TK}CONFIG): Added code to detect the case
when the --with-tcl/--with-tk arguments point to the config scripts
themselves and not their directory. If this is the case, they now
complain but keep working. [FRQ 951247]
* unix/configure: autoconf-2.57
2005-01-10 Joe English <jenglish@users.sourceforge.net>
* unix/Makefile.in, unix/configure.in, unix/tcl.m4,
* unix/tclConfig.sh.in, unix/dltest/Makefile.in:
Remove ${DBGX}, ${TCL_DBGX} from Tcl build system [Patch 1081595].
* unix/configure: regenerated
2005-01-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* unix/tclUnixFCmd.c (TclUnixCopyFile): Convert u_int to unsigned to
make clashes with types in standard C headers less of a problem. [Bug
1098829]
2005-01-09 Joe English <jenglish@users.sourceforge.net>
* unix/tclUnixThrd.c, unix/tclUnixPort.h: Remove readdir_r() and
related #ifdeffery (see [Bug 1095909]).
* unix/tcl.m4, unix/tclConfig.h.in: Don't check for HAVE_READDIR_R.
* unix/configure: Regenerated.
2005-01-06 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* library/http/http.tcl (http::mapReply): Significant performance
enhancement by using [string map] instead of [regsub]/[subst], and
update version requirement to Tcl8.4. [Bug 1020491]
2005-01-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* doc/lsearch.n, doc/re_syntax.n: Convert to other form of emacs mode
control comment to prevent problems with old versions of man. [Bug
1085127]
2005-01-05 Pat Thoyts <patthoyts@users.sourceforge.net>
* tests/winDde.test: Fixed broken test result.
2005-01-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclInt.h, generic/tclPort.h: Move the #include of tclConfig.h
*first* before any reference to tcl.h so that the build configuration
is loaded before the first reference to any system headers. Issue
reported by Art Haas on tcl-core.
2005-01-04 Don Porter <dgp@users.sourceforge.net>
* tests/fCmd.test (fCmd-18.10): Added notNetworkFilesystem constraint.
[Bug 456665]
******************************************************************
*** CHANGELOG ENTRIES FOR 2004 IN "ChangeLog.2004" ***
*** CHANGELOG ENTRIES FOR 2003 IN "ChangeLog.2003" ***
*** CHANGELOG ENTRIES FOR 2002 IN "ChangeLog.2002" ***
*** CHANGELOG ENTRIES FOR 2001 IN "ChangeLog.2001" ***
*** CHANGELOG ENTRIES FOR 2000 IN "ChangeLog.2000" ***
*** CHANGELOG ENTRIES FOR 1999 AND EARLIER IN "ChangeLog.1999" ***
******************************************************************
|