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
|
2007-09-12 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.10 ========================
*
2007-08-29 Andreas Kupries <andreask@activestate.com>
* tree.testsuite: Simplified constraint definition, we now have a
standard syntax (backward compat def for tcltest 1.0 in the
devtools/testutilities.tcl).
* sets.testsuite: Added a test demonstrating a shimmering problem
in the C implementation of struct::set (handling of pure list
values is bad).
* sets/s.c: Fixed the bug demonstrated by the new test, see
* pkgIndex.tcl: above. Version of package bumped to 2.2.1. Version
of tcllibc bumped to 0.3.2.
2007-08-22 Andreas Kupries <andreask@activestate.com>
* struct_list.man: Fixed example for 'filterfor', removed the
bogus 'expr' layer. The command runs 'expr' itself. This fixes
[SF Tcllib Bug 1779424].
2007-08-03 Andreas Kupries <andreask@activestate.com>
* sets.test (Nothing): Updated to changes in reporting of errors
with alias commands in 8.5.
2007-05-16 Kevin B. Kenny <kennykb@acm.org>
* list.tcl (LlcsInvertMerge2): Fixed a bug where incorrect
"unchanged" entries were generated on a merged list.
* list.test (lcsInv-4.2,lcsInv-4.3): Corrected the test cases
because they were expecting incorrect results from
the above bug. [Bug 1720331]
* pkgIndex.tcl: Advanced version number of 'struct::list' to 1.6.1
2007-04-12 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.tcl: Renamed various commands handling accelerators. This
brought their names into compliance with the requirements of the
'TestAccel*' commands in devtools.
* sets.tcl: Fixed use of KnownImplementations missed by last
change.
2007-04-11 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* sets.tcl: Renamed various commands handling accelerators. This
brought their names into compliance with the requirements of the
'TestAccel*' commands in devtools.
* sets.test: Rewritten to use the 'TestAccel*' convenience
commands.
* tree.test: Rewritten to use the 'TestAccel*' convenience
commands. Additionally moved the helper commands into a new,
separate file
* tree/tests/Xsupport: New file now containing the helper commands
for testing struct::tree.
* graph.test: Rewritten to make use of 'useAccel'.
* graph.test: The testsuite already switches various
* graph/tests/arcs.test: implementations of struct::graph. Added
* graph/tests/assign.test: the switching of struct::set
* graph/tests/command.test: implementations.
* graph/tests/deserialize.test:
* graph/tests/nodes.test:
* graph/tests/rassign.test:
* graph/tests/serialize.test:
* graph/tests/swap.test:
* graph/tests/walk.test:
* graph/tests/arc/attr.test:
* graph/tests/arc/delete.test:
* graph/tests/arc/exists.test:
* graph/tests/arc/flip.test:
* graph/tests/arc/insert.test:
* graph/tests/arc/move-source.test:
* graph/tests/arc/move-target.test:
* graph/tests/arc/move.test:
* graph/tests/arc/rename.test:
* graph/tests/arc/source.test:
* graph/tests/arc/target.test:
* graph/tests/attr/append.test:
* graph/tests/attr/get.test:
* graph/tests/attr/getall.test:
* graph/tests/attr/keyexists.test:
* graph/tests/attr/keys.test:
* graph/tests/attr/lappend.test:
* graph/tests/attr/set.test:
* graph/tests/attr/unset.test:
* graph/tests/node/attr.test:
* graph/tests/node/degree.test:
* graph/tests/node/delete.test:
* graph/tests/node/exists.test:
* graph/tests/node/insert.test:
* graph/tests/node/opposite.test:
* graph/tests/node/rename.test:
2007-03-26 Andreas Kupries <andreask@activestate.com>
* struct_tree.man: Documentation improvements as suggested by Lars
* struct_tree1.man: Bergstrom ([Bug 1687902]).
2007-03-22 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.man: Fixed all warnings due to use of now
* graph1.man: deprecated. Added a section about how
* matrix.man: to give feedback.
* matrix1.man:
* pool.man:
* prioqueue.man:
* queue.man:
* record.man:
* skiplist.man:
* stack.man:
* struct_list.man:
* struct_set.man:
* struct_tree.man:
* struct_tree1.man:
2007-02-27 Andreas Kupries <andreask@activestate.com>
* sets/s.c (from_any): Crashing bug in the Critcl implementation
of 'struct::set'. Remembered the old object type X in the
from_any conversion function, then converted to type 'list', and
at the end tried to release the list using the freeintrep
function of type X instead of type 'list'. Fixed by moving the
code to remember the type after the conversion to a 'list'.
2007-02-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.tcl: pragma/hint for md generator.
2007-01-22 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* sets.bench: Added more benchmarks, add/include,
subtract/exclude, equality.
* sets/m.c: Rewrote sm_ADD, inlined s_add to enable us to defer
set duplication until the set actually changes. This also
ensures that the string-rep is invlaidates only in cvase of a
true change. Ditto rewrites of sm_INCLUDE, sm_SUBTRACT, and
sm_EXCLUDE.
2007-01-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_set.man: Updated documentation to mention the critcl
implementation, version number, etc.
* pkgIndex.tcl: Version of sets bumped to 2.2.
* sets.bench: New, benchmarks for set operations, incomplete.
* sets.tcl: Changed core sets code to support multiple
* sets_tcl.tcl: implementations, and Tcl implementation.
* sets_c.tcl: Critcl based implementation of sets.
* sets/ds.h:
* sets/m.c:
* sets/m.h:
* sets/s.c:
* sets/s.h:
* sets.testsuite: Reworked the testsuite to handle both Tcl and
* sets.test: critcl implementations.
2006-11-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* pkgIndex.tcl: Version of graph bumped to 2.2.
* graph.man: Updated documentation for new features, extended
abilities, critcl implementation, etc.
* graph.tcl: Changed core graph code to support multiple
* graph_tcl.tcl: implementations, and Tcl implementation. Added
some more features (arc|node delete multiple nodes, insertion of
multiple nodes, flipping the direction of arcs), internal
refactoring of common argument checks, additional checks closing
some holes.
* graph_c.tcl: Critcl based implementation of graph.
* graph/arc.c:
* graph/methods.c:
* graph/ds.h:
* graph/node.c:
* graph/objcmd.h:
* graph/attr.c:
* graph/arcshimmer.c:
* graph/objcmd.c:
* graph/arc.h:
* graph/filter.c:
* graph/methods.h:
* graph/util.c:
* graph/util.h:
* graph/node.h:
* graph/graph.h:
* graph/graph.c:
* graph/nacommon.c:
* graph/walk.c:
* graph/walk.h:
* graph/global.h:
* graph/nodeshimmer.c:
* graph/attr.h:
* graph/global.c:
* graph/nacommon.h:
* graph.test: Reworked testsuite, split into about one file per
* graph/tests/Xsetup: tested method, plus helper and control
* graph/tests/arc/delete.test: files. Extended testsuite testing
* graph/tests/arc/exists.test: several of the holes which were
* graph/tests/arc/flip.test: closed and had never been tested
* graph/tests/arc/insert.test: before.
* graph/tests/arc/move.test:
* graph/tests/arc/move-source.test:
* graph/tests/arc/move-target.test:
* graph/tests/arc/rename.test:
* graph/tests/arc/source.test:
* graph/tests/arc/target.test:
* graph/tests/arc/attr.test:
* graph/tests/attr/get.test:
* graph/tests/attr/getall.test:
* graph/tests/attr/keyexists.test:
* graph/tests/attr/keys.test:
* graph/tests/attr/lappend.test:
* graph/tests/attr/set.test:
* graph/tests/attr/unset.test:
* graph/tests/attr/append.test:
* graph/tests/attr/Xsetup:
* graph/tests/node/degree.test:
* graph/tests/node/delete.test:
* graph/tests/node/exists.test:
* graph/tests/node/insert.test:
* graph/tests/node/rename.test:
* graph/tests/node/opposite.test:
* graph/tests/node/attr.test:
* graph/tests/walk.test:
* graph/tests/Xsupport:
* graph/tests/Xcontrol:
* graph/tests/arcs.test:
* graph/tests/nodes.test:
* graph/tests/deserialize.test:
* graph/tests/assign.test:
* graph/tests/serialize.test:
* graph/tests/command.test:
* graph/tests/rassign.test:
* graph/tests/swap.test:
2006-10-03 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.9 ========================
*
2006-09-27 Andreas Kupries <andreask@activestate.com>
* list.test: Fixed expected error message for 8.5.
[SF Tcllib Bug 1566439].
2006-09-19 Andreas Kupries <andreask@activestate.com>
* struct_set.man: Bumped versions to 2.1.1
* sets.tcl:
* struct_tree.man:
* tree.tcl:
* pkgIndex.tcl:
2006-09-16 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree/tn.c (tn_leaf): Fixed mangling of the list of leaves when
trying to add a node which is already in the list. Tracked down
with valgrind and instrumentation due intermittent failure of
treeql testsuite (seg fault).
(tn_new): Added initialization of list pointers to allow
checking by "tn_leaf".
* tree/t.c (t_dump): Added function to dump the internal linkage
of nodes. Not used by regular code. For debugging.
2006-09-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test: Fixed the new tests for the arc move method. They
used hardcoded wrong#args messages. Now the proper the
compatibility commands are in place.
2006-07-27 Andreas Kupries <andreask@activestate.com>
* tree/t.c (t_newnodename): Fixed bug [SF TCllib Bug 1528614],
* tree/tn.c (tn_new): reported by Helmut Giese
* tree.testsuite: <hgiese@users.sourceforge.net>.
Auto-generation of node names was able to generate
duplicates. Now it checks new handles for existence. Also added
a check to the function doing actual node creation to check
again, and panic on duplicates. Extended testsuite with variant
of Helmut's example.
2006-06-25 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.tcl : Added three new arc commands, 'move', 'move-target',
and 'move-source'. They change the nodes an arc is attached to,
without changing the identity of the arc itself. This makes
certain graph operations easier, as there is no need to save the
attributes of a node, delete it, create in the new location,
then recreate the attribute data.
* pkgIndex.tcl: Bumped version number for this.
* graph.man: Added documentation for them.
* graph.test: Extended the testsuite to cover them as well.
2006-06-13 Andreas Kupries <andreask@activestate.com>
* list.tcl: Added two commands requested by Sarnold75,
* list.test: see [SF Tcllib RFE 1484791], variants of
* struct_list.man: map and filter. Implemented, documented,
* pkgIndex.tcl: and tested.
2006-01-30 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* sets.tcl: Fixed [SF Tcllib Bug 1414051], brought implementation
of 'include' into sync with documentation. Behaving like
'lappend' means that we have to create the variable if it does
not exist. Thanks to michael Schlenker <mic42@users.sf.net>.
* sets.test: Corrected the testsuite as well.
2006-01-28 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix1.test: Replaced [aget] with usage of the standard
* matrix.test: [dictsort]. Moved helper commands out of the
testsuites proper into a supporting file.
* graph1.test: Fixed duplicate usage of test names.
* list.test:
* matrix.test:
* matrix1.test:
* stack.test:
* tree1.test:
2006-01-26 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test: More boilerplate simplified via use of test support.
* graph1.test:
* list.test:
* matrix.test:
* matrix1.test:
* pool.test:
* prioqueue.test:
* queue.test:
* record.test:
* sets.test:
* skiplist.test:
* stack.test:
* tree.test:
* tree1.test:
2006-01-19 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test: Hooked into the new common test support code.
* graph1.test:
* list.test:
* matrix.test:
* matrix1.test:
* pool.test:
* prioqueue.test:
* queue.test:
* record.test:
* sets.test:
* skiplist.test:
* stack.test:
* tree.test:
* tree1.test:
2006-01-10 Andreas Kupries <andreask@activestate.com>
* pool.test: New file. Structured tests.
* pooltest.tcl: Removed unstructured tests.
* tree.test: Fixed [SF Tcllib Bug 1316061]. Uncluttering test
output.
2005-11-02 Andreas Kupries <andreask@activestate.com>
* graph.tcl (::struct::graph::_serialize): Fixed bug mishandling
the serialization of arcs with spaces in their names. Thanks to
Spyros Potamianos <spotam@users.sourceforge.net> for bug report
and fix. [SF Tcllib Bug 1345967]
2005-10-27 Andreas Kupries <andreask@activestate.com>
* tree.bench: Added more benchmarks perturbing structure,
invalidating caches, to capture true cost of computing results
of various methods.
* tree_tcl.tcl: Reworked the core algorithm used by the method
"descendants". Avoiding the shifting of a list speeds it up
around 6 times and the factor is going higher as lists grow
larger. This makes the dependent methods (height, serialize,
children -all) about 2 times faster than they were with the
recursive implementation.
* tree.bench: Extended the benchmarks for "height" and "serialize"
to demonstrate that the height limitation is gone.
* tree_tcl.tcl: Fixed the limitation of the methods "height" and
"serialize" when run on deep trees. Moved to an iterative
solution using the core algorithm of "descendants". Factored
this code into an internal command used throughout. Rewrote
method "children -all" to use this command as well.
Impact: The limitation are gone, however the performance of
"height" and "serialize" has become 2 to 3 times worse.
* tree.bench: Substantially extended the benchmarks, covering
basically everything except tree walks, modifiers, and
tree-global attribute search. Had to restrict tests for
"height", "serialize", running into problems with deep
trees. Recursive implementation fails for interp recursion
limit.
2005-10-21 Andreas Kupries <andreask@activestate.com>
* tree.bench: Made this benchmark suite operational. Incomplete,
but already giving good results.
* tree_c.tcl: Gave the method functions and their support a
* tree/m.c: better prefixes (m_ -> tm_, ms_ -> tms_), to
* tree/m.h: make them more unique, tree specific. This is
* tree/ms.c: needed to avoid conflicts with future critcl
* tree/ms.h: code for graph and other structures.
2005-10-07 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.8 ========================
*
2005-10-07 Andreas Kupries <andreask@activestate.com>
* tree/t.c (t_deserialize): Fixed bug which caused us to drop the
attributes of the new root node when setting up the new tree.
2005-10-06 Andreas Kupries <andreask@activestate.com>
* tree/m.c (m_WALK): Fixed [SF Tcllib Bug 1313173]. This was
refcounting bug for the objects containing the names of the loop
variables. We have to declare that we are holding a reference,
otherwise the object can be reused when compiling the loop body
for the first iteration. This may also release the objects too
early, causing crashes.
* tree/walk.c (t_walkdfs*): Fixed behavioural difference between
the two implementations of a tree walker. The dfs code has to
save a copy of the child array during the walk to handle the
possibility of a child node being moved by the loop body.
Note: This area, modifying a tree during walks, has no test
cases at all and is in need of them. At least to describe the
exact behaviour we have now.
2005-10-03 Jeff Hobbs <jeffh@ActiveState.com>
* tree1.tcl (::struct::tree::Serialize): fix serialize of
attributes.
2005-09-30 Andreas Kupries <andreask@activestate.com>
* queue.test: Extended API with new method 'unget'. Updated
* queue.man: documentation and testsuite. Version bumped to
* queue.tcl: 1.4. This implements [SF Tcllib RFE 1229352].
* pkgIndex.tcl:
2005-09-23 Michael Schlenker <mic42@users.sourceforge.net>
* prioqueue.tcl : Fixed a bug in binary sort algorithm.
prioqueue.test: Thanks to Krzysztof Skałecki <krys@dacsystem.pl>
and Tomasz Kosiak <tk@dacsystem.pl> for spotting it.
[Tcllib SF Patch 1300795]
2005-09-20 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.testsuite: Added test constraint 'tree_critcl'. Fixed a
number of tests whose results are version dependent, using the
new contraint, tcl8.4plus, and tcl8.5plus.
* tree.tcl (LoadAccel): Restricted use of critcl implementation to
Tcl 8.4+.
2005-08-09 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree/*.[ch]: Cleaned code up, per Tcl styleguide.
* tree/tn.c (tn_not{leaf,node}): Fixed buggy node unlink when list
contained only one node. Was a no-op, keeping a reference to
deallocated memory, and writing to it when the list was expanded
and then reduced again, causing memory smashes.
2005-07-25 Andreas Kupries <andreask@activestate.com>
* tree.tcl: Moved tcl implementation into "tree_tcl.tcl". This
file now contains management code looking for and selecting from
the available implementations.
* tree_tcl.tcl (**NEW**): Contains the tcl implementation of
struct::tree, moved out of "tree.tcl".
* tree_c.tcl (**NEW**): Contains the toplevel parts of the critcl
implementation of struct::tree.
* tree/*.[ch] (**NEW**): Contains the bulk of the critcl
implementation of struct::tree.
* tree.test: Moved actual tests into "tree.testsuite". This file
now contains the generic helper commands and management code
loading, activating and iterating over all available
implementations.
* tree.testsuite (**NEW**): Contains the actual tests, moved out
of "tree.test". The tests were updated to take the cosmetic
differences between tcl and critcl implementations into account.
* ../package_version.tcl: Added the critcl implementation of
struct::tree to the list of files to compile for tcllibc.
* struct_tree.man: Added clarifications regarding acceptable
arguments.
* tree.tcl: Smoothed error messages, added some missing argument
checks, rewrote handling of index arguments to make code mmore
clear. Fixing bugs in constructor, was not cleaning up a
partially build object when deserialization failed.
* tree.test: Adapted to changed error messages. Added tests to
for a number of problems which had been forgotten so far. Made
the output of a number of tests (tree structure) unambigous.
2005-05-23 Andreas Kupries <andreask@activestate.com>
* list.test:
* list.tcl (::struct::list::Lflatten): Fixed [SF Tcllib Bug
1206499] Replaced the 'eval' construction with a more basic
check for list syntax and handling of the data. The removed
construct was unable to handle elements containing special
characters (Brackets, Braces, Double-apostrophes, etc.)
correctly. The bug was reported by Yahalom Emet
<yahalom@users.sourceforge.net>. This is actually something we
created Tcl 8.5's {expand} for. Extended the testsuite as well.
2005-05-10 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man:
* tree.test:
* tree.tcl: New method 'walkproc'. Like walk, but calls a command
prefix (three arguments). Extended documentation, testsuite.
* tree.tcl: Minor touchup of object creation.
* graph.tcl: Minor touchup of object creation.
* stack.tcl: Minor touchup of object creation.
* queue.tcl: Minor touchup of object creation.
* matrix.tcl: Minor touchup of object creation.
2005-05-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.tcl: Added two methods to the class, returning the
* tree.test: list of all nodes, or the list of leaf nodes.
* struct_tree.man: Both are easy to determine by the object
itself, and require either a walk or (children -all) otherwise,
both expensive.
2005-04-07 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.tcl: Replaced the use of the global variable 'version'
with a properly namespaced form. This fixes the [SF Tcllib Bug
1177108], reported by Stephen Huntley
<blacksqr@users.sourceforge.net>.
2005-02-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_list.man: Extended to cover the new functionality.
* list.tests: Extended testsuite for the new functionality, see
below.
* list.tcl: New functionality. Exchange of two elements of a list,
and handling of list permutations (first, next, all, foreach).
The code has been taken from the Wiki, page 11262. The swap code
by Richard Suchenwirth. The 'firstperm' code by Kevin Kenny. The
'nextperm' algorithm by Donal E. Knuth [*], as translated to Tcl
by Kevin Kenny. Generation of all permutations and looping over
them by myself, using code from the module 'control' as well.
-- [*] Detailed references in the documentation.
2004-10-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.7 ========================
*
2004-10-02 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man: Added a bit more structure to the manpage,
added an example demonstrating the creation of nodes, added an
explicit statement that new nodes are created with the method
"insert".
2004-09-29 Andreas Kupries <andreask@activestate.com>
* record.tcl: Fixed [Tcllib SF Bug 1018733]. Corrected management
* record.text: of _level, which was reset to the level 0 to early,
and also was not decremented after a sub-record was completed.
* record.tcl (Delete): Fixed [Tcllib SF Bug 1023973]. Do not count
* record.test: the id generator down. Added test case for this.
* tree.tcl: Fixed [Tcllib SF Bug 1034924]. Both tree and graph
* struct_tree.man: depend on struct::list for some of their methods.
* tree.test: Now in the code, documented as well, testsuite
* graph.tcl: header code extended.
* graph.man:
* graph.test:
2004-09-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* skiplist.tcl: Fixed expr'essions without braces.
* graph.tcl (CheckSerialization): Fixed nested reuse of foreach
variable (attr).
2004-09-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test: Fixed [Tcllib SF Bug 1007396]. Multiple use
* graph.tcl: of the various restrictions is not allowed.
* graph.man: Added to code, test suite, and documentation.
* graph1.test:
* graph1.tcl:
* graph1.man:
2004-08-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* stack.tcl: Corrected typo in constructor error message,
* queue.tcl: due to copying from tree. Found by Michael
Schlenker.
2004-08-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man: Added methods 'ancestors' and 'descendants'.
* tree.test:
* tree.tcl:
* struct_tree.man: Added a prune operation to the tree walk
* tree.tcl: command. This implements the [SF Tcllib
* tree.test: RFE 916160].
2004-08-09 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.tcl (::struct::tree::tree, ::struct::tree::_destroy):
Better alias for the object command (removed superfluous leading
colons).
* stack.man: Stack, queue; version bumped to 1.3.
* queue.man:
* stack.tcl:
* queue.tcl:
* pkgIndex.tcl:
* queue.test:
* queue.tcl: Changed way of mapping from queue object commands to
associoated namespaces. The object namespace now has the same
name and location of the object command. Adapted all tests to
account for this change.
* queue.test:
* queue.tcl: Changed dispatcher to auto-generate the list of queue
commands when a wrong one is given. Updated tests to account for
this. Changed dispatcher to uplevel 1 the method execution,
updated walking system to reflect this change.
See log entry 2003-07-06 as well.
* stack.test:
* stack.tcl: Changed way of mapping from stack object commands to
associated namespaces. The object namespace now has the same
name and location of the object command. Adapted all tests to
account for this change.
* stack.test:
* stack.tcl: Changed dispatcher to auto-generate the list of stack
commands when a wrong one is given. Updated tests to account for
this. Changed dispatcher to uplevel 1 the method execution,
updated walking system to reflect this change.
See log entry 2003-07-06 as well.
* stack.man: Fixed [SF Tcllib 1005380]. Documentation for peek and
pop now matching the actual behaviour. See also entry 2003-04-25
for the same thing, for queue.
* tree.tcl: Spelling police.
* graph.tcl:
* stack.tcl:
* queue.tcl:
* matrix.tcl:
* ChangeLog:
2004-08-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* sets.tests:
* sets.tcl (::struct::set::Sdifference): Fixed the [Tcllib SF Bug
1002143]. Thanks to Todd Coram <maroc@users.sourceforge.net> for
the report. Set elements containing parentheses screw up the
special implementation using the elements as names for local
vars, as they are not seen as regular locals, but as array
elements. Disabled the special implementation, using the regular
one across versions. Extended the testsuite.
* graph.test: Fixed [SF Tcllib Bug 1003671]: Ensured that
* tree.test: (de)serialization of empty graph/tree is
* graph.tcl: working properly. Thanks to Bhushit Joshipura
* tree.tcl: <bhushit@users.sf.net> for the report.
2004-08-03 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test: Fixed [SF Tcllib Bug 1000716]: Unset of last
* tree.test: attribute followed by delete does not result
* graph.tcl: in error anymore. Thanks to Brian Theado
* tree.tcl: <btheado@users.sf.net> for both report and fix.
2004-06-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl (_search): Fixed bug reported by Joachim Kock
<kock@math.uqam.ca>, using his fix. Search went into an infinite
loop if -nocase was used.
* matrix.test: Added a testcase.
2004-05-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.6.1 ========================
*
2004-05-20 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.test: Added clean up commands to prevent tests
* matrix1.test: from interfering with each other. Testsuite
* tree1.test: is now passing again.
* graph.man: Fixed the 'require' declarations in the
* matrix.man: documentation to use the correct package
* pool.man: names.
* prioqueue.man:
* queue.man:
* record.man:
* skiplist.man:
* stack.man:
* struct_list.man:
* struct_set.man:
* struct_tree.man:
* tree1.man: Folded the v1 data structures back into the struct
* tree1.tcl: directory, as their own packages. Recorded the old
* tree1.test: v1 struct as a set of packages now as well. The
* graph1.man: unchanged data structures from struct v1 have been
* graph1.tcl: removed from the repository. They were duplicates.
* graph1.test:
* matrix1.man:
* matrix1.tcl:
* matrix1.test:
* pkgIndex.tcl:
2004-05-18 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.tcl: Made all data structures full packages.
* list.tcl:
* matrix.tcl:
* pkgIndex.tcl:
* pool.tcl:
* pooltest.tcl:
* prioqueue.tcl:
* queue.tcl:
* record.tcl:
* sets.tcl:
* skiplist.tcl:
* stack.tcl:
* struct.tcl:
* tree.tcl:
* graph.test: Updated all testsuites to report the versions
* list.test: of the packages they test.
* matrix.test:
* prioqueue.test:
* queue.test:
* record.test:
* sets.test:
* skiplist.test:
* stack.test:
* tree.test:
* graph.man: Updated the documentation to show the correct
* matrix.man: new package names.
* pool.man:
* prioqueue.man:
* queue.man:
* record.man:
* skiplist.man:
* stack.man:
* struct_list.man:
* struct_set.man:
* struct_tree.man:
2004-02-24 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* pkgIndex.tcl: Overall package bumped to v2.1
* struct.tcl:
* sets.tcl: Added include, exclude, add, and subtract
* sets.test: operators, and a new predicate subsetof.
* struct_set.man: Added documentation for the new methods
above. Added tests for the new methods.
* sets.tcl: Typo police. No functional changes.
2004-02-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.6 ========================
*
2004-02-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* list.tcl (split): New method, like 'filter', but returns lists
* list.test: of both passing and failing elements. Extended
* struct_list.man: both testsuite and documentation.
2004-02-11 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* list.tcl (assign): Synchronized API to Tcl 8.5 lassign.
* struct_list.man:
* list.test: Added conditionals for version dependent results.
2004-02-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.man: Added new method 'arc attr' ad 'node attr' to
* graph.tcl: the graph data structure. They serve the same
* graph.test: purpose as the 'attr' method for trees. See below.
Additional the 'arcs' and 'nodes' method have been given
'-filter' options, similar to the filter for the children of a
node in trees.
2004-02-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man: New method 'attr' for attribute searches
* tree.tcl: based on attribute name, and node
* tree.test: restrictions.
2004-02-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man: Extended the method 'children', now allows
* tree.tcl: node filtering and recursive listing of all
* tree.man: children in the tree starting at the node.
* struct_list.man: Added a 'shift method to 'struct::list'.
* list.tcl:
* list.test:
* struct_list.man: Added a 'filter' method to 'struct::list'.
* list.tcl: This method applies a test to all elements
* list.test: of a list and returns a list containing
only those elements which pass the test.
2004-02-03 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* list.tcl (repeat(n)): ** API INCOMPATIBILITY **
Renamed the existing 'repeat' to 'repeatn' to keep the
functionality. Created new 'repeat' command which is
functionally equivalent to the 'lrepeat' command found in the
forthcoming Tcl 8.5.
* struct_set.man: New submodule for set operations. Implementation,
* sets.tcl: documentation, tests, and integrated into the
* sets.test: main package.
* struct.tcl:
2004-01-29 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man: Extended with table showing the relationship
between the various combination of type and order, and the
possible visitor actions.
2004-01-28 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man: Updated documentation.
* tree.test: Updated testsuite for modified 'walk' syntax.
* tree.tcl (method walk): Modified to use list of loop variables,
containing either one or two. Default: One variable, node
information. When two specified the first refers to action data.
* list.test: Added test for call with illegal option.
* list.tcl (Lflatten): Added proper error message when
encountering an unknown/illegal option.
2004-01-26 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct_tree.man: Updated the documentation to reflect the
changes below.
* tree.test: Updated testsuite to reflect the changes made below.
* tree.tcl (walk): Changed API to be more like [foreach]. Allowing
break/return/continue in the walk body as well now too.
2004-01-24 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.test: Implemented (de)serialization of matrix objects,
* matrix.tcl: copy and assignment operators, and a transpose
* matrix.man: method. Extended testsuite and documentation.
2004-01-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.man: Implemented Ed Suominen's sort methods, with
* matrix.tcl: modifications to speed things up, and to have
* matrix.test: a more standard API (-options).
2004-01-13 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.man: Documented method 'links'.
* matrix.test: Updated test to cover for method links.
* matrix.tcl: Changed the code to determine the list of available
methods automatically for use in the error message when an
unknown method is called.
* matrix.test:
* matrix.tcl: Namespaces of objects now standalone, and not inside
of struct::matrix anymore. Arbitrary placement of objects is now
possible, including nested namespaces. Cleanup of all references
to instance variables.
* matrix.tcl: Made the return of errors more regular.
* matrix.tcl: Changed a number of eval calls to the more proper
'uplevel 1'. This means that an implementation of a method can
now assume that it is called on the same stack level as the
method itself.
2004-01-12 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl: Typo in comments fixed.
* matrix.tcl (__set_rect): Fixed typos in var names causing the
system to retain bogus cache data.
2003-11-18 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* prioqueue.tcl: Applied patch in file 64215 of [SF Tcllib Bug 822850].
* skiplist.tcl: This cleans up a number of dangerous uses of [eval]
* matrix.tcl: and makes them more robust.
* queue.tcl:
* stack.tcl:
* pool.tcl:
* pool.tcl (::struct::pool::request): Changed to return 0 as
documented when trying to get an already allocated item. Fixed
[SF Tcllib Bug 842408]. Used the alternative fix.
2003-10-21 Andreas Kupries <andreask@activestate.com>
* struct_tree.man: Added more documentation about the root node of
tree's. [Bug 827643].
2003-07-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.tcl: Fixed bugs in tree serialization code found when
hitting them during testing the graph.
* graph.man: Completed the implementation of graph serialization.
* graph.tcl: Updated testsuite, documentation.
* graph.test:
2003-07-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.tcl: Created 'ldelete' and 'lset' (emulation pre 8.4)
* graph.tcl: and replaced as much 'lreplace's as possible. Using
the K operator for speed, encapsulated in the two l
commands.
* graph.man: Implemented the renaming of nodes and arcs.
* graph.tcl:
* graph.test:
2003-07-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.tcl: ** API INCOMPATIBILITY **
* graph.test:
* graph.man: Same changes in attribute handling as for
'tree'. Noted that the graph attributes had neither 'append' nor
'lappend' methods. Added. Documentation and testsuite updated.
* pkgIndex.tcl: ** API INCOMPATIBILITY **
* struct_tree.man:
* tree.test:
* tree.tcl: More rework. The attribute APIs are now backward
incompatible, the default attribute 'data' has been dropped. The
whole module 'struct' has been bumped to version 2.0 because of
this. Reworked the testsuite for the changed APIs. Reworked the
(de)serialization stuff a bit and added tests for them. Added an
API to rename nodes, and an API to query the name of the
root node. The APIs 'getall' and 'keys' now allow usage of glob
patterns to restrict their results. Documentation is now
uptodate. Added API to compute the 'height' of a node (=
distance to its deepest child).
2003-07-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.test:
* tree.tcl: Reworked node attribute storage. Name of array to
store the information is now dissociated from the name of the
node. This enables the use of arbitrary node names, i.e. ':' in
node names. The second benefit is that nodes without attribute
data (normal) require less memory than before. Removed the now
irrelevant validation of node names and updated the testsuite.
* tree.test:
* tree.tcl: Changed way of mapping from tree object commands to
associated namespaces. The object namespace now has the same
name and location of the object command. Adapted all tests to
account for this change.
* tree.test:
* tree.tcl: Changed dispatcher to auto-generate the list of tree
commands when a wrong one is given. Updated tests to account for
the now correct sort order. Changed dispatcher to uplevel 1 the
method execution, updated walking system to reflect this change.
2003-07-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* list.tcl: The changes in the list dispatcher required
corresponding changes in a number of methods: upvar/level 2 =>
upvar/level 1. Detected by testsuite. Bad me, should have run it
immediately. Bugs fixed.
* list.test: Extended the testsuite.
* list.tcl (lcsInvertMerge2): Fixed problem with extending the
result with an chunk of type unchanged, for the case that this
happens at the very beginning, i.e. for an empty result. This
fixes SF Tcllib bug [765321].
2003-05-20 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* list.tcl (dispatcher): eval => uplevel so that upvar's in the
method commands do not need to know about the dispatcher frame
in the stack.
* list.man:
* list.tcl (dbJoin(Keyed)): Extended the commands with an option
-keys. Argument is the name of a variable to store the actual
list of keys into, independent of the output table. As the
latter may not contain all the keys, depending on how and where
key columns are present or not. Additionally cleanups in the use
of loop variables in the keyed helper commands 'frink' complained
about.
2003-05-16 Andreas Kupries <andreask@activestate.com>
* Extension of the package functionality warrants version bump to 1.4.
* list.man: Added descriptions of the db join commands, and
section explaining the table joins.
* list.test: Added tests for the db join functionality. Adapted
existing tests to changed (fixed) error messages.
* list.tcl: Rewrote the main dispatcher a bit to make it simpler,
and to allow us to hide internal functions from it. Added
'dbJoin(Keyed)' for relational table join (inner, left/right/full
outer). Fixed function name in some error messages.
2003-05-14 Andreas Kupries <andreask@activestate.com>
* tree.tcl: Added some [list]'s to show node names containing
spaces properly in error messages.
* tree.test: Reworked to test handling of item nodes
containing spaces.
* tree.bench: Reworked, added helper procedures, test cases are now
simpler.
* struct_list.man: Fixed typos in the examples.
2003-05-06 Jeff Hobbs <jeffh@ActiveState.com>
* tree.test:
* tree.tcl: allow node names with space chars and single :.
Double :: may be OK, but the check against it is still in.
2003-05-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.4 ========================
*
2003-05-05 Andreas Kupries <andreask@activestate.com>
* prioqueue.tcl: Applied patch by author Michael Schlenker
<mic42@users.sourceforge.net>. Refactors internals for
speed. Passes the prioqueue testsuite.
2003-04-25 Andreas Kupries <andreask@activestate.com>
* queue.man: Documentation fix. peek/get throw errors if more was
requested than in the queue. The documentation talked about
returning empty strings. Thanks to Michael Schlenker
<mic42@users.sourceforge.net> for the report.
* prioqueue.test: Extended to check for stable insertion.
* prioqueue.tcl (__elementcompare): Bugfix, makes insertion stable.
* prioqueue.man: New, documentation.
* skiplist.man: Typo fix. Thanks to Michael Schlenker
<mic42@users.sourceforge.net> for the report.
2003-04-24 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.bench: New file, beginnings of a benchmark suite for the
data structure 'struct::tree'.
2003-04-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.man: Changed name to struct_tree.man. Was in conflict with
tree manpage of BLT.
2003-04-22 Andreas Kupries <andreask@activestate.com>
* graph.man: Switched cgraph reference to a purl supplied by the
cgraph author, and added wiki reference.
2003-04-16 Andreas Kupries <andreask@activestate.com>
* prioqueue.tcl (__elementcompare): Failures in testsuite fixed,
patch provided by original author, Michael Schlenker
<mic42@users.sourceforge.net>.
2003-04-15 Andreas Kupries <andreask@activestate.com>
* skiplist.man:
* skiplist.tcl:
* skiplist.test: New files. Patch #553980 submitted by Eric Melski
<ericm@users.sourceforge.net> on behalf of Keith Vetter.
* prioqueue.tcl:
* prioqueue.test: New files. Patch #607085 submitted by Michael
Schlenker <mic42@users.sourceforge.net>.
2003-04-15 Andreas Kupries <andreask@activestate.com>
* tcllib_list.man: Changed name to struct_list.man. Allows for
usage of struct outside of tcllib, not as big a coupling.
* graph.tcl: Redone the setting up of namespace a bit to prevent
problem with the generation of a master package
index. struct.tcl bailed out with an error because the namespace
was net set up when using [pkg_mkIndex] in this directory.
2003-04-13 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test:
* graph.man:
* graph.tcl: Added code to look for the C-implementation, cgraph,
first, and to fall back to the Tcl implementation if cgraph is
not present (#720348). The documentation links to the place
where cgraph can be had from. Note presence of cgraph when
executing the testsuite.
2003-04-12 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* list.man: Changed name to tcllib_list.man to prevent a clash
with tcl's manpages.
2003-04-11 Andreas Kupries <andreask@activestate.com>
* struct.tcl:
* list.man:
* matrix.man:
* pool.man:
* queue.man:
* record.man:
* stack.man:
* tree.man:
* pkgIndex.tcl: Set version of the package to 1.3.
2003-04-09 Andreas Kupries <andreask@activestate.com>
* list.man:
* list.test:
* list.tcl: Added 'lcsInvertMerge'.
2003-04-08 Andreas Kupries <andreask@activestate.com>
* list.man:
* list.test:
* list.tcl: Added and documented commands [iota], [equal], and
[repeat]. Extended the testsuite.
2003-04-02 Andreas Kupries <andreask@activestate.com>
* list.tcl:
* list.test: Fixed SF tcllib bug #714209.
* ../../../examples/struct: Added example applications for usage
of longestCommonSubsequence and lcsInvert.
* struct.tcl: Integrated new list commands.
* list.tcl: Added commands 'reverse', 'assign', 'flatten',
* list.man: 'map', and 'fold' to the suite of list functions.
* list.test:
2003-04-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* list.man: New files, extended list manipulation
* list.tcl: facilities. Started out with Kevin Kenny's
* list.test: implementation of the algorithm to find the longest
common subsequence of two sequences, aka lists.
Added myself a method to invert a LCS into a
description of differences instead.
2003-04-01 Andreas Kupries <andreask@activestate.com>
* record.test: Applied changes provided by Brett Schwarz
<schwarzkopf@users.sourceforge.net>. His comments: I had changed
the return when encountering a circular record; previously I
returned "", but now I return an error. This fixes record.test
to reflect the change. Part of fix for Tcllib SF Bug #709375.
Additional changes by myself: Reformatted (proper tcl
indentations). Renumbered so that all tests have unique id
numbers (Before all tests had id 0.1).
2003-02-25 David N. Welton <davidw@dedasys.com>
* matrix.tcl: Require Tcl 8.2 because of string map. Use string
map instead of regexp.
2003-01-16 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.man: More semantic markup, less visual one.
* matrix.man:
* pool.man:
* record.man:
* tree.man:
2002-11-06 Brett Schwarz <schwarzkopf@users.sourceforge.net>
* record.tcl: cleaned up code based on output from frink
2002-11-05 Brett Schwarz <schwarzkopf@users.sourceforge.net>
* struct.tcl: modified to include record.tcl
* record.man:
* record.html:
* record.n:
* record.test:
* record.tcl: new data structure
2002-10-16 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test:
* graph.man:
* graph.tcl: Implemented FR 603924. getall, keys, keyexists
methods for keys of the whole graph.
2002-08-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.test: Followup to fix for bug SF #587533. Had to update the
test suite too.
2002-08-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.tcl (lappend): Fixed bug SF #587533 reported by Evan Rempel
<erempel@users.sourceforge.net>.
* pool.tcl: Fixed bug SF #585093, reported by Michael Cleverly
<cleverly@users.sourceforge.net>. Patch provided by Michael too.
2002-07-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.man: Updated the documentation to clarify the behaviour.
* test.tcl: Updated testsuite, part of the patch below.
* tree.tcl (_move): Accepted patch by Brian Theado
<btheado@users.sourceforge.net> fixing the behaviour of move, SF
bug #578460. The command now also validates all nodes before
trying to move any of them.
2002-05-27 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.man: Fixed typo (graph -> matrix).
* struct.tcl: Added pool files to list of files to source.
* pool.man: New documentation for pool based upon the original
HTML manpage.
* pool.html:
* pooltest.tcl:
* pool.tcl: New data structure, pool, by Erik Leunissen
<e.leunissen@hccnet.nl>. Modified code to be a sub-namespace of
::struct, made it a part of the struct package. No regular
testsuite yet (see pooltest.tcl for the irregular testsuite).
2002-05-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.n: This file is out of sync.
* graph.man:
* graph.test:
* graph.tcl: See tree, for arcs and nodes.
* tree.man:
* tree.n:
* tree.test:
* tree.tcl: Accepted FR #552972 (new methods append, lappend,
getall, keys, keyexists) for tree structures.
2002-04-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl: Fixed SF Tcllib #532791 about unsetting of elements
in linked arrays as reported by Ken Jones
<kenj@users.sourceforge.net>. Unsetting an element in a linked
array now sets the corresponding cell in the matrix to the empty
string, and the corresponding elements in other linked arrays
are now unset too.
* tree.man: New file, doctools manpage.
2002-03-25 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl: Fixed bug #532783 reported by Ken Jones
<kenj@users.sourceforge.net>. Any operation adding new material
to a linked matrix causes a circular trace (op -> "MatTraceOut"
-> "MatTraceIn" -> set cell) and the inbound trace fails because
the data structures are not uptodate causing the range checks in
"set cell" to fail. Fixed by breaking the cycle. Calls to
"MatTraceIn" are now disabled while we are in "MatTraceOut".
2002-03-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.man: Added example of formatting a matrix using tabular
reports (See tcllib module "reports" too.). Fixes #530207.
2002-03-09 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.n:
* matrix.man:
* matrix.test:
* matrix.tcl: Accepted FR #524430 and added option -nocase to the
'search' method.
* matrix.man: Added doctools manpage.
2002-03-02 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.man: Added doctools manpage.
2002-02-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl: Frink run.
2002-02-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* Version up to 1.2.1 to differentiate development from the
version in the tcllib 1.2 release.
* matrix.test:
* matrix.tcl: See below, but not complete.
* queue.test
* stack.test:
* graph.tcl:
* graph.test:
* tree.tcl:
* tree.test: Updated code and tests to cover all paths through the
code.
2002-01-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* Bumped version to 1.2
2001-11-26 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl (add rows): Indices were transposed. Fixed.
2001-11-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.test:
* matrix.n:
* matrix.tcl: Implementation of FR #481022: matrix printing and
searching.
2001-11-19 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* graph.test:
* graph.n:
* graph.tcl: Applied patch #483125 provided by Frank Pilhofer
<fp@fpx.de>. The patch adds key/value information for the whole
graph and extends the selection methods 'arcs' and 'nodes' to
allow selection based on keys and their values.
2001-10-16 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* pkgIndex.tcl:
* struct.tcl:
* graph.n:
* matrix.n:
* queue.n:
* stack.n:
* tree.n: Version up to 1.1.1
2001-09-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* The changes below fix bug [458011].
* tree.test (6.16): New test. Checks verificator of forbidden names.
* tree.tcl (::struct::tree::_insert): Added verification that node
names do not contain forbidden characters.
* tree.n: Documented limitations on node names. Documented allowed
index "end" for insert.
2001-07-10 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl: Frink 2.2 run, fixed dubious code.
2001-06-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* tree.tcl:
* graph.tcl: Fixed dubious code reported by frink.
2001-06-19 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.n: Fixed nroff trouble.
2001-05-20 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.tcl (insert row/column): Fixed wrong references to the
internal add row/column procedures.
* modules/struct/matrix.test: Added 8.11 and 8.12 to test the case
of 'insert FOO' devolving to 'add FOO'.
2001-05-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* Committed changes (matrix) to CVS head at SF.
2001-04-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* matrix.n: updated and completed documentation
* matrix:test: Added testsuite
* matrix.tcl: Added the implementation.
2001-04-12 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* struct.tcl: Added loading of the matrix definition.
* matrix.n: Adding matrix structure.
2000-04-07 Eric Melski <ericm@scriptics.com>
* stack.test:
* queue.test: Changed "package require struct" to "source [file
join [file dirname [info script]] xxxx.tcl]", which is more reliable.
* tree.test:
* tree.tcl: Added support for different walk orders (post,
in, and both) [RFE: 4420]. Added support for percent substitution
on walk command. (WalkCall) Added protection against node/tree
names with spaces.
* graph.tcl:
* graph.test:
* graph.n: Graph implementation from Andreas Kupries.
2000-03-20 Eric Melski <ericm@scriptics.com>
* tree.test:
* tree.n:
* tree.tcl: Added support for inserting/moving multiple nodes at
once. Changed behavior of insert with respect to inserting nodes
that already exist; instead of an error, it will move the node.
2000-03-14 Eric Melski <ericm@scriptics.com>
* tree.n: Added a brief description of what a tree is.
2000-03-10 Eric Melski <ericm@scriptics.com>
* tree.n:
* tree.tcl:
* tree.test: Applied patch from [RFE: 4337], with enhancements for
better efficiency, and additional test cases; adds cut and splice
functions to tree.
2000-03-09 Eric Melski <ericm@scriptics.com>
* tree.n:
* tree.tcl:
* tree.test: Applied patch from [RFE: 4338]; adds index function to
tree. Applied patch from [RFE: 4339], with slight modification; adds
numchildren function to tree. Applied patch from [RFE: 4336],
with additional error checks and test cases; adds next, previous
functions to tree. Added extra tests for walk command.
* tree.tcl: Added isleaf function and tests [RFE: 4340]
* struct.tcl: Changed order of namespace import/namespace export
calls. Added -force to namespace import calls.
* tree.test:
* stack.test:
* queue.test: Adapted tests to run in/out of tcllib test framework.
* tree.test:
* tree.tcl: Added code to auto-generate node names on insert if no
name is given [RFE: 4345]
2000-03-08 Eric Melski <ericm@scriptics.com>
* tree.test:
* tree.tcl: Added check for node existence in children function
[Bug: 4341]
2000-03-03 Eric Melski <ericm@scriptics.com>
* tree.tcl: Changed usage information for tree::_walk.
* tree.n: Enhanced description of walk function, fixed a typo.
|