summaryrefslogtreecommitdiffstats
path: root/library
Commit message (Collapse)AuthorAgeFilesLines
* Applied patch from [Bug: 5922]ericm2000-06-202-4/+4
|
* 2000-05-29 Sandeep Tamhankar <sandeep@scriptics.com>hobbs2000-06-022-46/+80
| | | | | | | | | | | | | | | * tests/http.test * doc/http.n * library/http2.3/http.tcl: Fixed bug 5741, where unsuccessful geturl calls sometimes leaked memory and resources (sockets). Also, switched around some of the logic so that http::wait never throws an exception. This is because in an asynchronous geturl, the command callback will probably end up doing all the error handling anyway, and in an asynchronous situation, the user expects to check the state when the transaction completes, as opposed to being thrown an exception. For the http package, this menas the user can check http::status for "error" and http::error for the error message after doing the http::wait.
* * library/init.tcl (auto_import): added check to see if a validhobbs2000-05-181-1/+7
| | | | pattern was coming in, to avoid simple error cases [Bug: 3326]
* * library/history.tcl: Corrected an off-by-one error in HistIndex,ericm2000-05-151-2/+3
| | | | | which was causing [history redo] to start its search at the wrong event index. [Bug: 1269].
* * README:hobbs2000-05-035-12/+12
| | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * library/reg1.0/pkgIndex.tcl: * library/tcltest1.0/tcltest.tcl: * mac/README: * tools/tcl.hpj.in: * tools/tcl.wse.in: * unix/README: * unix/configure.in: * unix/tcl.spec: * win/README: * win/README.binary: * win/configure.in: * win/makefile.vc: * win/tcl.m4: updated patchlevel to 8.4a1
* moved http2.1 to http2.3hobbs2000-04-252-875/+0
|
* 2000-04-22 Jim Ingham <jingham@cygnus.com> * library/package.tcl ↵jingham2000-04-231-2/+2
| | | | (tclPkgUnknown): Fixed a typo in the Mac package search part of tclPkgUnknown.
* 2000-04-21 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-04-223-27/+57
| | | | | | | | | | | * library/http2.1/http.tcl: Fixed a newly introduced bug where if there's a -command callback and something goes wrong, geturl threw an exception, called the callback, and unset the token. I changed it so that it will not call the callback when throwing an exception (so the caller only finds out about a given error from one place). Also, fixed http::ncode so that it actually gives you back the http return code (i.e. 200, 404, etc.) instead of the first digit of the version of HTTP being used (i.e. 1).
* More thrashing with the "server closeswelch2000-04-223-42/+90
| | | | | | without reading post data" scenario. Reverted to the previous filevent configuratiuon, which seems to work better with small amounts of post data.
* * library/dde1.1/pkgIndex.tcl:hobbs2000-04-204-24/+24
| | | | | | | | | | | * library/reg1.0/pkgIndex.tcl: * win/tclWinChan.c: * win/tclWinThrd.c: converted CRLF to LF the */tcl.hpj.in files were not converted, as it confuses hcw locally. [Bug: 5096] * win/Makefile.in: expanded cleanup or help files * doc/Thread.3: minor macro cleanup
* * msgcat.n: Added docs for new behavior from patch in [Bug: 4158].ericm2000-04-112-14/+50
| | | | | | | | | | | | | * msgcat.test: Added tests for new behavior from patch in [Bug: 4158]. * msgcat.tcl: Applied patch from [Bug: 4158], which enables msgcat::mc to search the entire namespace ancestry chain for message translations (ie, first it checks the current namespace, then the parent, then the parent's parent, etc). Also allows the specification of additional args for msgcat::mc; if extra args are given, the [format] command is used to substitute the additional args in the translated message.
* Updated to work with thread extension, if presentwelch2000-04-112-6/+52
|
* Adjusted file events and unified error handling.welch2000-04-093-213/+330
|
* * library/tcltest1.0/tcltest.tcl (initConstraints): removed win32shobbs2000-04-082-10/+2
| | | | references (no longer supported)
* 2000-03-29 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-04-053-6/+6
| | | | | | | | | | * library/http2.1/http.tcl: For the -querychannel option, fconfigure the socket to be binary so that we don't translate anything while reading the data. This is because we determine the content length of the data on the channel by using seek (to the end of the file) and tell on the file handle, and we need the content-length to match the amount of data actually sent, and translation can affect the number of bytes posted.
* 2000-03-29 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-03-293-12/+9
| | | | | | | | | | | | | * library/http2.1/http.tcl: Removed an unnecessary fileevent statement from the error processing part of the Write method. Also, fixed two potential memory leaks in wait and reset, in which the state array wasn't being unset before throwing an exception. Prior to this version, Brent checked in a fix to catch a fileevent statement that was sometimes causing a stack trace when geturl was called with -timeout. I believe Brent's fix is necessary because TLS closes bad sockets for secure connections, and the fileevent was trying to act on a socket that no longer existed.
* Added catch around fileevent to fix test suite failurewelch2000-03-273-6/+6
|
* 2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-03-223-6/+9
| | | | | | * library/http2.1/http.tcl: Fixed a bug where string query data that was bigger than queryblocksize would get duplicate characters at block boundaries.
* 2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>sandeep2000-03-223-6/+9
| | | | | | | | | | * library/http2.1/http.tcl: Fixed bug 4463, where we were getting a stack trace if we tried to publish a project to a good host but a port where there was no server listening. It turned out the problem was a stray fileevent that needed to be cleared. Also, fixed a bug where http::code could stack trace if called on a bad token (one which didn't represent a successful geturl) by adding an http element to the state array in geturl.
* 2000-03-19 Sandeep Tamhankar <sandeep@scriptics.com>scriptics_sc_2_0_b1sandeep2000-03-193-15/+30
| | | | | | | | * library/http2.1/http.tcl: geturl used to throw an exception when the connection failed; I accidentally returned a token with the error info, breaking backwards compatibility. I changed it back to throwing an exception, but unsetting the state array first (thus still eliminating the original memory leak problem).
* * library/http2.1/http.tcl: Added -querychannel option and alteredsandeep2000-03-193-198/+294
| | | | | | | | | | | | | | | | | | | | | | some of Brent's modifications to allow asynchronous posts (via -command). Also modified -queryprogress so that it calls the query callback as <callback> <token> <total size> <current size> to be consistent with -progress. Added -queryblocksize option with default 8192 bytes for post blocksize. Fixed a bunch of potential memory leaks for the case when geturl receives bad args or can't open a socket, etc. Overall, the package really rocks now. * doc/http.n: Added -queryblocksize, -querychannel, and -queryprogress. Also, changed the description of -blocksize, which states that the -progress callback will be called for each block, to now qualify that with an "if -progress is specified". * tests/http.test: Added a querychannel test for synchronous and asynchronous posts, altered the queryprogress test such that the callback conforms to the -progress format. Also, had to use the -queryblocksize option to do the post 16K at a time to match Brent's expected results (and to test that -queryblocksize works).
* updated package index file to use version 2.3 instead of 2.2.hershey2000-03-183-3/+3
|
* Added -queryprogress callback towelch2000-03-173-12/+270
| | | | | | | | http::geturl and also changed it so that writing the post data is event driven if the queryprogress callback or a timeout is given. This allows a timeout to occur when writing lots of post data. The queryprogress callback is called after each block of query data is posted. It has the same signature as the -progress callback.
* * library/package.tcl: Applied patch from Bug: 2570; rather thanericm2000-03-061-4/+5
| | | | | | | setting geometry of slave interp to 0x0 when Tk was loaded, it now does "wm withdraw .". Both remove the main window from the display, but the former caused some internal structures to get initialized to zero, which caused crashes with some extensions.
* * library/package.tcl (tclPkgUnknown): extended to allowhobbs2000-03-031-12/+33
| | | | | recognizes changes in the auto_path while sourcing in other pkgIndex.tcl files
* * library/tcltest1.0/tcltest.tcl: correctly protected searchDirectoryhobbs2000-02-082-12/+12
| | | | list to allow dirnames with spaces
* * doc/library.n:hobbs2000-02-081-3/+3
| | | | * library/auto.tcl: fixed crufty puts code and docs [Bug: 4122]
* * tests/package.test:ericm2000-02-072-7/+7
| | | | | * library/tclIndex: * library/package.tcl: Renamed ::package namespace to ::pkg.
* Removing struct namespace stuff.ericm2000-02-074-534/+0
|
* * doc/tree.n:ericm2000-02-054-0/+534
| | | | | | | | | | | | | | | | | | | * doc/stack.n: * doc/queue.n: docs for tree, stack, and queue. * win/Makefile.in: * unix/Makefile.in: Added struct1.0 to list of libraries to install. * tests/stackstruct.test: stack tests * tests/queue.test: queue tests * library/struct1.0/queue.tcl: queue data structure. * library/struct1.0/stack.tcl: stack data structure. * library/struct1.0/pkgIndex.tcl: * library/struct1.0/struct.tcl: data structure package
* * library/init.tcl: Applied patch from rfe 1734 regardingericm2000-02-011-3/+3
| | | | auto_load errors not setting error message and errorInfo properly.
* * library/http1.0/http.tcl:hobbs2000-02-014-8/+8
| | | | | * library/http2.1/http.tcl: The query data POSTed was newline terminated when it shouldn't be altered [Bug: 4089]
* * tests/package.test:ericm2000-02-014-37/+168
| | | | | | | | | | | | | | | | | * library/tclIndex: * library/package.tcl: Added ::package namespace and ::package::create function. * library/init.tcl: Fixed problem with auto_load and determining if commands were loaded. * library/auto.tcl: "Fixed" issues with $ in files to be auto indexed. * doc/Package.n: New man page for package::create function. * doc/pkgMkIndex.n: Added additional information. * doc/library.n: Added additional qualification regarding auto_mkindex.
* * tests/pkg/magicchar2.tcl:ericm2000-01-291-3/+9
| | | | | | | | | * tests/autoMkindex.test: Test for auto loader fix (bug #2480). * library/init.tcl: auto_load was using [info commands $name] to determine if a given command was available; if the command name had * or [] it, this would fail because info commands uses glob-style matching. This is fixed. (Bug #2480).
* * tests/pkg/spacename.tcl:ericm2000-01-281-2/+3
| | | | | | | * tests/pkgMkIndex.test: Tests for fix for bug #2360. * library/package.tcl: Fixed to extract only the first element of the list returned by auto_qualify (bug #2360).
* * tests/pkg/magicchar.tcl:ericm2000-01-281-3/+6
| | | | | | | | | * tests/autoMkindex.test: Test for fix for bug #2611. * library/auto.tcl: Fixed the regular expression that performs $ escaping before sourcing a file to index. It was erroneously adding \ escapes even to $'s that were already escaped, effectively "un-escaping" those $'s. (bug #2611).
* * tests/autoMkindex.test:ericm2000-01-281-3/+12
| | | | | | * library/auto.tcl: Applied patch (with slight modification) from bug #2701: auto_mkIndex uses platform dependent file paths. Added test for fix.
* * library/tcltest1.0/tcltest.tcl: Changed NormalizePath tojenn2000-01-274-14/+16
| | | | | | | | normalizePath and exported it as a public proc. This proc creates an absolute path given the name of the variable containing the path to modify. The path is modified in place. * library/tcltest1.0/pkgIndex.tcl: Added normalizePath. * tests/all.tcl: Changed code to use normalizePath.
* * tests/pkg/samename.tcl: test file for bug #1983ericm2000-01-271-25/+25
| | | | | | | | * tests/pkgMkIndex.test: * library/package.tcl: Fixed bug #1983, dealing with pkg_mkIndex incorrectly handling situations with two procs by the same name but in different namespaces (ie, foo::baz and bar::baz).
* * tests/pkgMkIndex.test:ericm2000-01-271-33/+43
| | | | | | | | * doc/pkgMkIndex.n: * library/package.tcl: Per rfe #4097, optimized creation of direct load packages to bypass computing the list of commands added by the new package. Also made direct loading the default, and added a -lazy option.
* * library/init.tcl (auto_execok): added 'start' to list ofhobbs2000-01-241-3/+9
| | | | recognized built-in commands for COMSPEC on NT. [Bug: 2858]
* * library/word.tcl: changed tcl_(non)wordchars settings to usehobbs2000-01-211-7/+7
| | | | new unicode regexp char class escapes instead of char sequences
* * library/http2.1/http.tcl: trim value for $state(meta) keyhobbs2000-01-113-6/+6
|
* * library/http2.1/http.tcl: fixed error handling in http::Eventhobbs1999-12-043-12/+9
| | | | [Bug: 3752]
* * library/dde1.1/pkgIndex.tcl:hobbs1999-11-304-4/+24
| | | | | * library/reg1.0/pkgIndex.tcl: added supported for debugged versions of the libraries
* Changed version number on dllswart1999-11-244-4/+4
|
* * library/tcltest1.0/tcltest.tcl: Fixed bug where tcltest outputstanton1999-11-232-4/+6
| | | | | went to stdout instead of the specified output file in some cases.
* *** empty log message ***hobbs1999-11-193-6/+6
|
* * library/http2.1/http.tcl:hobbs1999-11-196-9/+9
| | | | * library/http2.1/pkgIndex.tcl: updated http package to 2.2
* * library/http2.1/http.tcl: added register and unregisterhobbs1999-11-193-27/+183
| | | | | commands to http:: package (better support for tls/SSL), as well as -type argument to http::geturl. [RFE: 2617]