Tcl Library Source Code

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

71 check-ins using file modules/struct/tree.test version 38836cbd1d

2003-12-22
16:23
calculus.man (rungeKuttaStep): Add missing argument in function synopsis (bug report from Richard Body). check-in: 82e16dd6c8 user: jenglish tags: trunk
2003-12-17
23:17
* logger.man: Document changes to logger API. check-in: 1ef73ec793 user: davidw tags: trunk
2003-12-16
21:24
Fix for bug #861277 (backslashes in content) Added test case. check-in: 69aaebb27a user: jenglish tags: trunk
15:46
* logger.test (2.1): Test deletion callbacks. (2.2): Test deletion callbacks. * logger.tcl: Bump logger version number because of API change. (::logger::walk): Do eval after walk on children. (delproc): New procedure to set a deletion-time callback that is called for each of the instance's children. Thanks to Michael Schlenker for the suggestion [ 856280 ]. check-in: a870369ff6 user: davidw tags: trunk
2003-12-06
19:17
V0.92 check-in: 9536dac09d user: duquette tags: trunk
19:15
Version 0.92 check-in: 4ca2857c0c user: duquette tags: trunk
2003-12-02
07:52
* installed_modules.tcl: Added 'struct1', the v1.x version of the struct module. Kept for backward compatibility. check-in: c49827ca37 user: andreas_kupries tags: trunk
07:51
Typo police. check-in: b682495a29 user: andreas_kupries tags: trunk
07:38
* snit.man: Updated to changes in the .html files. * snitfaq.man: check-in: f03c0bc35f user: andreas_kupries tags: trunk
07:37
* V1 of 'struct' added back to the tcllib codebase for backward compatibility. The documentation is _not_ installed. * matrix.tcl: Applied patch in file 64215 of [SF Tcllib Bug 822850]. * pool.tcl: This cleans up a number of dangerous uses of [eval] * prioqueue.tcl: and makes them more robust. * queue.tcl: * record.tcl: * skiplist.tcl: * stack.tcl: check-in: 1ae1b8d203 user: andreas_kupries tags: trunk
2003-12-01
19:47
* ftp.tcl (ftp::StateHandler): See last entry. The condition to invoke a report for a failure of the regex was wrong, and missing a negation. Fixed this. Also cleaned up the regexp, it had a caret to much in it. Thanks to <[email protected]> for reporting this. The bug report is at --> http://bugs.activestate.com/show_bug.cgi?id=28433, and not on SourceForge. check-in: 9bd4ab9e64 user: andreas_kupries tags: trunk
2003-11-25
19:04
* log.tcl (log::log): Added better handling of multiple lines in log message. (log::logarray): New command to dump the contents of an array into the log. check-in: e875ac9fd2 user: andreas_kupries tags: trunk
2003-11-23
06:11
* csv.man: Extended the explanation for the example to cover the alternate format as well [SF Tcllib RFE 737770]. check-in: 585c5d4cc0 user: andreas_kupries tags: trunk
2003-11-21
23:55
Bug fix: newlines in argument lists check-in: 58e7e63865 user: duquette tags: trunk
23:50
Bug fix: newlines in argument lists check-in: fe4f501fa6 user: duquette tags: trunk
23:26
Finalized for 0.91 check-in: e19739f708 user: duquette tags: trunk
23:24
Fixed typos check-in: a4ae89b382 user: duquette tags: trunk
23:14
Added glob patterns to info methods check-in: ad20d49230 user: duquette tags: trunk
22:37
Added expose check-in: 41b9a4a9ff user: duquette tags: trunk
06:07
* mime.tcl (word_decode): Fixed [SF Tcllib Bug 764702], accepted the patch coming with the bugreport (both by Reinhard Speyerer <[email protected]>). Command is now able to decode data in encoded utf-8. * mime.test: Added test for the bug above. check-in: 6ef0b95190 user: andreas_kupries tags: trunk
05:55
* counter.man: Added documentation for counter::reset. This fixes [SF Tcllib Bug 759959]. Also added some keywords. check-in: 15da3886e4 user: andreas_kupries tags: trunk
05:46
* statistics.tcl (BasicStat): Applied fix for [SF Tcllib Bug 820807]. Uniform data may cause a small negative value when computing the base value for a standard deviation, instead of the correct 0.0. The fix now enforces 0.0 when encountering this situation. This entry in the ChangeLog by Andreas Kupries. check-in: 73646ca2f7 user: andreas_kupries tags: trunk
2003-11-19
06:48
* 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: check-in: 890b8ccb02 user: andreas_kupries tags: trunk
06:39
* 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. check-in: d8ef1b1e63 user: andreas_kupries tags: trunk
06:23
* pop3.tcl (pop3::open): Remembering initial count of messages, as limit for message ids. (pop3::delete): Replaced [status] call with access to stored limit for validation of message ids. (pop3::retrieve): Ditto. The changes above fix [SF Tcllib Bug 833486]. * pop3.test: Updated testsuite to the changes in the sequences of pop3 commands (New STAT after PASS, and no STAT before LAST/RETR, nor before LAST/DELE). check-in: a803e58ce5 user: andreas_kupries tags: trunk
05:26
* smtp.tcl (smtp::hear): Integrated fix for [Bug 836442]. Limiting seconds to 600 to prevent integer wraparound when setting up a timer event. Bug reported (and fix provided) by Andreas Otto, and accepted by Marshall Rose. check-in: 190398c9e5 user: andreas_kupries tags: trunk
2003-11-17
20:49
* htmlparse.man: added SEE ALSO link to struct::tree check-in: 795e1fc462 user: jenglish tags: trunk
2003-11-15
00:23
* fileutil.man: Added new test and docs for change below. * fileutil.tcl (::fileutil::cat): Make cat accept multiple files (bug [830075]). check-in: e343a85d1a user: davidw tags: trunk
2003-11-06
05:47
* made the eval call safe by encapsulating within linsert check-in: 2594151ef3 user: schwarzkopf tags: trunk
2003-10-31
20:49
Typo fix. check-in: 2670c80c1d user: andreas_kupries tags: trunk
2003-10-30
07:57
Patch for bug 820807 check-in: 4ece1c0d2d user: arjenmarkus tags: trunk
2003-10-29
19:24
* profiler.man: Updated documented signature of 'reset', missed the pattern argument [Bug 832487]. check-in: c1d7f6e955 user: andreas_kupries tags: trunk
2003-10-28
17:45
* snit.man: Fixed typos in documentation. * snitfaq.man: check-in: ab215a0e64 user: andreas_kupries tags: trunk
02:52
Fixed typos check-in: 21474813c6 user: duquette tags: trunk
2003-10-27
21:08
* snit.man: Updated to changes in the .html files. * snitfaq.man: check-in: 3deea428ec user: andreas_kupries tags: trunk
18:03
* fileutil.man: Better formatting of the new docs. check-in: 84acd5adb7 user: andreas_kupries tags: trunk
2003-10-26
20:55
Final V0.9 changes check-in: 0b128079ca user: duquette tags: trunk
2003-10-25
22:53
Final V0.9 changes check-in: 3434716ce2 user: duquette tags: trunk
17:24
delegate * except code changes check-in: 7fa8c0006d user: duquette tags: trunk
10:41
* fileutil.man: Documented 'fileutil::tempdir' algorithm. check-in: 4193b37b44 user: davidw tags: trunk
2003-10-24
19:39
* htmlparse.tcl: Applied [Patch 823346] by Michael Schlenker <[email protected]>. Cleans the code up a bit, using faster string ops in place of regexes and -subs, where possible. check-in: a48a0cd981 user: andreas_kupries tags: trunk
17:46
* base64.test: * base64.tcl: Applied patch fixing [Bug 821126]. Variable 'output' is now initialized to empty to have it defined at all times. Extended testsuite to cover the fixed cases. check-in: 6d23598b43 user: andreas_kupries tags: trunk
01:31
Updated from Will's html doc's. check-in: 5fe6ce8c14 user: andreas_kupries tags: trunk
2003-10-23
22:48
* comm.man: Updated version number in documentation. * fileutil.man: Updated documentation, added description of 'fileutil::tempdir'. check-in: d018d1983e user: andreas_kupries tags: trunk
20:58
Added hulltype; updated man page check-in: c64c011fe1 user: duquette tags: trunk
12:37
* fileutil.test (tempdir): Added a few very simple tests for tempdir under Unix. * fileutil.tcl (::fileutil::tempdir): Added tempdir implementation. (::fileutil::tempfile): Use new tempdir command. * fileutil.tcl (::fileutil::find): Change Unix version of find command to accept a file (as opposed to a directory) as an argument. This reflects the behavior of the Unix find command. This change also needs to be added to the windows version, but should probably be done by someone who can test it on that platform. (::fileutil::install): -m option only works on Unix, as far as I know. (::fileutil::install): Make sure correct thing is chmod'ed. * fileutil.test: Added tests for find to check that it works ok with a single file as an argument. Also, error out if initial file does not correspond to 'isfile' or 'isdirectory'. check-in: dccc23bc5f user: davidw tags: trunk
2003-10-22
19:43
* irc.tcl (network): Fixed usage of eval - thanks to Jeff Hobbs. check-in: 48f82fb3f6 user: davidw tags: trunk
2003-10-21
23:18
* pkgIndex.tcl: updated to v4.2. * comm.man: * comm.tcl (comm_cmd_new): make 'comm::comm new ?chan?' fully qualify the namespace of the new channel and return that. [Bug #741653, #817351] * comm.tcl: change default encoding to utf-8. This should still work with other versions of comm because the previous one-sided binary setting only allowed for limited i18n-ness. Using this version of comm on both sides will ensure full i18n-happiness. [Bug #806420] check-in: 70b6747b75 user: hobbs tags: trunk
21:26
Added reference to bug to last entry. check-in: e2a61e5f75 user: andreas_kupries tags: trunk
21:24
* base64.tcl: Added code to the Trf supported 'decode'r to ignore whitespace in hte encoded input. check-in: 38d15bb8c0 user: andreas_kupries tags: trunk
21:09
* pop3d.tcl (H_quit): Remember the handle of the idle event we are scheduling. This event can be passed by by an eof on the channel. (CloseConnection): Kill a pending idle event, it was passed by and is not relevant anymore. [Bug 650977]. check-in: e84fcd81de user: andreas_kupries tags: trunk
20:52
* ftp.tcl (ftp::StateHandler): Accepted change to the regexp pattern to handle irregular input better. [Bug 739393]. Also added code to handle future regex failures better. check-in: 294be73d03 user: andreas_kupries tags: trunk
20:15
* mpformats/fmt.wiki (fmt_manpage_end): Fixed usage of wrong variable ('copyright' was used, should have been 'ct'). [Bug 826206]. check-in: 88375d8e88 user: andreas_kupries tags: trunk
20:07
* struct_tree.man: Added more documentation about the root node of tree's. [Bug 827643]. check-in: a1261d7ff0 user: andreas_kupries tags: trunk
19:51
* htmlparse.man: Extended documentation of command '2tree' with description of how the found tags and text are stored in the nodes of the tree [Bug 827645]. check-in: a0f953902c user: andreas_kupries tags: trunk
19:36
* sak.tcl: Added -nonewline to a number of puts statements to work around a problem with Tcl 8.4 where additional ^M characters appear for Mac OS X. [Bug 784523]. check-in: 9abdddc3b9 user: andreas_kupries tags: trunk
19:23
* README: Updated to describe the new way of adding modules to tcllib. * INSTALL.txt: Updated references to tcllib 1.4 to 1.5. * installed_modules.tcl: Changed doc action for snit from _null to _man (We have doctools manpages for snit for a while now). check-in: 834cd5b6bf user: andreas_kupries tags: trunk
19:03
Updated references to tcllib 1.4 to 1.5. check-in: 3ab87e895c user: andreas_kupries tags: trunk
16:17
* all.tcl: Added code to try to load 'Tk'. This allows the execution of 'tk' constrained tests, if Tk is present (for example when this code is run run by 'wish'). An example of a module having such tests is 'snit'. check-in: 96e4c2e531 user: andreas_kupries tags: trunk
02:00
Finished option database coding check-in: a9b1ec7232 user: duquette tags: trunk
2003-10-20
01:09
Preliminary option database changes check-in: 2f896a96da user: duquette tags: trunk
2003-10-18
03:50
Added typeconstructor check-in: 0da3ef5cf3 user: duquette tags: trunk
2003-09-30
17:47
* snit.tcl: A number of changes to the code generation part. - Usage of [subst]'s was superfluous, removed, simple string interpolation now. - Now 'namespace eval type' enclosing the generated code anymore. Such an eval is now done only at the top of the generated code to define the namespace, and to define/initialize the typevariables. All procedure definitions are now outside of 'namespace eval' and use fully qualified command names instead. - Moved the code in [snit::Define] which instantiated the class using the generated code into it own helper command, [snit::DefineDo]. Overiding this command allows users of the snit package perform other actions on the newly defined class. One example is that of a snit-compiler which goes through a file containing tcl code and replaces all snit::* definitions with the generated code. Motivation for the change: When applying procomp to procedure definitions inside of a 'namespace eval' they are not byte-compiled, but kept as encoded literal. This is a direct consequence of 'namespace eval' not having a compile function. It also means that introspection, i.e. [info body] does recover the actual procedure definition. By using procedure definitions outside of namespace eval, but fully qualified names this limitation of procomp is avoided. The aforementioned snit compiler application is another part for this, ensuring that instead of keeping the whole class definition as one literal for the snit::* call we actually have tcl code to compile and hide. * snit.tcl: Updated the version number to 0.83 * pkgIndex.tcl: * snit.man: * snitfaq.man: check-in: b01c77cdf9 user: andreas_kupries tags: trunk
2003-09-04
00:10
* fileutil.tcl (fileutil::fileType): Fixed the SourceForge Tcllib bug [795585]. We are now allowing whitespace between the #! and path of the script interpreter. Extended to identify metakit databases, also when attached to another file. (tempfile): Added 'global env', access to 'env' was bad, causing malfunction on windows. check-in: 344e853073 user: andreas_kupries tags: trunk
2003-08-27
21:26
* uri.tcl: Applied a fix for bug #795032: damage to global vars. check-in: 8f707a6974 user: patthoyts tags: trunk
2003-08-19
10:44
* cmdline.man: Added an example. Feel free to change/improve it, but this package really needed one to show the standard usage pattern. check-in: 630b8e5fb3 user: davidw tags: trunk
2003-08-15
03:51
* pkgIndex.tcl: * htmlparse.test: * htmlparse.man: * htmlparse.tcl: Updated to use struct v2 when handling trees (Different way of accessing attributes). Bumped version number up to the next major version (1.0) for this incompatible change. check-in: f16075b70a user: andreas_kupries tags: trunk
2003-08-13
18:48
Fixed math in counter::start and counter::stop check-in: 1c4702c558 user: welch tags: trunk
2003-08-12
19:13
* fileutil.man: Fixed a bad call of [cmd] in the documentation of the new install command. Always use 'sak validate moldule' to validate the whole module, or 'sak text module' when wishing to validate only the documentation. check-in: ad42ec4136 user: andreas_kupries tags: trunk
2003-08-11
20:48
Corrected minor bug in 'install' test. check-in: 533b0cc173 user: davidw tags: trunk
2003-08-07
18:49
* 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: * 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: * graph.tcl: * 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: * 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 rootnode. 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). * 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 associoated 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. check-in: fb380266cf user: andreas_kupries tags: trunk