sl@0: 2007-05-24 Don Porter sl@0: sl@0: *** 8.4.15 TAGGED FOR RELEASE *** sl@0: sl@0: * generic/tclIO.c: Backport memleak fix in TclFinalizeIOSubsystem. sl@0: sl@0: 2007-05-17 Don Porter sl@0: sl@0: * tests/fCmd.test: Backport the notNetworkFilesystem constraint. sl@0: sl@0: 2007-05-15 Don Porter sl@0: sl@0: * generic/tclNamesp.c: Plugged memory leak related to sl@0: [namespace delete ::]. [Bug 1716782] sl@0: sl@0: * changes: updates for 8.4.15 release. sl@0: sl@0: * win/tclWinReg.c: Bump to registry 1.1.5 to account sl@0: * library/reg/pkgIndex.tcl: for [1682211] bug fix. sl@0: sl@0: 2007-05-10 Don Porter sl@0: sl@0: * generic/tclInt.h: TclFinalizeThreadAlloc() is always defined, sl@0: so make sure it is also always declared. sl@0: sl@0: [Tcl Bug 1706140] sl@0: sl@0: * generic/tclCmdMZ.c (Trace*Proc): Update Tcl_VarTraceProcs so sl@0: * generic/tclLink.c (LinkTraceProc): that they call sl@0: * generic/tclUtil.c (TclPrecTraceProc): Tcl_InterpDeleted() for sl@0: themselves, and do not rely on (frequently buggy) setting of the sl@0: TCL_INTERP_DESTROYED flag by the trace core. sl@0: sl@0: * generic/tclVar.c: Update callers of CallVarTraces to not sl@0: pass in the TCL_INTERP_DESTROYED flag. Also apply filters so that sl@0: public routines only pass documented flag values down to lower level sl@0: routines. sl@0: sl@0: * generic/tclVar.c (CallVarTraces): The setting of the sl@0: TCL_INTERP_DESTROYED flag is now done entirely within the sl@0: CallVarTraces routine, the only place it can be done right. sl@0: sl@0: 2007-04-30 Daniel Steffen sl@0: sl@0: * unix/Makefile.in: add 'tclsh' dependency to install targets that rely sl@0: on tclsh, fixes parallel 'make install' from empty build dir. sl@0: sl@0: 2007-04-29 Daniel Steffen sl@0: sl@0: * unix/tclUnixFCmd.c: add workaround for crashing bug in fts_open() sl@0: * unix/tclUnixInit.c: without FTS_NOSTAT on 64bit Darwin 8 or earlier. sl@0: sl@0: * unix/tclLoadDyld.c (TclpLoadMemory): fix (void*) arithmetic. sl@0: sl@0: * macosx/tclMacOSXNotify.c: fix warnings. sl@0: sl@0: * macosx/README: sync whitespace/formatting with HEAD. sl@0: * macosx/tclMacOSXBundle.c: sl@0: * macosx/tclMacOSXNotify.c: sl@0: * unix/tclLoadDyld.c: sl@0: sl@0: * macosx/Makefile: fix/add copyright and license refs. sl@0: * macosx/tclMacOSXBundle.c: sl@0: * macosx/Tcl-Info.plist.in: sl@0: sl@0: * unix/Makefile.in (dist): copy license.terms to dist macosx dir. sl@0: * unix/configure.in: install license.terms into Tcl.framework. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2007-04-21 Kevin B. Kenny sl@0: sl@0: * generic/tclClock.c: Restored Cygwin buildability [Bug 1387154] sl@0: * generic/tclInt.decls: Yet another round of attempting sl@0: * generic/tclInt.h: to get the correct type signature sl@0: * unix/tclUnixPort.h: for TclpLocaltime and TclpGmtime. sl@0: * unix/tclUnixTime.c: CONST TclpTime_t is a 'time_t *CONST' sl@0: * win/tclWinTime.c: and not a 'CONST time_t*' [Bug 1677275] sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclIntPlatDecls.h: Regenerated. sl@0: sl@0: 2007-03-24 Zoran Vasiljevic sl@0: sl@0: * win/tclWinThrd.c: Thread exit handler marks the current sl@0: thread as un-initialized. This allows exit handlers that sl@0: are registered later to re-initialize this subsystem in sl@0: case they need to use some sync primitives (cond variables) sl@0: from this file again. sl@0: sl@0: 2007-03-19 Don Porter sl@0: sl@0: * generic/tclEvent.c (Tcl_CreateThread): Replaced some calls to sl@0: * generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to sl@0: * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better sl@0: * win/tclAppInit.c (setargv): supports memory debugging. sl@0: sl@0: 2007-03-17 Kevin Kenny sl@0: sl@0: * win/tclWinReg.c (GetKeyNames): Size the buffer for enumerating sl@0: key names correctly, so that Unicode names exceeding 127 chars sl@0: can be retrieved without crashing. [Bug 1682211] sl@0: * tests/registry.test (registry-4.9): Added test case for the sl@0: above bug. sl@0: sl@0: 2007-03-13 Don Porter sl@0: sl@0: * generic/tclExecute.c (INST_FOREACH_STEP4): Re-fetch pointers for sl@0: * tests/foreach.test (foreach-10.1): the value list each iteration sl@0: of the loop as defense against shimmers. [Bug 1671087] sl@0: sl@0: * generic/tclVar.c (TclArraySet): Re-fetch pointers for the list sl@0: * tests/var.test (var-17.1): argument of [array set] each time sl@0: through the loop as defense against possible shimmer issues. sl@0: [Bug 1669489]. sl@0: sl@0: 2007-03-10 Donal K. Fellows sl@0: sl@0: * generic/tclCmdIL.c (Tcl_LsortObjCmd): Handle tricky case with loss sl@0: * tests/cmdIL.test (cmdIL-1.29):of list rep during sorting due sl@0: to shimmering. [Bug 1675116] sl@0: sl@0: 2007-03-07 Daniel Steffen sl@0: sl@0: * macosx/tclMacOSXNotify.c: add spinlock debugging and sanity checks. sl@0: sl@0: * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2007-03-01 Donal K. Fellows sl@0: sl@0: * generic/tclCompCmds.c (TclCompileForeachCmd): Prevent an unexpected sl@0: * tests/foreach.test (foreach-9.1): infinite loop when the sl@0: variable list is empty and the foreach is compiled. [Bug 1671138] sl@0: sl@0: 2007-02-22 Andreas Kupries sl@0: sl@0: * tests/pkg.test: Added tests for the case of an alpha package sl@0: satisfying a require for the regular package, demonstrating a sl@0: corner case specified in TIP#280. More notes in the comments to sl@0: the test. sl@0: sl@0: 2007-02-20 Don Porter sl@0: sl@0: * doc/tcltest.n: Typo fix. [Bug 1663539] sl@0: sl@0: 2007-02-19 Jeff Hobbs sl@0: sl@0: * generic/tclIOUtil.c (Tcl_FSEvalFile): safe incr of objPtr ref. sl@0: sl@0: * unix/tcl.m4: use SHLIB_SUFFIX=".so" on HP-UX ia64 arch. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2007-02-12 Andreas Kupries sl@0: sl@0: * generic/tclEncoding.c (EscapeFromUtfProc): Applied patch sl@0: supplied by Mo DeJong to fix [Bug 1516109]. Backport from Tcl sl@0: 8.5. Mo's description: Clear the TCL_ENCODING_END flag when end sl@0: bytes are written. This fix keep this method from writing escape sl@0: bytes for an encoding like iso2022-jp multiple times when the sl@0: escape byte overlap with the end of the IO buffer. sl@0: * tests/io.test: Add test case for escape byte overlap case. sl@0: sl@0: 2007-02-04 Daniel Steffen sl@0: sl@0: * unix/configure.in: add caching to -pipe check. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2007-01-30 Jeff Hobbs sl@0: sl@0: * win/Makefile.in (install-private-headers): added target sl@0: sl@0: 2007-01-29 Don Porter sl@0: sl@0: * doc/fcopy.n: Typo fix. [Bug 1630627] sl@0: sl@0: 2007-01-25 Daniel Steffen sl@0: sl@0: * unix/tcl.m4: integrate CPPFLAGS into CFLAGS as late as possible sl@0: * unix/configure.in: and move (rather than duplicate) -isysroot flags sl@0: from CFLAGS to CPPFLAGS to avoid errors about multiple -isysroot flags sl@0: from some older gcc builds. sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2007-01-22 Andreas Kupries sl@0: sl@0: * compat/memcmp.c (memcmp): Fixed the VOID / CONST typo introduced sl@0: by the last checkin. sl@0: sl@0: 2007-01-22 Donal K. Fellows sl@0: sl@0: * compat/memcmp.c (memcmp): Reworked so that arithmetic is never sl@0: performed upon void pointers, since that is illegal. [Bug 1631017] sl@0: sl@0: 2006-01-19 Daniel Steffen sl@0: sl@0: * macosx/tclMacOSXNotify.c: accommodate changes to prototypes of sl@0: OSSpinLock(Un)Lock API. sl@0: sl@0: * tests/env.test: add extra system env vars that need to be preserved sl@0: on some Mac OS X versions for testsuite to work. sl@0: sl@0: * unix/tcl.m4: ensure CPPFLAGS env var is used when set. [Bug 1586861] sl@0: (Darwin): add -isysroot and -mmacosx-version-min flags to CPPFLAGS when sl@0: present in CFLAGS to avoid discrepancies between what headers configure sl@0: sees during preprocessing tests and compiling tests. sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2006-12-19 Daniel Steffen sl@0: sl@0: * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit. sl@0: sl@0: * unix/tcl.m4 (Darwin): --enable-64bit: verify linking with 64bit -arch sl@0: flag succeeds before enabling 64bit build. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2006-12-14 Donal K. Fellows sl@0: sl@0: * doc/string.n: Fix example. [Bug 1615277] sl@0: sl@0: 2006-12-05 Andreas Kupries sl@0: sl@0: * tests/pkg.test: Backport to 8.4 (Don Porter's work): sl@0: * generic/tclPkg.c: When no requirements are supplied to a [package sl@0: require $pkg] and [package unknown] is invoked to find a satisfying sl@0: package, pass the requirement argument "0-" (which means all versions sl@0: are acceptable). This permits a registered [package unknown] command sl@0: to call [package vsatisfies $testVersion {*}$args] without any special sl@0: handling of the empty $args case. This fixes/avoids a bug in sl@0: [::tcl::tm::UnknownHandler] that was causing old TM versions to be sl@0: provided in preference to newer TM versions. Thanks to Julian Noble sl@0: for discovering the issue. sl@0: sl@0: 2006-12-04 Donal K. Fellows sl@0: sl@0: * doc/file.n: Fix confusing wording for [file pathtype]. [Bug 1606454] sl@0: sl@0: 2006-11-28 Andreas Kupries sl@0: sl@0: * generic/tclBasic.c: TIP #280 implementation, conditional on the sl@0: * generic/tclCmdAH.c: define TCL_TIP280. sl@0: * generic/tclCmdIL.c: sl@0: * generic/tclCmdMZ.c: sl@0: * generic/tclCompCmds.c: sl@0: * generic/tclCompExpr.c: sl@0: * generic/tclCompile.c: sl@0: * generic/tclCompile.h: sl@0: * generic/tclExecute.c: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclInt.h: sl@0: * generic/tclInterp.c: sl@0: * generic/tclNamesp.c: sl@0: * generic/tclObj.c: sl@0: * generic/tclProc.c: sl@0: * tests/compile.test: sl@0: * tests/info.test: sl@0: * tests/platform.test: sl@0: * tests/safe.test: sl@0: sl@0: 2006-11-27 Kevin Kenny sl@0: sl@0: * unix/tclUnixChan.c (TclUnixWaitForFile): sl@0: * tests/event.test (event-14.*): Corrected a bug where sl@0: TclUnixWaitForFile would present select() with the wrong mask on an sl@0: LP64 machine if a fd number exceeds 32. Thanks to Jean-Luc Fontaine sl@0: for reporting and diagnosing [Bug 1602208] sl@0: sl@0: 2006-11-26 Daniel Steffen sl@0: sl@0: * unix/tcl.m4 (Linux): --enable-64bit support. [Patch 1597389] sl@0: * unix/configure: autoconf-2.13 [Bug 1230558] sl@0: sl@0: 2006-11-07 Andreas Kupries sl@0: sl@0: * unix/tclUnixFCmd.c (CopyFile): Added code to fall back to a sl@0: hardwired default block size should the filesystem report a bogus sl@0: value. [Bug 1586470] sl@0: sl@0: 2006-11-03 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (TEOVI): fix for possible leak of a Command in sl@0: the presence of execution traces that delete it. sl@0: sl@0: * generic/tclBasic.c (TEOVI): sl@0: * tests/trace.test (trace-21.11): fix for [Bug 1590232], execution sl@0: traces may cause a second command resolution in the wrong sl@0: namespace. sl@0: sl@0: 2006-11-01 Daniel Steffen sl@0: sl@0: * generic/tclEnv.c (Darwin): mark _environ symbol as unexported. sl@0: sl@0: 2006-10-31 Pat Thoyts sl@0: sl@0: * rules.vc: Fix [Bug 1582769] build with VC2003 and correct i386 arch sl@0: sl@0: 2006-10-23 Don Porter sl@0: sl@0: * README: Bump version number to 8.4.15 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: * win/configure: sl@0: sl@0: 2006-10-18 Pat Thoyts sl@0: sl@0: *** 8.4.14 TAGGED FOR RELEASE *** sl@0: sl@0: * win/nmakehlp.c: Ensure builds with VC6 without Platform SDK. sl@0: * win/rules.vc: Pickup MACHINE from environment. sl@0: sl@0: 2006-10-17 Don Porter sl@0: sl@0: * generic/tclIOUtil.c: Cleaned up some code flagged by a sl@0: * generic/tclInt.h: `make checkexports` test. sl@0: * win/tclWin32Dll.c: sl@0: * win/tclWinFile.c: sl@0: sl@0: 2006-10-16 Daniel Steffen sl@0: sl@0: * changes: updates for 8.4.14 release. sl@0: sl@0: * macosx/Makefile: don't redo prebinding of non-prebound binaires. sl@0: sl@0: 2006-10-11 Andreas Kupries sl@0: sl@0: * generic/tclPkg.c (Tcl_PkgRequireEx): Corrected crash when argument sl@0: version==NULL passed in. Backport of the fix for the same problem in sl@0: 8.5. sl@0: sl@0: 2006-10-10 Don Porter sl@0: sl@0: * changes: changes updated for 8.4.14 release. sl@0: sl@0: 2006-10-06 Jeff Hobbs sl@0: sl@0: * tests/http.test: update tests to handle strictness change. sl@0: sl@0: 2006-10-06 Pat Thoyts sl@0: sl@0: * win/rules.vc: avoid /RTCc flag with MSVC8. [Bug 1571954] sl@0: sl@0: 2006-10-05 Jeff Hobbs sl@0: sl@0: * library/http/http.tcl (http::geturl): only do geturl url rfc 3986 sl@0: validity checking if $::http::strict is true (default false for 8.4). sl@0: [Bug 1560506] sl@0: sl@0: * generic/tcl.h: note limitation on changing Tcl_UniChar size sl@0: * generic/tclEncoding.c (UtfToUnicodeProc, UnicodeToUtfProc): sl@0: * tests/encoding.test (encoding-16.1): fix alignment issues in sl@0: unicode <> utf conversion procs. [Bug 1122671] sl@0: sl@0: 2006-10-05 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (Tcl_LappendObjCmd): sl@0: * tests/append.test(4.21-22): fix for longstanding [Bug 1570718], sl@0: lappending nothing to non-list. Reported by lvirden sl@0: sl@0: 2006-10-02 Don Porter sl@0: sl@0: * generic/tclFileName.c (TclGlob): Prevent doubling of directory sl@0: separators by [glob]. [Bug 1569042] sl@0: sl@0: 2006-10-01 Pat Thoyts sl@0: sl@0: * win/tclWinFile.c: Handle possible missing define. sl@0: * win/tclWinFile.c: Backported fix for [Bug 1420432] (cannot set sl@0: * tests/cmdAH.test: mtime for directories on windows). sl@0: sl@0: 2006-09-30 Miguel Sofer sl@0: sl@0: * generic/tclUtil.c (Tcl_SplitList): optimisation, [Patch 1344747] sl@0: by dgp. sl@0: sl@0: 2006-09-26 Pat Thoyts sl@0: sl@0: * win/makefile.vc: Updated MSVC build to properly deal with sl@0: * win/nmakehlp.c: MSVC8 and AMD64 target. Backport from 8.5 sl@0: * win/rules.vc: sl@0: * generic/tcl.h: Fixed stat definition for MSVC8 AMD64. sl@0: * win/tclWinSock.c: Casting type police. sl@0: * win/tclWinTime.c: sl@0: sl@0: 2006-09-26 Don Porter sl@0: sl@0: * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellows sl@0: demonstrates, "#define NULL 0" is just wrong, and as a quotable chat sl@0: figure observed, "If NULL isn't defined, we're not using a C compiler." sl@0: Improper fallback definition of NULL removed. sl@0: sl@0: 2006-09-25 Andreas Kupries sl@0: sl@0: * generic/tclIO.c (Tcl_StackChannel): Fixed [SF Tcl Bug 1564642], aka sl@0: coverity #51. Extended loop condition, added checking for NULL to sl@0: prevent seg.fault. sl@0: sl@0: 2006-09-25 Andreas Kupries sl@0: sl@0: * generic/tclBasic.c: Reverted exposure of patchlevel in registered sl@0: core version when TIP#268 features are activated. Better compatibility sl@0: with existing packages. Like Tk. sl@0: sl@0: 2006-09-24 Miguel Sofer sl@0: sl@0: * generic/tclParse.c (Tcl_ParseCommand): also return an error if sl@0: start==NULL and numBytes<0. This is coverity's bug #20 sl@0: sl@0: * generic/tclStringObj.c (STRING_SIZE): fix allocation for 0-length sl@0: strings. This is coverity's bugs #54-5 sl@0: sl@0: 2006-09-22 Andreas Kupries sl@0: sl@0: * generic/tclInt.h: Moved TIP#268's field 'packagePrefer' to the end sl@0: of the structure, for better backward compatibility. sl@0: sl@0: 2006-09-22 Andreas Kupries sl@0: sl@0: * generic/tclPkg.c (Tcl_PkgRequireEx): Changes handling of the return sl@0: information from 'Tcl_PkgRequireProc'. Keep the interpreter result sl@0: empty. Backport of fix for problem found while testing #268 under 8.5. sl@0: More details in the comments. sl@0: sl@0: 2006-09-22 Donal K. Fellows sl@0: sl@0: * generic/tclThreadTest.c (TclCreateThread): Use NULL instead of 0 as sl@0: end-of-strings marker to Tcl_AppendResult; the difference matters on sl@0: 64-bit machines. [Bug 1562528] sl@0: sl@0: 2006-09-21 Andreas Kupries sl@0: sl@0: * generic/tcl.decls: Implemented TIP #268, conditionally. sl@0: * generic/tclBasic.c: Define TCL_TIP268 to activate the new sl@0: * generic/tclDecls.h: features. sl@0: * generic/tclInt.h: sl@0: * generic/tclPkg.c: sl@0: * generic/tclStubInit.c: sl@0: * generic/tclTest.c: sl@0: * library/init.tcl sl@0: * library/package.tcl: sl@0: * tests/pkg.test: sl@0: * tests/platform.test: sl@0: * tests/safe.test: sl@0: * doc/PkgRequire.3: sl@0: sl@0: 2006-09-15 Jeff Hobbs sl@0: sl@0: * library/http/http.tcl: Change " " -> "+" url encoding mapping sl@0: * library/http/pkgIndex.tcl: to " " -> "%20" as per RFC 3986. sl@0: * tests/http.test (http-5.1): bump http to 2.5.3 for 8.4.14 sl@0: sl@0: 2006-09-12 Andreas Kupries sl@0: sl@0: * unix/configure.in (HAVE_MTSAFE_GETHOST*): Modified to recognize sl@0: HP-UX 11.00 and beyond as having mt-safe implementations of the sl@0: gethost functions. sl@0: * unix/configure: Regenerated, using autoconf 2.13 sl@0: sl@0: * unix/tclUnixCompat.c (PadBuffer): Fixed bug in calculation of the sl@0: increment needed to align the pointer, and added documentation sl@0: explaining why the macro is implemented as it is. sl@0: sl@0: 2006-09-11 Andreas Kupries sl@0: sl@0: * tests/msgcat.test: Bumped version in auxiliary files as well. sl@0: * doc/msgcat.n: sl@0: sl@0: 2006-09-11 Daniel Steffen sl@0: sl@0: * unix/tclUnixCompat.c: make compatLock static and only declare it sl@0: when it will actually be used; #ifdef parts of TSD that are not always sl@0: needed; adjust #ifdefs to cover all possible cases; fix whitespace. sl@0: sl@0: 2006-09-10 Don Porter sl@0: sl@0: * library/msgcat/msgcat.tcl: Bump to version msgcat 1.3.4 to account sl@0: * library/msgcat/pkgIndex.tcl: for modifications. sl@0: sl@0: 2006-09-10 Daniel Steffen sl@0: sl@0: * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback of sl@0: * tests/msgcat.test: default msgcat locale to sl@0: * unix/tclUnixInit.c (TclpSetVariables): current CFLocale sl@0: identifier if available (via private ::tcl::mac::locale global, set at sl@0: interp init when on Mac OS X 10.3 or later with CoreFoundation). sl@0: sl@0: * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2006-09-08 Andreas Kupries sl@0: sl@0: * unix/tclUnixCompat.c: Fixed conditions for CopyArray/CopyString, and sl@0: CopyHostent. Also fixed bad var names in TclpGetHostByName. sl@0: sl@0: 2006-09-08 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixCompat.c: Added fallback to gethostbyname() and sl@0: gethostbyaddr() if the implementation is known to be MT-safe sl@0: (currently for Darwin 6 or later only). sl@0: sl@0: * unix/configure.in: Assume gethostbyname() and gethostbyaddr() are sl@0: MT-safe starting with Darwin 6 (Mac OSX 10.2). sl@0: sl@0: * unix/configure: Regenerated with autoconf V2.13 sl@0: sl@0: 2006-09-07 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixFCmd.c: Removed some false tests added (and left by sl@0: mistake) by fixing [Bug 999544] sl@0: sl@0: * unix/tclUnixCompat.c: Added fallback to MT-unsafe library calls if sl@0: TCL_THREADS is not defined. Fixed alignment of arrays copied by sl@0: CopyArrayi() to be on the sizeof(char *) boundary. sl@0: sl@0: 2006-09-07 Andreas Kupries sl@0: sl@0: * unix/configure: Regenerated using autoconf 2.13. sl@0: sl@0: 2006-09-07 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixChan.c Rewritten MT-safe wrappers to sl@0: * unix/tclUnixCompat.c return ptrs to TSD storage sl@0: * unix/tclUnixFCmd.c making them all look like their sl@0: * unix/tclUnixPort.h MT-unsafe pendants API-wise. sl@0: * unix/tclUnixSock.c sl@0: sl@0: 2006-09-06 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixChan.c: Added TCL_THREADS ifdef'ed usage sl@0: * unix/tclUnixFCmd.c: of MT-safe calls like: sl@0: * unix/tclUnixSock.c: getpwuid, getpwnam, getgrgid, getgrnam, sl@0: * unix/tclUnixPort.h: gethostbyname and gethostbyaddr. sl@0: * unix/Makefile.in: See Tcl Bug: 999544 sl@0: * unix/configure.in: sl@0: * unix/tcl.m4: sl@0: * unix/configure: Regenerated. sl@0: sl@0: * unix/tclUnixCompat.c: New file containing MT-safe implementation of sl@0: some library calls. sl@0: sl@0: 2006-09-04 Don Porter sl@0: sl@0: * tests/main.text (Tcl_Main-4.4): Test corrected to not be sl@0: timing sensitive to the Bug 1481986 fix. [Bug 1550858] sl@0: sl@0: 2006-09-04 Jeff Hobbs sl@0: sl@0: * doc/package.n: correct package example sl@0: sl@0: 2006-08-30 Jeff Hobbs sl@0: sl@0: * win/tclWinChan.c: [Bug 819667] Improve logic for identifying COM sl@0: ports. sl@0: sl@0: * win/tclWinFCmd.c: [Bug 1548263] Added test for NULL return sl@0: * generic/tclIOUtil.c: from Tcl_FSGetNormalizedPath which was sl@0: causing segv's sl@0: sl@0: * generic/tclFileName.c (TclDoGlob): match incr with existing decr. sl@0: sl@0: * unix/Makefile.in: add valgrindshell target and update default sl@0: VALGRINDARGS. User can override, or add to it with VALGRIND_OPTS env sl@0: var. sl@0: sl@0: * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadId sl@0: sl@0: * generic/tclIOGT.c (ExecuteCallback): sl@0: * generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj) sl@0: with more efficient Tcl_Eval(Obj)Ex sl@0: sl@0: 2006-08-22 Andreas Kupries sl@0: sl@0: * unix/tclUnixNotfy.c (Tcl_WaitForEvent): Fixed broken if syntax sl@0: committed 2006-08-21 by Daniel. The broken syntax is visible to all sl@0: unix platforms, but not on OSX for machines which HAVE_COREFOUNDATION. sl@0: sl@0: 2006-08-21 Don Porter sl@0: sl@0: * generic/tclIOUtil.c: Revisions to complete the thread finalization sl@0: of the cwdPathPtr. [Bug 1536142] sl@0: sl@0: 2006-08-21 Daniel Steffen sl@0: sl@0: * macosx/tclMacOSXNotify.c (Tcl_WaitForEvent): if the run loop is sl@0: already running (e.g. if Tcl_WaitForEvent was called recursively), sl@0: re-run it in a custom run loop mode containing only the source for the sl@0: notifier thread, otherwise wakeups from other sources added to the sl@0: common run loop modes might get lost; sync panic msg changes from sl@0: HEAD. sl@0: sl@0: * unix/tclUnixNotfy.c (Tcl_WaitForEvent): on 64-bit Darwin, sl@0: pthread_cond_timedwait() appears to have a bug that causes it to wait sl@0: forever when passed an absolute time which has already been exceeded sl@0: by the system time; as a workaround, when given a very brief timeout, sl@0: just do a poll on that platform. [Bug 1457797] sl@0: sl@0: * unix/tclUnixPort.h (Darwin): override potentially faulty configure sl@0: detection of termios availability in all cases, since termios is known sl@0: to be present on all Mac OS X releases since 10.0. [Bug 497147] sl@0: sl@0: 2006-08-18 Daniel Steffen sl@0: sl@0: * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, for sl@0: universal builds including x86_64, for 64-bit CoreFoundation on sl@0: Leopard and for use of -mmacosx-version-min instead of sl@0: MACOSX_DEPLOYMENT_TARGET. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: * generic/tcl.h: add fixes for building on Leopard and support sl@0: * unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard. sl@0: sl@0: * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it sl@0: causes execve to fail intermittently. (rdar://4685553) sl@0: sl@0: * macosx/README: updates for x86_64 support and Xcode 2.4. sl@0: sl@0: * unix/tclUnixChan.c (TclUnixWaitForFile): with timeout < 0, if sl@0: select() returns early (e.g. due to a signal), call it again instead sl@0: of returning a timeout result. Fixes intermittent event-13.8 failures. sl@0: sl@0: 2006-08-09 Don Porter sl@0: sl@0: * generic/tclEncoding.c: Replace buffer copy in for loop with sl@0: call to memcpy(). Thanks to afredd. [Patch 1530262] sl@0: sl@0: 2006-08-03 Daniel Steffen sl@0: sl@0: * unix/tclUnixPipe.c (TclpCreateProcess): for USE_VFORK: ensure sl@0: standard channels are initialized before vfork() so that the child sl@0: doesn't potentially corrupt global state in the parent's address sl@0: space. sl@0: sl@0: 2006-07-30 Kevin Kenny sl@0: sl@0: * tests/clock.test: Allowed UTC as a synonym for GMT in two tests that sl@0: indirectly invoke 'strftime' with the result of 'gmtime' to fix a sl@0: bogus test failure on FreeBSD systems. [Bug 1513489] sl@0: sl@0: 2006-07-30 Joe English sl@0: sl@0: * doc/AppInit.3: Fix typo [Bug 1496886] sl@0: sl@0: 2006-07-20 Daniel Steffen sl@0: sl@0: * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): sl@0: create notifier thread lazily upon first call to Tcl_WaitForEvent() sl@0: rather than in Tcl_InitNotifier(). Allows calling exeve() in processes sl@0: where the event loop has not yet been run (Darwin's execve() fails in sl@0: processes with more than one thread), in particular allows embedders sl@0: to call fork() followed by execve(), previously the pthread_atfork() sl@0: child handler's call to Tcl_InitNotifier() would immediately recreate sl@0: the notifier thread in the child after a fork. sl@0: sl@0: * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): add support for sl@0: * unix/tclUnixFCmd.c (DoRenameFile, CopyFileAtts): weakly importing sl@0: * unix/tclUnixInit.c (TclpSetInitialEncodings): symbols not sl@0: available on OSX 10.2 or 10.3, enables binaires built on later OSX sl@0: versions to run on earlier ones. sl@0: * macosx/README: document how to enable weak-linking; cleanup. sl@0: * unix/tclUnixPort.h: add support for weak-linking; conditionalize sl@0: AvailabilityMacros.h inclusion; only disable realpath on 10.2 or sl@0: earlier when threads are enabled. sl@0: * unix/tclLoadDyld.c (TclpLoadMemoryGetBuffer): change runtime Darwin sl@0: * unix/tclUnixInit.c (TclpInitPlatform): release check to use sl@0: global initialized once sl@0: * unix/tclUnixFCmd.c (DoRenameFile, TclpObjNormalizePath): add runtime sl@0: Darwin release check to determine if realpath is threadsafe. sl@0: * unix/configure.in: add check on Darwin for compiler support of weak sl@0: * unix/tcl.m4: import and for AvailabilityMacros.h header; move sl@0: Darwin specific checks & defines that are only relevant to the tcl sl@0: build out of tcl.m4; restrict framework option to Darwin; cleanup sl@0: quoting. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: * unix/tclLoadDyld.c (TclpLoadMemory): sl@0: * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned sl@0: comparison and other warnings from gcc4 -Wextra. sl@0: sl@0: 2006-07-13 Andreas Kupries sl@0: sl@0: * unix/tclUnixPort.h: Added the inclusion of . sl@0: The missing header caused the upcoming #if conditions to wrongly sl@0: exclude realpath, causing file normalize to ignore symbolic links in sl@0: the path. sl@0: sl@0: 2006-07-11 Zoran Vasiljevic sl@0: sl@0: * generic/tclAsync.c: Made Tcl_AsyncDelete() more tolerant when called sl@0: after all thread TSD has been garbage-collected. sl@0: sl@0: 2006-07-10 Jeff Hobbs sl@0: sl@0: * generic/tclIO.c (Tcl_CreateChannel): allow Tcl std channel sl@0: inheritance to be #defined out (default remains in). sl@0: sl@0: 2006-06-15 Don Porter sl@0: sl@0: * changes: changes to start prep for an 8.4.14 release. sl@0: sl@0: 2006-06-14 Daniel Steffen sl@0: sl@0: * unix/tclUnixPort.h (Darwin): support for MAC_OS_X_VERSION_MAX_ALLOWED sl@0: define from AvailabilityMacros.h: override configure detection and only sl@0: use API available in the indicated OS version or earlier. sl@0: sl@0: 2006-06-14 Pat Thoyts sl@0: sl@0: * generic/regerror.c: Enable building Tcl with Microsoft's latest sl@0: * generic/tcl.h: compiler offering (VS2005). We have to handle sl@0: * generic/tclDate.c: a number of oddities as they have deprecated sl@0: * tests/env.test: most of the standard C library and now sl@0: * win/makefile.vc: generate manifest files to be linked into the sl@0: * win/nmakehlp.c: binaries. [Bug 1424909] sl@0: * win/rules.vc: sl@0: * win/tclWinTime.c: sl@0: sl@0: 2006-06-13 Donal K. Fellows sl@0: sl@0: * unix/tclLoadDl.c (TclpDlopen): Workaround for a compiler bug in Sun sl@0: Forte 6. [Bug 1503729] sl@0: sl@0: 2006-06-06 Don Porter sl@0: sl@0: * doc/GetStdChan.3: Added recommendation that each call to sl@0: Tcl_SetStdChannel() be accompanied by a call to Tcl_RegisterChannel(). sl@0: sl@0: 2006-05-31 Jeff Hobbs sl@0: sl@0: * generic/tclNamesp.c (NamespaceInscopeCmd): revert [Bug 1400572] sl@0: fix of 2006-01-09 for [namespace inscope] as it seems to mess with sl@0: itcl scope decoding. Leaving namespace-29.6 test failure until final sl@0: cause it determined. sl@0: sl@0: 2006-05-29 Jeff Hobbs sl@0: sl@0: * generic/tcl.h (Tcl_DecrRefCount): use if/else construct to allow sl@0: placement in unbraced outer if/else conditions. (jcw) sl@0: sl@0: 2006-05-27 Daniel Steffen sl@0: sl@0: * macosx/tclMacOSXNotify.c: implemented pthread_atfork() handler that sl@0: * unix/tcl.m4 (Darwin): recreates CoreFoundation state and notifier sl@0: thread in the child after a fork(). Note that pthread_atfork() is sl@0: available starting with Tiger only. Because vfork() is used by the core sl@0: on Darwin, [exec]/[open] are not affected by this fix, only extensions sl@0: or embedders that call fork() directly (such as TclX). However, this sl@0: only makes fork() safe from corefoundation tcl with --disable-threads; sl@0: as on all platforms, forked children may deadlock in threaded tcl due sl@0: to the potential for stale locked mutexes in the child. [Patch 923072] sl@0: * unix/configure: autoconf-2.59 sl@0: sl@0: 2006-05-24 Donal K. Fellows sl@0: sl@0: * unix/tcl.m4 (SC_CONFIG_SYSTEM): Fixed quoting of command script to sl@0: awk; it was a rarely used branch, but it was wrong. [Bug 1494160] sl@0: sl@0: 2006-05-13 Don Porter sl@0: sl@0: * generic/tclFileName.c (TclDoGlob): Disabled the partial sl@0: normalization done by the recursive glob routine, since changing the sl@0: precise string of the pathname broke [glob] on some Tcl_Filesystems. sl@0: [Bug 943995] sl@0: sl@0: * generic/tclProc.c (ProcCompileProc): When a bump of the compile sl@0: epoch forces the re-compile of a proc body, take care not to sl@0: overwrite any Proc struct that may be referred to on the active sl@0: call stack. This fixes [Bug 1482718]. Note that the fix will not be sl@0: effective for code that calls the private routine TclProcCompileProc() sl@0: directly. sl@0: sl@0: 2006-05-05 Don Porter sl@0: sl@0: * generic/tclMain.c (Tcl_Main): Corrected flaw that required sl@0: * tests/main.test: (Tcl_Main-4.5): processing of one interactive sl@0: command before passing control to the loop routine registered with sl@0: Tcl_SetMainLoop() [Bug 1481986] sl@0: sl@0: 2006-05-04 Don Porter sl@0: sl@0: * README: Bump version number to 8.4.14 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: * win/configure: sl@0: sl@0: * generic/tclExecute.c (ExprSrandFunc): Restore acceptance of wide sl@0: * tests/expr-old.test: integer values by srand() [Bug 1480509] sl@0: sl@0: 2006-04-12 Don Porter sl@0: sl@0: *** 8.4.13 TAGGED FOR RELEASE *** sl@0: sl@0: * changes: updates for another RC. sl@0: sl@0: 2006-04-11 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c: Stop some interference between enter traces sl@0: * tests/trace.test: and enterstep traces. [Bug 1458266] sl@0: sl@0: 2006-04-10 Don Porter sl@0: sl@0: * changes: updates for another RC. sl@0: sl@0: 2006-04-06 Jeff Hobbs sl@0: sl@0: * generic/tclRegexp.c (FinalizeRegexp): full reset data to indicate sl@0: readiness for reinitialization. sl@0: sl@0: 2006-04-06 Don Porter sl@0: sl@0: * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seems there sl@0: * tests/indexObj.test: are extensions that rely on the prior behavior sl@0: * doc/GetIndex.3: that the empty string cannot succeed as a sl@0: unique prefix matcher, so I'm restoring Donal Fellows's solution. sl@0: Added mention of this detail to the documentation. [Bug 1464039] sl@0: sl@0: 2006-04-06 Daniel Steffen sl@0: sl@0: * unix/tcl.m4: removed TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING sl@0: define on Darwin. [Bug 1457515] sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2006-04-05 Don Porter sl@0: sl@0: * library/reg/pkgIndex.tcl: Long overlooked bump to registry sl@0: * win/tclWinReg.c: package version 1.1.4 (should have sl@0: been done for the Tcl 8.4.8 release!) sl@0: sl@0: * library/dde/pkgIndex.tcl: Long overlooked bump to dde package sl@0: * win/tclWinDde.c: version 1.2.4 (should have been done sl@0: for the Tcl 8.4.8 release!) sl@0: sl@0: 2006-04-05 Donal K. Fellows sl@0: sl@0: * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow empty sl@0: strings to be matched by the Tcl_GetIndexFromObj machinery, in the sl@0: same manner as any other key. [Bug 1464039] sl@0: sl@0: 2006-04-04 Don Porter sl@0: sl@0: * generic/tclPkg.c: Revised Bug 1162286 fix from 2005-11-08 to be sl@0: * tests/pkg.test: even more forgiving of package version sl@0: mismatch errors in [package ifneeded] commands, not even logging any sl@0: warning messages. This further reduces the sl@0: ***POTENTIAL INCOMPATIBILITY*** noted for that change. sl@0: sl@0: 2006-04-03 Andreas Kupries sl@0: sl@0: * generic/tclIO.c (ReadChars): Added check, panic and commentary to a sl@0: piece of code which relies on BUFFER_PADDING to create enough space at sl@0: the beginning of each buffer for the insertion of partial multibyte sl@0: data at the beginning of a buffer. Commentary explains why this code sl@0: is OK, and the panic is as a precaution if someone twiddled the sl@0: BUFFER_PADDING into uselessness. sl@0: sl@0: * generic/tclIO.c (ReadChars): Temporarily suppress the use of sl@0: TCL_ENCODING_END set when EOF was reached while the buffer we are sl@0: converting is not truly the last buffer in the queue. Together with sl@0: the Utf bug below it was possible to completely wreck the buffer data sl@0: structures, eventually crashing Tcl. [Bug 1462248] sl@0: sl@0: * generic/tclEncoding.c (UtfToUtfProc): Stop accessing memory beyond sl@0: the end of the input buffer when TCL_ENCODING_END is set and the last sl@0: bytes of the buffer start a multi-byte sequence. This bug contributed sl@0: to [Bug 1462248]. sl@0: sl@0: 2006-03-28 Jeff Hobbs sl@0: sl@0: * win/configure, win/tcl.m4: define MACHINE for gcc builds as well. sl@0: Needed by Tk for manifest generation. sl@0: sl@0: * win/tclWinConsole.c: revert 2005-11-03 [Patch 1256872] change to add sl@0: win32 unicode console support as it broke the ability to modify the sl@0: encoding to the console. sl@0: sl@0: 2006-03-28 Daniel Steffen sl@0: sl@0: * unix/tclUnixFCmd.c (TclpObjNormalizePath): deal with *BSD/Darwin sl@0: realpath() converting relative paths into absolute paths. [Bug 1064247] sl@0: sl@0: 2006-03-28 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: fix to nativeFilesystemRecord comparisons sl@0: (lesser part of [Bug 1064247]) sl@0: sl@0: 2006-03-27 Pat Thoyts sl@0: sl@0: * win/tclWinTest.c: Fixes for [Bug 1456373] (mingw-gcc issue) sl@0: sl@0: 2006-03-23 Don Porter sl@0: sl@0: * tests/expr.test: Nan self-inquality test silenced. [Bug 761471] sl@0: sl@0: 2006-03-22 Don Porter sl@0: sl@0: * changes: updates for another RC. sl@0: sl@0: 2006-03-18 Vince Darley sl@0: sl@0: * generic/tclTest.c: sl@0: * win/tclWinFile.c: sl@0: * win/tclWinTest.c: sl@0: * tests/fCmd.test: sl@0: * tests/winFCmd.test: sl@0: * tests/tcltest.test: Backport of [file writable] fixes for Windows sl@0: from HEAD. [Bug 1193497] sl@0: sl@0: 2006-03-16 Andreas Kupries sl@0: sl@0: * doc/open.n: Documented the changed behaviour of 'a'ppend mode. sl@0: sl@0: * tests/io.test (io-43.1 io-44.[1234]): Rewritten to be sl@0: self-contained with regard to setup and cleanup. [Bug 681793] sl@0: sl@0: * generic/tclIOUtil.c (TclGetOpenMode): Added the flag O_APPEND to the sl@0: list of POSIX modes used when opening a file for 'a'ppend. This sl@0: enables the proper automatic seek-to-end-on-write by the OS. See [Bug sl@0: 680143] for longer discussion. sl@0: sl@0: * tests/ioCmd.test (iocmd-13.7.*): Extended the testsuite to check the sl@0: new handling of 'a'. sl@0: sl@0: 2006-03-15 Andreas Kupries sl@0: sl@0: * tests/socket.test: Extended the timeout in socket-11.11 from 10 to sl@0: 40 seconds to allow for really slow machines. Also extended sl@0: actual/expected results with value of variable 'done' to make it sl@0: clearer when a test fails due to a timeout. [Bug 792159] sl@0: sl@0: 2006-03-14 Andreas Kupries sl@0: sl@0: * generic/tclPipe.c (TclCreatePipeline): Modified the processing of sl@0: pipebars to fail if the last bar is followed only by redirections. sl@0: [Bug 768659] sl@0: sl@0: 2006-03-14 Andreas Kupries sl@0: sl@0: * doc/fconfigure.n: Clarified that -translation is binary is reported sl@0: as lf when queried, because it is identical to lf, except for the sl@0: special additional behaviour when setting it. [Bug 666770] sl@0: sl@0: 2006-03-14 Andreas Kupries sl@0: sl@0: * win/tclWinPipe.c (Tcl_WaitPid): Backport of fix made to the head by sl@0: David Gravereaux in 2004. See ChangeLog entry 2004-01-19. [Bug 1381436] sl@0: sl@0: Fixed a thread-safety problem with the process list. The delayed cut sl@0: operation after the wait was going stale by being outside the list sl@0: lock. It now cuts within the lock and does a locked splice for when it sl@0: needs to instead. [Bug 859820] sl@0: sl@0: 2006-03-13 Don Porter sl@0: sl@0: * generic/tclEncoding.c: Report error when an escape encoding sl@0: is missing one of its sub-encodings [Bug 506653] sl@0: sl@0: * unix/configure.in: Revert change from 2005-07-26 that sometimes sl@0: * unix/configure: added $prefix/share to the tcl_pkgPath. sl@0: See [Patch 1231015]. autoconf-2.13. sl@0: sl@0: 2006-03-10 Zoran Vasiljevic sl@0: sl@0: -- Summary of changes fixing [Bug 1437595] -- sl@0: sl@0: * generic/tclEvent.c: Cosmetic touches and identation sl@0: * generic/tclInt.h: Added TclpFinalizeSockets() call. sl@0: sl@0: * generic/tclIO.c: Calls TclpFinalizeSockets() as part of the sl@0: TclFinalizeIOSubsystem(). sl@0: sl@0: * unix/tclUnixSock: Added no-op TclpFinalizeSockets(). sl@0: sl@0: * mac/tclMacSock.c: sl@0: * win/tclWinPipe.c sl@0: * win/tclWinSock.c: Finalization of the sockets/pipes is now solely sl@0: done in TclpFinalizeSockets() and TclpFinalizePipes() and not over the sl@0: thread-exit handler, because the order of actions the Tcl generic core sl@0: will impose may result in cores/hangs if the thread exit handler tears sl@0: down corresponding subsystem(s) too early. sl@0: sl@0: 2006-03-10 Vince Darley sl@0: sl@0: * win/tclWin32Dll.c: sl@0: * win/tclWinInt.h: sl@0: * win/tclWinFile.c: backported some fixes from HEAD relating to 'file sl@0: readable' and 'file writable', but main 'file writable' bug still sl@0: outstanding. sl@0: sl@0: 2006-03-07 Don Porter sl@0: sl@0: * README: Bump version number to 8.4.13 and update sl@0: * changes: changes to start prep for an 8.4.13 release. sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure{.in}: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure{.in}: sl@0: sl@0: * tests/parse.test: Missing constraint sl@0: sl@0: 2006-03-06 Don Porter sl@0: sl@0: * generic/tclBasic.c: Revised handling of TCL_EVAL_* flags to sl@0: * tests/parse.test: simplify TclEvalObjvInternal and to correct sl@0: the auto-loading of alias targets (parse-8.12). [Bug 1444291] sl@0: sl@0: 2006-03-02 Jeff Hobbs sl@0: sl@0: * win/Makefile.in: convert _NATIVE paths to use / to avoid ".\" sl@0: path-as-escape issue. sl@0: sl@0: * unix/tcl.m4, win/tcl.m4: []-quote ac_defun functions. sl@0: sl@0: 2006-03-02 Pat Thoyts sl@0: sl@0: * unix/tcl.m4: Fix for [Tk Bug 1334613] to sort out shared library sl@0: * unix/configure: issues on NetBSD. Regenerated configure script. sl@0: sl@0: 2006-02-28 Don Porter sl@0: sl@0: * generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBAL sl@0: * tests/parse.test: evaluations act the same as [uplevel #0] sl@0: * tests/trace.test: evaluations, even when execution traces or sl@0: invocations of [::unknown] are present. [Bug 1439836] sl@0: sl@0: 2006-02-16 Don Porter sl@0: sl@0: * generic/tclIndexObj.c: Disallow the "ambiguous" error message sl@0: * tests/indexObj.test: when TCL_EXACT matching is requested. sl@0: sl@0: 2006-02-15 Don Porter sl@0: sl@0: * generic/tclIO.c: Made several routines tolerant of sl@0: * generic/tclIOUtil.c: interp == NULL arguments. [Bug 1380662] sl@0: sl@0: 2006-02-09 Don Porter sl@0: sl@0: * tests/main.test (Tcl_Main-6.7): Improved robustness of command sl@0: auto-completion test. [Bug 1422736] sl@0: sl@0: 2006-01-25 Donal K. Fellows sl@0: sl@0: * unix/tclUnixInit.c (TclpInitPlatform): Improved conditions on when sl@0: to update the FP rounding mode on FreeBSD, taken from FreeBSD port. sl@0: sl@0: 2006-01-23 Miguel Sofer sl@0: sl@0: * generic/tclStringObj.c (Tcl_GetRange): sl@0: * tests/stringTest (string-12.21):fixed incorrect handling of internal sl@0: rep in Tcl_GetRange. Thanks to twylite and Peter Spjuth. [Bug 1410553] sl@0: sl@0: 2006-01-16 Reinhard Max sl@0: sl@0: * generic/tclPipe.c (FileForRedirect): Prevent nameString from being sl@0: freed without having been initialized. sl@0: * tests/exec.test: Added a test for the above. sl@0: sl@0: 2006-01-12 Zoran Vasiljevic sl@0: sl@0: * generic/tclIOUtil.c (Tcl_FSGetInternalRep): fixed potential sl@0: overwriting of already freed memory which caused all kinds of (rare sl@0: but reproducible) coredumps all over the place. sl@0: sl@0: 2006-01-11 Don Porter sl@0: sl@0: * tests/error.test (error-7.0): Test the timing of write traces on sl@0: ::errorInfo. [Bug 1397843] sl@0: sl@0: 2006-01-10 Daniel Steffen sl@0: sl@0: * unix/configure: add caching, use AC_CACHE_CHECK instead of sl@0: * unix/configure.in: AC_CACHE_VAL where possible, consistent message sl@0: * unix/tcl.m4: quoting, sync relevant tclconfig/tcl.m4 and HEAD sl@0: changes and gratuitous formatting differences, fix SC_CONFIG_MANPAGES sl@0: with default argument, Darwin improvements to SC_LOAD_*CONFIG. sl@0: sl@0: 2006-01-09 Don Porter sl@0: sl@0: * generic/tclNamesp.c (NamespaceInscopeCmd): [namespace inscope] sl@0: * tests/namespace.test: commands were not reported by [info level]. sl@0: [Bug 1400572] sl@0: sl@0: 2005-12-20 Donal K. Fellows sl@0: sl@0: * generic/tclThreadAlloc.c (Tcl_GetMemoryInfo): Format values as longs sl@0: and not ints, so they are less likely to wrap on 64-bit machines. sl@0: sl@0: 2005-12-19 Donal K. Fellows sl@0: sl@0: * doc/Tcl.n: Clarify what is going on in variable substitution sl@0: following thread on comp.lang.tcl. sl@0: sl@0: 2005-12-14 Daniel Steffen sl@0: sl@0: * generic/tclIOUtil.c: workaround gcc warning "comparison is always sl@0: * generic/tclTest.c: false due to limited range of data type". sl@0: sl@0: * unix/configure.in: run check for fts API on all platforms, since sl@0: Linux glibc2 and *BSDs also have this and using fts is more efficient sl@0: than recursive opendir/readdir (sync with HEAD). sl@0: * unix/configure: regen. sl@0: sl@0: 2005-12-12 Jeff Hobbs sl@0: sl@0: * unix/tcl.m4, unix/configure: Fix sh quoting error reported in sl@0: bash-3.1+ [Bug 1377619] (schafer) sl@0: sl@0: 2005-12-12 Reinhard Max sl@0: sl@0: * generic/tclExecute.c (ExprAbsFunc): fixed the abs(MIN_INT) case so sl@0: that it doesn't break on compilers that don't assume integers to wrap sl@0: around (e.g. gcc-4.1.0). sl@0: sl@0: 2005-12-09 Donal K. Fellows sl@0: sl@0: * tests/lsearch.test (lsearch-10.8..10): If the -start is off the end, sl@0: * generic/tclCmdIL.c (Tcl_LsearchObjCmd): searching should find sl@0: nothing at all. [Bug 1374778] sl@0: sl@0: 2005-12-05 Daniel Steffen sl@0: sl@0: *** 8.4.12 TAGGED FOR RELEASE *** sl@0: sl@0: * unix/tclUnixPort.h (Darwin): fix incorrect __DARWIN_UNIX03 configure sl@0: overrides that were originally copied from Darwin CVS (rdar://3693001). sl@0: sl@0: 2005-12-05 Don Porter sl@0: sl@0: * unix/configure.in: Revised fix for [Bug 1034337] from Daniel sl@0: * unix/tclUnixFCmd.c: Steffen. Uses fts_*() routines. sl@0: * unix/configure: autoconf-2.13 sl@0: * changes: Update changes for 8.4.12 release sl@0: sl@0: 2005-12-04 Daniel Steffen sl@0: sl@0: * README: refer to macosx/README instead of mac/README. sl@0: * mac/README: add note that mac classic port is no longer supported. sl@0: sl@0: 2005-12-03 Jeff Hobbs sl@0: sl@0: * README: correct 2 urls sl@0: sl@0: 2005-12-01 Don Porter sl@0: sl@0: * changes: Update changes for 8.4.12 release sl@0: sl@0: 2005-12-01 Daniel Steffen sl@0: sl@0: * unix/tcl.m4 (Darwin): fixed error when MACOSX_DEPLOYMENT_TARGET unset sl@0: * unix/configure: regen. sl@0: sl@0: 2005-11-29 Jeff Hobbs sl@0: sl@0: * win/tcl.m4: Add build support for Windows-x64 builds. sl@0: * win/configure: --enable-64bit now accepts =amd64|ia64 for sl@0: * win/Makefile.in: Windows 64-bit build variants (default: amd64) sl@0: * win/makefile.vc: [Bug 1369597] sl@0: sl@0: 2005-11-29 Donal K. Fellows sl@0: sl@0: * generic/tclObj.c (Tcl_GetWideIntFromObj): Add more efficient sl@0: conversion to wides from normal ints. [Bug 1310081] sl@0: sl@0: * generic/tclCmdIL.c (Tcl_LsearchObjCmd): Allow [lsearch -regexp] to sl@0: process REs that contain backreferences. This expensive mode of sl@0: operation is only used if the RE would otherwise cause a compilation sl@0: failure. [Bug 1366683] sl@0: sl@0: 2005-11-28 Donal K. Fellows sl@0: sl@0: * win/tclWinSock.c (CreateSocket): Applied [Patch 1353853] to prevent sl@0: reads of uninitialized variables during cleanup. sl@0: sl@0: 2005-11-27 Daniel Steffen sl@0: sl@0: * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(), sl@0: add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to sl@0: configure (flag can't be present twice, so can't be in both CFLAGS and sl@0: LDFLAGS during configure), don't use -prebind when deploying on 10.4, sl@0: define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). sl@0: (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete sl@0: autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. sl@0: sl@0: * unix/configure.in: fix obsolete autoconf macros, sync gratuitous sl@0: formatting/ordering differences with tk/unix/configure.in. sl@0: sl@0: * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make sl@0: executable linking the same as during configure (needed to avoid sl@0: loosing any linker relevant flags in CFLAGS, in particular flags that sl@0: can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling sl@0: of tclTestInit.o or xtTestInit.o during parallel make. sl@0: (checkstubs, checkdoc, checkexports): dependency and Darwin fixes sl@0: sl@0: * unix/tclLoadDyld.c (TclpDlopen): [Bug 1204237] use sl@0: NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only. sl@0: (TclGuessPackageName): should not be MODULE_SCOPE. sl@0: (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for sl@0: loading universal (fat) bundles from memory. sl@0: sl@0: * unix/tclUnixPort.h: sl@0: * unix/tclUnixFCmd.c: add support for new Tiger copyfile() API to sl@0: enable copying of xattrs & ACLs by [file copy]. sl@0: sl@0: * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE sl@0: defines to support fat compiles of ppc and ppc64 at the same time, sl@0: (replaces Darwin CVS fix by emoy, rdar://3693001). sl@0: add/correct location of version numbers in macosx files. sl@0: sl@0: * generic/tclInt.h: clarify fat compile comment. sl@0: sl@0: * unix/tclUnixPort.h: add Darwin specifc configure overrides to sl@0: support fat compiles, where configure runs only once for multiple sl@0: architectures (replaces Darwin CVS fix by emoy, rdar://3693001). sl@0: sl@0: * macosx/tclMacOSXBundle.c: sl@0: * macosx/tclMacOSXNotify.c: sl@0: * unix/tclUnixNotfy.c: fix #include order to support compile time sl@0: * unix/tclUnixPort.h: override of HAVE_COREFOUNDATION in sl@0: tclUnixPort.h when building for ppc64 sl@0: sl@0: * macosx/Tcl.pbproj/default.pbxuser (new file): sl@0: * macosx/Tcl.pbproj/jingham.pbxuser: sl@0: * macosx/Tcl.pbproj/project.pbxproj: sync with HEAD. sl@0: sl@0: * macosx/README: clarification/cleanup, sync with HEAD, document sl@0: universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once). sl@0: sl@0: * macosx/Makefile: add support for reusing configure cache, build sl@0: target fixes, remove GENERIC_FLAGS override now handled by tcl.m4. sl@0: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclRegexp.c: sl@0: * generic/tclVar.c: declare globals used only in own file as static sl@0: (sync with HEAD). sl@0: sl@0: * generic/rege_dfa.c (getvacant): sl@0: * generic/regexec.c (cfind): sl@0: * generic/tclCompExpr.c (CompileSubExpr): sl@0: * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to sl@0: silence gcc 4 warnings. sl@0: sl@0: * generic/regguts.h: only #define NDEBUG if not already #defined. sl@0: sl@0: * macosx/tclMacOSXNotify.c: sync whitespace & comments with HEAD sl@0: sl@0: * unix/configure: regen. sl@0: sl@0: 2005-11-20 Joe English sl@0: sl@0: * generic/tclStubLib.c: Don't set tclStubsPtr to 0 when sl@0: Tcl_PkgRequireEx() fails [Fix for [Bug 1091431] "Tcl_InitStubs failure sl@0: crashes wish"] sl@0: sl@0: 2005-11-18 Miguel Sofer sl@0: sl@0: * tests/trace.test (trace-34.5): [Bug 1047286], added a second test sl@0: illustrating the role of "ns in callStack" in the ns's visibility sl@0: during deletion traces. sl@0: sl@0: * generic/tclBasic.c (Tcl_DeleteCommandFromToken): sl@0: * generic/tclCmdMZ.c (TraceCommandProc): sl@0: * generic/tclInt.h (NS_KILLED): sl@0: * generic/tclNamesp.c (Tcl_DeleteNamespace sl@0: * tests/namespace.test (namespace-7.3-6): sl@0: * tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342]. sl@0: sl@0: 2005-11-18 Jeff Hobbs sl@0: sl@0: * generic/tclIO.c (TclFinalizeIOSubsystem): preserve statePtr until we sl@0: netrieve next statePtr from it. sl@0: sl@0: 2005-11-18 Don Porter sl@0: sl@0: * generic/tclPkg.c: Revised Bug 1162286 fix from 2005-11-08 to be sl@0: * tests/pkg.test: more forgiving of package version mismatch sl@0: errors in [package ifneeded] commands. This reduces the sl@0: ***POTENTIAL INCOMPATIBILITY*** noted for that change. sl@0: sl@0: 2005-11-18 Andreas Kupries sl@0: sl@0: * generic/tclIO.c (TclFinalizeIOSubsystem): Applied Pat Thoyts' patch sl@0: for [Bug 1359094]. This moves the retrieval of the next channel state sl@0: to the end of the loop, as the called closeproc may close other sl@0: channels, i.e., modify the list we are iterating, invalidating any sl@0: pointer retrieved earlier. sl@0: sl@0: 2005-11-18 Donal K. Fellows sl@0: sl@0: * library/http/http.tcl (http::geturl): Improved syntactic validation sl@0: of URLs, and better error messages in some cases. [Bug 1358369] sl@0: sl@0: 2005-11-16 Don Porter sl@0: sl@0: * README: Bump version number to 8.4.12 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: * win/configure: sl@0: sl@0: 2005-11-15 Don Porter sl@0: sl@0: * changes: Update changes for 8.4.12 release sl@0: sl@0: 2005-11-15 Kevin B. Kenny sl@0: sl@0: * tests/cmdAH.test: Backported the fix for [Bug 926016] because of sl@0: * win/tclWinFile.c: a repeated bug report in 8.4 [Bug 1353840]. sl@0: Windows [file mtime] will now return seconds from the Posix epoch sl@0: correctly (except for FAT32 file systems after a DST change without a sl@0: reboot - for which there is no help). A side effect is that file times sl@0: will appear different in Tcl from the way they do in Windows Explorer sl@0: or a 'dir' listing, because the Microsoft tools get the DST state sl@0: wrong in the listings. sl@0: sl@0: 2005-11-09 Kevin B. Kenny sl@0: sl@0: * generic/tclTimer.c: Changed [after] so that it behaves correctly sl@0: * tests/timer.test: with negative arguments. [Bug 1350293] sl@0: sl@0: 2005-11-08 Jeff Hobbs sl@0: sl@0: * unix/tclUnixFCmd.c (MAX_READDIR_UNLINK_THRESHOLD): reduce to 130 sl@0: based on errors seen on OS X 10.3 with lots of links in a dir. [Bug sl@0: 1034337 followup] sl@0: sl@0: 2005-11-08 Don Porter sl@0: sl@0: * tests/expr.test: Portable tests expr-46.13-18 [Bug 1341368] sl@0: sl@0: * generic/tclPkg.c: Corrected inconsistencies in the value returned sl@0: * tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned sl@0: values will always agree with what is stored in the package database. sl@0: This way repeated calls to Tcl_PkgRequire(Ex) have the same results. sl@0: Thanks to Hemang Lavana. [Bug 1162286] sl@0: ***POTENTIAL INCOMPATIBILITY***: Incompatible with those existing sl@0: packages that are accustomed to the [package] command forgiving sl@0: their bugs. sl@0: sl@0: * tests/namespace.test (25.7,8): Backport test of knownBug. sl@0: sl@0: 2005-11-08 Donal K. Fellows sl@0: sl@0: * generic/tclCmdMZ.c (TclTraceVariableObjCmd, TraceVarProc): Applied sl@0: Miguel's fix for [Bug 1348775]. It is not quite as elegant as the one sl@0: applied to the HEAD, but it is easier to use it rather than fully sl@0: backporting. sl@0: sl@0: 2005-11-07 Miguel Sofer sl@0: sl@0: * tests/trace.test (trace-13.2-4): added tests to detect leak, see sl@0: [Bug 1348775]. sl@0: sl@0: 2005-11-04 Don Porter sl@0: sl@0: * unix/tcl.m4: Added code to enable [load] on LynxOS. Thanks to sl@0: heidibr@users.sf.net for the patch. [Bug 1163896] sl@0: sl@0: * unix/configure: autoconf-2.13. sl@0: sl@0: 2005-11-04 Pat Thoyts sl@0: sl@0: * win/tclWinPipe.c: Applied [Patch 1267871] by Matt Newman which sl@0: * win/tclWinPort.h: provides extended error code support. sl@0: * tests/exec.test: Wrote some tests for this feature. sl@0: sl@0: 2005-11-04 Kevin Kenny sl@0: sl@0: * generic/tclGetDate.y: Added abbreviations for the Korean timezone. sl@0: * generic/tclDate.c: Regenerated. sl@0: sl@0: * compat/strftime.c: Fixed a problem where the name of the time zone sl@0: was double-converted from system encoding to UTF-8. Thanks to the sl@0: anonymous submitter of [Bug 1317477] for the report and the patch. sl@0: sl@0: 2005-11-04 Miguel Sofer sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tclNamesp.c: sl@0: * generic/tclVar.c: fix for [Bugs 1338280/1337229]. Thanks Don. sl@0: sl@0: * tests/trace.test: fix duplicate test numbers sl@0: sl@0: 2005-11-03 Don Porter sl@0: sl@0: * generic/tclUnixInit.c (TclpSetInitialEncodings): Modified so sl@0: that multiple calls can continue to atttempt to properly set the sl@0: system encoding. Needed for Tclkit to properly support non-default sl@0: encodings. Thanks to Yaroslav Schekin. [Bug 1201171] sl@0: sl@0: 2005-11-03 Pat Thoyts sl@0: sl@0: * win/tclWin32Dll.c: Backported Anton Kovalenko's [Patch 1256872] sl@0: * win/tclWinConsole.c: to give unicode console support on sl@0: * win/tclWinInt.h: suitable systems (eg: NT/XP) sl@0: sl@0: 2005-11-01 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c (TclCheckExecutionTraces): Corrected mistaken sl@0: assumption that all command traces are set at the script level. sl@0: Report/fix from Jacques H. de Villiers. [Bug 1337941] sl@0: sl@0: * tests/expr-old.test (expr-32.52): Use int(.) to restrict result sl@0: of left shift to the C long range. sl@0: sl@0: 2005-10-29 Mo DeJong sl@0: sl@0: * tests/expr.test: Fix problems in new round() tests that lead to sl@0: correct result only on 32 bit long systems. [Bug 1341368] sl@0: sl@0: 2005-10-29 Miguel Sofer sl@0: sl@0: * generic/tclCmdMZ.c (TraceVarProc): [Bug 1337229], partial fix. sl@0: Ensure that a second call with TCL_TRACE_DESTROYED does not lead to a sl@0: second call to Tcl_EventuallyFree(). It is still true that that second sl@0: call should not happen, so the bug is not completely fixed. sl@0: * tests/trace.test (test-18.3-4): added tests for [Bugs 1337229 and sl@0: 1338280]. sl@0: sl@0: 2005-10-27 Mo DeJong sl@0: sl@0: * generic/tclExecute.c (ExprRoundFunc): Fix typo where number before sl@0: rounding is compared with smallest integer instead of number after sl@0: rounding. This fix does not change the results of any tests. sl@0: * tests/expr.test: Add round() tests for cases near the min and max sl@0: int values. sl@0: * tests/util.test: Remove pointless warning code about testobj command sl@0: sl@0: 2005-10-23 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c: sl@0: * generic/tclBinary.c: sl@0: * generic/tclCmdAH.c: sl@0: * generic/tclCmdIL.c: sl@0: * generic/tclCmdMZ.c: sl@0: * generic/tclExecute.c: sl@0: * generic/tclLink.c: sl@0: * generic/tclMain.c: sl@0: * generic/tclProc.c: sl@0: * generic/tclScan.c: sl@0: * generic/tclTest.c: sl@0: * generic/tclVar.c: sl@0: * mac/tclMacInit.c: sl@0: * unix/tclUnixInit.c: sl@0: * win/tclWinInit.c: Ensure that the core never calls TclPtrSetVar, sl@0: Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new sl@0: value. It is not possible to handle error returns correctly in that sl@0: case [Bug 1334947], one has the choice of leaking the object in some sl@0: cases, or else risk crashing in some others. sl@0: sl@0: 2005-10-22 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (INST_CONCAT): disable the optimisation for sl@0: wide integers. [Bug 1251791] sl@0: sl@0: 2005-10-14 Zoran Vasiljevic sl@0: sl@0: * generic/tclIO.c (Tcl_ClearChannelHandlers): removed change dated sl@0: 2005-10-04 below. Look into [Bug 1323992] for detailed discussion. sl@0: sl@0: 2005-10-13 Donal K. Fellows sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): Stop [format] from seeing sl@0: the difference between ints and wides. [Bug 1284178] sl@0: sl@0: 2005-10-13 Zoran Vasiljevic sl@0: sl@0: * generic/tclIO.c (Tcl_ClearChannelHandlers): temporary sl@0: ifdef TCL_THREADS changes done to de-activate pending sl@0: event processing when channel is being closed/cutted. sl@0: sl@0: 2005-10-10 Jeff Hobbs sl@0: sl@0: * generic/tclInt.h: ensure MODULE_SCOPE decl sl@0: sl@0: 2005-10-07 Jeff Hobbs sl@0: sl@0: * unix/tclUnixFCmd.c (TraverseUnixTree): Adjust 2004-11-11 change to sl@0: * tests/fCmd.test (fCmd-20.2): account for NFS special sl@0: files with a readdir rewind threshold. [Bug 1034337] sl@0: sl@0: 2005-10-05 Andreas Kupries sl@0: sl@0: * generic/tclPipe.c (TclCreatePipeline): Fixed [Bug 1109294]. Applied sl@0: the patch provided by David Gravereaux. sl@0: sl@0: * doc/CrtChannel.3: Fixed [Bug 1104682], by application of David sl@0: Welton's patch for it, and added a note about wideSeekProc. sl@0: sl@0: 2005-10-05 Jeff Hobbs sl@0: sl@0: * tests/env.test (env-6.1): sl@0: * win/tclWinPort.h: define USE_PUTENV_FOR_UNSET 1 sl@0: * generic/tclEnv.c (TclSetEnv, TclUnsetEnv): add sl@0: USE_PUTENV_FOR_UNSET to existing USE_PUTENV define to account for sl@0: various systems that have putenv(), but can't unset env vars with it. sl@0: Note difference between Windows and Linux for actually unsetting the sl@0: env var (use of '='). sl@0: Correct the resizing of the environ array. We assume that we are in sl@0: full ownership, but that's not correct. [Bug 979640] sl@0: sl@0: 2005-10-04 Jeff Hobbs sl@0: sl@0: * win/tclWinSerial.c (SerialSetOptionProc): free argv [Bug 1067708] sl@0: sl@0: * tests/http.test: Do not URI encode -._~ according to sl@0: * library/http/http.tcl (init): RFC3986. [Bug 1182373] (aho) sl@0: sl@0: * generic/tclIOUtil.c (TclFSNormalizeAbsolutePath): make static sl@0: * generic/tclEncoding.c (TclFindEncodings): make static sl@0: sl@0: * unix/tclLoadShl.c (TclpDlopen): use DYNAMIC_PATH on second sl@0: shl_load only. [Bug 1204237] sl@0: sl@0: 2005-10-04 Zoran Vasiljevic sl@0: sl@0: * generic/tclIO.c (Tcl_ClearChannelHandlers): now deletes any sl@0: outstanding timer for the channel. Also, prevents events still sl@0: in the event queue from triggering on the current channel. sl@0: sl@0: * generic/tclTimer.c (Tcl_DeleteTimerHandler): bail out early sl@0: if passed NULL argument. sl@0: sl@0: 2005-09-30 Don Porter sl@0: sl@0: * generic/tclMain.c: Separate encoding conversion of command line sl@0: arguments from list formatting. [Bug 1306162] sl@0: sl@0: 2005-09-27 Donal K. Fellows sl@0: sl@0: * generic/tclBinary.c (FormatNumber): Factorize out copying of double sl@0: values to a helper to work around ugly broken compiler problems. [Bug sl@0: 1116542] sl@0: sl@0: 2005-09-15 Miguel Sofer sl@0: sl@0: * doc/ParseCmd.3: copy/paste fix [Bug 1292427] sl@0: sl@0: 2005-09-15 Donal K. Fellows sl@0: sl@0: * unix/tcl.m4 (SC_TCL_EARLY_FLAGS): Added extra hack to allow Tcl to sl@0: transparently open large files on RHEL 3. [Bug 1287638] sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2005-09-07 Don Porter sl@0: sl@0: * generic/tclUtf.c (Tcl_UniCharToUtf): Corrected handling of negative sl@0: * tests/utf.test (utf-1.5): Tcl_UniChar input value. Incorrect sl@0: handling was producing byte sequences outside of Tcl's legal internal sl@0: encoding. [Bug 1283976] sl@0: sl@0: 2005-08-29 Kevin Kenny sl@0: sl@0: * generic/tclBasic.c (ExprMathFunc): Restored "round away from zero" sl@0: * tests/expr.test (expr-46.*): behaviour to the "round" sl@0: function. Added test cases for the behavior, including the awkward sl@0: case of a number whose fractional part is 1/2-1/2ulp. [Bug 1275043] sl@0: sl@0: 2005-08-25 Donal K. Fellows sl@0: sl@0: * generic/tclListObj.c (UpdateStringOfList): Stop uncontrolled and sl@0: unsafe crashes from happening when working with very large string sl@0: representations. [Bug 1267380] sl@0: sl@0: 2005-08-17 Jeff Hobbs sl@0: sl@0: * generic/tclFCmd.c (TclFileMakeDirsCmd): fix to race condition in sl@0: file mkdir (backport from head 2005-06-13) [Bug 1217375] sl@0: sl@0: 2005-08-16 Kevin Kenny sl@0: sl@0: * generic/tclEvent.c (Tcl_Finalize): Pushed Tcl_FinalizeLoad and sl@0: Tcl_ResetFilesystem down after Tcl_FinalizeThreadAlloc because sl@0: unloading DLLs can't happen while they still own TSD keys. sl@0: (This is a backport of changes made in the HEAD on 2005-08-10.) sl@0: sl@0: 2005-08-05 Donal K. Fellows sl@0: sl@0: * unix/tclUnixInit.c (localeTable): Solaris uses a non-standard name sl@0: for the cp1251 charset. Thanks to Victor Wagner for reporting this. sl@0: [Bug 1252475] sl@0: sl@0: 2005-08-05 Kevin Kenny sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): Fixed a corner case sl@0: * tests/expr.test (expr-38.1): where applying abs to sl@0: MIN_INT failed to promote the result to a wide integer. [Bug 1241572] sl@0: sl@0: 2005-08-04 Don Porter sl@0: sl@0: * generic/tclObj.c: Simplified routines that manage the typeTable. sl@0: sl@0: 2005-08-03 Don Porter sl@0: sl@0: * generic/tclCompExpr.c: Untangled some dependencies in the sl@0: * generic/tclEvent.c: order of finalization routines. sl@0: * generic/tclInt.h: [Bug 1251399] sl@0: * generic/tclObj.c: sl@0: sl@0: 2005-07-30 Daniel Steffen sl@0: sl@0: * unix/configure, unix/tcl.m4: revert 2005-07-28 change. sl@0: sl@0: * unix/tclLoadDyld.c (TclpDlopen, TclpLoadMemory): workarounds for sl@0: bugs/changes in behaviour in Mac OS X 10.4 Tiger, sync formatting sl@0: changes from HEAD. sl@0: sl@0: 2005-07-29 Donal K. Fellows sl@0: sl@0: * generic/tclCmdIL.c (InfoGlobalsCmd): Even in high-speed mode, still sl@0: have to take care with non-existant variables. [Bug 1247135] sl@0: sl@0: 2005-07-28 Mo DeJong sl@0: sl@0: * win/README: Update link to msys_mingw8.zip. Remove old Cygwin + sl@0: Mingw info, people should just build with the msys + mingw sl@0: configuration. sl@0: sl@0: 2005-07-28 Jeff Hobbs sl@0: sl@0: * unix/configure, unix/tcl.m4: defined TCL_LOAD_FROM_MEMORY on Darwin sl@0: only for SHARED_BUILD sl@0: sl@0: 2005-07-28 Donal K. Fellows sl@0: sl@0: * generic/tclPipe.c (TclCreatePipeline): Arrange for POSIX systems to sl@0: * unix/tclUnixPipe.c (TclpOpenFile): use the O_APPEND flag for sl@0: * tests/exec.test (exec-19.1): files opened in a pipeline sl@0: like ">>this". Note that Windows cannot support such access; there is sl@0: no equivalent flag on the handle that can be set at the kernel-call sl@0: level. The test is unix-specific in every way. [Bug 1245953] sl@0: sl@0: 2005-07-26 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/configure.in: Check for a $prefix/share directory and add it sl@0: the the package if found. This will check for Tcl packages in sl@0: /usr/local/share when Tcl is configured with the default dist install. sl@0: [Patch 1231015] sl@0: sl@0: 2005-07-26 Don Porter sl@0: sl@0: * doc/tclvars.n: Improved $errorCode documentation. [RFE 776921] sl@0: sl@0: * generic/tclBasic.c (Tcl_CallWhenDeleted): Converted to use sl@0: per-thread counter, rather than a process global one that required sl@0: mutex protection. [RFE 1077194] sl@0: sl@0: * generic/tclNamesp.c (TclTeardownNamespace): Re-ordering so that sl@0: * tests/trace.test (trace-34.4): command delete traces fire sl@0: while the command still exists. [Bug 1047286] sl@0: sl@0: 2005-07-24 Mo DeJong sl@0: sl@0: * unix/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH): sl@0: * win/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH): sl@0: Split confused search for tclsh on PATH and build and install sl@0: locations into two macros. SC_PROG_TCLSH searches just the PATH. sl@0: SC_BUILD_TCLSH determines the name of the tclsh executable in the Tcl sl@0: build directory. [Bug 1160114], [Patch 1244153] sl@0: sl@0: 2005-07-22 Don Porter sl@0: sl@0: * library/auto.tcl: Updates to the Tcl script library to make sl@0: * library/history.tcl: use of Tcl 8.4 feautures. Thanks to sl@0: * library/init.tcl: Patrick Fradin for prompting on this. sl@0: * library/package.tcl: [Patch 1237755] sl@0: * library/safe.tcl: sl@0: * library/word.tcl: sl@0: sl@0: 2005-07-07 Jeff Hobbs sl@0: sl@0: * unix/tcl.m4, unix/configure: Backported [Bug 1095909], removing sl@0: * unix/tclUnixPort.h: any use of readdir_r as it is not sl@0: * unix/tclUnixThrd.c: necessary and just confuses things. sl@0: sl@0: 2005-07-05 Don Porter sl@0: sl@0: * generic/tclCmdAH.c: New "encoding" Tcl_ObjType (not registered) sl@0: * generic/tclEncoding.c: that permits longer lifetimes of the sl@0: * generic/tclInt.h: Tcl_Encoding values kept as intreps of sl@0: Tcl_Obj's. Reduces the need for repeated reading of encoding sl@0: definition files from the filesystem. [Bug 1077262] sl@0: sl@0: * generic/tclNamesp.c: Allow for [namespace import] of a command sl@0: * tests/namespace.test: over a previous [namespace import] of itself sl@0: without throwing an error. [RFE 1230597] sl@0: sl@0: 2005-07-01 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixNotfy.c: protect against spurious wake-ups while waiting sl@0: on the condition variable when tearing down the notifier thread. [Bug sl@0: 1222872] sl@0: sl@0: 2005-06-27 Don Porter sl@0: sl@0: *** 8.4.11 TAGGED FOR RELEASE *** sl@0: sl@0: * library/auto.tcl: Reverted to Revision 1.12.2.3 (Tcl 8.4.9). sl@0: Restores the (buggy) behavior of [auto_reset] that fails to clear sl@0: away auto-loaded commands from non-global namespaces. Fixing this sl@0: bug exposed an unknown number of buggy files out there (including at sl@0: least portions of the Tk script library) that cannot tolerate double sl@0: [source]-ing. The burden of fixing these exposed bugs will not be sl@0: forced on package/extension/application authors until Tcl 8.5. sl@0: sl@0: 2005-06-24 Kevin Kenny sl@0: sl@0: * generic/tclEvent.c (Tcl_Finalize): sl@0: * generic/tclInt.h: sl@0: * generic/tclPreserve.c (TclFinalizePreserve): Changed the sl@0: finalization logic so that Tcl_Preserve finalizes after exit sl@0: handlers run; a lot of code called from Tk's exit handlers sl@0: presumes tha Tcl_Preserve will still work even from an exit sl@0: handler. Also, made the assertion check that no exit handlers sl@0: are created in Tcl_Finalize conditional on TCL_MEM_DEBUG to sl@0: avoid spurious panics in the "stable" release. sl@0: sl@0: 2005-06-24 Don Porter sl@0: sl@0: * library/auto.tcl: Make file safe to re-[source] without sl@0: destroying registered auto_mkindex_parser hooks. sl@0: sl@0: 2005-06-23 Daniel Steffen sl@0: sl@0: * tools/tcltk-man2html.tcl: fixed useversion glob pattern to accept sl@0: multi-digit patchlevels. sl@0: sl@0: 2005-06-23 Kevin Kenny sl@0: sl@0: * win/tclWinChan.c: More rewriting of __asm__ blocks that sl@0: * win/tclWinFCmd.c: implement SEH in GCC, because mingw's sl@0: gcc 3.4.2 is not as forgiving of violations committed by sl@0: the old code and caused panics. [Bug 1225957] sl@0: sl@0: 2005-06-23 Daniel Steffen sl@0: sl@0: * unix/Makefile.in (install-private-headers): rewrite tclPort.h when sl@0: installing private headers to remove ../unix relative #include path to sl@0: tclUnixPort.h (which is incorrect at the installed location). sl@0: sl@0: 2005-06-22 Kevin Kenny sl@0: sl@0: * generic/tclInt.h: Changed the finalization sl@0: * generic/tclEvent.c (Tcl_Finalize): logic to defer the sl@0: * generic/tclIO.c (TclFinalizeIOSubsystem): shutdown of the pipe sl@0: * unix/tclUnixPipe.c (TclFinalizePipes): management until after sl@0: * win/tclWinPipe.c (TclFinalizePipes): all channels have been sl@0: closed, in order to avoid a situation where the Windows sl@0: PipeCloseProc2 would re-establish the exit handler after exit sl@0: handlers had already run, corrupting the heap. [Bug 1225727] sl@0: Corrected a read of uninitialized memory in PipeCloseProc2, which (at sl@0: least on certain configurations) caused a great number of tests to sl@0: either fail or hang. [Bug 1225044] sl@0: sl@0: 2005-06-22 Andreas Kupries sl@0: sl@0: * generic/tclInt.h: Followup to change made on 2005-06-18 by Daniel sl@0: Steffen. There are compilers (*) who error out on the redefinition of sl@0: WORDS_BIGENDIAN. We have to undef the previous definition (on the sl@0: command line) first to make this acceptable. (*): AIX native. sl@0: sl@0: 2005-06-22 Don Porter sl@0: sl@0: * win/tclWinFile.c: Potential buffer overflow. [Bug 1225571] sl@0: Thanks to Pat Thoyts for discovery and fix. sl@0: sl@0: * tests/safe.test: Backport performance improvement from sl@0: reduced $::auto_path. sl@0: sl@0: 2005-06-21 Pat Thoyts sl@0: sl@0: * tests/winDde.test: Added some waits to the dde server script to sl@0: let event processing run after we create the dde server and before sl@0: we exit the server process. This avoids 'server did not respond' sl@0: errors. sl@0: sl@0: 2005-06-21 Kevin Kenny sl@0: sl@0: * generic/tclFileName.c: Corrected a problem where a directory name sl@0: containing a colon can crash the process on Windows [Bug 1194458] sl@0: * tests/fileName.test: Added test for [file split] and [file join] sl@0: with a name containing a colon. sl@0: * win/tclWinPipe.c: Reverted davygrvy's changes of 2005-04-19; sl@0: they cause multiple failures in io.test. [Bug 1225044, still open] sl@0: sl@0: 2005-06-21 Don Porter sl@0: sl@0: * generic/tclBasic.c: Made the walk of the active trace list aware sl@0: * generic/tclCmdMZ.c: of the direction of trace scanning, so the sl@0: * generic/tclInt.h: proper correction can be made. [Bug 1224585] sl@0: * tests/trace.test (trace-34.2,3): sl@0: sl@0: * generic/tclBasic.c (Tcl_DeleteTrace): Added missing walk of the sl@0: * tests/trace.test (trace-34.1): list of active traces to sl@0: cleanup references to traces being deleted. [Bug 1201035] sl@0: sl@0: 2005-06-20 Don Porter sl@0: sl@0: * doc/FileSystem.3: added missing Tcl_GlobTypeData documentation [Bug sl@0: 935853] sl@0: sl@0: 2005-06-18 Daniel Steffen sl@0: sl@0: * generic/tclInt.h: ensure WORDS_BIGENDIAN is defined correctly with sl@0: fat compiles on Darwin (i.e. ppc and i386 at the same time), the sl@0: configure AC_C_BIGENDIAN check is not sufficient in this case because sl@0: a single run of the compiler builds for two architectures with sl@0: different endianness. sl@0: sl@0: * unix/tcl.m4 (Darwin): add -headerpad_max_install_names to LDFLAGS to sl@0: ensure we can always relocate binaries with install_name_tool. sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2005-06-18 Don Porter sl@0: sl@0: * changes: Update changes for 8.4.11 release sl@0: sl@0: * README: Bump version number to 8.4.11 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf sl@0: * win/configure: sl@0: sl@0: 2005-06-18 Donal K. Fellows sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): Fix for [Bug 1154163]; only sl@0: * tests/format.test: insert 'l' modifier when it is needed. sl@0: sl@0: 2005-06-07 Donal K. Fellows sl@0: sl@0: * unix/tclUnixNotfy.c (Tcl_FinalizeNotifier): Add dummy variable sl@0: so threaded build compiles. sl@0: sl@0: 2005-06-06 Kevin B. Kenny sl@0: sl@0: * win/tclWin32Dll.c: Corrected another buglet in the assembly code for sl@0: stack probing on Win32/gcc. [Bug 1213678] sl@0: sl@0: 2005-06-03 Daniel Steffen sl@0: sl@0: *** 8.4.10 TAGGED FOR RELEASE *** sl@0: sl@0: * unix/tclLoadDyld.c: fixed header conflict when building this file sl@0: with USE_TCL_STUBS. sl@0: sl@0: * macosx/Makefile: fixed 'embedded' target. sl@0: sl@0: 2005-06-02 Jeff Hobbs sl@0: sl@0: * unix/Makefile.in (html): add BUILD_HTML_FLAGS optional var sl@0: * tools/tcltk-man2html.tcl: add a --useversion to prevent sl@0: confusion when multiple Tcl source dirs exist. sl@0: sl@0: * changes: updated for 8.4.10 release (porter) sl@0: sl@0: 2005-05-31 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixNotfy.c: the notifier thread is now created as sl@0: joinable thread and it is properly joined in Tcl_FinalizeNotifier. sl@0: This is an attempt to fix [Bug 1082283] sl@0: sl@0: 2005-05-29 Jeff Hobbs sl@0: sl@0: * win/tclWinThrd.c (TclpFinalizeThreadData): move tlsKey defn sl@0: to top of file and clarify name (was 'key'). [Bug 1204064] sl@0: sl@0: 2005-05-27 Jeff Hobbs sl@0: sl@0: * README: Bumped patchlevel to 8.4.10 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/tcl.spec, unix/configure, unix/configure.in: sl@0: * win/configure, win/configure.in: sl@0: sl@0: 2005-05-26 Daniel Steffen sl@0: sl@0: * macosx/Makefile: moved & corrected EMBEDDED_BUILD check. sl@0: sl@0: * unix/configure.in: corrected framework finalization to softlink sl@0: stub library to Versions/8.x subdir instead of Versions/Current. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2005-05-25 Jeff Hobbs sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_TimeObjCmd): add necessary cast sl@0: sl@0: * unix/configure, unix/configure.in: ensure false Tcl.framework is sl@0: only created with --enable-framework sl@0: sl@0: 2005-05-24 Daniel Steffen sl@0: sl@0: * tests/env.test: added DYLD_FRAMEWORK_PATH to the list of env vars sl@0: that need to be handled specially. sl@0: sl@0: * macosx/Makefile: sl@0: * macosx/README: sl@0: * macosx/Tcl-Info.plist.in (new file): sl@0: * unix/Makefile.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.m4: sl@0: * unix/tclUnixInit.c: moved all Darwin framework build support from sl@0: macosx/Makefile into the standard unix configure/make buildsystem, the sl@0: macosx/Makefile is no longer required to build Tcl.framework (but its sl@0: functionality is still available for backwards compatibility). sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: * generic/tclIOUtil.c (TclLoadFile): sl@0: * generic/tclInt.h: sl@0: * unix/tcl.m4: sl@0: * unix/tclLoadDyld.c: added support for [load]ing .bundle binaries in sl@0: addition to .dylib's: .bundle's can be [unload]ed (unlike .dylib's), sl@0: and can be [load]ed from memory, e.g. directly from VFS without sl@0: needing to be written out to a temporary location first. [Bug 1202209] sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_TimeObjCmd): change [time] called with a sl@0: count > 1 to return a string with a float value instead of a rounded sl@0: off integer. [Bug 1202178] sl@0: sl@0: 2005-05-20 Zoran Vasiljevic sl@0: sl@0: * generic/tclParseExpr.c: removed unreferenced stack variable "errMsg" sl@0: probably included by fixing [Bug 1201589] (see below). sl@0: sl@0: 2005-05-20 Don Porter sl@0: sl@0: * generic/tclParseExpr.c: Corrected parser to recognize all sl@0: boolean literals accepted by Tcl_GetBoolean, including prefixes like sl@0: "y" and "f", and to allow "eq" and "ne" as function names in the sl@0: proper context. [Bug 1201589] sl@0: sl@0: 2005-05-19 Daniel Steffen sl@0: sl@0: * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): fixed crashing sl@0: CFRelease of runLoopSource in Tcl_InitNotifier (reported by Zoran): sl@0: CFRunLoopAddSource doesn't CFRetain, so can only CFRelease the sl@0: runLoopSource in Tcl_FinalizeNotifier. sl@0: sl@0: 2005-05-14 Daniel Steffen sl@0: sl@0: * macosx/tclMacOSXBundle.c: sl@0: * unix/tclUnixInit.c: sl@0: * unix/tcl.m4 (Darwin): made use of CoreFoundation API configurable sl@0: and added test of CoreFoundation availablility to allow building on sl@0: ppc64, replaced HAVE_CFBUNDLE by HAVE_COREFOUNDATION; test for sl@0: availability of Tiger or later OSSpinLockLock API. sl@0: sl@0: * unix/tclUnixNotfy.c: sl@0: * unix/Makefile.in: sl@0: * macosx/tclMacOSXNotify.c (new file): when CoreFoundation is sl@0: available, use new CFRunLoop based notifier: allows easy integration sl@0: with other event loops on Mac OS X, in particular the TkAqua Carbon sl@0: event loop is now integrated via a standard tcl event source (instead sl@0: of TkAqua upon loading having to finalize the exsting notifier and sl@0: replace it with its custom version). [Patch 1202052] sl@0: sl@0: * tests/unixNotfy.test: don't run unthreaded tests on Darwin since sl@0: notifier may be using threads even in unthreaded core. sl@0: sl@0: * unix/tclUnixPort.h: sl@0: * unix/tcl.m4 (Darwin): test for thread-unsafe realpath durning sl@0: configure, as Darwin 7 and later realpath is threadsafe. sl@0: sl@0: * macosx/tclMacOSXBundle.c: sl@0: * unix/tclLoadDyld.c: sl@0: * unix/tclUnixInit.c: fixed gcc 4.0 warnings. sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2005-05-10 Jeff Hobbs sl@0: sl@0: * tests/string.test: string-10.[21-30] sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd): add extra checks to sl@0: prevent possible UMR in unichar cmp function for string map. sl@0: sl@0: 2005-05-06 Jeff Hobbs sl@0: sl@0: * unix/tcl.m4, unix/configure: correct Solaris 10 (5.10) check and sl@0: add support for x86_64 Solaris cc builds. sl@0: sl@0: 2005-04-29 Donal K. Fellows sl@0: sl@0: * doc/FileSystem.3: Backport of doc fix. [Bug 1172401] sl@0: sl@0: 2005-04-27 Don Porter sl@0: sl@0: * library/init.tcl: Corrected flaw in interactive command sl@0: * tests/main.test: auto-completion. [Bug 1191409] sl@0: sl@0: * tests/unixInit.test (7.1): Alternative fix for the sl@0: 2005-04-22 commit. sl@0: sl@0: 2005-04-25 Daniel Steffen sl@0: sl@0: * compat/string.h: fixed memchr() protoype for __APPLE__ so that we sl@0: build on Mac OS X 10.1 again. sl@0: sl@0: * generic/tclNotify.c (TclFinalizeNotifier): fixed notifier not being sl@0: finalized in unthreaded core (was testing for notifier initialization sl@0: in current thread by checking thread id != 0 but thread id is always 0 sl@0: in untreaded core). sl@0: sl@0: * unix/tclUnixNotfy.c (Tcl_WaitForEvent): sync with HEAD: only declare sl@0: and use timeout var in unthreaded core. sl@0: sl@0: * unix/Makefile.in: added @PLAT_SRCS@ to SRCS and split out sl@0: NOTIFY_SRCS from UNIX_SRCS for parity with UNIX_OBJS & NOTIFY_OBJS. sl@0: sl@0: * unix/configure.in: only run check for broken strstr implementation sl@0: if AC_REPLACE_FUNCS(strstr) hasn't already determined that strstr is sl@0: unavailable, otherwise compat/strstr.o will be used twice (resulting sl@0: in duplicate symbol link errors on Mac OS X 10.1) sl@0: sl@0: * unix/tcl.m4 (Darwin): added configure checks for recently added sl@0: linker flags -single_module and -search_paths_first to allow building sl@0: with older tools (and on Mac OS X 10.1), use -single_module in sl@0: SHLIB_LD and not just T{CL,K}_SHLIB_LD_EXTRAS, added unexporting from sl@0: Tk of symbols from libtclstub to avoid duplicate symbol warnings, sl@0: added PLAT_SRCS definition for Mac OS X. sl@0: (SC_MISSING_POSIX_HEADERS): added caching of dirent.h check. sl@0: (SC_TCL_64BIT_FLAGS): fixed 'checking for off64_t' message output. sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2005-04-22 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c: Corrected intrep-dependence of sl@0: * tests/string.test: [string is boolean] [Bug 1187123] sl@0: sl@0: 2005-04-22 Daniel Steffen sl@0: sl@0: * tests/unixInit.test (7.1): fixed failure when running tests with sl@0: -tmpdir arg not set to working dir. sl@0: sl@0: 2005-04-20 Don Porter sl@0: sl@0: * generic/tclGet.c (Tcl_GetInt): Corrected error that did not sl@0: * generic/tclObj.c (Tcl_GetIntFromObj): permit 0x80000000 to be sl@0: recognized as an integer on TCL_WIDE_INT_IS_LONG systems [Bug 1090869] sl@0: sl@0: 2005-04-19 Jeff Hobbs sl@0: sl@0: * tests/winPipe.test (winpipe-6.2): remove -blocking 1 as this one sl@0: can truly block. sl@0: sl@0: 2005-04-19 David Gravereaux sl@0: sl@0: * win/tclWinPipe.c: The pipe channel driver now respects the -blocking sl@0: option when closing. The windows pipe driver now has the same behavior sl@0: as the UNIX side. This change is to avoid a hung shell when exiting sl@0: due to open pipes that refuse to close in a graceful manner. sl@0: * doc/open.n: Added a note about -blocking 0 and lack of exit status sl@0: as it had never been documented. [Bug 947693] sl@0: sl@0: ***POTENTIAL INCOMPATIBILITY*** sl@0: sl@0: Scripts that use async pipes on windows, must (like the UNIX side) set sl@0: -blocking to 1 before calling [close] to receive the exit status. sl@0: sl@0: * tests/winPipe.test (winpipe-6.1/2): added 'fconfigure $f -blocking sl@0: 1' so the exit status can be acquired. sl@0: sl@0: 2005-04-13 David Gravereaux sl@0: sl@0: * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limit sl@0: * tests/io.test: changed from ten bytes to one byte. Need for sl@0: * tests/iogt.test: this change was proven by Ross Cartlidge sl@0: where [read stdin 1] was grabbing 10 bytes followed sl@0: by starting a child process that was intended to continue reading from sl@0: stdin. Even with -buffersize set to one, nine chars were getting lost sl@0: by the buffersize over reading for the native read() caused by [read]. sl@0: sl@0: 2005-04-12 Kevin B. Kenny sl@0: sl@0: * compat/strstr.c: Added default definition of NULL to accommodate sl@0: building on systems with badly broken headers. [Bug 1175161] sl@0: sl@0: 2005-04-09 Daniel Steffen sl@0: sl@0: * macosx/README: updated requirements for OS & developer tool versions sl@0: + other small fixes/cleanup. sl@0: sl@0: * unix/tcl.m4 (Darwin): added -single_module linker flag to sl@0: TCL_SHLIB_LD_EXTRAS and TK_SHLIB_LD_EXTRAS. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2005-04-05 Zoran Vasiljevic sl@0: sl@0: Set of changes correcting huge memory waste (not a leak) when a thread sl@0: exits. This has been introduced in 8.4.7 within an attempt to sl@0: correctly cleanup after ourselves when Tcl library is being unloaded sl@0: with the Tcl_Finalize() call. sl@0: sl@0: This fixes the [Bug 1178445]. sl@0: sl@0: * generic/tclInt.h: added prototypes for TclpFreeAllocCache() and sl@0: TclFreeAllocCache() sl@0: sl@0: * generic/tclThreadAlloc.c: modified TclFinalizeThreadAlloc() to sl@0: explicitly call TclpFreeAllocCache with the NULL-ptr as argument sl@0: signalling cleanup of private tsd key used only by the threading sl@0: allocator. sl@0: sl@0: * unix/tclUnixThrd.c: fixed TclpFreeAllocCache() to recognize when sl@0: being called with NULL argument. This is a signal for it to clean up sl@0: the tsd key associated with the threading allocator. sl@0: sl@0: * win/tclWinThrd.c: renamed TclWinFreeAllocCache to TclpFreeAllocCache sl@0: and fixed to recognize when being called with NULL argument. This is a sl@0: signal for it to clean up the tsd key associated with the threading sl@0: allocator. sl@0: sl@0: 2005-04-05 Don Porter sl@0: sl@0: * generic/tclExecute.c (ExprSrandFunc): Replaced incursions into the sl@0: * generic/tclUtil.c (TclGetIntForIndex): intreps of numeric types with sl@0: simpler calls of Tcl_GetIntFromObj and Tcl_GetLongFromObj, now that sl@0: those routines are better behaved wrt shimmering. [Patch 1177129] sl@0: sl@0: 2005-03-29 Jeff Hobbs sl@0: sl@0: * win/tcl.m4, win/configure: do not require cygpath in macros to sl@0: allow msys alone as an alternative. sl@0: sl@0: * win/tclWinTime.c (TclpGetDate): use time_t for 'time' [Bug 1163422] sl@0: sl@0: 2005-03-18 Don Porter sl@0: sl@0: * generic/tclCompCmds.c (TclCompileIncrCmd): Corrected checks for sl@0: immediate operand usage to permit leading space and sign characters. sl@0: Restores more efficient bytecode for [incr x -1] that got lost in the sl@0: CONST string reforms of Tcl 8.4. [Bug 1165671] sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalEx,TclEvalTokensStandard): sl@0: * generic/tclCmdMZ.c (Tcl_SubstObj): sl@0: * tests/basic.test (basic-46.4): Restored recursion limit sl@0: * tests/parse.test (parse-19.*): testing in nested command sl@0: substitutions within direct script evaluation (Tcl_EvalEx) that got sl@0: lost in the parser reforms of Tcl 8.1. Added tests for correct sl@0: behavior. [Bug 1115904] sl@0: sl@0: 2005-03-15 Vince Darley sl@0: sl@0: * generic/tclFileName.c: sl@0: * win/tclWinFile.c: sl@0: * tests/winFCMd.test: fix to 'file pathtype' and 'file norm' failures sl@0: on reserved filenames like 'COM1:', etc. sl@0: sl@0: 2005-03-15 Kevin B. Kenny sl@0: sl@0: * generic/tclClock.c: sl@0: * generic/tclDate.c: sl@0: * generic/tclGetDate.y: sl@0: * generic/tclInt.decls: sl@0: * unix/tclUnixTime.c: sl@0: * win/tclWinTime.c: Replaced 'unsigned long' variable holding sl@0: times with 'Tcl_WideInt', to cope with systems on which a time_t is sl@0: wider than a long (Win64) [Bug 1163422] sl@0: * generic/tclIntDecls.h: Regen sl@0: sl@0: 2005-03-15 Pat Thoyts sl@0: sl@0: * unix/tcl.m4: Make it work on OpenBSD again. Imported patch sl@0: from the OpenBSD ports tree. sl@0: sl@0: 2005-03-10 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c (TclCheckInterpTraces): Corrected mistaken sl@0: cast of ClientData to (TraceCommandInfo *) when not warranted. Thanks sl@0: to Yuri Victorovich for the report. [Bug 1153871] sl@0: sl@0: 2005-03-08 Jeff Hobbs sl@0: sl@0: * win/makefile.vc: clarify necessary defined vars that can come sl@0: from MSVC or the Platform SDK. sl@0: sl@0: 2005-02-24 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Better use of [glob -types] to avoid sl@0: * tests/tcltest.test: failed attempts to [source] a directory, and sl@0: similar matters. Thanks to "mpettigr". [Bug 1119798] sl@0: sl@0: * library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.8 sl@0: sl@0: 2005-02-23 Donal K. Fellows sl@0: sl@0: * doc/CrtChannel.3 (THREADACTIONPROC): Formatting fix. [Bug 1149605] sl@0: sl@0: 2005-02-17 Jeff Hobbs sl@0: sl@0: * win/tclWinFCmd.c (TraverseWinTree): use wcslen on wchar, not sl@0: Tcl_UniCharLen. sl@0: sl@0: 2005-02-16 Miguel Sofer sl@0: sl@0: * doc/variable.n: fix for [Bug 1124160], variables are detected by sl@0: [info vars] but not by [info locals]. sl@0: sl@0: 2005-02-10 Jeff Hobbs sl@0: sl@0: * unix/Makefile.in: remove SHLIB_LD_FLAGS (only for AIX, inlined sl@0: * unix/tcl.m4: into SHLIB_LD). Combine AIX-* and AIX-5 sl@0: * unix/configure: branches in SC_CONFIG_CFLAGS. sl@0: Correct gcc builds for AIX-4+ and HP-UX-11. sl@0: sl@0: 2005-02-10 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalObjEx): sl@0: * tests/basic.test (basic-26.2): preserve the arguments passed to TEOV sl@0: in the pure-list branch, in case the list shimmers away. Fix for [Bug sl@0: 1119369], reported by Peter MacDonald. sl@0: sl@0: 2005-02-10 Donal K. Fellows sl@0: sl@0: * doc/binary.n: Made the documentation of sign bit masking and sl@0: [binary scan] consistent. [Bug 1117017] sl@0: sl@0: 2005-02-01 Don Porter sl@0: sl@0: * generic/tclExecute.c (TclCompEvalObj): Removed stray statement sl@0: left behind in prior code reorganization. sl@0: sl@0: 2005-01-28 Jeff Hobbs sl@0: sl@0: * unix/configure, unix/tcl.m4: add solaris 64-bit gcc build sl@0: support. [Bug 1021871] sl@0: sl@0: 2005-01-27 Jeff Hobbs sl@0: sl@0: * generic/tclBasic.c (Tcl_ExprBoolean, Tcl_ExprDouble) sl@0: (Tcl_ExprLong): Fix to recognize Tcl_WideInt type. [Bug 1109484] sl@0: sl@0: 2005-01-27 Andreas Kupries sl@0: sl@0: TIP#218 IMPLEMENTATION sl@0: sl@0: * generic/tclDecls.h: Regenerated from tcl.decls. sl@0: * generic/tclStubInit.c: sl@0: sl@0: * doc/CrtChannel.3: Documentation of extended API, sl@0: * generic/tcl.decls: extended testsuite, and sl@0: * generic/tcl.h: implementation. Removal of old sl@0: * generic/tclIO.c: driver-specific TclpCut/Splice sl@0: * generic/tclInt.h: functions. Replaced with generic sl@0: * tests/io.test: thread-action calls through the sl@0: * unix/tclUnixChan.c: new hooks. Update of all builtin sl@0: * unix/tclUnixPipe.c: channel drivers to version 4. sl@0: * unix/tclUnixSock.c: Windows drivers extended to sl@0: * win/tclWinChan.c: manage thread state in a thread sl@0: * win/tclWinConsole.c: action handler. sl@0: * win/tclWinPipe.c: sl@0: * win/tclWinSerial.c: sl@0: * win/tclWinSock.c: sl@0: * mac/tclMacChan.c: sl@0: sl@0: 2005-01-25 Don Porter sl@0: sl@0: * library/auto.tcl: Updated [auto_reset] to clear auto-loaded sl@0: procs in namespaces other than :: [Bug 1101670]. sl@0: sl@0: 2005-01-25 Daniel Steffen sl@0: sl@0: * unix/tcl.m4 (Darwin): fixed bug with static build linking to dynamic sl@0: library in /usr/lib etc instead of linking to static library earlier sl@0: in search path. [Bug 956908] sl@0: Removed obsolete references to Rhapsody. sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2005-01-19 Mo DeJong sl@0: sl@0: * win/tclWinChan.c (FileCloseProc): Invoke TclpCutFileChannel() to sl@0: remove a FileInfo from the thread local list before deallocating it. sl@0: This should have been done via an earlier call to Tcl_CutChannel, but sl@0: I was running into a crash in the next call to Tcl_CutChannel during sl@0: the IO finalization stage. sl@0: sl@0: 2005-01-17 Vince Darley sl@0: sl@0: * tests/winFCmd.test: made test independent of current drive. [Bug sl@0: 1066528] sl@0: sl@0: 2005-01-10 Donal K. Fellows sl@0: sl@0: * unix/tclUnixFCmd.c (CopyFile): Convert u_int to unsigned to make sl@0: clashes with types in standard C headers less of a problem. [Bug sl@0: 1098829] sl@0: sl@0: 2005-01-06 Donal K. Fellows sl@0: sl@0: * library/http/http.tcl (http::mapReply): Significant performance sl@0: enhancement by using [string map] instead of [regsub]/[subst], and sl@0: update version requirement to Tcl8.4. [Bug 1020491] sl@0: sl@0: 2005-01-05 Donal K. Fellows sl@0: sl@0: * unix/tclUnixInit.c (localeTable): Add encoding mappings for some sl@0: Chinese locales. [Bug 1084595] sl@0: sl@0: * doc/lsearch.n: Convert to other form of emacs mode control sl@0: comment to prevent problems with old versions of man. [Bug 1085127] sl@0: sl@0: 2004-12-29 Jeff Hobbs sl@0: sl@0: * win/tcl.m4, win/configure: update MSVC CFLAGS_OPT to -O2, remove sl@0: -Gs (included in -O2) and -GD (outdated). Use "link -lib" instead sl@0: of "lib" binary and remove -YX for MSVC7 portability. Add sl@0: -fomit-frame-pointer for gcc OPT compiles. [Bug 1092952, 1091967] sl@0: sl@0: 2004-12-13 Kevin B. Kenny sl@0: sl@0: * doc/clock.n: Clarify that the [clock scan] command does not accept sl@0: the full range of ISO8601 point-in-time formats. [Bug 1075433] sl@0: sl@0: 2004-12-09 Donal K. Fellows sl@0: sl@0: * doc/Async.3: Reword for better grammar, better nroff and get the sl@0: flag name right. (Reported by David Welton.) sl@0: sl@0: 2004-12-06 Jeff Hobbs sl@0: sl@0: *** 8.4.9 TAGGED FOR RELEASE *** sl@0: sl@0: * unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits [Bug sl@0: 1079286] sl@0: sl@0: 2004-12-02 Jeff Hobbs sl@0: sl@0: * changes: updated for 8.4.9 release sl@0: sl@0: 2004-12-02 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: fix and new tests for [Bug 1074671] to sl@0: * tests/fileSystem.test: ensure tilde paths are not returned specially sl@0: by 'glob'. sl@0: sl@0: 2004-12-01 Don Porter sl@0: sl@0: * library/auto.tcl (tcl_findLibrary): Disabled use of [file normalize] sl@0: that caused trouble with freewrap. [Bug 1072136] sl@0: sl@0: 2004-11-26 Don Porter sl@0: sl@0: * tests/reg.test (reg-32.*): Added missing testregexp constraints. sl@0: sl@0: * library/auto.tcl (tcl_findLibrary): Made sure the uniquifying sl@0: operations on the search path does not also normalize. [Bug 1072136] sl@0: sl@0: 2004-11-26 Donal K. Fellows sl@0: sl@0: * doc/dde.n: Resynchonized the documentation with itself and fixed sl@0: some formatting errors. sl@0: sl@0: 2004-11-25 Zoran Vasiljevic sl@0: sl@0: * doc/Notify.3: sl@0: * doc/Thread.3: Added doc fixes and hints from [Bug 1068077]. sl@0: sl@0: 2004-11-25 Reinhard Max sl@0: sl@0: * tests/tcltest.test: The order in which [glob] returns the file names sl@0: * tests/fCmd.test: is undefined, so tests should not depend on it. sl@0: sl@0: 2004-11-24 Don Porter sl@0: sl@0: * unix/tcl.m4 (SC_ENABLE_THREADS): Corrected failure to determine sl@0: the number of arguments for readdir_r on SunOS systems. [Bug 1071701] sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: 2004-11-24 Jeff Hobbs sl@0: sl@0: * README: Bumped patchlevel to 8.4.9 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/tcl.spec, unix/configure, unix/configure.in: sl@0: * win/configure, win/configure.in: sl@0: sl@0: 2004-11-24 Kevin B. Kenny sl@0: sl@0: * unix/tcl.m4 (SC_ENABLE_THREADS): Corrected bad check for 3-argument sl@0: readdir_r(). [Bug 1001325] sl@0: * unix/configure: Regenerated. sl@0: * unix/tclUnixNotfy.c: Corrected all uses of 'select' to manage their sl@0: masks using the FD_CLR, FD_ISSET, FD_SET, and FD_ZERO macros rather sl@0: than bit-whacking that failed under Solaris-Sparc-64. [Bug 1071807] sl@0: sl@0: 2004-11-23 Don Porter sl@0: sl@0: * generic/tclCmdIL.c (InfoVarsCmd): Corrected segfault in new sl@0: * tests/info.test (info-19.6): trivial matching branch [Bug 1072654] sl@0: sl@0: 2004-11-23 Vince Darley sl@0: sl@0: * generic/tclPathObj.c: fix and new test for [Bug 1043129] in sl@0: * tests/fileSystem.test: the treatment of backslashes in file join on sl@0: Windows. sl@0: sl@0: 2004-11-22 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/tcl.m4 (SC_TCL_64BIT_FLAGS): Define HAVE_TYPE_OFF64_T only when sl@0: off64_t, open64(), and lseek64() are defined. IRIX 5.3 is known to not sl@0: include an open64 function. [Bug 1030465] sl@0: sl@0: 2004-11-22 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/tcl.m4 (SC_ENABLE_THREADS): Check for a 2 argument version of sl@0: readdir_r that is known to exists under IRIX 5.3. sl@0: * unix/tclUnixThrd.c (TclpReaddir): Use either 2 arg or 3 arg version sl@0: of readdir_r. [Bug 1001325] sl@0: sl@0: 2004-11-19 Reinhard Max sl@0: sl@0: *** 8.4.8 TAGGED FOR RELEASE *** sl@0: sl@0: * unix/installManPage: Classic sed doesn't support | in REs. sl@0: sl@0: 2004-11-19 Daniel Steffen sl@0: sl@0: * macosx/Makefile: sl@0: * unix/configure.in: sl@0: * unix/tclUnixInit.c (MacOSXGetLibraryPath): changed detection of tcl sl@0: framework build when determining tclLibPath from overloaded sl@0: TCL_LIBRARY to configuration define TCL_FRAMEWORK. [Bug 1068088] sl@0: sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: * tests/unixInit.test (7.1): fixed failure when running tests sl@0: with -tmpdir arg not set to working dir. sl@0: sl@0: 2004-11-18 Don Porter sl@0: sl@0: * changes: Final updates for Tcl 8.4.8 release. sl@0: sl@0: 2004-11-18 Reinhard Max sl@0: sl@0: * unix/tcl.m4 (SC_CONFIG_MANPAGES): Applied an improved version of sl@0: * unix/configure.in: [Patch 996085], that introduces sl@0: * unix/Makefile.in: --enable-man-suffix. sl@0: sl@0: * unix/installManPage: added sl@0: * unix/mkLinks.tcl: removed sl@0: * unix/mkLinks: removed sl@0: sl@0: 2004-11-16 Jeff Hobbs sl@0: sl@0: * unix/tclUnixChan.c (TtySetOptionProc): fixed crash configuring sl@0: -ttycontrol on a channel. [Bug 1067708] sl@0: sl@0: 2004-11-16 Andreas Kupries sl@0: sl@0: * win/makefile.vc: Fixed bug in installation of http 2.5. sl@0: * win/makefile.bc: Was installed into directory http2.4. sl@0: * win/Makefile.in: This has been corrected. sl@0: * unix/Makefile.in: sl@0: * tools/tcl.wse.in: sl@0: * tools/tclmin.wse: sl@0: sl@0: 2004-11-16 Don Porter sl@0: sl@0: * library/auto.tcl: Updated [tcl_findLibrary] search path to sl@0: include the $::auto_path. [RFE 695441] sl@0: sl@0: 2004-11-16 Donal K. Fellows sl@0: sl@0: * doc/tclvars.n: Mention global variables set by tclsh and wish so sl@0: they are easier to find. [Patch 1065732] sl@0: sl@0: 2004-11-15 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_TraceObjCmd): Fixed Bug 1065378 which failed sl@0: * tests/trace.test (trace-33.1): to permit a variable trace sl@0: created with [trace variable] to be destroyed with [trace remove]. sl@0: Thanks to Keith Vetter for the report. sl@0: sl@0: 2004-11-12 Don Porter sl@0: sl@0: * library/init.tcl: Made [unknown] robust in the case that either sl@0: of the variables ::errorInfo or ::errorCode gets unset. [Bug 1063707] sl@0: sl@0: 2004-11-12 Jeff Hobbs sl@0: sl@0: * generic/tclEncoding.c (TableFromUtfProc): correct crash sl@0: condition when TCL_UTF_MAX == 6. [Bug 1004065] sl@0: sl@0: 2004-11-12 Daniel Steffen sl@0: sl@0: * doc/clock.n: sl@0: * doc/registry.n: sl@0: * doc/upvar.n: fixed *roff errors uncovered by running 'make html'. sl@0: sl@0: * tools/tcltk-man2html.tcl: added faked support for bullet point sl@0: lists, i.e. *nroff ".IP \(bu" syntax. sl@0: Synced other changes from HEAD. sl@0: sl@0: 2004-11-11 Daniel Steffen sl@0: sl@0: * tests/fCmd.test: sl@0: * unix/tclUnixFCmd.c (TraverseUnixTree): added option to rewind() the sl@0: readdir() loop whenever the source hierarchy has been modified by sl@0: traverseProc (e.g. by deleting files); this is required to ensure sl@0: complete traversal of the source hierarchy on certain filesystems like sl@0: HFS+. Added test for failing recursive delete on Mac OS X that was due sl@0: to this. [Bug 1034337] sl@0: sl@0: * generic/tclListObj.c (Tcl_ListObjReplace): use memmove() instead of sl@0: manual copy loop to shift list elements. Decreases time spent in sl@0: Tcl_ListObjReplace() from 5.2% to 1.7% of overall runtime of tclbench sl@0: on a ppc 7455 (i.e. 200% speed increase). [Patch 1064243] sl@0: sl@0: * generic/tclHash.c: hoisted some constant pointer dereferences out of sl@0: loops to eliminate redundant loads that the gcc optimizer didn't deal sl@0: with. Decreases time spend in Tcl_FindHashEntry() by 10% over a full sl@0: run of the tcl testuite on a ppc 7455. [Patch 1064243] sl@0: sl@0: * tests/fileName.test: sl@0: * tests/fileSystem.test: sl@0: * tests/io.test: sl@0: * tests/tcltest.test: fixed bugs causing failures when running tests sl@0: with -tmpdir arg not set to working dir. sl@0: sl@0: * macosx/Makefile: corrected path to html help inside framework. sl@0: Prevent parallel make from building several targets at the same time. sl@0: sl@0: 2004-11-09 Donal K. Fellows sl@0: sl@0: * doc/catch.n: Clarify documentation on return codes. [Bug 1062647] sl@0: sl@0: 2004-11-02 Don Porter sl@0: sl@0: * changes: Updates for Tcl 8.4.8 release. sl@0: sl@0: 2004-11-02 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected some misleading sl@0: * tests/tcltest.test (tcltest-26.1,2): displays of ::errorInfo and sl@0: ::errorCode information when the -setup, -body, and/or -cleanup scripts sl@0: return an unexpected return code. Thanks to Robert Seeger for the sl@0: fix. [RFE 1017151] sl@0: sl@0: 2004-11-02 Donal K. Fellows sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): NaN-equality fix from sl@0: Miguel Sofer. [Bug 761471] sl@0: sl@0: * doc/CrtChannel.3 (Tcl_GetChannelMode): Add synopsis. [Bug 1058446] sl@0: sl@0: 2004-10-31 Donal K. Fellows sl@0: sl@0: * generic/tclCmdIL.c (InfoGlobalsCmd): sl@0: * tests/info.test (info-8.4): Strip leading global-namespace sl@0: specifiers from the pattern argument. [Bug 1057461] sl@0: sl@0: 2004-10-30 Miguel Sofer sl@0: sl@0: * generic/tclCmdAH.c (Tcl_CatchObjCmd): removed erroneous comment [Bug sl@0: 1029518] sl@0: sl@0: 2004-10-29 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Correct reaction to errors in the sl@0: obsolete processCmdLineArgsHook. [Bug 1055673] sl@0: * library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.7 sl@0: sl@0: 2004-10-28 Andreas Kupries sl@0: sl@0: * generic/tclAlloc.c: Fixed [Bug 1030548], a threaded debug sl@0: * generic/tclThreadAlloc.c: build on Windows now works again. Had to sl@0: * win/tclWinThrd.c: touch Unix as well. Basic patch by Kevin, sl@0: * unix/tclUnixThrd.c: with modifications by myself. sl@0: sl@0: 2004-10-28 Don Porter sl@0: sl@0: * README: Bumped patch level to 8.4.8 to prepare for sl@0: * generic/tcl.h: next patch release. sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf (2.13) sl@0: * win/configure: sl@0: sl@0: 2004-10-28 Kevin B. Kenny sl@0: sl@0: * generic/tclInt.decls: sl@0: * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime): sl@0: * win/tclWinTime.c (TclpGmtime, TclpLocaltime): Changed type sl@0: signatures of TclpGmtime and TclpLocaltime to accept CONST TclpTime_t sl@0: throughout, to avoid any possible confusion in pedantic compilers. sl@0: [Bug 1001319] sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclIntPlatDecls.h: Regenerated. sl@0: sl@0: 2004-10-27 Don Porter sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): Restored missing line sl@0: from yesterday's 868489 backport that caused failed alloc's on LP64 sl@0: systems. sl@0: sl@0: * tests/appendComp.test: Backport test suite fixes of errors sl@0: * tests/autoMkindex.test: revealed by -singleproc 1 -debug 1 sl@0: * tests/exec.test: options to make test. sl@0: * tests/execute.test: sl@0: * tests/interp.test: sl@0: * tests/io.test: sl@0: * tests/namespace.test: sl@0: * tests/regexpComp.test: sl@0: * tests/stringComp.test: sl@0: * tests/unixInit.test: sl@0: * tests/winPipe.test: sl@0: sl@0: 2004-10-26 Kevin B. Kenny sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): Backport a missing bit of the sl@0: [Bug 868489] fix. sl@0: * generic/tclObj.c (SetBooleanFromAny): Backport fix for [Bug 1026125] sl@0: * tests/format.test (format-19.1): Additional regression test for sl@0: [Bug 868489]. sl@0: sl@0: 2004-10-26 Donal K. Fellows sl@0: sl@0: * doc/*.n: Backporting of documentation updates. sl@0: sl@0: 2004-10-26 Don Porter sl@0: sl@0: * tests/subst.test (subst-12.3-5): More tests for [Bug 1036649] sl@0: sl@0: * tests/compile.test (compile-12.4): Backport test for [Bug 1001997] sl@0: * tests/timer.test (timer-10.1): Backport test for [Bug 1016167] sl@0: * tests/tcltest.test (tcltest-12.3,4): Backport setup corrections. sl@0: * tests/error.test (error-6.3,4,7,9): Backport of some tests. sl@0: * tests/basic.test (basic-49.*): sl@0: * tests/namespace.test (namespace-8.7): sl@0: * tests/init.test (init-2.8): Updated to not rely on http package. sl@0: sl@0: * generic/tclThreadTest.c (ThreadEventProc): Corrected subtle bug sl@0: where the returned (char *) from Tcl_GetStringResult(interp) continued sl@0: to be used without copying or refcounting, while activity on the sl@0: interp continued. sl@0: sl@0: 2004-10-14 Donal K. Fellows sl@0: sl@0: * generic/tclUtil.c (TclMatchIsTrivial): Detect degenerate cases of sl@0: glob matching that let us avoid scanning through hash tables. sl@0: * generic/tclCmdIL.c (InfoCommandsCmd, InfoGlobalsCmd, InfoProcsCmd): sl@0: (InfoVarsCmd): Use this to speed up some [info] subcommands. sl@0: sl@0: 2004-10-08 Jeff Hobbs sl@0: sl@0: * win/tclWinFile.c (NativeIsExec): correct result of 'file executable' sl@0: to not be case sensitive. [Bug 954263] sl@0: sl@0: 2004-10-05 Don Porter sl@0: sl@0: * generic/tclNamesp.c (Tcl_PopCallFrame): Removed Bug 1038021 sl@0: workaround. That bug is now fixed. sl@0: sl@0: 2004-09-30 Don Porter sl@0: sl@0: * generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ified the sl@0: * tests/namespace.test (namespace-8.5,6): save/restore of sl@0: ::errorInfo and ::errorCode during global namespace teardown. Revised sl@0: the comment to clarify why this is done, and added tests that will sl@0: fail if this is not done. sl@0: sl@0: * generic/tclResult.c (TclTransferResult): Added safety checks so sl@0: that unexpected undefined ::errorInfo or ::errorCode will not lead to sl@0: a segfault. sl@0: sl@0: * generic/tclVar.c (CallVarTraces): Save/restore the flag values sl@0: * tests/var.test (var-16.1): that define part of the interpreter sl@0: state during variable traces. [Bug 1038021] sl@0: sl@0: 2004-09-30 Miguel Sofer sl@0: sl@0: * tests/subst.test (12.2): test correction. sl@0: sl@0: 2004-09-29 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalEx): sl@0: * tests/subst.test (12.1-2): fix for buffer overflow in [subst], [Bug sl@0: 1036649] sl@0: sl@0: 2004-09-23 Mo DeJong sl@0: sl@0: * unix/dltest/Makefile.in (clean): Fixup make clean rule so that it sl@0: does not delete all files when SHLIB_SUFFIX is set to the empty string sl@0: in a static build. [Bug 1016726] sl@0: sl@0: 2004-09-18 Donal K. Fellows sl@0: sl@0: * generic/tclExecute.c (TEBC-INST_LSHIFT,INST_RSHIFT): Ensure that sl@0: large shifts end up shifting correctly. [Bug 868467] sl@0: sl@0: 2004-09-15 Daniel Steffen sl@0: sl@0: * tests/load.test (load-2.3): adopted fix for failure on darwin from sl@0: HEAD. sl@0: sl@0: 2004-09-14 Don Porter sl@0: sl@0: * generic/tclObj.c (Tcl_GetIntFromObj): Corrected flaw in returning sl@0: the int value of a wideInteger. [Bug 1027690] sl@0: sl@0: 2004-09-10 Donal K. Fellows sl@0: sl@0: * generic/tclObj.c (SetIntOrWideFromAny): Rewritten integral value sl@0: parsing code so that values do not flip so easily between numeric sl@0: representations. Thanks to KBK for this! [Bug 868489] sl@0: sl@0: * generic/tclIO.c (Tcl_Seek): Make sure wide seeks do not fail to set sl@0: ::errorCode on error. [Bug 1025359] sl@0: sl@0: 2004-09-10 Andreas Kupries sl@0: sl@0: * generic/tcl.h: Micro formatting fixes. sl@0: * generic/tclIOGT.c: Channel version fixed, must be 3, to have sl@0: wideseekProc. Thanks to David Graveraux . sl@0: sl@0: 2004-09-11 Don Porter sl@0: sl@0: * generic/tclNamespace.c (TclGetNamespaceForQualName): Resolved sl@0: longstanding inconsistency in the treatment of the TCL_NAMESPACE_ONLY sl@0: flag revealed by testing the 2004-09-09 commits against Itcl. sl@0: TCL_NAMESPACE_ONLY now acts as specified in the pre-function sl@0: comment, forcing resolution in the passed in context namespace. It has sl@0: been incorrectly forcing resolution in the interp's current namespace. sl@0: sl@0: 2004-09-10 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (INST_CONCAT1): added a peephole optimisation sl@0: for concatting an empty string. This enables replacing the idiom 'K $x sl@0: [set x {}]' by '$x[set x {}]' for fastest execution. sl@0: sl@0: 2004-09-09 Don Porter sl@0: sl@0: * generic/tclNamesp.c (Tcl_ForgetImport): Corrected faulty logic that sl@0: * tests/namespace.test: relied exclusively on string matching and sl@0: failed in the presence of [rename]s. [Bug 560297] sl@0: Also corrected faulty prevention of [namespace import] cycles. [Bug sl@0: 1017299] sl@0: sl@0: 2004-09-08 Kevin B. Kenny sl@0: sl@0: * compat/strftime.c (_conv): Corrected a problem where hour 0 would sl@0: format as a blank format group with %k. sl@0: * tests/clock.test (clock-41.1): Added regression test case for %k at sl@0: the zero hour. sl@0: sl@0: 2004-09-07 Kevin B. Kenny sl@0: sl@0: * generic/tclTimer.c: Removed a premature optimisation that attempted sl@0: to store the assoc data in the client data; the optimisation caused a sl@0: bug that [after] would overwrite its imports. [Bug 1016167] sl@0: sl@0: 2004-09-02 Donal K. Fellows sl@0: sl@0: * doc/lsearch.n: Clarified meaning of -dictionary. [Bug 759545] sl@0: sl@0: 2004-09-01 Jeff Hobbs sl@0: sl@0: * win/tclWinReg.c (BroadcastValue): WIN64 cast corrections sl@0: sl@0: * win/tclWinDde.c (DdeClientWindowProc): sl@0: (DdeServicesOnAck, DdeEnumWindowsCallback): WIN64 corrections sl@0: sl@0: * win/tclWin32Dll.c (TclWinCPUID): need _asm for WIN64 (Itanium), sl@0: until we have it, just return unknown. [Bug 1020445] sl@0: sl@0: 2004-08-30 Donal K. Fellows sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd): Stop [string map] from sl@0: crashing when its map and input string are the same object. sl@0: sl@0: 2004-08-27 Daniel Steffen sl@0: sl@0: * tests/env.test: macosx fixes. sl@0: sl@0: 2004-08-19 Donal K. Fellows sl@0: sl@0: * generic/tclScan.c (Tcl_ScanObjCmd, ValidateFormat): Ensure that the sl@0: %ld conversion works correctly on 64-bit platforms. [Bug 1011860] sl@0: sl@0: 2004-08-16 Miguel Sofer sl@0: sl@0: * doc/SetVar.3: sl@0: * generic/tclTest.c (TestseterrorcodeCmd): sl@0: * generic/tclVar.c (TclPtrSetVar): sl@0: * tests/result.test (result-4.*, result-5.*): [Bug 1008314] sl@0: detected and fixed by dgp. sl@0: sl@0: 2004-08-13 Don Porter sl@0: sl@0: * library/msgcat/msgcat.tcl: Added checks to prevent [mclocale] sl@0: * tests/msgcat.test: from registering filesystem paths to possibly sl@0: malicious code to be evaluated by a later [mcload]. sl@0: * library/msgcat/pkgIndex.tcl: Bump to msgcat 1.3.3 sl@0: sl@0: 2004-08-10 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixThrd.c (TclpThreadCreate): changed handling of the sl@0: returned thread ID since broken on 64-bit systems (Cray). Thanks to sl@0: Rob Ratcliff for reporting the bug. sl@0: sl@0: 2004-07-30 Don Porter sl@0: sl@0: * generic/tclEvent.c (Tcl_Finalize): Re-organized Tcl_Finalize so sl@0: that Tcl_ExitProc's that call Tcl_Finalize recursively do not cause sl@0: deadlock. [Patch 999084, fixes Tk Bug 714956] sl@0: sl@0: 2004-07-30 Daniel Steffen sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Darwin: instead of setting PLAT_OBJS sl@0: to explict object files in tcl.m4, refer to MAC_OSX_OBJS makefile var. sl@0: * unix/Makefile.in: added MAC_OSX_OBJS variable. sl@0: sl@0: 2004-07-28 Don Porter sl@0: sl@0: * generic/tclMain.c (Tcl_Main, StdinProc): Append newline only to sl@0: * tests/basic.test (basic-46.1): incomplete scripts as part sl@0: of multi-line script construction. Do not add an extra trailing sl@0: newline to the complete script. [Bug 833150] sl@0: sl@0: 2004-07-26 Jeff Hobbs sl@0: sl@0: *** 8.4.7 TAGGED FOR RELEASE *** sl@0: sl@0: * tests/io.test (io-61.1): create file in binary mode for x-plat. sl@0: sl@0: 2004-07-25 Pat Thoyts sl@0: sl@0: * generic/tclThreadAlloc.c: Moved the tclInt.h include to provide sl@0: Tcl_Panic which is now required for non-threaded build. sl@0: sl@0: 2004-07-22 Don Porter sl@0: sl@0: * tests/eofchar.data (removed): Test io-61.1 now generates its own sl@0: * tests/io.test: file of test data as needed. sl@0: sl@0: 2004-07-21 Don Porter sl@0: * win/tclWinDde.c: Bump to dde 1.2.3 to cover changes sl@0: * library/dde/pkgIndex.tcl: committed on 2004-06-14. sl@0: sl@0: * changes: Updated for Tcl 8.4.7 release. sl@0: sl@0: 2004-07-20 Jeff Hobbs sl@0: sl@0: * generic/tclEvent.c: Correct threaded obj allocator to sl@0: * generic/tclInt.h: fully cleanup on exit and allow for sl@0: * generic/tclThreadAlloc.c: reinitialization. [Bug 736426] sl@0: * unix/tclUnixThrd.c: (mistachkin, kenny) sl@0: * win/tclWinThrd.c: sl@0: sl@0: 2004-07-20 Daniel Steffen sl@0: sl@0: * unix/tcl.m4: fixed Darwin autoconf breakage caused by recent CFLAGS sl@0: reordering. sl@0: * unix/configure: regen sl@0: sl@0: * unix/tclConfig.sh.in: replaced EXTRA_CFLAGS with CFLAGS. sl@0: * unix/dltest/Makefile.in: replaced EXTRA_CFLAGS with DEFS. sl@0: sl@0: * macosx/tclMacOSXBundle.c: dynamically acquire address for sl@0: CFBundleOpenBundleResourceMap symbol, since it is only present in sl@0: full CoreFoundation on Mac OS X and not in CFLite on pure Darwin. sl@0: sl@0: 2004-07-19 Jeff Hobbs sl@0: sl@0: * unix/Makefile.in, unix/tcl.m4: move (C|LD)FLAGS after their sl@0: * unix/configure.in, unix/configure: _DEFAULT to allow for env setting sl@0: to override m4 switches. sl@0: Consolidate header checks to limit redundancy in configure. sl@0: (CFLAGS_WARNING): Remove -Wconversion, add -fno-strict-aliasing for sl@0: gcc builds (need to suppress 3.x type puning warnings). sl@0: (SC_ENABLE_THREADS): Set m4 to force threaded build when built against sl@0: a threaded Tcl core. sl@0: Reorder configure.in for better 64-bit build configuration, replacing sl@0: EXTRA_CFLAGS with CFLAGS. [Bug 874058] sl@0: sl@0: 2004-07-19 Zoran Vasiljevic sl@0: sl@0: * win/tclwinThrd.c: redefined MASTER_LOCK to call TclpMasterLock. sl@0: Fixes [Bug 987967] sl@0: sl@0: 2004-07-16 Andreas Kupries sl@0: sl@0: * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Corrected a typo in the sl@0: generation of error messages and simplified by reusing data in a sl@0: variable instead of retrieving the string again. Fixes [Bug 835289] sl@0: sl@0: * doc/OpenFileChnl.3: Added description of the behaviour of sl@0: Tcl_ReadChars when its 'charsToRead' argument is set to -1. Fixes [Bug sl@0: 934511] sl@0: sl@0: * doc/CrtCommand.3: Added note that the arguments given to the command sl@0: proc of a Tcl_CreateCommand are in utf8 since Tcl 8.1. Closing [Patch sl@0: 414778] sl@0: sl@0: * doc/ChnlStack.3: Removed the declaration that the interp argument to sl@0: Tcl_(un)StackChannel can be NULL. This fixes [Bug 881220], reported by sl@0: Marco Maggi . sl@0: sl@0: * tests/socket.test: Accepted two new testcases by Stuart Casoff sl@0: checking that -server and -async don't go sl@0: together [Bug 796534] sl@0: sl@0: * unix/tclUnixNotfy.c (NotifierThreadProc): Accepted Joe Mistachkin's sl@0: patch for [Bug 990500], properly closing the notifier thread when its sl@0: exits. sl@0: sl@0: 2004-07-15 Andreas Kupries sl@0: sl@0: * unix/tclUnixThrd.c (TclpFinalizeMutex): Accepted Joe Mistachkin's sl@0: patch for [Bug 990453], closing leakage of mutexes. They were not sl@0: destroyed properly upon finalization. sl@0: sl@0: 2004-07-15 Zoran Vasiljevic sl@0: sl@0: * generic/tclEvent.c (NewThreadProc): Backout of changes to fix [Bug sl@0: 770053]. See SF bugreport for more info. sl@0: sl@0: * generic/tclNotify.c (TclFinalizeNotifier): Added conditional sl@0: notifier finalization based on the fact that an TclInitNotifier has sl@0: been called for the current thread. This fixes [Bug 770053] again. sl@0: Hopefully this time w/o unwanted side-effects. sl@0: sl@0: 2004-07-14 Andreas Kupries sl@0: sl@0: * generic/tclIO.h (CHANNEL_INCLOSE): New flag. Set in Tcl_Close sl@0: * generic/tclIO.c (Tcl_UnregisterChannel): while the close callbacks sl@0: * generic/tclIO.c (Tcl_Close): are run. Checked in sl@0: Tcl_Close and Tcl_Unregister to prevent recursive call of [close] in sl@0: the close-callbacks. This is a possible error made by implementors of sl@0: virtual filesystems based on 'tclvfs', thinking that they have to sl@0: close the channel in the close handler for the filesystem. sl@0: sl@0: 2004-07-14 Andreas Kupries sl@0: sl@0: * generic/tclIO.c: sl@0: * generic/tclIO.h: sl@0: Not reverting, but #ifdef'ing the changes from May 19, 2004 out of the sl@0: core. This removes the ***POTENTIAL INCOMPATIBILITY*** for channel sl@0: drivers it introduced. This has become possible due to Expect gaining sl@0: a BlockModeProc and now handling blockingg and non-blocking modes sl@0: correctly. Thus [Bug 943274] is still fixed if a recent enough version sl@0: of Expect is used. sl@0: sl@0: * doc/CrtChannel.3: Added warning about usage of a channel without a sl@0: BlockModeProc. sl@0: sl@0: 2004-07-15 Andreas Kupries sl@0: sl@0: * generic/tclIOCmd.c (Tcl_PutsObjCmd): Added length check to the old sl@0: depreceated newline syntax, to ensure that only "nonewline" is sl@0: accepted. [Bug 985869] (mistachkin) sl@0: sl@0: 2004-07-13 Jeff Hobbs sl@0: sl@0: * README, generic/tcl.h, tools/tcl.wse.in: bumped to sl@0: * unix/configure, unix/configure.in, unix/tcl.spec: patchlevel sl@0: * win/README.binary, win/configure, win/configure.in: 8.4.7 sl@0: sl@0: 2004-07-13 Zoran Vasiljevic sl@0: sl@0: * generic/tclEvent.c (NewThreadProc): Fixed broken build on Windows sl@0: caused by missing TCL_THREAD_CREATE_RETURN. This is backported from sl@0: HEAD. Thnx to Kevin Kenny for spotting this. sl@0: sl@0: 2004-07-03 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (ExprRoundFunc): sl@0: * tests/expr-old.test (39.1): added support for wide integers to sl@0: round(); [Bug 908375], reported by Hemang Lavana. sl@0: sl@0: 2004-07-02 Jeff Hobbs sl@0: sl@0: * generic/regcomp.c (stid): correct minor pointer size error sl@0: sl@0: * generic/tclPipe.c (TclCreatePipeline): Add 2>@1 as a special sl@0: * tests/exec.test: case redir of stderr to the result output. sl@0: sl@0: 2004-07-02 Vince Darley sl@0: sl@0: * tests/fileSystem.test: new tests backported sl@0: * win/tclWin32Dll.c: compilation fix for VC++5.2 sl@0: sl@0: 2004-06-29 Donal K. Fellows sl@0: sl@0: * library/safe.tcl: Make sure that the temporary variable is sl@0: local to the namespace and not inadvertently global. [Bug 981733] sl@0: sl@0: 2004-06-22 Zoran Vasiljevic sl@0: sl@0: * generic/tclEvent.c: sl@0: * generic/tclInt.h: sl@0: * unix/tclUnixNotfy.c: sl@0: * unix/tclUnixThrd.c: sl@0: * win/tclWinThrd.c: See bug report for more information about what it sl@0: does. [Bug 770053] sl@0: sl@0: * tests/unixNotfy.test: rewritten to use tcltest::threadReap to sl@0: gracefully wait for the test thread to exit. Otherwise we got a race sl@0: condition with main thread exiting before the test thread. This sl@0: exposed the long-standing Tcl lib issue with resource sl@0: garbage-collection on application exit. sl@0: sl@0: 2004-06-21 Mo DeJong sl@0: sl@0: * win/tclWin32Dll.c (DllMain, _except_dllmain_detach_handler) sl@0: (TclpCheckStackSpace, _except_checkstackspace_handler, TclWinCPUID) sl@0: (_except_TclWinCPUID_detach_handler): sl@0: * win/tclWinChan.c (Tcl_MakeFileChannel) sl@0: (_except_makefilechannel_handler): sl@0: * win/tclWinFCmd.c (DoRenameFile, _except_dorenamefile_handler) sl@0: (DoCopyFile, _except_docopyfile_handler): sl@0: Rework pushing of exception handler function pointer so that compiling sl@0: with gcc -O3 works. Remove empty function call to avoid compiler sl@0: warning. Mark the DllMain function as noinline to avoid compiler error sl@0: from duplicated asm labels in generated code. sl@0: sl@0: 2004-06-14 Pat Thoyts sl@0: sl@0: * tests/winDde.test: Fixed -async test sl@0: * win/tclWinDde.c: Backported the fix from 8.5 to avoid hanging in the sl@0: presence of applications that do not process Window messages. sl@0: sl@0: 2004-06-10 Andreas Kupries sl@0: sl@0: * generic/tclDecls.h: Regenerated on a unix box. The Win/DOS sl@0: * generic/tclIntDecls.h: EOLs from the last regen screwed up sl@0: * generic/tclIntPlatDecls.h: compilation with an older gcc. sl@0: * generic/tclPlatDecls.h: sl@0: * generic/tclStubInit.c: sl@0: sl@0: 2004-06-10 Zoran Vasiljevic sl@0: sl@0: * generic/tclIOUtil.c: partially corrected [Bug 932314]. Also, sl@0: corrected return values of Tcl_FSChdir() to reflect those of the sl@0: underlying platform-specific call. Originally, return codes were mixed sl@0: with those of Tcl. sl@0: sl@0: 2004-06-08 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c: handle warning [Bug 969066] sl@0: sl@0: 2004-06-05 Kevin B. Kenny sl@0: sl@0: * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw sl@0: build works again. sl@0: * generic/tclDecls.h: Changes to the tests for sl@0: * generic/tclInt.decls: clock frequency in Tcl_WinTime sl@0: * generic/tclIntDecls.h: so that any clock frequency is sl@0: * generic/tclIntPlatDecls.h: accepted provided that all sl@0: * generic/tclPlatDecls.h: CPU's in the system share a sl@0: * generic/tclStubInit.c: common chip, and hence, sl@0: * tests/platform.test (platform-1.3): presumably, a common clock. sl@0: * win/tclWin32Dll.c (TclWinCPUID): This change necessitated a sl@0: * win/tclWinTest.c (TestwincpuidCmd) small burst of assembly code sl@0: * win/tclWinTime.c (Tcl_GetTime): to read CPU ID information, sl@0: which was added as TclWinCPUID in the internal Stubs. To test this sl@0: code in the common case of a single-processor machine, a sl@0: 'testwincpuid' command was added to tclWinTest.c, and a test case in sl@0: platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for sl@0: reporting this bug. [Bug 976722] sl@0: sl@0: 2004-05-27 Kevin B. Kenny sl@0: sl@0: * tests/clock.test: Added a single test for the presence of %G in sl@0: [clock format], and conditioned out the clock-10.x series if they're sl@0: all going to fail because of a broken strftime() call. [Bug 961714] sl@0: sl@0: 2004-05-27 Reinhard Max sl@0: sl@0: * generic/tclEncoding.c: sl@0: * tests/encoding.test: added support and tests for translating sl@0: embedded null characters between real nullbytes and the internal sl@0: representation on input/output. [Bug 949905] sl@0: sl@0: 2004-05-26 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Correction to debug prints and testing sl@0: * library/tcltest/pkgIndex.tcl: if TCLTEST_OPTIONS value. Corrected sl@0: * tests/tcltest.test: double increment of numTestFiles in sl@0: -singleproc 1 configurations. Updated tcltest-19.1 to tcltest 2.1 sl@0: behavior. Corrected tcltest-25.3 to not falsely report a failure in sl@0: tcltest.test. Bumped to tcltest 2.2.6. [Bugs 960560, 960926] sl@0: sl@0: 2004-05-25 Jeff Hobbs sl@0: sl@0: * doc/http.n (http::config): add -urlencoding option (default utf-8) sl@0: * library/http/http.tcl: that specifies encoding conversion of sl@0: * library/http/pkgIndex.tcl: args for http::formatQuery. Previously sl@0: * tests/http.test: undefined, RFC 2718 says it should be sl@0: utf-8. 'http::config -urlencoding {}' returns previous behavior, sl@0: which will throw errors processing non-latin-1 chars. Bumped http sl@0: package to 2.5.0. sl@0: sl@0: 2004-05-25 Kevin Kenny sl@0: sl@0: * tests/winFCmd.test: Correct test for the presence of a CD-ROM so sl@0: that it doesn't misdetect some other sort of filesystem with a sl@0: write-protected root as being a CD-ROM drive. [Bug 918267] sl@0: sl@0: 2004-05-24 Jeff Hobbs sl@0: sl@0: * generic/tclExecute.c (VerifyExprObjType): use GET_WIDE_OR_INT to sl@0: properly have tclIntType used for smaller values. This corrects TclX sl@0: bug 896727 and any other 3rd party extension that created math sl@0: functions but was not yet WIDE_INT aware in them. sl@0: sl@0: 2004-05-24 Miguel Sofer sl@0: sl@0: * doc/set.n: accurate description of name resolution process, sl@0: referring to namespace.n for details [Bug 959180] sl@0: sl@0: 2004-05-22 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (TclObjUnsetVar2): backported fix [Bug 735335] and sl@0: new (in tcl8.4) exteriorisations of [Bug 736729] due to the use of sl@0: tclNsVarNameType obj types. The consequences of [Bug 736729] should be sl@0: the same as in tcl8.3 and previous versions. The use of sl@0: tclNsVarNameType objs is still disabled, pending a decision by the sl@0: release manager. sl@0: sl@0: 2004-05-19 Donal K. Fellows sl@0: sl@0: * win/tclWinFile.c (TclpMatchInDirectory): fix for an issue where sl@0: there was a sneak path from Tcl_DStringFree to SetErrorCode(0). The sl@0: result was that the error code could be reset between a call to sl@0: FindFirstFile and the check of its status return, leading to a bizarre sl@0: error return of {POSIX unknown {No error}}. (Found in unplanned test - sl@0: no incident logged at SourceForge.) sl@0: sl@0: 2004-05-19 Andreas Kupries sl@0: sl@0: * generic/tclIO.c: Fixed [SF Tcl Bug 943274]. This is the same problem sl@0: * generic/tclIO.h: as [SF Tcl Bug 462317], see ChangeLog entry sl@0: 2001-09-26. The fix done at that time is incomplete. It is possible to sl@0: get around it if the actual read operation is defered and not executed sl@0: in the event handler itself. Instead of tracking if we are in an read sl@0: caused by a synthesized fileevent we now track if the OS has delivered sl@0: a true event = actual data and bypass the driver if a read finds that sl@0: there is no actual data waiting. The flag is cleared by a short or sl@0: full read. [[this bug amended 2004-07-14]] sl@0: sl@0: 2004-05-18 Kevin B. Kenny sl@0: sl@0: * compat/strftime.c (_fmt, ISO8601Week): sl@0: * doc/clock.n: sl@0: * tests/clock.test: Major rework to the handling of ISO8601 week sl@0: numbers. Now passes all the %G and %V test cases on Windows, Linux and sl@0: Solaris [Bugs 500285, 500389, and 852944] sl@0: sl@0: 2004-05-17 Kevin B. Kenny sl@0: sl@0: * generic/tclInt.decls: Restored TclpTime_t kludge to all places sl@0: * generic/tclIntPlatDecls.h: where it appeared before the changes of sl@0: * unix/tclUnixPort.h 14 May, because use of native time_t in sl@0: * unix/tclUnixTime.h its place requires the 8.5 header sl@0: * win/tclWinTime.h: reforms. [Bug 955146] sl@0: sl@0: 2004-05-17 Donal K. Fellows sl@0: sl@0: * doc/OpenFileChnl.3: Documented type of 'offset' argument to Tcl_Seek sl@0: was wrong. [Bug 953374] sl@0: sl@0: 2004-05-14 Kevin B. Kenny sl@0: sl@0: * generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime sl@0: * generic/tclIntDecls.h: from Unix-specific stubs to the generic sl@0: * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' sl@0: * generic/tclStubInit.c: sl@0: * unix/tclUnixPort.h: sl@0: sl@0: * generic/tclClock.c: Changed a buggy 'GMT' timezone specification to sl@0: the correct 'GMT0'. [Bug 922848] sl@0: sl@0: * unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to sl@0: unix/tclUnixTime.c where they belong. sl@0: sl@0: * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, sl@0: (ThreadSafeGMTime[removed], ThreadSafeLocalTime[removed], sl@0: (SetTZIfNecessary, CleanupMemory): Restructured to make sure that the sl@0: same mutex protects all calls to localtime, gmtime, and tzset. Added a sl@0: check in front of those calls to make sure that the TZ env var hasn't sl@0: changed since the last call to tzset, and repeat tzset if necessary. sl@0: [Bug 940278] Removed a buggy test of the Daylight Saving Time sl@0: information in 'gettimeofday' in favor of applying 'localtime' to a sl@0: known value. [Bug 922848] sl@0: sl@0: * tests/clock.test (clock-3.14): Added test to make sure that changes sl@0: to $env(TZ) take effect immediately. sl@0: sl@0: * win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer sl@0: for 'localtime' and 'gmtime' calls. sl@0: sl@0: 2004-05-10 David Gravereaux sl@0: sl@0: * win/tclWinPipe.c (BuildCommandLine): Append a space when the path sl@0: got primed. sl@0: (TclpCreateProcess): When under NT, with no console, and executing a sl@0: DOS application, the path priming does not need an ending space as sl@0: BuildCommandLine() will append one for us. sl@0: sl@0: 2004-05-07 Miguel Sofer sl@0: sl@0: * doc/unset.n: added upvar.n to the "see also" list sl@0: sl@0: 2004-05-05 David Gravereaux sl@0: sl@0: * generic/tclEvent.c: TclSetLibraryPath's use of caching the stringrep sl@0: of the pathPtr object to TclGetLibraryPath called from another thread sl@0: was ineffective if the original's stringrep had been invalidated as sl@0: what happens when it gets muted to a list. sl@0: sl@0: * generic/tclEncoding.c: Added FreeEncoding(systemEncoding) in sl@0: TclFinalizeEncodingSubsystem because its ref count was incremented in sl@0: TclInitEncodingSubsystem. sl@0: sl@0: * win/tclWin32Dll.c: Structured Exception Handling added around sl@0: Tcl_Finalize called from DllMain's DLL_PROCESS_DETACH. We can't be sl@0: 100% assured that Tcl is being unloaded by the OS in a stable sl@0: condition and we need to protect the exit handlers should the stack be sl@0: in a hosed state. AT&T style assembly for SEH under MinGW included, sl@0: too. [Patch 858493] sl@0: sl@0: Also added DisableThreadLibraryCalls() for the DLL_PROCESS_ATTACH sl@0: case. We're not interested in knowing about DLL_THREAD_ATTACH, so sl@0: disable the notices. sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tclThread.c: sl@0: * generic/tclEvent.c: sl@0: * unix/tclUnixThrd.c: sl@0: * win/tclWinThrd.c: Provisions made so masterLock, initLock, sl@0: allocLock and joinLock mutexes can be recovered during Tcl_Finalize. sl@0: sl@0: * win/tclWinSock.c: sl@0: (SocketThreadExitHandler): Don't call TerminateThread when sl@0: WaitForSingleObject returns a timeout. Tcl_Finalize called from sl@0: DllMain will pause all threads. Trust that the thread will get the sl@0: close notice at a later time if it does ever wake up before being sl@0: cleaned up by the system anyway. sl@0: (SocketEventProc): connect errors should fire both the readable and sl@0: writable handlers because this is how it works on UNIX. [Bug 794839] sl@0: sl@0: * win/coffbase.txt: Added the tls extension to the list of preferred sl@0: load addresses. sl@0: sl@0: 2004-05-05 Don Porter sl@0: sl@0: * tests/unixInit.test (unixInit-2.10): Test correction for Mac OSX. sl@0: Be sure to consistently compare normalized path names. Thanks to sl@0: Steven Abner (tauvan). [Bug 948177] sl@0: sl@0: 2004-05-05 Donal K. Fellows sl@0: sl@0: * doc/CrtObjCmd.3: Remove reference to Tcl_RenameCommand; there is no sl@0: such API. [Bug 848440] sl@0: sl@0: 2004-05-04 Jeff Hobbs sl@0: sl@0: * generic/tclIOUtil.c (Tcl_FSChdir): Work-around crash condition sl@0: * tests/winFCmd.test (winFCmd-16.12): triggered when $HOME is sl@0: volumerelative (ie 'C:'). sl@0: sl@0: * tests/fileName.test (filename-12.9): use C:/ instead of the first sl@0: item in file volumes - that's usually A:/, which for most will have sl@0: nothing in it. sl@0: sl@0: 2004-05-04 Don Porter sl@0: sl@0: * tests/tcltest.test: Test corrections for Mac OSX. Thanks to Steven sl@0: Abner (tauvan). [Bug 947440] sl@0: sl@0: 2004-05-03 Andreas Kupries sl@0: sl@0: Applied [SF Tcl Patch 868853], fixing a mem leak in TtySetOptionProc. sl@0: Report and Patch provided by Stuart Cassoff . sl@0: sl@0: 2004-05-03 Kevin Kenny sl@0: sl@0: * win/tclWin32Dll.c (TclpCheckStackSpace): sl@0: * tests/stack.test (stack-3.1): Fix for undetected stack overflow in sl@0: TclReExec on Windows. [Bug 947070] sl@0: sl@0: 2004-05-03 Don Porter sl@0: sl@0: * library/init.tcl: Corrected unique prefix matching of sl@0: interactive command completion in [unknown]. [Bug 946952] sl@0: sl@0: 2004-05-02 Miguel Sofer sl@0: sl@0: * generic/tclProc.c (TclObjInvokeProc): sl@0: * tests/proc.test (proc-3.6): fix for bad quoting of multi-word proc sl@0: names in error messages [Bug 942757] sl@0: sl@0: 2004-04-23 Andreas Kupries sl@0: sl@0: * generic/tclIO.c (Tcl_SetChannelOption): Fixed [Bug 930851]. When sl@0: changing the eofchar we have to zap the related flags to prevent them sl@0: from prematurely aborting the next read. sl@0: sl@0: 2004-04-07 Jeff Hobbs sl@0: sl@0: * win/configure: sl@0: * win/configure.in: define TCL_LIB_FLAG, TCL_BUILD_LIB_SPEC, sl@0: TCL_LIB_SPEC and TCL_PACKAGE_PATH in tclConfig.sh. sl@0: sl@0: 2004-04-06 Don Porter sl@0: sl@0: * tests/unixInit.test (unixInit-3.1): Default encoding on Darwin sl@0: systems is utf-8. Thanks to Steven Abner (tauvan). [Bug 928808] sl@0: sl@0: 2004-04-06 Donal K. Fellows sl@0: sl@0: * tests/cmdAH.test (cmdAH-18.2): Added constraint because sl@0: access(...,X_OK) is defined to be permitted to be meaningless when sl@0: running as root, and OSX exhibits this. [Bug 929892] sl@0: sl@0: 2004-04-02 Don Porter sl@0: sl@0: * tests/tcltest.test: Corrected constraint typos: "nonRoot" -> sl@0: "notRoot". Thanks to Steven Abner (tauvan). [Bug 928353] sl@0: sl@0: 2004-03-31 Don Porter sl@0: sl@0: * doc/msgcat.n: Clarified message catalog file encodings. [Bug 811457] sl@0: * library/msgcat/msgcat.tcl ([mcset], [ConvertLocale], [Init]): sl@0: Corrected [mcset] to be able to successfully set a translation to sl@0: the empty string. [mcset $loc $src {}] was incorrectly set the $loc sl@0: translation of $src back to $src. Also changed [ConvertLocale] to sl@0: minimally require a non-empty "language" part in the locale value. If sl@0: not, an error raised prompts [Init] to keep looking for a valid locale sl@0: value, or ultimately fall back on the "C" locale. [Bug 811461] sl@0: * library/msgcat/pkgIndex.tcl: Bump to msgcat 1.3.2. sl@0: sl@0: 2004-03-31 Donal K. Fellows sl@0: sl@0: * generic/tclObj.c (HashObjKey): Make sure this hashes the whole sl@0: string rep of the object, instead of missing the last character. sl@0: sl@0: 2004-03-29 Jeff Hobbs sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tclEncoding.c (TclFindEncodings, Tcl_FindExecutable): sl@0: * mac/tclMacInit.c (TclpInitLibraryPath): Correct handling of UTF sl@0: * unix/tclUnixInit.c (TclpInitLibraryPath): data that is actually sl@0: * win/tclWinFile.c (TclpFindExecutable): "clean", allowing the sl@0: * win/tclWinInit.c (TclpInitLibraryPath): loading of Tcl from paths sl@0: that contain multi-byte chars on Windows [Bug 920667] sl@0: sl@0: 2004-03-28 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c (TclCompileScript): corrected possible segfault sl@0: when a compilation returns TCL_OUTLINE_COMPILE after having grown the sl@0: compile environment. [Bug 925121] sl@0: sl@0: 2004-03-21 Jeff Hobbs sl@0: sl@0: * win/tclWinInt.h: define VER_PLATFORM_WIN32_CE if not already set. sl@0: * win/tclWinInit.c (TclpSetInitialEncodings): recognize WIN32_CE sl@0: as a unicode (WCHAR) platform. sl@0: sl@0: 2004-03-15 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c (TclCompileScript): sl@0: * tests/compile.test (compile-3.5): corrected wrong test and behaviour sl@0: in the earlier fix for [Bug 705406]; Don Porter reported this as [Bug sl@0: 735055], and provided the solution. Fixed in HEAD on 2003-05-09, but sl@0: backport to 8-4-branch was wrongly omitted; re-reported as [Bug sl@0: 916795] by Roy Terry, diagnosed by dgp. sl@0: sl@0: 2004-03-08 Vince Darley sl@0: sl@0: * generic/tclFileName.c: Fix to 'glob -path' near the root sl@0: * tests/fileName.test: of the filesystem. [Bug 910525] sl@0: sl@0: 2004-03-01 Don Porter sl@0: sl@0: *** 8.4.6 TAGGED FOR RELEASE *** sl@0: sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Allow 64-bit enabling on sl@0: IRIX64-6.5* systems. [Bug 218561] sl@0: * unix/configure: autoconf-2.13 sl@0: sl@0: * generic/tclCmdMZ.c (TclCheckInterpTraces): The TIP 62 sl@0: * generic/tclTest.c (TestcmdtraceCmd): implementation introduced a sl@0: * tests/basic.test (basic-39.10): bug by testing the CallFrame sl@0: level instead of the iPtr->numLevels level when deciding what traces sl@0: created by Tcl_Create(Obj)Trace to call. Added test to expose the sl@0: error, and made fix. [Request 462580] sl@0: sl@0: 2004-02-26 Daniel Steffen sl@0: sl@0: * macosx/Makefile: fixed copyright year in Tcl.framework Info.plist sl@0: sl@0: 2004-02-25 Don Porter sl@0: sl@0: * tests/basic.test: Made several tests more robust to the sl@0: * tests/cmdMZ.test: list-quoting of path names that might sl@0: * tests/exec.test: contain Tcl-special chars like { or [. sl@0: * tests/io.test: Should help us sort out Tcl Bug 554068. sl@0: * tests/pid.test: sl@0: * tests/socket.test: sl@0: * tests/source.test: sl@0: * tests/unixInit.test: sl@0: sl@0: 2004-02-25 Donal K. Fellows sl@0: sl@0: * unix/tclUnixChan.c (TcpGetOptionProc): Stop memory leak with very sl@0: long hostnames. [Bug 888777] sl@0: sl@0: 2004-02-25 David Gravereaux sl@0: sl@0: * tests/winPipe.test: sl@0: * win/tclWinPipe.c: backport of BuildCommandLine changes to mirror sl@0: msvcrt's parse_cmdline() rules of quoting. sl@0: sl@0: 2004-02-19 Mo DeJong sl@0: sl@0: * win/tclWinInit.c (AppendEnvironment): Use the tail component of the sl@0: passed in lib path instead of just blindly using lib+4. That worked sl@0: when lib was "lib/..." but fails for other values. Thanks go to sl@0: Patrick Samson for pointing this out. sl@0: sl@0: 2004-02-17 Don Porter sl@0: sl@0: * doc/tcltest.n: sl@0: * library/tcltest/tcltest.tcl: Changed -verbose default value to sl@0: {body error} so that detailed information on unexpected errors in sl@0: tests is provided by default, even after the fix for [Bug 725253] sl@0: sl@0: 2004-02-17 Jeff Hobbs sl@0: sl@0: (reverted due to test failures on Solaris, but not Win/Lin :/) sl@0: * generic/tclIOUtil.c: backport of rewrite of generic file sl@0: normalization code to cope with links followed by '..'. [Bug 849514], sl@0: and parts of [859251] sl@0: sl@0: * tests/unixInit.test: unixInit-7.1 sl@0: * unix/tclUnixInit.c (TclpInitPlatform): ensure the std fds exist to sl@0: prevent crash condition [Bug 772288] sl@0: sl@0: 2004-02-16 Jeff Hobbs sl@0: sl@0: * generic/tclCmdMZ.c (TclTraceExecutionObjCmd) sl@0: (TclTraceCommandObjCmd): fix possible mem leak in trace info. sl@0: sl@0: 2004-02-12 Jeff Hobbs sl@0: sl@0: * README: update patchlevel to 8.4.6 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure, unix/configure.in, unix/tcl.spec: sl@0: * win/README.binary, win/configure, win/configure.in: sl@0: sl@0: * unix/tcl.m4: update HP-11 build libs setup sl@0: sl@0: 2004-02-06 Don Porter sl@0: sl@0: * doc/clock.n: Removed reference to non-existent [file ctime]. sl@0: sl@0: 2004-02-04 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected references to sl@0: non-existent $name variable in [cleanupTests]. [Bug 833637] sl@0: sl@0: 2004-02-03 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected parsing of single sl@0: command line argument (option with missing value) [Bug 833910] sl@0: * library/tcltest/pkgIndex.tcl: Bump to version 2.2.5. sl@0: sl@0: 2004-02-02 David Gravereaux sl@0: sl@0: * generic/tclIO.c (Tcl_Ungets): fixes improper filling of the channel sl@0: buffer. [Bug 405995] sl@0: sl@0: 2004-01-13 Don Porter sl@0: sl@0: * generic/tclFileName.c (Tcl_GlobObjCmd): Latest changes to sl@0: management of the interp result by Tcl_GetIndexFromObj() exposed sl@0: improper interp result management in the [glob] command procedure. sl@0: Corrected by adopting the Tcl_SetObjResult(Tcl_NewStringObj) pattern. sl@0: This stopped a segfault in test filename-11.36. sl@0: sl@0: 2004-01-13 Donal K. Fellows sl@0: sl@0: * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct, Tcl_WrongNumArgs): sl@0: Create fresh objects instead of using the one currently in the sl@0: interpreter, which isn't guaranteed to be fresh and unshared. The sl@0: cost for the core will be minimal because of the object cache, and sl@0: this fixes. [Bug 875395] sl@0: sl@0: 2004-01-09 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: fix to infinite loop in TclFinalizeFilesystem. sl@0: [Bug 873311] sl@0: sl@0: 2003-12-17 Daniel Steffen sl@0: sl@0: * generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bug when sl@0: numeric scan-value cache contains NULL value. sl@0: sl@0: 2003-12-17 Zoran Vasiljevic sl@0: sl@0: * generic/tclIOUtil.c: fixed 2 memory (object) leaks. This fixes [Bug sl@0: 839519] sl@0: sl@0: 2003-12-12 Vince Darley sl@0: sl@0: * generic/tclCmdAH.c: fix to normalization of non-existent user name sl@0: ('file normalize ~nobody') [Bug 858937] sl@0: sl@0: 2003-12-09 Donal K. Fellows sl@0: sl@0: * unix/tclUnixPort.h: #ifdef'd out declarations of errno which sl@0: * tools/man2tcl.c: are known to cause problems with recent sl@0: glibc. [Bug 852369] sl@0: sl@0: 2003-12-03 Don Porter sl@0: sl@0: * generic/tcl.h: Bumped patch level to 8.4.5.1 to distinguish sl@0: * unix/configure.in: CVS snapshots from 8.4.5 release. sl@0: * unix/tcl.spec: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf (2.13) sl@0: * win/configure: sl@0: sl@0: 2003-12-02 Donal K. Fellows sl@0: sl@0: * generic/tclBinary.c (DeleteScanNumberCache, ScanNumber): Made sl@0: the numeric scan-value cache have proper references to the objects sl@0: within it so strange patterns of writes won't cause references to sl@0: freed objects. Thanks to Paul Obermeier for the report. [Bug 851747] sl@0: sl@0: 2003-12-01 Miguel Sofer sl@0: sl@0: * doc/lset.n: fix typo [Bug 852224] sl@0: sl@0: 2003-11-21 Don Porter sl@0: sl@0: *** 8.4.5 TAGGED FOR RELEASE *** sl@0: sl@0: * tests/windFCmd.test (winFCmd-16.10): Corrected failure to sl@0: initialize variable $dd that caused test suite failure. sl@0: sl@0: 2003-11-20 Miguel Sofer sl@0: sl@0: * generic/tclVar.c: fix flag bit collision between LOOKUP_FOR_UPVAR sl@0: and TCL_PARSE_PART1 (deprecated) [Bug 835020] sl@0: sl@0: 2003-11-20 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: sl@0: * tests/winFCmd.test: fix to [Bug 845778] - Infinite recursion on [cd] sl@0: (Windows only bug). sl@0: sl@0: 2003-11-18 Jeff Hobbs sl@0: sl@0: * changes: updated for 8.4.5 release sl@0: sl@0: 2003-11-17 Don Porter sl@0: sl@0: * generic/regcomp.c: Backported regexp bug fixes and tests. Thanks sl@0: * generic/tclTest.c: to Pavel Goran and Vince Darley. sl@0: * tests/reg.test: [Bugs 230589, 504785, 505048, 703709, 840258] sl@0: sl@0: 2003-11-12 Jeff Hobbs sl@0: sl@0: * tests/cmdMZ.test (cmdMZ-1.4): change to nonPortable as more sl@0: systems are using permissions caching, and this isn't really a Tcl sl@0: controlled issue. sl@0: sl@0: 2003-11-11 Jeff Hobbs sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4: improve AIX --enable-64bit handling sl@0: sl@0: 2003-11-10 Don Porter sl@0: sl@0: * tests/unixInit.test (unixInit-2.10): re-enabled. sl@0: * unix/tclUnixInit.c (TclpInitLibraryPath): Alternative fix sl@0: * win/tclWinInit.c (TclpInitLibraryPath): for [Bug 832657] sl@0: that should not run afoul of startup constraints. sl@0: sl@0: * library/dde/pkgIndex.tcl: Added safeguards so that registry sl@0: * library/reg/pkgIndex.tcl: and dde packages are not offered sl@0: * win/tclWinDde.c: on non-Windows platforms. Bumped to sl@0: * win/tclWinReg.c: registry 1.1.3 and dde 1.2.2. sl@0: sl@0: 2003-11-06 Jeff Hobbs sl@0: sl@0: * tests/unixInit.test (unixInit-2.10): mark as knownBug sl@0: * generic/tclEncoding.c (TclFindEncodings): revert patch from sl@0: 2003-11-05. It wasn't valid in the sensitive startup init phase sl@0: and broke Windows from working at all. sl@0: sl@0: 2003-11-07 Daniel Steffen sl@0: sl@0: * macosx/Makefile: optimized builds define NDEBUG to turn off sl@0: ThreadAlloc range checking. sl@0: sl@0: 2003-11-05 Don Porter sl@0: sl@0: * generic/tclEncoding.c (TclFindEncodings): Normalize the path sl@0: of the executable before passing to TclpInitLibraryPath() to avoid sl@0: buggy handling of paths containing "..". [Bug 832657] sl@0: * tests/unixInit.test (unixInit-2.10): New test for fixed bug. sl@0: sl@0: 2003-11-04 Daniel Steffen sl@0: sl@0: * macosx/Makefile: added 'test' target. sl@0: sl@0: 2003-10-31 Vince Darley sl@0: sl@0: * generic/tclTest.c: fix test suite memory leak (backport error) sl@0: * unix/tclUnixFile.c: ensure translated path (required for correct sl@0: error messages) is freed in both code paths. sl@0: sl@0: 2003-10-23 Andreas Kupries sl@0: sl@0: * unix/tclUnixChan.c (Tcl_MakeFileChannel): Applied [Patch 813606] sl@0: fixing [Bug 813087]. Detection of sockets was off for Mac OS X which sl@0: implements pipes as local sockets. The new code ensures that only IP sl@0: sockets are detected as such. sl@0: sl@0: 2003-10-22 Andreas Kupries sl@0: sl@0: * win/tclWinSock.c (TcpWatchProc): Watch for FD_CLOSE too when asked sl@0: for writable events by the generic layer. sl@0: (SocketEventProc): Generate a writable event too when a close is sl@0: detected. sl@0: sl@0: Together the changes fix [Bug 599468]. sl@0: sl@0: 2003-10-22 Andreas Kupries sl@0: sl@0: * generic/tclIOUtil.c (FsListMounts, FsAddMountsToGlobResult): New sl@0: functions. See below for context. sl@0: (Tcl_FSMatchInDirectory): Modified to call on the new functions sl@0: (above) to handle the mountpoints in the glob'bed directory correctly. sl@0: Part of the patch by Vincent Darley to solve the [Bug 800106] for the sl@0: 8.4.x series. sl@0: sl@0: * generic/tcl.h (TCL_GLOB_TYPE_MOUNT): New definition. Part of the sl@0: patch by Vincent Darley to solve [Bug 800106] for the 8.4.x series. sl@0: sl@0: 2003-10-22 Donal K. Fellows sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FileObjCmd): Changed FILE_ prefix for option sl@0: enumeration to FCMD_ to prevent collision with symbols defined by sl@0: Cygwin/Mingw32 on NT. [Bug 822528] sl@0: sl@0: 2003-10-21 Daniel Steffen sl@0: sl@0: * tools/tcltk-man2html.tcl: fixed incorrect html generated for .IP/.TP sl@0: lists, now use
...
...

...
...
instead of sl@0: illegal

...
...

...
...
. Added skipping of sl@0: directives directly after .TP to avoid them being used as item sl@0: descriptions, e.g. .TP\n.VS in clock.n. sl@0: sl@0: 2003-10-21 Andreas Kupries sl@0: sl@0: * win/tclWinPipe.c (BuildCommandLine): Applied the patch coming with sl@0: [Bug 805605] to the code, fixing the incorrect use of ispace noted by sl@0: Ronald Dauster . sl@0: sl@0: 2003-10-14 David Gravereaux sl@0: sl@0: * win/tclAppInit.c (sigHandler): Punt gracefully if exitToken has sl@0: already been destroyed. sl@0: sl@0: 2003-10-13 Vince Darley sl@0: sl@0: * generic/tclCmdMZ.c: sl@0: * tests/regexp.test: fix to [Bug 823524] in regsub; added three new sl@0: tests. sl@0: sl@0: 2003-10-12 Jeff Hobbs sl@0: sl@0: * unix/tclUnixTest.c (TestalarmCmd): don't bother checking return sl@0: value of alarm. [Bug 664755] (english) sl@0: sl@0: 2003-10-08 Don Porter sl@0: sl@0: * generic/tclBasic.c: Save and restore the iPtr->flag bits that sl@0: control the state of errorCode and errorInfo management when calling sl@0: "leave" execution traces, so that all error information of the traced sl@0: command is still available whether traced or not. Thanks to Yahalom sl@0: Emet. [Bug 760947] sl@0: sl@0: 2003-10-08 Donal K. Fellows sl@0: sl@0: * generic/tclTest.c (TestNumUtfCharsCmd): Command to allow finer sl@0: access to Tcl_NumUtfChars for testing. sl@0: * generic/tclUtf.c (Tcl_NumUtfChars): Corrected string length sl@0: determining when the length parameter is negative; the terminator is a sl@0: zero byte, not (necessarily) a \u0000 character. [Bug 769812] sl@0: sl@0: 2003-10-07 Don Porter sl@0: sl@0: * tests/exec.test: Corrected temporary file management sl@0: * tests/fileSystem.test: issues uncovered by -debug 1 test sl@0: * tests/io.test: operations. Also backported some sl@0: * tests/ioCmd.test: other fixes from the HEAD. sl@0: * tests/pid.test: [Bugs 675605, 675655, 675659] sl@0: * tests/socket.test: sl@0: * tests/source.test: sl@0: sl@0: * tests/fCmd.test: Run tests with the [temporaryDirectory] as sl@0: the current directory, so that tests can depend on ability to write sl@0: files. [Bug 575837] sl@0: sl@0: * doc/OpenFileChnl.3: Updated Tcl_Tell and Tcl_Seek documentation sl@0: to reflect that they now return Tcl_WideInt (TIP 72) [Bug 787537] sl@0: sl@0: * tests/io.test: Corrected several tests that failed when paths sl@0: * tests/ioCmd.test: included regexp-special chars. [Bug 775394] sl@0: sl@0: 2003-10-06 Don Porter sl@0: sl@0: * tests/regexp.test: Matched [makeFile] with [removeFile]. sl@0: * tests/regexpComp.test: [Bug 675652] sl@0: sl@0: * tests/fCmd.test (fCmd-8.2): Test only that tilde-substitution sl@0: happens, not for any particular result. [Bug 685991] sl@0: sl@0: * unix/tcl.m4 (SC_PATH_TCLCONFIG): Corrected search path so sl@0: that alpha and beta releases of Tcl are not favored. [Bug 608698] sl@0: sl@0: * tests/reg.test: Corrected duplicate test names. sl@0: * tests/resource.test: [Bugs 710370, 710358] sl@0: sl@0: * tests/cmdMZ.test: Updated [package require tcltest] lines to sl@0: * tests/fileSystem.test: indiciate that these test files sl@0: * tests/notify.test: use features of tcltest 2. [Bug 706114] sl@0: * tests/parseExpr.test: sl@0: * tests/unixNotfy.test: sl@0: sl@0: 2003-10-06 Vince Darley sl@0: sl@0: * generic/tclFileName.c: sl@0: * generic/tclIOUtil.c: backport of volumerelative file normalization sl@0: and 'file join' inconsistency fixes [Bug 767834, 813273]. sl@0: sl@0: 2003-10-04 Chengye Mao sl@0: sl@0: * win/tclWinPipe.c: fixed a bug in BuildCommandLine. sl@0: This bug built a command line with a missing space between sl@0: tclpipe.dll and the following arguments. It caused error sl@0: in Windows 98 when exec command.com (e.g. dir) [Bug 789040] sl@0: sl@0: 2003-10-03 Don Porter sl@0: sl@0: * generic/tclBasic.c: Fixed error in ref count management of command sl@0: * generic/tclCmdMZ.c: and execution traces that caused access to sl@0: freed memory in trace-32.1. [Bug 811483] sl@0: sl@0: 2003-10-03 Vince Darley sl@0: sl@0: * tests/fileName.test: sl@0: * tests/winFCmd.test: sl@0: * doc/FileSystem.3: backported various test and documentation changes sl@0: from HEAD. Backport of actual code fixes to follow. sl@0: sl@0: 2003-10-02 Don Porter sl@0: sl@0: * README: Bumped patch level to 8.4.5 to prepare sl@0: * generic/tcl.h: for next patch release. sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf (2.13) sl@0: * win/configure: sl@0: sl@0: * library/http/http.tcl: Bumped to http 2.4.5 sl@0: * library/http/pkgIndex.tcl: sl@0: sl@0: 2003-10-01 Daniel Steffen sl@0: sl@0: * macosx/Makefile: fixed redo prebinding bug when DESTDIR="". sl@0: * mac/tclMacResource.c: fixed possible NULL dereference (bdesgraupes). sl@0: sl@0: 2003-09-29 Don Porter sl@0: sl@0: * generic/tclBasic.c (CallCommandTraces): Added safety bit sl@0: * tests/trace.test: masking to prevent any of the bit values sl@0: TCL_TRACE_*_EXEC from leaking into the flags field of any Command sl@0: struct. This does not fix [Bug 811483] but helps to contain some of sl@0: its worst symptoms. Also backported the corrections to test trace-28.4 sl@0: from Vince Darley. sl@0: sl@0: 2003-09-29 Donal K. Fellows sl@0: sl@0: * library/http/http.tcl (geturl): Correctly check the type of sl@0: boolean-valued options. [Bug 811170] sl@0: sl@0: * unix/tcl.m4 (SC_ENABLE_FRAMEWORK): Added note to make it clearer sl@0: that this is an OSX feature, not a general Unix feature. [Bug 619440] sl@0: sl@0: 2003-09-28 David Gravereaux sl@0: sl@0: * win/tclWinPipe.c: The windows port of expect can call sl@0: TclWinAddProcess before any of the other pipe functions. Added a sl@0: missing PipeInit() call to make sure the initialization happens. sl@0: sl@0: 2003-09-25 Daniel Steffen sl@0: sl@0: * macosx/Makefile: ensure SYMROOT exists if OBJROOT is overridden on sl@0: command line. Replaced explict use of /usr/bin by ${BINDIR}. sl@0: sl@0: 2003-09-23 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c: Fixed [Bug 807243] where sl@0: * tests/trace.test (trace-31,32.*): the introspection results sl@0: of both [trace info command] and [trace info execution] were getting sl@0: co-mingled. Thanks to Mark Saye for the report. sl@0: sl@0: * library/init.tcl (auto_load, auto_import): Expanded Eric Melski's sl@0: 2000-01-28 fix for [Bug 218871] to all potentially troubled uses of sl@0: [info commands] on input data, where glob-special characters could sl@0: cause problems. sl@0: sl@0: 2003-09-19 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: adding (DE)CACHE_STACK_INFO() pairs to protect sl@0: all calls that may cause traces on ::errorInfo or ::errorCode to sl@0: corrupt the stack [Bug 804681] sl@0: sl@0: 2003-09-10 Don Porter sl@0: sl@0: * library/opt/optparse.tcl: Overlooked dependence of opt 0.4.4 sl@0: * library/opt/pkgIndex.tcl: on Tcl 8.2. Bumped to opt 0.4.4.1. sl@0: sl@0: 2003-09-01 Zoran Vasiljevic sl@0: sl@0: * generic/tclIOUtil.c: backported fix from HEAD [Bug 788780] sl@0: sl@0: 2003-08-27 Don Porter sl@0: sl@0: * generic/tclUtil.c: Corrected [Bug 411825] and other bugs in sl@0: TclNeedSpace() where non-breaking space (\u00A0) and backslash-escaped sl@0: spaces were handled incorrectly. sl@0: * tests/util.test: Added new tests util-8.[2-6]. sl@0: sl@0: 2003-08-06 Jeff Hobbs sl@0: sl@0: * win/tclWinInit.c: recognize amd64 and ia32_on_win64 cpus and sl@0: Windows CE platform. sl@0: sl@0: 2003-08-06 Don Porter sl@0: sl@0: * library/msgcat/msgcat.tcl: Added escape so that non-Windows sl@0: * library/msgcat/pkgIndex.tcl: platforms do not try to use the sl@0: registry package. This can save a costly and pointless package sl@0: search. Bumped to 1.3.1. Thanks to Dave Bodenstab. [Bug 781609] sl@0: sl@0: 2003-08-05 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (INST_INVOKE, INST_EVAL, INST_PUSH_RESULT): sl@0: added a Tcl_ResetResult(interp) at each point where the interp's sl@0: result is pushed onto the stack, to avoid keeping an extra reference sl@0: that may cause costly Tcl_Obj duplication. Detected by Franco Violi, sl@0: analyzed by Peter Spjuth and Donal Fellows. [Bug 781585] sl@0: sl@0: 2003-07-24 Reinhard Max sl@0: sl@0: * library/package.tcl: Fixed a typo that broke pkg_mkIndex -verbose. sl@0: sl@0: * tests/pkgMkIndex.test: Added a test for [pkg_mkIndex -verbose]. sl@0: sl@0: 2003-07-23 Daniel Steffen sl@0: sl@0: * unix/Makefile.in: changes to html-tcl & html-tk targets for sl@0: compatibility with non-gnu makes. sl@0: sl@0: * unix/Makefile.in: added macosx/README to dist target. sl@0: sl@0: 2003-07-23 Pat Thoyts sl@0: sl@0: * win/tclWinReg.c (OpenSubKey): Backported fix for [Bug 775976] which sl@0: causes the registry set command to fail when built with VC7. sl@0: * library/reg/pkgIndex.tcl: Incremented the version to 1.1.2. sl@0: sl@0: 2003-07-21 Jeff Hobbs sl@0: sl@0: *** 8.4.4 TAGGED FOR RELEASE *** sl@0: sl@0: * changes: updated for 8.4.4 release sl@0: sl@0: 2003-07-18 Daniel Steffen sl@0: sl@0: * macosx/Makefile: added option to allow installing manpages in sl@0: addition to default html help. sl@0: sl@0: 2003-07-18 Donal K. Fellows sl@0: sl@0: * doc/Utf.3: Tightened up documentation of Tcl_UtfNext and Tcl_UtfPrev sl@0: to better match the behaviour. [Bug 769895] sl@0: sl@0: 2003-07-18 Jeff Hobbs sl@0: sl@0: * generic/tclIOUtil.c: correct MT-safety issues with filesystem sl@0: records. [Bug 753315] (vasiljevic) sl@0: sl@0: * library/http/pkgIndex.tcl: merged to v2.4.4 from head sl@0: * library/http/http.tcl: add support for user:pass info in URL. sl@0: * tests/http.test: [Bug 759888] (shiobara) sl@0: sl@0: 2003-07-18 Don Porter sl@0: sl@0: * generic/tclBasic.c: Corrected several instances of unsafe sl@0: * generic/tclCompile.c: truncation of UTF-8 strings that might break sl@0: * generic/tclProc.c: apart a multi-byte character. [Bug 760872] sl@0: * library/init.tcl: sl@0: * tests/init.test: sl@0: sl@0: * doc/tcltest.n: Restored the [Eval] proc to replace sl@0: * library/tcltest/tcltest.tcl: the [::puts] command when either the sl@0: -output or -error option for [test] is in use, in order to capture sl@0: data written to the output or error channels for comparison against sl@0: what is expected. This is easier to document and agrees better with sl@0: most user expectations than the previous attempt to replace [puts] sl@0: only in the caller's namespace. Documentation made more precise on the sl@0: subject. [Bug 706359] sl@0: sl@0: * doc/AddErrInfo.3: Improved consistency of documentation by using sl@0: * doc/CrtTrace.3: "null" everywhere to refer to the character sl@0: * doc/Encoding.3: '\0', and using "NULL" everywhere to refer to sl@0: * doc/Eval.3: the value of a pointer that points to nowhere. sl@0: * doc/GetIndex.3: Also dropped references to ASCII that are no sl@0: * doc/Hash.3: longer true, and standardized on the sl@0: * doc/LinkVar.3: hyphenated spelling of "null-terminated". sl@0: * doc/Macintosh.3: sl@0: * doc/OpenFileChnl.3: sl@0: * doc/SetVar.3: sl@0: * doc/StringObj.3: sl@0: * doc/Utf.3: sl@0: sl@0: * doc/CrtSlave.3 (Tcl_MakeSafe): Removed warning about possible sl@0: deprecation (no TIP on that). sl@0: sl@0: 2003-07-17 Daniel Steffen sl@0: sl@0: * macosx/Makefile: added var to allow overriding of tclsh used during sl@0: html help building (Landon Fuller). sl@0: sl@0: 2003-07-16 Mumit Khan sl@0: sl@0: * generic/tclIOUtil.c (SetFsPathFromAny): Add Cygwin specific code to sl@0: convert POSIX filename to native format. sl@0: * generic/tclFileName.c (Tcl_TranslateFileName): And remove from here. sl@0: (TclDoGlob): Adjust for cygwin and append / for dirs instead of \ sl@0: * win/tclWinFile.c (TclpObjChdir): Use chdir on Cygwin. [Patch 679315] sl@0: sl@0: 2003-07-16 Jeff Hobbs sl@0: sl@0: * library/safe.tcl (FileInAccessPath): normalize paths before sl@0: comparison. [Bug 759607] (myers) sl@0: sl@0: * unix/tclUnixNotfy.c (NotifierThreadProc): correct size of found and sl@0: word vars from int to long. [Bug 767578] (hgo) sl@0: sl@0: 2003-07-16 Donal K. Fellows sl@0: sl@0: * doc/CrtSlave.3 (Tcl_MakeSafe): Updated documentation to strongly sl@0: discourage use. IMHO code outside the core that uses this function is sl@0: a bug... [Bug 655300] sl@0: sl@0: 2003-07-16 Jeff Hobbs sl@0: sl@0: * generic/tcl.h: Add recognition of -DTCL_UTF_MAX=6 on the sl@0: * generic/regcustom.h: make line to support UCS-4 mode. No config arg sl@0: at this time, as it is not the recommended build mode. sl@0: sl@0: * generic/tclPreserve.c: In Result and Preserve'd routines, do not sl@0: * generic/tclUtil.c: assume that ckfree == free, as that is not sl@0: * generic/tclResult.c: always true. [Bug 756791] (fuller) sl@0: sl@0: 2003-07-16 Mo DeJong sl@0: sl@0: * win/Makefile.in: Don't define TCL_DBGX symbol for every compile. sl@0: Instead, define TCL_PIPE_DLL only when compiling tclWinPipe.c. This sl@0: will break other build systems, so they will need to remove the sl@0: TCL_DBGX define and replace it with a define for TCL_PIPE_DLL. sl@0: * win/makefile.vc: Ditto. sl@0: * win/tclWinPipe.c (TclpCreateProcess): Remove PREFIX_IDENT and sl@0: DEBUG_IDENT from top of file. Use TCL_PIPE_DLL passed in from build sl@0: env instead of trying to construct the dll name from already defined sl@0: symbols. This approach is more flexible and better in the long run. sl@0: sl@0: 2003-07-16 Don Porter sl@0: sl@0: * generic/tclFileName.c (Tcl_GlobObjCmd): [Bug 771840] sl@0: * generic/tclIOUtil.c (Tcl_FSConvertToPathType):[Bug 771947] sl@0: * unix/tclUnixFCmd.c (GetModeFromPermString): [Bug 771949] sl@0: Silence compiler warnings about unreached lines. sl@0: sl@0: * library/tcltest/tcltest.tcl (ProcessFlags): Corrected broken call sl@0: * library/tcltest/pkgIndex.tcl: to [lrange]. Bumped to sl@0: version 2.2.4. [Bug 772333] sl@0: sl@0: 2003-07-15 Mo DeJong sl@0: sl@0: * unix/dltest/pkga.c (Pkga_EqObjCmd): Fix typo that was causing a sl@0: crash in load.test. sl@0: sl@0: 2003-07-15 Donal K. Fellows sl@0: sl@0: * doc/array.n: Added some examples from David Welton [Patch 763312] sl@0: sl@0: 2003-07-15 Don Porter sl@0: sl@0: * doc/http.n: Updated SYNOPSIS to match actual syntax of commands. sl@0: [Bug 756112] sl@0: sl@0: * unix/dltest/pkga.c: Updated to not use Tcl_UtfNcmp and counted sl@0: strings instead of strcmp (not defined in any #include'd header) and sl@0: presumed NULL-terminated strings. sl@0: sl@0: * README: Bumped patch level to 8.4.4 in anticipation sl@0: * generic/tcl.h: of another patch release. sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf (2.13) sl@0: * win/configure: sl@0: sl@0: * generic/tclCompCmds.c (TclCompileIfCmd): Prior fix of Bug 711371 sl@0: on 2003-04-07 introduced a buffer overflow. Corrected. [Bug 771613] sl@0: sl@0: 2003-07-15 Donal K. Fellows sl@0: sl@0: * generic/tclCmdIL.c (SortCompare): Cleared up confusing error sl@0: message. [Bug 771539] sl@0: sl@0: 2003-07-15 Daniel Steffen sl@0: sl@0: * macosx/Makefile: Rewrote buildsystem for Mac OS X framework build to sl@0: be purely make driven; in order to become independent of Apple's sl@0: closed-source IDE and build tool. The changes are intended to be sl@0: transparent to the Makefile user, all existing make targets and cmd sl@0: line variable overrides should continue to work. Changed build to only sl@0: include tcl specific html help in Tcl.framework, the tk specific html sl@0: help is now included in Tk.framework. sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: sl@0: * macosx/Tcl.pbproj/jingham.pbxuser: Changed to purely call through to sl@0: the make driven buildsystem; Tcl.framework is no longer assembled by sl@0: ProjectBuilder. Set default SYMROOT in target options to simplify sl@0: setting up PB (manually setting common build folder for tcl & tk no sl@0: longer needed). sl@0: sl@0: * tools/tcltk-man2html.tcl: Added options to allow building only the sl@0: tcl or tk html help files; the default behaviour with none of the new sl@0: options is to build both, as before. sl@0: sl@0: * unix/Makefile.in: Added targets for building only the tcl or tk help. sl@0: sl@0: * macosx/README (new): Tcl specific excerpts of tk/macosx/README. sl@0: sl@0: * generic/tcl.h: Updated reminder comment about editing sl@0: macosx/Tcl.pbproj/project.pbxproj when version number changes. sl@0: sl@0: 2003-07-11 Donal K. Fellows sl@0: sl@0: * tests/binary.test (binary-46.*): Tests to help enforce the current sl@0: behaviour. sl@0: * doc/binary.n: Documented that [binary format a] and [binary scan a] sl@0: do encoding conversion by dropping high bytes, unlike the rest of sl@0: the core. [Bug 735364] sl@0: sl@0: 2003-07-11 Don Porter sl@0: sl@0: * library/package.tcl: Corrected [pkg_mkIndex] bug reported on sl@0: comp.lang.tcl. The indexer was searching for newly indexed packages sl@0: instead of newly provided packages. sl@0: sl@0: 2003-07-04 Donal K. Fellows sl@0: sl@0: * doc/expr.n: Tighten up the wording of some operations. [Bug 758488] sl@0: sl@0: * tests/cmdAH.test: Made tests of [file mtime] work better on FAT sl@0: filesystems. [Patch 760768] Also a little general cleanup. sl@0: sl@0: 2003-06-25 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Add -ieee when compiling with cc and sl@0: add -mieee when compiling with gcc under OSF1-V5 "Tru64" systems. [Bug sl@0: 748957] sl@0: sl@0: 2003-06-24 Donal K. Fellows sl@0: sl@0: * doc/encoding.n: Corrected the docs to say that [source] uses the sl@0: system encoding, which it always did anyway (since 8.1) [Bug 742100] sl@0: sl@0: 2003-06-23 Vince Darley sl@0: sl@0: * generic/tclFCmd.c: fix to bad error message when trying to do 'file sl@0: copy foo ""'. [Bug 756951] sl@0: * tests/fCmd.test: added two new tests for the bug. sl@0: sl@0: * doc/FileSystem.3: documentation fix [Bug 720634] sl@0: sl@0: 2003-06-18 Miguel Sofer sl@0: sl@0: * generic/tclNamesp.c (Tcl_Export): removed erroneous comments [Bug sl@0: 756744] sl@0: sl@0: 2003-06-17 Vince Darley sl@0: sl@0: * generic/tclCmdMZ.c: sl@0: * tests/regexp.test: fixing of bugs related to regexp and regsub sl@0: matching of empty strings. Addition of a number of new tests. sl@0: sl@0: 2003-06-10 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c: sl@0: * generic/tclExecute.c: let TclEvalObjvInternal call TclInterpReady sl@0: instead of relying on its callers to do so; fix for the part of [Bug sl@0: 495830] that is new in 8.4. sl@0: * tests/interp.test: Added tests 18.9 (knownbug) and 18.10 sl@0: sl@0: 2003-06-09 Don Porter sl@0: sl@0: * tests/string.test (string-4.15): Added test for [string first] bug sl@0: reported in Tcl 8.3, where test for all-single-byte-encoded strings sl@0: was not reliable. sl@0: sl@0: 2003-06-04 Joe Mistachkin sl@0: sl@0: * tools/man2help.tcl: Added duplicate help section checking and sl@0: * tools/index.tcl: corrected a comment typo for the getTopics proc sl@0: in index.tcl. [Bug 748700] sl@0: sl@0: 2003-05-23 Don Porter sl@0: sl@0: * generic/tclObj.c (tclCmdNameType): Converted internal rep sl@0: management of the cmdName Tcl_ObjType the opposite way, to always use sl@0: the twoPtrValue instead of always using the otherValuePtr. Previous sl@0: fix on 2003-05-12 broke several extensions that wanted to poke around sl@0: with the twoPtrValue.ptr2 value of a cmdName Tcl_Obj, like TclBlend sl@0: and e4graph. [Bug 726018] Thanks to George Petasis for the bug report sl@0: and Jacob Levy for testing assistance. sl@0: sl@0: 2003-05-22 Daniel Steffen sl@0: sl@0: *** 8.4.3 TAGGED FOR RELEASE *** sl@0: sl@0: * macosx/tclMacOSXBundle.c: fixed a problem that caused only the first sl@0: call to Tcl_MacOSXOpenVersionedBundleResources() for a given bundle sl@0: identifier to succeed. This caused the tcl runtime library not to be sl@0: found in all interps created after the inital one. sl@0: sl@0: 2003-05-20 Jeff Hobbs sl@0: sl@0: * changes: updated for 8.4.3 sl@0: sl@0: * unix/Makefile.in: do not run autoconf during 'make dist' as the sl@0: configure is now a CVS-maintained file and should be up-to-date. sl@0: sl@0: 2003-05-19 Daniel Steffen sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: changed tclConfig.sh location in sl@0: versioned framework subdirectories to be identical to location in sl@0: framework toplevel; fixed stub library symbolic links to be Tcl sl@0: version specific. sl@0: sl@0: 2003-05-16 Daniel Steffen sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: updated copyright year. sl@0: sl@0: 2003-05-15 Jeff Hobbs sl@0: sl@0: * win/tclWinFile.c (TclpMatchInDirectory): revert glob code to r1.44 sl@0: as 2003-04-14 optimizations broke Windows98 glob'ing. sl@0: sl@0: * README: bumped version to 8.4.3 sl@0: * generic/tcl.h: sl@0: * macosx/Tcl.pbproj/project.pbxproj: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure: sl@0: * win/configure.in: sl@0: sl@0: * doc/socket.n: nroff font handling correction. sl@0: sl@0: * library/encoding/gb2312-raw.enc (new): This is the original sl@0: gb2312.enc renamed to allow for it to still be used. This is needed by sl@0: Tk (unix) because X fonts with gb2312* charsets really do want the sl@0: original gb2312 encoding. [Bug 557030] sl@0: sl@0: 2003-05-14 Donal K. Fellows sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): Values which can't be sl@0: anything but wide shouldn't be demoted to long. [consequence of HEAD sl@0: fixes for Bug 699060] sl@0: sl@0: 2003-05-14 Jeff Hobbs sl@0: sl@0: * library/encoding/gb2312.enc: copy euc-cn.enc over original sl@0: gb2312.enc. gb2312.enc appeared to not work as expected, and most uses sl@0: of gb2312 really mean euc-cn (which may be the cause of the problem). sl@0: [Bug 557030] sl@0: sl@0: * generic/tclEnv.c (TclUnsetEnv): Another putenv() copy behavior sl@0: problem repaired when compiling on windows and using microsoft's sl@0: runtime. [Bug 736421] (gravereaux) sl@0: sl@0: 2003-05-13 Jeff Hobbs sl@0: sl@0: * generic/tclIOUtil.c: add decl for FsThrExitProc to suppress warnings sl@0: sl@0: 2003-05-13 Donal K. Fellows sl@0: sl@0: * generic/tclEvent.c (Tcl_Finalize): Removed unused variable to reduce sl@0: compiler warnings. [Bug 664745] sl@0: sl@0: 2003-05-13 Joe Mistachkin sl@0: sl@0: * generic/tcl.decls: Changed Tcl_JoinThread parameter name from "id" sl@0: * generic/tclDecls.h: to "threadId". [Bug 732477] sl@0: * unix/tclUnixThrd.c: sl@0: * win/tclWinThrd.c: sl@0: * mac/tclMacThrd.c: sl@0: sl@0: 2003-05-13 Daniel Steffen sl@0: sl@0: * generic/tcl.decls: sl@0: * macosx/tclMacOSXBundle.c: added extended version of the sl@0: Tcl_MacOSXOpenBundleResources() API taking an extra version number sl@0: argument: Tcl_MacOSXOpenVersionedBundleResources(). This is needed to sl@0: be able to access bundle resources in versioned frameworks such as Tcl sl@0: and Tk, otherwise if multiple versions were installed, only the latest sl@0: version's resources could be accessed. [Bug 736774] sl@0: sl@0: * unix/tclUnixInit.c (Tcl_MacOSXGetLibraryPath): use new versioned sl@0: bundle resource API to get tcl runtime library for TCL_VERSION. sl@0: [Bug 736774] sl@0: sl@0: * generic/tclPlatDecls.h: sl@0: * generic/tclStubInit.c: regen. sl@0: sl@0: * unix/tclUnixPort.h: worked around the issue of realpath() not being sl@0: thread-safe on Mac OS X by defining NO_REALPATH for threaded builds on sl@0: Mac OS X. [Bug 711232] sl@0: sl@0: 2003-05-12 Don Porter sl@0: sl@0: * generic/tclInterp.c: (AliasObjCmd): Added refCounting of the words sl@0: * tests/interp.test (interp-33.1): of the target of an interp sl@0: alias during its execution. Also added test. [Bug 730244]. sl@0: sl@0: * generic/tclBasic.c (TclInvokeObjectCommand): objv[argc] is no sl@0: longer set to NULL (Tcl_CreateObjCommand docs already say that it sl@0: should not be accessed). sl@0: sl@0: * generic/tclObj.c (tclCmdNameType): Corrected variable use of the sl@0: otherValuePtr or the twoPtrValue.ptr1 fields to store a sl@0: (ResolvedCmdName *) as the internal rep. [Bug 726018]. sl@0: sl@0: * doc/Eval.3: Corrected prototype for Tcl_GlobalEvalObj [Bug 727622]. sl@0: sl@0: 2003-05-12 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (TclObjLookupVar): [Bug 735335] temporary fix, sl@0: disabling usage of tclNsVarNameType. sl@0: * tests/var.test (var-15.1): test for [Bug 735335] sl@0: sl@0: 2003-05-10 Zoran Vasiljevic sl@0: sl@0: * unix/tclUnixThrd.c: corrected [Bug 723502] sl@0: sl@0: 2003-05-10 Jeff Hobbs sl@0: sl@0: * generic/tclIOUtil.c: ensure cd is thread-safe. sl@0: [Bug 710642] (vasiljevic) sl@0: sl@0: * win/tclWinSerial.c (SerialCloseProc): correct mem leak on closing a sl@0: Windows serial port [Bug 718002] (schroedter) sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd): prevent string repeat crash sl@0: when overflow sizes were given (throws error). [Bug 714106] sl@0: sl@0: 2003-05-09 Joe Mistachkin sl@0: sl@0: * generic/tclThreadAlloc.c (TclFreeAllocCache): Fixed memory leak sl@0: caused by treating cachePtr as a TLS index [Bug 731754]. sl@0: sl@0: * win/tclAppInit.c (Tcl_AppInit): Fixed memory leaks caused by not sl@0: freeing the memory allocated by setargv and the async handler created sl@0: by Tcl_AppInit. An exit handler has been created that takes care of sl@0: both leaks. In addition, Tcl_AppInit now uses ckalloc instead of sl@0: Tcl_Alloc to allow for easier leak tracking and to be more consistent sl@0: with the rest of the Tcl core [Bugs 733156, 733221]. sl@0: sl@0: * tools/encoding/txt2enc.c (main): Fixed memory leak caused by failing sl@0: to free the memory used by the toUnicode array of strings [Bug 733221] sl@0: sl@0: 2003-05-05 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: The -returnCodes option to [test] sl@0: failed to recognize the symbolic name "ok" for return code 0. sl@0: sl@0: 2003-05-05 Donal K. Fellows sl@0: sl@0: * generic/tclBasic.c (Tcl_HideCommand): Fixed error message grammar sl@0: and spelling. sl@0: sl@0: 2003-04-29 Vince Darley sl@0: sl@0: * generic/tclFileName.c: fix to bug reported privately by Jeff where, sl@0: for example, 'glob -path {[tcl]} *' gets confused by the leading sl@0: special character (which is escaped internally), and instead lists sl@0: files in '/'. Bug only occurs on Windows where '\' is also a sl@0: directory separator. (Bug has been around at least since Tcl 8.3.) sl@0: * tests/fileName.test: added test for the above bug. sl@0: sl@0: 2003-04-25 Don Porter sl@0: sl@0: * generic/tclBasic.c: Tcl_EvalObjv() failed to honor the sl@0: TCL_EVAL_GLOBAL flag when resolving command names. Tcl_EvalEx passed a sl@0: string rep including leading whitespace and comments to sl@0: TclEvalObjvInternal(). sl@0: sl@0: 2003-04-25 Andreas Kupries sl@0: sl@0: * win/tclWinThrd.c: Applied [Patch 727271]. This patch changes the sl@0: code to catch any errors returned by the windows functions handling sl@0: TLS ASAP instead of waiting to get some mysterious crash later on due sl@0: to bogus pointers. Patch provided by Joe Mistachkin. sl@0: sl@0: This is a stop-gap measure to deal with the low number of ?TLS slots sl@0: provided by some of the variants of Windows (60-80). sl@0: sl@0: 2003-04-21 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: When the return code of a test does sl@0: not meet expectations, report that as the reason for test failure, sl@0: and do not attempt to check the test result for correctness. [Bug sl@0: 725253] sl@0: sl@0: 2003-04-18 Jeff Hobbs sl@0: sl@0: * generic/tclExecute.c (ExprCallMathFunc): remove incorrect sl@0: extraneous cast from Tcl_WideAsDouble. sl@0: sl@0: 2003-04-18 Donal K. Fellows sl@0: sl@0: * doc/open.n: Moved serial port options from [fconfigure] sl@0: * doc/fconfigure.n: to [open] as it is up to the creator of a sl@0: channel to describe the channel's special sl@0: config options. [Bug 679010] sl@0: sl@0: 2003-04-16 Don Porter sl@0: sl@0: * generic/tcl.h Made changes so that the "wideInt" Tcl_ObjType sl@0: * generic/tclObj.c is defined on all platforms, even those where sl@0: * generic/tclPort.h TCL_WIDE_INT_IS_LONG is defined. Also made sl@0: the Tcl_Value struct have a wideValue field on all platforms. This is sl@0: a ***POTENTIAL INCOMPATIBILITY*** for TCL_WIDE_INT_IS_LONG platforms sl@0: because that struct changes size. This is the same TIP 72 sl@0: incompatibility that was seen on other platforms at the 8.4.0 release, sl@0: when this change should have happened as well. [Bug 713562] sl@0: sl@0: * generic/tclInt.h: New internal macros TclGetWide() and sl@0: TclGetLongFromWide() to deal with both forms of the "wideInt" sl@0: Tcl_ObjType, so that conditional TCL_WIDE_INT_IS_LONG code sl@0: is confined to the header file. sl@0: sl@0: * generic/tclCmdAH.c: Replaced most coding that was conditional sl@0: * generic/tclCmdIL.c: on TCL_WIDE_INT_IS_LONG with code that sl@0: * generic/tclExecute.c: works across platforms, sometimes using sl@0: * generic/tclTest.c: the new macros above to do it. sl@0: * generic/tclUtil.c: sl@0: * generic/tclVar.c: sl@0: sl@0: 2003-04-17 Donal K. Fellows sl@0: sl@0: * doc/socket.n: Added a paragraph to remind people to specify sl@0: their encodings when using sockets. [Bug 630621] sl@0: sl@0: 2003-04-16 Donal K. Fellows sl@0: sl@0: * doc/CrtMathFnc.3: Functions also have to deal with wide ints, sl@0: but this was not documented. [Bug 709720] sl@0: sl@0: 2003-04-15 Kevin Kenny sl@0: sl@0: * win/tclWinTime.c: Corrected use of types to make compilation sl@0: compatible with VC++5. sl@0: sl@0: 2003-04-14 Kevin Kenny sl@0: sl@0: * win/tclWinFile.c: added conditionals to restore compilation on sl@0: VC++6, which was broken by recent changes. sl@0: sl@0: 2003-04-14 Vince Darley sl@0: sl@0: Merged various bug fixes from current cvs head: sl@0: sl@0: * tests/cmdAH.test: better fix to test suite problem if /home is a sl@0: symlink [Bug 703264] sl@0: sl@0: * generic/tclIOUtil.c: fix bad error message with 'cd ""' [Bug 704917] sl@0: * win/tclWinFile.c: sl@0: * win/tclWin32Dll.c: sl@0: * win/tclWinInt.h: allow Tcl to differentiate between reparse points sl@0: which are symlinks and mounted volumes, and correctly handle the sl@0: latter. This involves some elaborate code to find the actual drive sl@0: letter (if possible) corresponding to a mounted volume. [Bug 697862] sl@0: * tests/fileSystem.test: add constraints to stop tests running in sl@0: ordinary tcl interpreter. [Bug 705675] sl@0: * generic/tclIOUtil.c: Some re-arrangement of code to bring it closer sl@0: to CVS HEAD. No functional changes. sl@0: sl@0: * tests/fCmd.test: sl@0: * win/tclWinFile.c: added some filesystem optimisation to the sl@0: 'glob' implementation, and some new tests. sl@0: sl@0: * tests/winFile.test: sl@0: * tests/ioUtil.test: sl@0: * tests/unixFCmd.test: renumbered tests with duplicate numbers. [Bug sl@0: 710361] sl@0: sl@0: 2003-04-12 Kevin Kenny sl@0: sl@0: * tests/clock.test: Renumbered test cases to avoid duplicates [Bug sl@0: 710310]. sl@0: * tests/winTime.test: sl@0: * win/tclWinTest.c (TestwinclockCmd, TestwinsleepCmd): sl@0: * win/tclWinTime.c (Tcl_WinTime, UpdateTimeEachSecond, sl@0: (ResetCounterSamples, AccumulateSample, SAMPLES, TimeInfo): Made sl@0: substantial changes to the phase-locked loop (replaced an IIR filter sl@0: with an FIR one) in a quest for improved loop stability (Bug not sl@0: logged at SF, but cited in private communication from Jeff Hobbs). sl@0: sl@0: 2003-04-11 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd,STR_IS_INT): Corrected sl@0: inconsistent results of [string is integer] observed on systems sl@0: where sizeof(long) != sizeof(int). [Bug 718878] sl@0: * tests/string.test: Added tests for Bug 718878. sl@0: * doc/string.n: Clarified that [string is integer] accepts sl@0: 32-bit integers. sl@0: sl@0: 2003-04-11 Andreas Kupries sl@0: sl@0: * generic/tclIO.c (UpdateInterest): When dropping interest in sl@0: TCL_READABLE now dropping interest in TCL_EXCEPTION too. This fixes a sl@0: bug where Expect detects eof on a file prematurely on Solaris 2.6 and sl@0: higher. A much more complete explanation is in the code itself (40 sl@0: lines of comments for a one-line change :) sl@0: sl@0: 2003-04-10 Donal K. Fellows sl@0: sl@0: * doc/binary.n: Fixed typo in [binary format w] desc. [Bug 718543] sl@0: sl@0: 2003-04-08 Donal K. Fellows sl@0: sl@0: * generic/tclCmdAH.c (Tcl_ErrorObjCmd): Strings are only empty if they sl@0: have zero length, not if their first byte is zero, so fix test sl@0: guarding Tcl_AddObjErrorInfo to take this into account. [Bug reported sl@0: by Don Porter; no bug-id.] sl@0: sl@0: 2003-04-07 Don Porter sl@0: sl@0: * generic/tclCompCmds.c (TclCompileIfCmd): Corrected string limits of sl@0: arguments interpolated in error messages. [Bug 711371] sl@0: sl@0: * generic/tclCmdMZ.c (TraceExecutionProc): Added missing sl@0: Tcl_DiscardResult() call to avoid memory leak. sl@0: sl@0: 2003-04-07 Donal K. Fellows sl@0: sl@0: * generic/tclObj.c (tclWideIntType, TclInitObjSubsystem): sl@0: (SetBooleanFromAny): Make sure that tclWideIntType is defined and sl@0: somewhat sensible everywhere. [Bug 713562] sl@0: sl@0: 2003-04-02 Mo DeJong sl@0: sl@0: * win/configure: Regen. sl@0: * win/configure.in: Set stub lib flag based on new LIBFLAGSUFFIX sl@0: variable. sl@0: * win/tcl.m4 (SC_CONFIG_CFLAGS): Set new LIBFLAGSUFFIX that works like sl@0: LIBSUFFIX, it is used when creating library names. The previous sl@0: implementation would generate -ltclstub85 instead of -ltclstub85s when sl@0: configured with --disable-shared. sl@0: sl@0: 2003-04-01 Don Porter sl@0: sl@0: * tests/README: Direct [source] of *.test files is no longer sl@0: recommended. The tests/*.test files should only be evaluated under the sl@0: control of the [runAllTests] command in tests/all.tcl. sl@0: sl@0: 2003-03-27 Miguel Sofer sl@0: sl@0: * tests/encoding.test: sl@0: * tests/proc-old.test: sl@0: * tests/set-old.test: Altered test numers to eliminate duplicates, sl@0: [Bugs 710313, 710320, 710352] sl@0: sl@0: 2003-03-27 Donal K. Fellows sl@0: sl@0: * tests/parseOld.test: Altered test numers to eliminate duplicates. sl@0: * tests/parse.test: [Bugs 710365, 710369] sl@0: * tests/expr-old.test: sl@0: * tests/expr.test: sl@0: sl@0: * tests/utf.test: Altered test numers to eliminate duplicates. sl@0: * tests/trace.test: [Bugs 710322, 710327, 710349, 710363] sl@0: * tests/lsearch.test: sl@0: * tests/list.test: sl@0: * tests/info.test: sl@0: * tests/incr-old.test: sl@0: * tests/if-old.test: sl@0: * tests/format.test: sl@0: * tests/foreach.test: sl@0: sl@0: 2003-03-26 Don Porter sl@0: sl@0: * doc/tcltest.n: sl@0: * library/tcltest/tcltest.tcl: Added reporting during [configure sl@0: -debug 1] operations to warn about multiple uses of the same test sl@0: name. [FR 576693] Replaced [regexp] and [regsub] with [string map] sl@0: where possible. Thanks to David Welton. [Bugs 667456,667558] sl@0: * library/tcltest/pkgIndex.tcl: Bumped to tcltest 2.2.3 sl@0: sl@0: * tests/msgcat.test (msgcat-2.2.1): changed test name to avoid sl@0: duplication. [Bug 710356] sl@0: sl@0: * unix/dltest/pkg?.c: Changed all Tcl_InitStubs calls to pass argument sl@0: exact = 0, so that rebuilds are not required when Tcl bumps to a new sl@0: version. [Bug 701926] sl@0: sl@0: 2003-03-24 Miguel Sofer sl@0: sl@0: * generic/tclVar.c: sl@0: * tests/var.test: fixing ObjMakeUpvar's lookup algorithm for the sl@0: created local variable, [Bugs 631741] (Chris Darroch) and [696893] sl@0: (David Hilker). sl@0: sl@0: 2003-03-22 Kevin Kenny sl@0: sl@0: * library/dde/pkgIndex.tcl: sl@0: * library/reg/pkgIndex.tcl: Fixed a bug where [package require dde] or sl@0: [package require registry] attempted to load the release version of sl@0: the DLL into a debug build. [Bug 708218] Thanks to Joe Mistachkin for sl@0: the patch. sl@0: * win/makefile.vc: Added quoting around the script name in the 'test' sl@0: target; Joe Mistachkin insists that he has a configuration that fails sl@0: to launch tcltest without it, and it appears harmless otherwise. sl@0: sl@0: 2003-03-20 Don Porter sl@0: sl@0: * generic/tclInt.h (tclOriginalNotifier): sl@0: * generic/tclStubInit.c (tclOriginalNotifier): sl@0: * mac/tclMacNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): sl@0: * unix/tclUnixNotfy.c (Tcl_SetTimer,Tcl_WaitForEvent, sl@0: (Tcl_CreateFileHandler,Tcl_DeleteFileHandler): sl@0: * win/tclWinNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): Some linkers sl@0: apparently use a different representation for a pointer to a function sl@0: within the same compilation unit and a pointer to a function in a sl@0: different compilation unit. This causes checks like those in the sl@0: original notifier procedures to fall into infinite loops. The fix is sl@0: to store pointers to the original notifier procedures in a struct sl@0: defined in the same compilation unit as the stubs tables, and compare sl@0: against those values. [Bug 707174] sl@0: sl@0: * generic/tclInt.h: Removed definition of ParseValue struct that is no sl@0: longer used. sl@0: sl@0: 2003-03-19 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c: sl@0: * tests/compile.test: bad command count on TCL_OUT_LINE_COMPILE sl@0: [Bug 705406] (Don Porter). sl@0: sl@0: 2003-03-19 Don Porter sl@0: sl@0: * doc/Eval.3 (Tcl_EvalObjEx): Corrected CONST and sl@0: * doc/ParseCmd.3 (Tcl_EvalTokensStandard): return type errors in sl@0: documentation. [Bug 683994] sl@0: sl@0: 2003-03-18 Kevin Kenny sl@0: sl@0: * tests/registry.test: Changed the conditionals to avoid an abort if sl@0: [testlocale] is missing, as when running the test in tclsh rather than sl@0: tcltest. [Bug 705677] sl@0: sl@0: 2003-03-18 Daniel Steffen sl@0: sl@0: * tools/tcltk-man2html.tcl: added support for building 'make html' sl@0: from inside distribution directories named with 8.x.x version numbers. sl@0: tcltk-man2html now uses the latest tcl8.x.x resp. tk8.x.x directories sl@0: found inside its --srcdir argument. sl@0: sl@0: 2003-03-18 Vince Darley sl@0: sl@0: * tests/cmdAH.test: fix test suite problem if /home is a symlink sl@0: * generic/tclIOUtil.c: fix bad error message with 'cd ""' sl@0: * win/tclWinFile.c: allow Tcl to differentiate between reparse points sl@0: which are symlinks and mounted drives. sl@0: sl@0: These changes fix [Bugs 703264, 704917, 697862] respectively. sl@0: sl@0: 2003-03-17 Donal K. Fellows sl@0: sl@0: * doc/lsearch.n: Altered documentation of -ascii options so sl@0: * doc/lsort.n: they don't specify that they operate on sl@0: ASCII strings, which they never did sl@0: anyway. [Bug 703807] sl@0: sl@0: 2003-03-14 Donal K. Fellows sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FileObjCmd): Remove assumption that file sl@0: times and longs are the same size. [Bug 698146] sl@0: (Tcl_FormatObjCmd): Stop surprising type conversions from sl@0: happening when working with integer and wide values. [Bug 699060] sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): Only add the modifier that sl@0: indicates we've got a wide int when we're formatting in an integer sl@0: style. Stops some libc's from going mad. [Bug 702622] sl@0: Also tidied whitespace. sl@0: sl@0: 2003-03-13 Kevin Kenny sl@0: sl@0: * win/makefile.vc: Backed the version to 8.4 on the 8.4 branch. (I sl@0: just loathe sticky tags). sl@0: sl@0: 2003-03-12 Don Porter sl@0: sl@0: * generic/tcl.h: Removed TCL_PREFIX_IDENT and TCL_DEBUG_IDENT sl@0: * win/tclWinPipe.c: from tcl.h -- they are not part of Tcl's sl@0: public interface. Put them in win/tclWinPipe.c where they are used. sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_SubstObj): Corrected and added test for sl@0: * tests/subst.test (subst-2.4): Tcl_SubstObj's incorrect sl@0: halting of substitution at the first \x00 byte. [Bug 685106] sl@0: sl@0: * generic/tclInterp.c (Tcl_InterpObjCmd): Corrected and added sl@0: * tests/interp.test (interp-2.13): test for option sl@0: parsing beyond objc for [interp create --]. Thanks to Marco Maggi. sl@0: [Bug 702383] sl@0: sl@0: 2003-03-11 Kevin Kenny sl@0: sl@0: * win/makefile.vc: Added two missing uses of $(DBGX) so that sl@0: tclpip8x.dll loads without panicking on Win9x. sl@0: sl@0: 2003-03-08 Don Porter sl@0: sl@0: * doc/tcltest.n: Added missing "-body" to example. Thanks to sl@0: Helmut Giese. [Bug 700011] sl@0: sl@0: 2003-03-06 Don Porter sl@0: sl@0: * generic/TclUtf.c (Tcl_UniCharNcasecmp): Corrected failure to sl@0: * tests/utf.test (utf-25.*): properly compare Unicode strings of sl@0: different case in a case insensitive manner. [Bug 699042] sl@0: sl@0: 2003-03-03 Jeff Hobbs sl@0: sl@0: *** 8.4.2 TAGGED FOR RELEASE *** sl@0: sl@0: 2003-03-03 Daniel Steffen sl@0: sl@0: Mac OS Classic specific fixes: sl@0: * generic/tclIOUtil.c (TclNewFSPathObj): on TCL_PLATFORM_MAC, sl@0: skip potential directory separator at the beginning of addStrRep. sl@0: * mac/tclMacChan.c (OpenFileChannel, CommonWatch): followup sl@0: fixes to cut and splice implementation for file channels. sl@0: * mac/tclMacFile.c (TclpUtime): pass native path to utime(). sl@0: * mac/tclMacFile.c (TclpObjLink): correctly implemented creation sl@0: of alias files via new static proc CreateAliasFile(). sl@0: * mac/tclMacPort.h: define S_ISLNK macro to fix stat'ing of links. sl@0: * mac/tclMacUtil.c (FSpLocationFromPathAlias): fix to enable sl@0: stat'ing of broken links. sl@0: sl@0: 2003-03-03 Kevin Kenny sl@0: sl@0: * win/Makefile.vc: corrected bug introduced by 'g' for debug builds. sl@0: sl@0: 2003-03-03 Don Porter sl@0: sl@0: * library/dde/pkgIndex.tcl: dde bumped to version 1.2.1 for sl@0: * win/tclWinDde.c: bundled release with Tcl 8.4.2 sl@0: sl@0: * library/reg/pkgIndex.tcl: registry bumped to version 1.1.1 for sl@0: * win/tclWinReg.c: bundled release with Tcl 8.4.2 sl@0: sl@0: * library/opt/pkgIndex.tcl: updated package index to version 0.4.4 sl@0: sl@0: 2003-02-28 Jeff Hobbs sl@0: sl@0: * win/configure: sl@0: * win/configure.in: check for 'g' for debug build type, not 'd'. sl@0: * win/rules.vc (DBGX): correct to use 'g' for nmake win makefile sl@0: to match the cygwin makefile for debug builds. [Bug 635107] sl@0: sl@0: 2003-02-28 Vince Darley sl@0: sl@0: * doc/file.n: subcommand is 'file volumes' not 'file volume' sl@0: sl@0: 2003-02-27 Jeff Hobbs sl@0: sl@0: * generic/tclIOUtil.c (MakeFsPathFromRelative): removed dead code sl@0: check of typePtr (darley). sl@0: sl@0: * tests/winTime.test: added note about PCI hardware dependency sl@0: issues with high performance clock. sl@0: sl@0: 2003-02-27 Donal K. Fellows sl@0: sl@0: * tests/lsearch.test (lsearch-10.7): sl@0: * generic/tclCmdIL.c (Tcl_LsearchObjCmd): Stopped -start option from sl@0: causing an option when used with an empty list. [Bug 694232] sl@0: sl@0: 2003-02-26 Chengye Mao sl@0: sl@0: * win/tclWinInit.c: fixed a bug in TclpSetVariables by initializing sl@0: dwUserNameLen with the sizeof(szUserName) before calling GetUserName. sl@0: Don't know if this bug has been recorded: it caused crash in starting sl@0: Tcl or wish in Windows. sl@0: sl@0: 2003-02-26 Jeff Hobbs sl@0: sl@0: * generic/tclCmdMZ.c (TraceCommandProc): Fix mem leak when sl@0: deleting a command that had trace on it. [Bug 693564] (sofer) sl@0: sl@0: 2003-02-25 Don Porter sl@0: sl@0: * doc/pkgMkIndex.n: Modified [pkg_mkIndex] to use -nocase matching sl@0: * library/package.tcl: of -load patterns, to better accomodate sl@0: common user errors due to confusion between [package names] names sl@0: and [info loaded] names. sl@0: sl@0: 2003-02-25 Andreas Kupries sl@0: sl@0: * tests/pid.test: See below [Bug 678412]. sl@0: * tests/io.test: Made more robust against spaces in paths [Bug 678400] sl@0: sl@0: 2003-02-25 Miguel Sofer sl@0: sl@0: * tests/execute.test: cleaning up testobj's at the end, to avoid leak sl@0: warning by valgrind. sl@0: sl@0: 2003-02-22 Zoran Vasiljevic sl@0: sl@0: * generic/tclEvent.c (Tcl_FinalizeThread): Fix [Bug 571002] sl@0: sl@0: 2003-02-21 Donal K. Fellows sl@0: sl@0: * tests/binary.test (binary-44.[34]): sl@0: * generic/tclBinary.c (ScanNumber): Fixed problem with unwanted sl@0: sign-bit propagation when scanning wide ints. [Bug 690774] sl@0: sl@0: 2003-02-21 Daniel Steffen sl@0: sl@0: * mac/tclMacChan.c (TclpCutFileChannel, TclpSpliceFileChannel): sl@0: Implemented missing cut and splice procs for file channels. sl@0: sl@0: 2003-02-21 Don Porter sl@0: sl@0: * library/package.tcl (tclPkgUnknown): Minor performance tweaks to sl@0: reduce the number of [file] invocations. Meant to improve startup sl@0: times, at least a little bit. [Patch 687906] sl@0: sl@0: 2003-02-20 Daniel Steffen sl@0: sl@0: * unix/tcl.m4: sl@0: * unix/tclUnixPipe.c: (macosx) use vfork() instead of fork() to create sl@0: new processes, as recommended by Apple (vfork can be up to 100 times sl@0: faster thank fork on macosx). sl@0: * unix/configure: regen. sl@0: sl@0: 2003-02-20 Jeff Hobbs sl@0: sl@0: * generic/tclEncoding.c (LoadTableEncoding): sl@0: * library/encoding/cp932.enc: Correct jis round-trip encoding sl@0: * library/encoding/euc-jp.enc: by adding 'R' type to .enc files. sl@0: * library/encoding/iso2022-jp.enc: [Patch 689341] (koboyasi, taguchi) sl@0: * library/encoding/jis0208.enc: sl@0: * library/encoding/shiftjis.enc: sl@0: * tests/encoding.test: sl@0: sl@0: * unix/tclUnixChan.c (Tcl_MakeTcpClientChannel): add sl@0: MakeTcpClientChannelMode that takes actual mode flags to avoid sl@0: hang on OS X (may be OS X bug, but patch works x-plat). sl@0: [Bug 689835] (steffen) sl@0: sl@0: 2003-02-20 Donal K. Fellows sl@0: sl@0: * doc/regsub.n: Typo fix [Bug 688943] sl@0: sl@0: 2003-02-19 Jeff Hobbs sl@0: sl@0: * unix/tclUnixThrd.c (TclpReaddir): sl@0: * unix/tclUnixPort.h: update to Bug 689100 patch to ensure that sl@0: there is a defined value of MAXNAMLEN (aka NAME_MAX in POSIX) and sl@0: that we have some buffer allocated. sl@0: sl@0: 2003-02-19 Daniel Steffen sl@0: sl@0: * generic/tclStringObj.c: restored Tcl_SetObjLength() side-effect of sl@0: always invalidating unicode rep (if the obj has a string rep). Added sl@0: hasUnicode flag to String struct, allows decoupling of validity of sl@0: unicode rep from buffer size allocated to it (improves memory sl@0: allocation efficiency). [Bugs 686782, 671138, 635200] sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: sl@0: * macosx/Makefile: reworked embedded build to no longer require sl@0: relinking but to use install_name_tool instead to change the sl@0: install_names for embedded frameworks. [Bug 644510] sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: preserve mod dates when running sl@0: 'make install' to build framework (avoids bogus rebuilds of dependent sl@0: frameworks because tcl headers appear changed). sl@0: sl@0: * tests/ioCmd.test (iocmd-1.8): fix failure when system encoding is sl@0: utf-8: use iso8859-1 encoding explicitly. sl@0: sl@0: 2003-02-18 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c (TclCompileExprWords): remove unused variable sl@0: "range" [Bug 664743] sl@0: * generic/tclExecute.c (ExprSrandFunc): remove unused variable sl@0: "result" [Bug 664743] sl@0: * generic/tclStringObj.c (UpdateStringOfString): remove unused sl@0: variable "length" [Bug 664751] sl@0: * tests/execute.test (execute-7.30): fix for [Bug 664775] sl@0: sl@0: 2003-02-18 Andreas Kupries sl@0: sl@0: * unix/tcl.m4: [Bug 651811] Added definition of _XOPEN_SOURCE and sl@0: linkage of 'xnet' library to HP 11 branch. This kills a lot of sl@0: socket-related failures in the testsuite when Tcl was compiled in 64 sl@0: bit mode (both PA-RISC 2.0W, and IA 64). sl@0: sl@0: * unix/configure: Regenerated. sl@0: sl@0: 2003-02-18 Jeff Hobbs sl@0: sl@0: * generic/tclIO.c (HaveVersion): correctly decl static sl@0: sl@0: * unix/tclUnixThrd.c (TclpReaddir): reduce size of name string in sl@0: tsd to NAME_MAX instead of PATH_MAX. [Bug 689100] (waters) sl@0: sl@0: 2003-02-18 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/tcl.m4 (SC_ENABLE_THREADS): Make sure -lpthread gets passed on sl@0: the link line when checking for the pthread_attr_setstacksize symbol. sl@0: sl@0: 2003-02-18 Vince Darley sl@0: sl@0: * generic/tclTest.c: cleanup of new 'simplefs' test code, and better sl@0: documentation. sl@0: sl@0: 2003-02-17 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (TclRenameCommand): fixing error in previous sl@0: commit. sl@0: sl@0: 2003-02-17 Jeff Hobbs sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode INST_STR_MATCH): sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd STR_MATCH): sl@0: * generic/tclUtf.c (TclUniCharMatch): sl@0: * generic/tclInt.decls: add private TclUniCharMatch function that sl@0: * generic/tclIntDecls.h: does string match on counted unicode sl@0: * generic/tclStubInit.c: strings. Tcl_UniCharCaseMatch has the sl@0: * tests/string.test: failing that it can't handle strings or sl@0: * tests/stringComp.test: patterns with embedded NULLs. Added sl@0: tests that actually try strings/pats with NULLs. TclUniCharMatch sl@0: should be TIPed and made public in the next minor version rev. sl@0: sl@0: 2003-02-17 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (TclRenameCommand): 'oldFullName' object was not sl@0: being freed on all function exits, causing a memory leak. [Bug 684756] sl@0: sl@0: 2003-02-17 Mo DeJong sl@0: sl@0: * generic/tclIO.c (Tcl_GetsObj): Minor change so that eol is only sl@0: assigned at the top of the TCL_TRANSLATE_AUTO case block. The other sl@0: cases assign eol so this does not change any functionality. sl@0: sl@0: 2003-02-17 Kevin Kenny sl@0: sl@0: * tests/notify.test: Removed Windows line terminators. [Bug 687913]. sl@0: sl@0: 2003-02-15 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalEx): sl@0: * generic/tclCompExpr.c (CompileSubExpr): sl@0: * generic/tclCompile.c (TclCompileScript): sl@0: * generic/tclParse.c (Tcl_ParseCommand, ParseTokens): sl@0: * generic/tclParseExpr.c (ParsePrimaryExpr): sl@0: * tests/basic.test (47.1): sl@0: * tests/main.test (3.4): sl@0: * tests/misc.test (1.2): sl@0: * tests/parse.test (6.18): sl@0: * tests/parseExpr.test (15.35): sl@0: * tests/subst.test (8.6): Don Porter's fix for bad parsing of sl@0: nested scripts [Bug 681841]. sl@0: sl@0: 2003-02-15 Kevin Kenny sl@0: sl@0: * tests/notify.test (new-file): sl@0: * generic/tclTest.c (TclTest_Init, EventtestObjCmd, EventtestProc, sl@0: (EventTestDeleteProc): sl@0: * generic/tclNotify.c (Tcl_DeleteEvents): Fixed Tcl_DeleteEvents sl@0: not to get a pointer smash when deleting the last event in the sl@0: queue. Added test code in 'tcltest' and a new file of test cases sl@0: 'notify.test' to exercise this functionality; several of the new sl@0: test cases fail for the original code and pass for the corrected sl@0: code. [Bug 673714] sl@0: sl@0: * unix/tclUnixTest.c (TestfilehandlerCmd): Corrected a couple sl@0: of typos in error messages. [Bug 596027] sl@0: sl@0: 2003-02-14 Jeff Hobbs sl@0: sl@0: * README: Bumped to version 8.4.2. sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure: sl@0: * unix/configure.in: sl@0: * unix/tcl.m4: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure: sl@0: * win/configure.in: sl@0: * macosx/Tcl.pbproj/project.pbxproj: sl@0: sl@0: * generic/tclStringObj.c (Tcl_GetCharLength): perf tweak sl@0: sl@0: * unix/tcl.m4: correct HP-UX ia64 --enable-64bit build flags sl@0: sl@0: 2003-02-14 Kevin Kenny sl@0: sl@0: * win/tclWinTime.c: Added code to test and compensate for forward sl@0: leaps of the performance counter. See the MSDN Knowledge Base article sl@0: Q274323 for the hardware problem that makes this necessary on certain sl@0: machines. sl@0: * tests/winTime.test: Revised winTime-2.1 - it had a tolerance of sl@0: thousands of seconds, rather than milliseconds. (What's six orders of sl@0: magnitude among friends? sl@0: sl@0: Both the above changes are triggered by a problem reported at sl@0: http://aspn.activestate.com/ASPN/Mail/Message/ActiveTcl/1536811 sl@0: although the developers find it difficult to believe that it accounts sl@0: for the observed behavior and suspect a fault in the RTC chip. sl@0: sl@0: 2003-02-13 Kevin Kenny sl@0: sl@0: * win/tclWinInit.c: Added conversion from the system encoding to sl@0: tcl_platform(user), so that it works with non-ASCII7 user names. [Bug sl@0: 685926] sl@0: sl@0: * doc/tclsh.1: Added language to describe the handling of the sl@0: end-of-file character \u001a embedded in a script file. [Bug 685485] sl@0: sl@0: 2003-02-11 Vince Darley sl@0: sl@0: * tests/fileName.test: sl@0: * unix/tclUnixFile.c: fix for [Bug 685445] when using 'glob -l' on sl@0: broken symbolic links. Added two new tests for this bug. sl@0: sl@0: 2003-02-11 Kevin Kenny sl@0: sl@0: * tests/http.test: Corrected a problem where http-4.14 would fail when sl@0: run in an environment with a proxy server. Replaced references to sl@0: scriptics.com by tcl.tk. sl@0: sl@0: 2003-02-11 Jeff Hobbs sl@0: sl@0: * tests/lsearch.test: sl@0: * generic/tclCmdIL.c (Tcl_LsearchObjCmd): protect against the case sl@0: that lsearch -regepx list and pattern objects are equal. sl@0: sl@0: * tests/stringObj.test: sl@0: * generic/tclStringObj.c (Tcl_GetCharLength): correct ascii char sl@0: opt of 2002-11-11 to not stop early on \x00. [Bug 684699] sl@0: sl@0: * tests.parse.test: remove excess EOF whitespace sl@0: sl@0: * generic/tclParse.c (CommandComplete): more paranoid check to sl@0: break on (p >= end) instead of just (p == end). sl@0: sl@0: 2003-02-11 Miguel Sofer sl@0: sl@0: * generic/tclParse.c (CommandComplete): sl@0: * tests/parse.test: fix for [Bug 684744], by Don Porter. sl@0: sl@0: 2003-02-11 Jeff Hobbs sl@0: sl@0: * generic/tclIOUtil.c (Tcl_FSJoinPath, Tcl_FSGetNormalizedPath): sl@0: (UpdateStringOfFsPath): revert the cwdLen == 0 check and instead sl@0: follow a different code path in Tcl_FSJoinPath. sl@0: (Tcl_FSConvertToPathType, Tcl_FSGetNormalizedPath): sl@0: (Tcl_FSGetFileSystemForPath): Update string rep of path objects sl@0: before freeing the internal object. (darley) sl@0: sl@0: * tests/fileSystem.test: added test 8.3 sl@0: * generic/tclIOUtil.c (Tcl_FSGetNormalizedPath): sl@0: (UpdateStringOfFsPath): handle the cwdLen == 0 case sl@0: sl@0: * unix/tclUnixFile.c (TclpMatchInDirectory): simplify the hidden sl@0: file match check. sl@0: sl@0: 2003-02-10 Mo DeJong sl@0: sl@0: * win/configure: sl@0: * win/configure.in: Generate error when attempting to build under sl@0: Cygwin. The Cygwin port of Tcl/Tk does not build and people are filing sl@0: bug reports under the mistaken impression that someone is actually sl@0: maintaining the Cygwin port. A post to comp.lang.tcl asking someone to sl@0: volunteer as an area maintainer has generated no results. Closing sl@0: [Bugs 680840, 630199, 634772] and marking as "Won't fix". sl@0: sl@0: 2003-02-10 Donal K. Fellows sl@0: sl@0: * doc/append.n: Return value was not documented. [Bug 683188] sl@0: sl@0: 2003-02-10 Vince Darley sl@0: sl@0: * doc/FileSystem.3: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclInt.h: sl@0: * tests/fileSystem.test: sl@0: * unix/tclUnixFCmd.c: sl@0: * unix/tclUnixFile.c: sl@0: * win/tclWinFile.c: further filesystem optimization, applying sl@0: [Patch 682500]. In particular, these code examples are faster now: sl@0: foreach f $flist { if {[file exists $f]} {file stat $f arr;...}} sl@0: foreach f [glob -dir $dir *] { # action and/or recursion on $f } sl@0: cd $dir sl@0: foreach f [glob *] { # action and/or recursion on $f } sl@0: cd .. sl@0: sl@0: * generic/tclTest.c: Fix for [Bug 683181] where test suite left files sl@0: in 'tmp'. sl@0: sl@0: 2003-02-08 Jeff Hobbs sl@0: sl@0: * library/safe.tcl: code cleanup of eval and string comp use. sl@0: sl@0: 2003-02-07 Vince Darley sl@0: sl@0: * win/tclWinFCmd.c: cleanup long lines sl@0: * win/tclWinFile.c: sped up pure 'glob' by a factor of 2.5 ('foreach f sl@0: [glob *] { file exists $f }' is still slow) sl@0: * tests/fileSystem.text: sl@0: * tests/fileName.test: added new tests to ensure correct behaviour in sl@0: optimized filesystem code. sl@0: sl@0: 2003-02-07 Vince Darley sl@0: sl@0: * generic/tclTest.c: sl@0: * tests/fileSystem.text: fixed test 7.2 to avoid a possible crash, and sl@0: not change the pwd. sl@0: sl@0: * tests/http.text: added comment to test 4.15, that it may fail if you sl@0: use a proxy server. sl@0: sl@0: 2003-02-06 Mo DeJong sl@0: sl@0: * generic/tclCompCmds.c (TclCompileIncrCmd): sl@0: * tests/incr.test: Don't include the text "(increment expression)" in sl@0: the errorInfo generated by the compiled version of the incr command sl@0: since it does not match the message generated by the non-compiled sl@0: version of incr. It is also not possible to match this error output sl@0: under Jacl, which does not support a compiler. sl@0: sl@0: 2003-02-06 Mo DeJong sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): When an error is sl@0: encountered reading the increment value during a compiled call to sl@0: incr, add a "(reading increment)" error string to the errorInfo sl@0: variable. This makes the errorInfo variable set by the compiled incr sl@0: command match the value set by the non-compiled version. sl@0: * tests/incr-old.test: Change errorInfo result for the compiled incr sl@0: command case to match the modified implementation. sl@0: * tests/incr.test: Add tests to make sure the compiled and sl@0: non-compiled errorInfo messages are the same. sl@0: sl@0: 2003-02-06 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Filename arguments to [outputChannel] sl@0: and [errorChannel] (also -outfile and -errfile) were [open]ed but sl@0: never [closed]. Also, [cleanupTests] could remove output or error sl@0: files. [Bug 676978]. sl@0: * library/tcltest/pkgIndex.tcl: Bumped to version 2.2.2. sl@0: sl@0: 2003-02-05 Mo DeJong sl@0: sl@0: * tests/interp.test: sl@0: * tests/set-old.test: Run test cases that depend on hash order through sl@0: lsort so that the tests also pass under Jacl. Does not change test sl@0: results under Tcl. sl@0: sl@0: 2003-02-04 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclEvent.c: sl@0: * generic/tclInt.h: sl@0: * mac/tclMacFCmd.c: sl@0: * unix/tclUnixFCmd.c: sl@0: * win/tclWin32Dll.c: sl@0: * win/tclWinFCmd.c: sl@0: * win/tclWinInit.c: sl@0: * win/tclWinInt.h: sl@0: * tests/fileSystem.test: fix to finalization/unloading/encoding issues sl@0: to make filesystem much less dependent on encodings for its cleanup, sl@0: and therefore allow it to be finalized later in the exit process. This sl@0: fixes fileSystem.test-7.1. Also fixed one more bug in setting of sl@0: modification dates of files which have undergone cross-platform sl@0: copies. [Patch 676271] sl@0: sl@0: * tests/basic.test: sl@0: * tests/exec.test: sl@0: * tests/fileName.test: sl@0: * tests/io.test: fixed some test failures when tests are run from a sl@0: directory containing spaces. sl@0: sl@0: * tests/fileSystem.test: sl@0: * generic/tclTest.c: added regression test for the modification sl@0: date setting of cross-platform file copies. sl@0: sl@0: 2003-02-03 Kevin Kenny sl@0: sl@0: * generic/tclBasic.c: Changed [trace add command] so that 'rename' sl@0: callbacks get fully qualified names of the command. [Bug 651271]. sl@0: ***POTENTIAL INCOMPATIBILITY*** sl@0: * tests/trace.test: Modified the test cases for [trace add command] to sl@0: expect fully qualified names on the 'rename' callbacks. Added a case sl@0: for renaming a proc within a namespace. sl@0: * doc/trace.n: Added language about use of fully qualified names in sl@0: trace callbacks. sl@0: sl@0: 2003-02-01 Kevin Kenny sl@0: sl@0: * generic/tclCompCmds.c: Removed an unused variable that caused sl@0: compiler warnings on SGI. [Bug 664379] sl@0: sl@0: * generic/tclLoad.c: Changed the code so that if Tcl_StaticPackage is sl@0: called to report the same package as being loaded in two interps, it sl@0: shows up in [info loaded {}] in both of them (previously, it didn't sl@0: appear in the static package list in the second. sl@0: sl@0: * tests/load.test Added regression test for the above bug. [Bug sl@0: 670042] sl@0: sl@0: * generic/tclClock.c: Fixed a bug that incorrectly allowed [clock sl@0: clicks {}] and [clock clicks -] to be accepted as if they were [clock sl@0: clicks -milliseconds]. sl@0: sl@0: * tests/clock.test: Added regression tests for the above bug. [Bug sl@0: 675356] sl@0: sl@0: * tests/unixNotfy.test: Added cleanup of working files [Bug 675609] sl@0: sl@0: * doc/Tcl.n: Added headings to the eleven paragraphs, to improve sl@0: formatting in the tools that attempt to extract tables of contents sl@0: from the manual pages. [Bug 627455] sl@0: sl@0: * generic/tclClock.c: Expanded mutex protection around the setting of sl@0: env(TZ) and the thread-unsafe call to tzset(). [Bug 656660] sl@0: sl@0: 2003-01-31 Don Porter sl@0: sl@0: * tests/tcltest.test: Cleaned up management of file/directory sl@0: creation/deletion to improve "-debug 1" output. [Bug 675614] The sl@0: utility [slave] command failed to properly [list]-quote a constructed sl@0: [open] command, causing failure when the pathname contained sl@0: whitespace. [Bug 678415] sl@0: sl@0: * tests/main.test: Stopped main.test from deleting existing file. sl@0: Test suite should not delete files that already exist. [Bug 675660] sl@0: sl@0: 2003-01-28 Don Porter sl@0: sl@0: * tests/main.test: Constrain tests that do not work on Windows. [Bug sl@0: 674387] sl@0: sl@0: 2003-01-28 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: fix to setting modification date in sl@0: TclCrossFilesystemCopy. Also added 'panic' in sl@0: Tcl_FSGetFileSystemForPath under illegal calling circumstances which sl@0: lead to hard-to-track-down bugs. sl@0: sl@0: * generic/tclTest.c: added test suite code to allow exercising a sl@0: vfs-crash-on-exit bug in Tcl's finalization caused by the encodings sl@0: being cleaned up before unloading occurs. sl@0: * tests/fileSystem.test: added new 'knownBug' test 7.1 to demonstrate sl@0: the crash on exit. sl@0: sl@0: 2003-01-28 Mo DeJong sl@0: sl@0: * generic/tcl.h: Add TCL_PREFIX_IDENT and TCL_DEBUG_IDENT, used only sl@0: by TclpCreateProcess. sl@0: * unix/Makefile.in: Define TCL_DBGX. sl@0: * win/Makefile.in: Define TCL_DBGX. sl@0: * win/tclWinPipe.c (TclpCreateProcess): Check that the Tcl pipe dll sl@0: actually exists in the Tcl bin directory and panic if it is not sl@0: found. Incorporate TCL_DBGX into the Tcl pipe dll name. This fixes a sl@0: really mysterious error that would show up when exec'ing a 16 bit sl@0: application under Win95 or Win98 when Tcl was compiled with symbols. sl@0: The error seemed to indicate that the executable could not be found, sl@0: but it was actually the Tcl pipe dll that could not be found. sl@0: sl@0: 2003-01-26 Mo DeJong sl@0: sl@0: * win/README: Update msys+mingw URL to release 6. This version bundles sl@0: gcc 3. sl@0: sl@0: 2003-01-26 Mo DeJong sl@0: sl@0: * win/configure: Regen. sl@0: * win/configure.in: Add test that checks to see if the compiler can sl@0: cast to a union type. sl@0: * win/tclWinTime.c: Squelch compiler warning about union initializer sl@0: by casting to union type when compiling with gcc. sl@0: sl@0: 2003-01-25 Mo DeJong sl@0: sl@0: * generic/tclIO.c (Tcl_CutChannel, Tcl_SpliceChannel): Invoke sl@0: TclpCutFileChannel and TclpSpliceFileChannel. sl@0: * generic/tclInt.h: Declare TclpCutFileChannel and sl@0: TclpSpliceFileChannel. sl@0: * unix/tclUnixChan.c (FileCloseProc, TclpOpenFileChannel, sl@0: (Tcl_MakeFileChannel, TclpCutFileChannel, sl@0: (TclpSpliceFileChannel): Implement thread load data cut and splice for sl@0: file channels. This avoids an invalid memory ref when compiled with sl@0: -DDEPRECATED. sl@0: * win/tclWinChan.c (FileCloseProc, TclpCutFileChannel, sl@0: (TclpSpliceFileChannel): Implement thread load data cut and splice for sl@0: file channels. This avoids an invalid memory ref that was showing up sl@0: in the thread extension. sl@0: sl@0: 2003-01-25 Mo DeJong sl@0: sl@0: * win/tclWin32Dll.c (TclpCheckStackSpace, squelch_warnings): sl@0: * win/tclWinChan.c (Tcl_MakeFileChannel, squelch_warnings): sl@0: * win/tclWinFCmd.c (DoRenameFile, DoCopyFile, squelch_warnings): sl@0: Re-implement inline ASM SEH handlers for gcc. The esp and ebp sl@0: registers are now saved on the stack instead of in global variables so sl@0: that the code is thread safe. Add additional checks when TCL_MEM_DEBUG sl@0: is defined to be sure the values were recovered from the stack sl@0: properly. Remove squelch_warnings functions and add a dummy call in sl@0: the handler methods to squelch compiler warnings. sl@0: sl@0: 2003-01-25 Mo DeJong sl@0: sl@0: * win/configure: sl@0: * win/configure.in: Define HAVE_ALLOCA_GCC_INLINE when we detect that sl@0: no alloca function is found in malloc.h and we are compiling with sl@0: GCC. Remove HAVE_NO_ALLOC_DECL define. sl@0: * win/tclWin32Dll.c (TclpCheckStackSpace): Don't define alloca as a sl@0: cdecl function. Doing this caused a tricky runtime bug because the sl@0: _alloca function expects the size argument to be passed in a register sl@0: and not on the stack. To fix this problem, we use inline ASM when sl@0: compiling with gcc to invoke _alloca with the size argument loaded sl@0: into a register. sl@0: sl@0: 2003-01-24 Jeff Hobbs sl@0: sl@0: * win/tclWinDde.c (Dde_Init): clarified use of tsdPtr. sl@0: (DdeServerProc): better refcount handling of returnPackagePtr. sl@0: sl@0: * generic/tclEvent.c (Tcl_Finalize): revert finalize change on sl@0: 2002-12-04 to correct the issue with extensions that have TSD needing sl@0: to finalize that before they are unloaded. This issue needs further sl@0: clarification. sl@0: sl@0: * tests/unixFCmd.test: only do groups check on unix sl@0: sl@0: 2003-01-24 Vince Darley sl@0: sl@0: * generic/tclStringObj.c: proper fixes for Tcl_SetObjLength and sl@0: Tcl_AttemptSetObjectLength dealing with string objects with both sl@0: pure-unicode and normal internal representations. Previous fix didn't sl@0: handle all cases correctly. sl@0: * generic/tclIO.c: Add 'Tcl_GetString()' to ensure the object has a sl@0: valid 'objPtr->bytes' field before manipulating it directly. sl@0: sl@0: This fixes [Bug 635200] and [Bug 671138], but may reduce performance sl@0: of Unicode string handling in some cases. A further patch will be sl@0: applied to address this, once the code is known to be correct. sl@0: sl@0: 2003-01-24 Mo DeJong sl@0: sl@0: * win/configure: Regen. sl@0: * win/configure.in: Add test to see if alloca is undefined in sl@0: malloc.h. sl@0: * win/tclWin32Dll.c (TclpCheckStackSpace): Rework the SEH exception sl@0: handler logic to avoid using the stack since alloca will modify the sl@0: stack. This was causing a nasty bug that would set the exception sl@0: handler to 0 because it tried to pop the previous exception handler sl@0: off the top of the stack. sl@0: sl@0: 2003-01-23 Donal K. Fellows sl@0: sl@0: * doc/lset.n: Fixed fault in return values from lset in documentation sl@0: examples [Bug 658463] and tidied up a bit at the same time. sl@0: sl@0: 2003-01-21 Joe English sl@0: * doc/namespace.n (namespace inscope): Clarified documentation sl@0: [Patch 670110] sl@0: sl@0: 2003-01-21 Mo DeJong sl@0: sl@0: * win/configure: Regen. sl@0: * win/tcl.m4 (SC_CONFIG_CFLAGS): Set SHLIB_SUFFIX so that sl@0: TCL_SHLIB_SUFFIX will be set to a useful value in the generated sl@0: tclConfig.sh. Set SHLIB_LD_LIBS to "" or '${LIBS}' based on the sl@0: --enable-shared flag. This matches the UNIX implementation. sl@0: sl@0: 2003-01-18 Jeff Hobbs sl@0: sl@0: * generic/tclCkalloc.c: change %ud to %u as appropriate. sl@0: sl@0: 2003-01-17 Mo DeJong sl@0: sl@0: * win/tclWinDde.c (DdeServerProc): Deallocate the Tcl_Obj returned by sl@0: ExecuteRemoteObject if it was not saved in a connection object. sl@0: sl@0: 2003-01-17 Mo DeJong sl@0: sl@0: * generic/tcl.h: Revert earlier change that defined TCL_WIDE_INT_TYPE sl@0: as long long and TCL_LL_MODIFIER as L when compiling with mingw. This sl@0: change ended up causing some test case failures when compiling with sl@0: mingw. sl@0: * generic/tclObj.c (UpdateStringOfWideInt): Describe the warning sl@0: generated by mingw and why it needs to be ignored so that someone is sl@0: not tempted to "fix" this problem again in the future. sl@0: sl@0: 2003-01-16 Vince Darley sl@0: sl@0: * generic/tclStringObj.c: Tcl_SetObjLength fix for when the object has sl@0: a unicode string rep. Fixes [Bug 635200] sl@0: * tests/stringObj.test: removed 'knownBug' constraint from test 14.1 sl@0: now that this bug is fixed. sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tclBasic.c: sl@0: * generic/tclCmdMZ.z: sl@0: * tests/trace.test: execution and command tracing bug fixes and sl@0: cleanup. In particular fixed [Bugs 655645, 615043, 571385] sl@0: - fixed some subtle cleanup problems with tracing. This required sl@0: replacing Tcl_Preserve/Tcl_Release with a more robust refCount sl@0: approach. Solves at least one known crash caused by memory sl@0: corruption. sl@0: - fixed some confusion in the code between new style traces (Tcl sl@0: 8.4) and the very limited 'Tcl_CreateTrace' which existed before. sl@0: - made behaviour consistent with documentation (several tests even sl@0: contradicted the documentation before). sl@0: - fixed some minor error message details sl@0: - added a number of new tests sl@0: sl@0: 2003-01-16 Jeff Hobbs sl@0: sl@0: * win/tclWinSerial.c (SerialOutputProc): add casts for bytesWritten to sl@0: allow strict compilation (no warnings). sl@0: sl@0: * tests/winDde.test: sl@0: * win/tclWinDde.c (Tcl_DdeObjCmd): Prevent crash when empty service sl@0: name is passed to 'dde eval' and goto errorNoResult in request and sl@0: poke error cases to free up any allocated data. sl@0: sl@0: 2003-01-16 Mo DeJong sl@0: sl@0: * win/tclWin32Dll.c (squelch_warnings): Squelch compiler warnings from sl@0: SEH ASM code. sl@0: * win/tclWinChan.c (squelch_warnings): Squelch compiler warnings from sl@0: SEH ASM code. sl@0: * win/tclWinDde.c: Add casts to avoid compiler warnings. Pass pointer sl@0: to DWORD instead of int to avoid compiler warnings. sl@0: * win/tclWinFCmd.c (squelch_warnings): Add casts and fixup decls to sl@0: avoid compiler warnings. Squelch compiler warnings from SEH ASM code. sl@0: * win/tclWinFile.c: Add casts and fixup decls to avoid compiler sl@0: warnings. Remove unused variable. sl@0: * win/tclWinNotify.c: Declare as DWORD instead of int to avoid sl@0: compiler warning. sl@0: * win/tclWinReg.c: Add casts to avoid compiler warning. Fix assignment sl@0: in if expression bug. sl@0: * win/tclWinSerial.c: Add casts to avoid compiler warnings. Remove sl@0: unused variable. sl@0: * win/tclWinSock.c: Add casts and fixup decls to avoid compiler sl@0: warnings. sl@0: sl@0: 2003-01-14 Jeff Hobbs sl@0: sl@0: * generic/tclClock.c (FormatClock): corrected typo that incorrectly sl@0: conditionally defined savedTZEnv and savedTimeZone. sl@0: sl@0: 2003-01-13 Mo DeJong sl@0: sl@0: Fix mingw build problems and compiler warnings. sl@0: sl@0: * generic/tcl.h: Add if defined(__MINGW32__) check to code that sets sl@0: the TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER. sl@0: * generic/tclClock.c (FormatClock): Don't define savedTimeZone and sl@0: savedTZEnv if we are not going to use them. sl@0: * generic/tclEnv.c: Add cast to avoid warning. sl@0: * win/tclWinChan.c: Use DWORD instead of int to avoid compiler warning sl@0: * win/tclWinThrd.c: Only define allocLock, allocLockPtr, and dataKey sl@0: when TCL_THREADS is defined. This avoid a compiler warning about sl@0: unused variables. sl@0: sl@0: 2003-01-12 Mo DeJong sl@0: sl@0: * win/README: Update msys + mingw URL, the new release includes the sl@0: released 1.0.8 version of msys which includes a number of bug fixes. sl@0: sl@0: 2003-01-12 Mo DeJong sl@0: sl@0: * win/configure: Regen. sl@0: * win/tcl.m4 (SC_CONFIG_CFLAGS): Pull in addition of shell32.lib to sl@0: LIBS_GUI that was added to the Tk tcl.m4 but never made it back into sl@0: the Tcl version. sl@0: sl@0: 2003-01-12 Mo DeJong sl@0: sl@0: * generic/tcl.h: Skip Tcl's define of CHAR, SHORT, and LONG when sl@0: HAVE_WINNT_IGNORE_VOID is defined. This avoids a bunch of compiler sl@0: warnings when building with Cygwin or Mingw. sl@0: * win/configure: Regen. sl@0: * win/configure.in: Define HAVE_WINNT_IGNORE_VOID when we detect a sl@0: winnt.h that still defines CHAR, SHORT, and LONG when VOID has already sl@0: been defined. sl@0: * win/tcl.m4 (SC_LOAD_TCLCONFIG): Subst the TCL_DEFS loaded from sl@0: tclConfig.sh so that Tcl defines can make it into the Tk Makefile. sl@0: sl@0: 2003-01-12 Mo DeJong sl@0: sl@0: * win/configure: Regen. sl@0: * win/configure.in: Check for typedefs like LPFN_ACCEPT in winsock2.h sl@0: and define HAVE_NO_LPFN_DECLS if not found. sl@0: * win/tclWinSock.c: Define LPFN_* typedefs if HAVE_NO_LPFN_DECLS is sl@0: defined. This fixes the build under Mingw and Cygwin, it was broken by sl@0: the changes made on 2002-11-26. sl@0: sl@0: 2003-01-10 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: sl@0: * win/tclWinInt.h: sl@0: * win/tclWinInit.c: fix to new WinTcl crash on exit with vfs, sl@0: introduced on 2002-12-06. Encodings must be cleaned up after the sl@0: filesystem. sl@0: sl@0: * win/makefile.vc: fix to minor VC++ 5.2 syntax problem sl@0: sl@0: 2003-01-09 Don Porter sl@0: sl@0: * generic/tclCompCmds.c (TclCompilerReturnCmd): Corrected off-by-one sl@0: problem with recent commit. [Bug 633204] sl@0: sl@0: 2003-01-09 Vince Darley sl@0: sl@0: * generic/tclFileName.c: remove unused variable 'macSpecialCase' [Bug sl@0: 664749] sl@0: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclInt.h: sl@0: * unix/tclUnixFile.c: sl@0: * mac/tclMacFile.c: sl@0: * win/tclWinFile.c: sl@0: * win/tclWinInt.h: sl@0: * win/tclWin32Dll.c: sl@0: * tests/cmdAH.test: fix to non-ascii chars in paths when setting mtime sl@0: and atime through 'file (a|m)time $path $time'. [Bug 634151] sl@0: sl@0: 2003-01-08 Don Porter sl@0: sl@0: * generic/tclExecute.c (TclExprFloatError): Use the IS_NAN macro for sl@0: greater clarity of code. sl@0: sl@0: 2003-01-07 Don Porter sl@0: sl@0: * generic/tclCompCmds.c (TclCompileReturnCmd): sl@0: * tests/compile.test: Corrects failure of bytecompiled [catch sl@0: {return}] to have result TCL_RETURN (not TCL_OK) [Bug 633204]. This sl@0: patch is a workaround for 8.4.X. A new opcode INST_RETURN is a better sl@0: long term solution for 8.5 and later. sl@0: sl@0: 2003-01-04 David Gravereaux sl@0: sl@0: * win/makefile.vc: sl@0: * win/rules.vc: Fixed INSTALLDIR macro problem that blanked itself by sl@0: accident causing the install target to put the tree at the root of the sl@0: drive built on. Whoops.. sl@0: sl@0: Renamed the 'linkexten' option to be 'staticpkg'. Added 'thrdalloc' to sl@0: allow the switching _on_ of the thread allocator. Under testing, I sl@0: found it not to be benificial under windows for the purpose of the sl@0: application I was using it for. It was more important for this app sl@0: that resources for tcl threads be returned to the system rather than sl@0: saved/moved to the global recycler. Be extra clean or extra fast for sl@0: the default threaded build? Let's move to clean and allow it to be sl@0: switched on for users who find it benificial for their use of threads. sl@0: sl@0: 2002-12-18 David Gravereaux sl@0: sl@0: * win/makefile.vc: some uses of xcopy swapped to the @$(CPY) macro. sl@0: Reported by Joe Mistachkin . sl@0: sl@0: 2002-12-17 Jeff Hobbs sl@0: sl@0: * generic/tclNotify.c (TclFinalizeNotifier, Tcl_SetServiceMode): sl@0: (Tcl_ThreadAlert): Check that the stub functions are non-NULL before sl@0: calling them. They could be set to NULL by Tcl_SetNotifier. sl@0: sl@0: 2002-12-16 David Gravereaux sl@0: sl@0: * generic/tclPipe.c (TclCleanupChildren): sl@0: * tests/winPipe.test: sl@0: * win/tclWinPipe.c (Tcl_WaitPid): sl@0: * win/tclWinTest.c: Gave Tcl_WaitPid the ability to return a Win32 sl@0: exception code translated into a posix style SIG*. This allows [close] sl@0: to report "CHILDKILLED" without the meaning getting lost in a sl@0: truncated exit code. In TclCleanupChildren(), TclpGetPid() had to get sl@0: moved to before Tcl_WaitPid() as the the handle is removed from the sl@0: list taking away the ability to get the process id after the wait is sl@0: done. This shouldn't effect the unix implimentaion unless waitpid is sl@0: called with a pid of zero, meaning "any". I don't think it is.. sl@0: sl@0: 2002-12-13 Don Porter sl@0: sl@0: * unix/configure.in: Updated configure of CVS snapshots to reflect sl@0: * win/configure.in: the 8.4.1.1 patchlevel. sl@0: sl@0: * unix/configure: autoconf sl@0: * win/configure autoconf sl@0: sl@0: 2002-12-11 Don Porter sl@0: sl@0: * generic/tclProc.c (ProcessProcResultCode): Fix failure to propagate sl@0: negative return codes up the call stack. [Bug 647307] sl@0: * tests/proc.test (proc-6.1): Test for Bug 647307 sl@0: sl@0: * generic/tclParseExpr.c (TclParseInteger): Return 1 for the sl@0: string "0x" (recognize leading "0" as an integer). [Bug 648441]. sl@0: * tests/parseExpr.test (parseExpr-19.1): Test for Bug 648441. sl@0: sl@0: 2002-12-09 Jeff Hobbs sl@0: sl@0: * win/tclWinThrd.c (TclpMasterUnlock): sl@0: * generic/tclThread.c (TclFinalizeThreadData): TclpMasterUnlock must sl@0: exist and be called unconditional of TCL_THREADS. [Bug 651139] sl@0: sl@0: 2002-12-08 David Gravereaux sl@0: sl@0: * win/tclWinSock.c (SocketThreadExitHandler, InitSockets): Check that sl@0: the tsdPtr is valid before dereferencing as we call it from the exit sl@0: handler, too [Bug 650353]. Another WSAStartup() loaded version sl@0: comparison byte swap issue fixed. Although 0x0101 byte swapped is sl@0: still 0x0101, properly claiming which is major/minor is more correct. sl@0: sl@0: 2002-12-06 Jeff Hobbs sl@0: sl@0: * generic/tclStubInit.c: regen sl@0: * generic/tclIntPlatDecls.h: regen sl@0: * generic/tclInt.decls: added TclWinResetInterface sl@0: sl@0: * win/tclWin32Dll.c (TclWinResetInterfaces): sl@0: * win/tclWinInit.c (TclpSetInitialEncodings, WinEncodingsCleanup): sl@0: add exit handler that resets the encoding information to a state where sl@0: we can reuse Tcl. Following these changes, it is possible to reuse Tcl sl@0: (following Tcl_FindExecutable or Tcl_CreateInterp) following a sl@0: Tcl_Finalize. sl@0: sl@0: * generic/tclIOUtil.c (TclFinalizeFilesystem): reset statics to their sl@0: original values on finalize to allow reuse of the library. sl@0: sl@0: 2002-12-04 David Gravereaux sl@0: sl@0: * win/tclWinPipe.c: reverted back to -r1.27 due to numerous test sl@0: failures that need to be resolved first. The idea was good, but the sl@0: details aren't. sl@0: sl@0: 2002-12-04 David Gravereaux sl@0: sl@0: * win/tclWinPipe.c (Tcl_WaitPid): When a process exits with an sl@0: exception, pass this notice on to the caller with a SIG* code rather sl@0: than truncating the exit code and missing the meaning. This allows sl@0: TclCleanupChildren() to report "CHILDKILLED". sl@0: sl@0: This has a different behavior than unix in that closing the read pipe sl@0: to a process sends the SIGPIPE signal which is returned as a SIGPIPE sl@0: exit status. On windows, we send the process a CTRL_BREAK_EVENT and sl@0: get back a CONTROL_C_EXIT which is documented to mean a SIGINT which sl@0: seems wrong as a system, but is the correct exit status. sl@0: sl@0: 2002-12-04 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: fix to redirected 'load' in virtual filesystem sl@0: for some Unix systems. sl@0: sl@0: * generic/tclEvent.c: the filesystem must be cleaned up before the sl@0: encoding subsystem because it needs access to encodings. Fixes crash sl@0: on exit observed in embedded applications. sl@0: sl@0: * generic/tclTestObj.c: patch omitted from previous change of sl@0: 2002-11-13 sl@0: sl@0: 2002-12-03 Jeff Hobbs sl@0: sl@0: * generic/tclStubLib.c (Tcl_InitStubs): prevent the cached check of sl@0: tclStubsPtr to allow for repeated load/unload of the Tcl dll by sl@0: hosting apps. [Bug 615304] sl@0: sl@0: 2002-12-03 David Gravereaux sl@0: sl@0: * win/tclAppInit.c (sigHandler): Protect from trying to close a NULL sl@0: handle. sl@0: sl@0: * win/tclWinPipe.c (PipeClose2Proc, TclpCreateProcess): Send a real sl@0: Win32 signal (CTRL_C_EVENT) when the read channel is brought down to sl@0: alert the child to close on its side. Start the process with sl@0: CREATE_NEW_PROCESS_GROUP to allow the ability to send these signals. sl@0: The following test case now brings down the child without the use of sl@0: an external [kill] command. sl@0: sl@0: % set p [open "|[info name]" w+] sl@0: file8d5380 sl@0: % pid $p sl@0: 2876 sl@0: % close $p <- now doesn't block in Tcl_WaitPid() sl@0: % sl@0: sl@0: * win/tclWinPipe.c (PipeClose2Proc): Changed CTRL_C_EVENT to sl@0: CTRL_BREAK_EVENT as it can't be ignored by the child and proved to sl@0: work on [open "|netstat 1" w+] where CTRL_C_EVENT didn't. sl@0: sl@0: 2002-11-27 David Gravereaux sl@0: sl@0: * win/tclWinPort.h: Don't turn off winsock prototypes! TclX didn't sl@0: like it. Even though the core doesn't use the prototypes, do offer sl@0: them. sl@0: sl@0: * win/tclWinSock.c: Removed shutdown() from the function table as it sl@0: wasn't referenced anywhere and cleaned-up some casting that that sl@0: wasn't needed. sl@0: sl@0: * win/tclWinSock.c: WSAStartup() loaded version comparison error which sl@0: resulted in 2.0 looking less than 1.1. sl@0: sl@0: * win/tclWinChan.c (Tcl_MakeFileChannel): return of DuplicateHandle() sl@0: incorrectly used [Bug 618852]. sl@0: sl@0: 2002-11-26 Jeff Hobbs sl@0: sl@0: * generic/tclEncoding.c (TclFinalizeEncodingSubsystem): properly sl@0: cleanup all encodings by using Tcl_FirstHashEntry in the while loop. sl@0: sl@0: * unix/Makefile.in (valgrind): add simple valgrind target sl@0: sl@0: * tests/exec.test: unset path var to allow singleproc testing sl@0: sl@0: * generic/tclInterp.c (AliasCreate): preserve/release interps to sl@0: prevent possible FMR error in bad alias cases. sl@0: sl@0: 2002-11-26 David Gravereaux sl@0: sl@0: * win/tclWinPort.h: sl@0: * win/tclWinSock.c: This patch does two things: sl@0: sl@0: 1) Cleans-up the winsock typedefs by using the typedefs provided by sl@0: winsock2.h. This has no effect on how winsock is initialized; just sl@0: makes the source code easier to read. [Patch 561305, 561301] sl@0: sl@0: 2) Revamps how the socket message handler thread is brought up and sl@0: down to allow for cleaner exits without the use of TerminateThread(). sl@0: TerminateThread is evil. No attempt has been made to resolve [Bug sl@0: 593810] which may need a new channel driver version for adding a sl@0: registering function within the transfered thread to init the handler sl@0: thread. IOW, initialization of the TSD structure is getting bypassed sl@0: through the thread extension's [thread::transfer] command. sl@0: sl@0: 2002-11-26 David Gravereaux sl@0: sl@0: * win/tclWinConsole.c: sl@0: * win/tclWinPipe.c: sl@0: * win/tclWinSerial.c: sl@0: * win/tclWinSock.c: sl@0: * win/tclWinThrd.c: sl@0: * win/tclWinTime.c: General cleanup of all worker threads used by the sl@0: channel drivers. Eliminates the normal case where the worker thread is sl@0: terminated ('cept the winsock one). Instead, use kernel events to sl@0: signal a clean exit. Only when the worker thread is blocked on an I/O sl@0: call is the thread terminated. Essentially, this makes all other sl@0: channel worker threads behave like the PipeReaderThread() function for sl@0: it's cleaner exit behavior. This appears to fix [Bug 597924] but needs sl@0: 3rd party confirmation to close the issue. sl@0: sl@0: 2002-11-26 Mo DeJong sl@0: sl@0: * win/README: Update msys build env URL. This release #4 build both sl@0: tcl and tk without problems. sl@0: sl@0: 2002-11-22 Jeff Hobbs sl@0: sl@0: * library/init.tcl: code cleanup to reduce use of sl@0: * library/opt/optparse.tcl: string compare sl@0: sl@0: * tests/interp.test: interp-14.4 sl@0: * generic/tclInterp.c (TclPreventAliasLoop): prevent seg fault when sl@0: creating an alias command over the interp name. [Bug 641195] sl@0: sl@0: 2002-11-18 Jeff Hobbs sl@0: sl@0: * generic/tclUtil.c (SetEndOffsetFromAny): handle integer offset sl@0: after the "end-" prefix. sl@0: sl@0: * generic/get.test: sl@0: * generic/string.test: sl@0: * generic/tclObj.c (SetIntFromAny, SetWideIntFromAny): sl@0: * generic/tclGet.c (TclGetLong, Tcl_GetInt): simplify sign handling sl@0: before calling strtoul(l). [Bug 634856] sl@0: sl@0: 2002-11-18 David Gravereaux sl@0: sl@0: * win/tclWinThrd.c (Tcl_CreateThread/TclpThreadExit): Fixed improper sl@0: compiler macros that missed the VC++ compiler. This resulted in VC++ sl@0: builds using CreateThread()/ExitThread() in place of the proper sl@0: _beginthreadex()/_endthreadex(). This was a large error and am sl@0: surprised I missed seeing it earlier. sl@0: sl@0: 2002-11-13 Jeff Hobbs sl@0: sl@0: * generic/regexpComp.test: added tests 22.* sl@0: * generic/tclCompCmds.c (TclCompileRegexpCmd): add left and right sl@0: anchoring (^ and $) recognition and check starting or ending .* to sl@0: extend the number of REs that can be compiled to string match or sl@0: string equal. sl@0: sl@0: 2002-11-13 Vince Darley sl@0: sl@0: * generic/tclCmdMZ.c: sl@0: * tests/trace.test: applied patch from Hemang Levana to fix [Bug sl@0: 615043] in execution traces with 'return -code error'. sl@0: sl@0: * generic/tclTestObj.c: sl@0: * tests/stringObj.test: added 'knownBug' test for [Bug 635200] sl@0: * generic/tclStringObj.c: corrected typos in comments sl@0: sl@0: * generic/tclFileName.c: sl@0: * tests/fileName.test: applied patch for bug reported against tclvfs sl@0: concerning handling of Windows serial ports like 'com1', 'lpt3' by the sl@0: virtual filesystem code. sl@0: sl@0: * doc/RegExp.3: clarification of the 'extendMatch' return values. sl@0: sl@0: 2002-11-11 Jeff Hobbs sl@0: sl@0: * generic/tclUtil.c (Tcl_Backslash): use TclUtfToUniChar. sl@0: (Tcl_StringCaseMatch): use TclUtfToUniChar and add further sl@0: optimizations for the one-byte/char case. sl@0: sl@0: * generic/tclUtf.c: make use of TclUtfToUniChar macro throughout the sl@0: functions, and add extra optimization to Tcl_NumUtfChars for sl@0: one-byte/char case. sl@0: sl@0: * generic/tclVar.c (DisposeTraceResult, CallVarTraces): add proper sl@0: static declarations. sl@0: sl@0: * generic/tclStringObj.c (Tcl_GetCharLength): optimize for the ascii sl@0: char case. sl@0: (Tcl_GetUniChar): remove unnecessary use of Tcl_UtfToUniChar. sl@0: (FillUnicodeRep): Use TclUtfToUniChar. sl@0: sl@0: * generic/tclHash.c (HashStringKey): move string++ lower to save an sl@0: instruction. sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): improve INST_STR_CMP to sl@0: use memcmp in the one-byte/char case, also use direct index for sl@0: INST_STR_INDEX in that case. sl@0: sl@0: * generic/tclEncoding.c (UtfToUtfProc, UtfToUnicodeProc): sl@0: (TableFromUtfProc, EscapeFromUtfProc): Use TclUtfToUniChar. sl@0: (UnicodeToUtfProc, TableToUtfProc): add 1-byte char optimizations sl@0: for Tcl_UniCharToUtf call. These improve encoded channel conversion sl@0: speeds by up to 20%. sl@0: sl@0: * tests/split.test: added 1-char string split tests sl@0: * generic/tclCmdMZ.c (Tcl_SplitObjCmd): Use TclUtfToUniChar. Also sl@0: added a special case for single-ascii-char splits. sl@0: (Tcl_StringObjCmd): Use TclUtfToUniChar. For STR_RANGE, support sl@0: getting ranges of ByteArrays (reverts change from 2000-05-26). sl@0: (TraceExecutionProc) add proper static declaration. sl@0: sl@0: * generic/tclInt.h: add macro version of Tcl_UtfToUniChar sl@0: (TclUtfToUniChar) that does the one-byte utf-char check without sl@0: calling Tcl_UtfToUniChar, for use by the core. This brings notable sl@0: speedups for primarily ascii string handling. sl@0: sl@0: * generic/tcl.h (TCL_PATCH_LEVEL): bump to 8.4.1.1 for patchlevel sl@0: only. This interim number will only be reflected by [info patchlevel] sl@0: sl@0: 2002-11-11 Kevin Kenny sl@0: sl@0: * doc/Tcl.n: Corrected indentation of the new language. Oops. sl@0: sl@0: 2002-11-10 Kevin Kenny sl@0: sl@0: * doc/Tcl.n: Added language to the Endekalogue to make it clear that sl@0: substitutions always take place from left to right. [Bug 635644] sl@0: sl@0: 2002-11-06 Mo DeJong sl@0: sl@0: * changes: Note TclInExit TclInThreadExit changes. sl@0: * generic/tclEvent.c (TclInExit, TclInThreadExit): sl@0: Split out functionality of TclInExit to make it clear which one should sl@0: be called in each situation. sl@0: * generic/tclInt.decls: Declare TclInThreadExit. sl@0: * generic/tclIntDecls.h: Regen. sl@0: * generic/tclStubInit.c: Regen. sl@0: * mac/tclMacChan.c (StdIOClose): sl@0: * unix/tclUnixChan.c (FileCloseProc): sl@0: * win/tclWinChan.c (FileCloseProc): sl@0: * win/tclWinConsole.c (ConsoleCloseProc): sl@0: * win/tclWinPipe.c (TclpCloseFile): sl@0: * win/tclWinSerial.c (SerialCloseProc): Invoke the new TclInThreadExit sl@0: method instead of TclInExit. sl@0: sl@0: 2002-11-06 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Generate a fatal configure error if sl@0: no ar program can be found on the path. [Bug 582039] sl@0: * win/configure: Regen. sl@0: * win/configure.in: Check that AR, RANLIB, and RC are found on the sl@0: path when building with gcc. sl@0: sl@0: 2002-11-03 David Gravereaux sl@0: sl@0: * win/tclAppInit.c: Calls Registry_Init() and Dde_Init() when sl@0: STATIC_BUILD and TCL_USE_STATIC_PACKAGES macros are set. sl@0: sl@0: * win/makefile.vc: sl@0: * win/rules.vc: linkexten option now sets the TCL_USE_STATIC_PACKAGES sl@0: macro which also adds the registry and dde object files to the link sl@0: of the shell. [Patch 479697] Also factored some additional macros sl@0: that will be helpful for extension authors. Version grepping of tcl.h sl@0: will need to be added to complete this. sl@0: sl@0: * win/buildall.vc.bat: Added more descriptive commentary. sl@0: sl@0: 2002-11-01 David Gravereaux sl@0: sl@0: * win/tclWinReg.c: Changed the Tcl_PkgProvide() line to declare the sl@0: registry extension at version 1.1 from 1.0. sl@0: sl@0: 2002-10-31 Andreas Kupries sl@0: sl@0: * library/word.tcl: Changed $tcl_platform to $::tcl_platform to avoid sl@0: possible scope trouble. sl@0: sl@0: 2002-10-29 Vince Darley sl@0: sl@0: * win/tclWinInt.h: sl@0: * win/tclWin32Dll.c: added comments about certain NULL function sl@0: pointers which will be filled in when Tcl_FindExecutable is called, so sl@0: that users don't report invalid bugs on this topic. (No code changes sl@0: at all). sl@0: sl@0: 2002-10-29 Daniel Steffen sl@0: sl@0: * unix/tclLoadDyld.c (TclpFindSymbol): pass all dyld error messages sl@0: upstream [Bug 627546]. sl@0: sl@0: 2002-10-28 Andreas Kupries sl@0: sl@0: * library/dde/pkgIndex.tcl: sl@0: * library/reg/pkgIndex.tcl: Changed the hardwired debug suffix (d) to sl@0: the correct suffix (g). sl@0: sl@0: 2002-10-28 Don Porter sl@0: sl@0: * library/auto.tcl: Converted the Mac-specific [package unknown] sl@0: * library/init.tcl: behavior to use a chaining mechanism to extend sl@0: * library/package.tcl: the default [tclPkgUnknown]. [Bug 627660] sl@0: * library/tclIndex: [Patch 624509] (steffen) sl@0: sl@0: 2002-10-26 David Gravereaux sl@0: sl@0: * win/makefile.vc: xcopy on NT 4.0 doesn't support the /Y switch sl@0: (overwrite). Added logic to handle this. [Bug 618019] sl@0: sl@0: 2002-10-23 Donal K. Fellows sl@0: sl@0: * generic/tclInt.h: Removed definitions of obsolete HistoryEvent and sl@0: HistoryRev structures (the history mechanism has been written in Tcl sl@0: for some time now). sl@0: sl@0: 2002-10-22 Jeff Hobbs sl@0: sl@0: *** 8.4.1 TAGGED FOR RELEASE *** sl@0: sl@0: * changes: updated for 8.4.1 release sl@0: sl@0: * win/Makefile.in: removed @MEM_DEBUG_FLAGS@ subst. sl@0: * win/configure: regen sl@0: * win/configure.in: removed SC_ENABLE_MEMDEBUG call sl@0: * win/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent sl@0: SC_ENABLE_SYMBOLS that takes yes|no|mem|compile|all as options now. sl@0: sl@0: 2002-10-22 Daniel Steffen sl@0: sl@0: * library/auto.tcl (tcl_findLibrary): sl@0: * library/package.tcl (tclPkgUnknown): on macosx, search inside the sl@0: Resources/Scripts subdirectory of any potential package directory sl@0: * macosx/Tcl.pbproj/project.pbxproj: add standard Frameworks dirs to sl@0: TCL_PACKAGE_PATH make argument. sl@0: * unix/tclUnixInit.c (TclpSetVariables): on macosx, add embedded sl@0: framework dirs to tcl_pkgPath: @executable_path/../Frameworks and sl@0: @executable_path/../PrivateFrameworks (if they exist), as well as the sl@0: dirs in DYLD_FRAMEWORK_PATH (if set). [Patch 624509] use standard sl@0: MAXPATHLEN instead of literal 1024 sl@0: sl@0: 2002-10-22 Donal K. Fellows sl@0: sl@0: * doc/StringObj.3, doc/Object.3: Documented that Tcl_Obj's sl@0: standard string form is a modified UTF-8; apparently, this was not sl@0: mentioned anywhere in the main docs, and lead to [Bug 624919]. sl@0: sl@0: 2002-10-21 Daniel Steffen sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: bumped version to 8.4.1 sl@0: * generic/tcl.h: Added reminder comment to edit sl@0: macosx/Tcl.pbproj/project.pbxproj when version number changes. sl@0: sl@0: 2002-10-18 Jeff Hobbs sl@0: sl@0: * library/reg/pkgIndex.tcl: sl@0: * win/configure: sl@0: * win/configure.in: sl@0: * win/Makefile.in: sl@0: * win/makefile.vc: sl@0: * win/makefile.bc: Updated to reg1.1 sl@0: sl@0: * doc/registry.n: Added support for broadcasting changes to the sl@0: * tests/registry.test: registry Environment. Noted proper code in ths sl@0: * win/tclWinReg.c: docs. [Patch 625453] sl@0: sl@0: * unix/Makefile.in (dist): add any mac/tcl*.sea.hqx files sl@0: sl@0: 2002-10-17 Don Porter sl@0: sl@0: * generic/tclVar.c: Fixed code that check for proper # of args to sl@0: * tests/var.test: [array names]. Added test. [Bug 624755] sl@0: sl@0: 2002-10-16 Jeff Hobbs sl@0: sl@0: * win/configure: add workaround for cygwin windres sl@0: * win/tcl.m4 (SC_CONFIG_CFLAGS): problem. [Patch 624010] (howell) sl@0: sl@0: 2002-10-15 Jeff Hobbs sl@0: sl@0: * README: added archives.tcl.tk note sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4: Correct AIX-5 ppc build flags. Correct HP 11 64-bit gcc sl@0: building. [Patch 601051] (martin) sl@0: sl@0: 2002-10-15 Vince Darley sl@0: sl@0: * generic/tclCmdMZ.c: sl@0: * tests/trace.test: applied patch from Hemang Levana to fix [Bug sl@0: 615043] in execution traces with idle tasks firing. sl@0: sl@0: 2002-10-14 Jeff Hobbs sl@0: sl@0: * generic/tclEnv.c (Tcl_PutEnv): correct possible mem leak. sl@0: [Patch 623269] (brouwers) sl@0: sl@0: 2002-10-11 Donal K. Fellows sl@0: sl@0: * generic/tcl.h: Need a different strategy through the maze of sl@0: #defines to let people building with Cygwin build correctly. Also sl@0: made some comments less misleading... sl@0: sl@0: 2002-10-10 Jeff Hobbs sl@0: sl@0: * README: fixed minor nits [Bug 607776] (virden) sl@0: sl@0: * win/configure: sl@0: * win/tcl.m4: enable USE_THREAD_ALLOC (new threaded allocator) by sl@0: default in cygwin configure on Windows. sl@0: sl@0: 2002-10-10 Don Porter sl@0: sl@0: * doc/Tcl.n: Clarified that namespace separators are legal in sl@0: the variable names during $-subtitution. [Bug 615139] sl@0: sl@0: * doc/regexp.n: Typo correction. Thanks Ronnie Brunner. [Bug 606826] sl@0: sl@0: 2002-10-10 Vince Darley sl@0: sl@0: * unix/tclLoadAout.c sl@0: * unix/tclLoadDl.c sl@0: * unix/tclLoadDld.c sl@0: * unix/tclLoadDyld.c sl@0: * unix/tclLoadNext.c sl@0: * unix/tclLoadOSF.c sl@0: * unix/tclLoadShl.c sl@0: * win/tclWinLoad.c: allow either full paths or simply dll names to be sl@0: specified when loading files (the latter will be looked up by the OS sl@0: on your PATH/LD_LIBRARY_PATH as appropriate). Fixes [Bug 611108] sl@0: sl@0: 2002-10-09 Jeff Hobbs sl@0: sl@0: * unix/README: doc'ed --enable-symbols options. sl@0: * unix/Makefile.in: removed @MEM_DEBUG_FLAGS@ subst. sl@0: * unix/configure: regen sl@0: * unix/configure.in: removed SC_ENABLE_MEMDEBUG call sl@0: * unix/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent sl@0: SC_ENABLE_SYMBOLS that takes yes|no|mem|compile|all as options now. sl@0: sl@0: 2002-10-09 Kevin B. Kenny sl@0: sl@0: * win/tclWinTime.c: Added code to set an exit handler that terminates sl@0: the thread that calibrates the performance counter, so that the thread sl@0: won't outlive unloading the Tcl DLL. [Bug 620735]. sl@0: sl@0: 2002-10-09 Donal K. Fellows sl@0: sl@0: * doc/binary.n: More clarification of [binary scan]'s behaviour. sl@0: sl@0: 2002-10-09 Daniel Steffen sl@0: sl@0: * generic/tclIntDecls.h: fixed botched regen. sl@0: sl@0: 2002-10-09 Daniel Steffen sl@0: sl@0: * generic/tclInt.decls: made TclSetPreInitScript() declaration sl@0: generic as it is used on mac & aqua as well. sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclStubInit.c: regen. sl@0: * generic/tclCompile.h: added prototype for TclCompileVariableCmd. sl@0: sl@0: * mac/tclMacPort.h: removed incorrect definitions and sl@0: obsolete definitions. sl@0: * mac/tclMacChan.c: removed obsolete GetOpenMode() and replaced sl@0: associated constants with the analogues (they existing defs sl@0: were inconsistent with which was causing havoc when sl@0: Tcl_GetOpenMode was used instead of private GetOpenMode). sl@0: sl@0: * mac/tclMacFCmd.c: removed GenerateUniqueName(), use equivalent (and sl@0: identically named) routine from MoreFiles instead. sl@0: sl@0: * mac/tclMacLoad.c: CONSTification, fixes to Vince's last changes. sl@0: sl@0: * mac/tclMacFile.c: sl@0: * mac/tclMacTest.c: sl@0: * mac/tclMacUnix.c: CONSTification. sl@0: sl@0: * mac/tclMacOSA.c: CONSTification, sprintf fixes, UH 3.4.x changes; sl@0: fix for missing autoname token from TclOSACompileCmd. (bdesgraupes) sl@0: * mac/AppleScript.html(AppleScript delete): doc fix. (bdesgraupes) sl@0: sl@0: * mac/tcltkMacBuildSupport.sea.hqx: updated MoreFiles to 1.5.3, sl@0: updated build instructions for 8.4. sl@0: * mac/tclMacProjects.sea.hqx: rebuilt archive. sl@0: sl@0: 2002-10-09 Donal K. Fellows sl@0: sl@0: * doc/Alloc.3: Added a note to mention that attempting to allocate a sl@0: zero-length block can return NULL. [Tk Bug 619544] sl@0: sl@0: 2002-10-04 Donal K. Fellows sl@0: sl@0: * doc/binary.n: Doc improvements [Patch 616480] sl@0: sl@0: * tests/fCmd.test, tests/winFCmd.test: sl@0: * tools/eolFix.tcl, tools/genStubs.tcl: [file exist] -> [file exists] sl@0: Thanks to David Welton. sl@0: sl@0: 2002-10-03 Don Porter sl@0: sl@0: * doc/tcltest.n: fixed typo [Bug 618018]. Thanks to "JJM". sl@0: sl@0: 2002-10-03 Donal K. Fellows sl@0: sl@0: * tools/man2help2.tcl: sl@0: * tests/http.test, tests/httpd, tests/httpold.test: sl@0: * tests/env.test, tests/binary.test, tests/autoMkindex.test: sl@0: * library/init.tcl, library/http/http.tcl: [info exist] should really sl@0: be [info exists]. [Bug 602566] sl@0: sl@0: * doc/lsearch.n: Better specification of what happens when -sorted is sl@0: mixed with other options. [Bug 617816] sl@0: sl@0: 2002-10-01 Jeff Hobbs sl@0: sl@0: * generic/tclProc.c (TclCreateProc): mask out VAR_UNDEFINED for sl@0: precompiled locals to support 8.3 precompiled code. sl@0: (Tcl_ProcObjCmd): correct 2002-09-26 fix to look for tclProcBodyType. sl@0: sl@0: 2002-10-01 Donal K. Fellows sl@0: sl@0: * doc/socket.n: Mentioned that ports may be specified as serivce names sl@0: as well as integers. [Bug 616843] sl@0: sl@0: 2002-09-30 Jeff Hobbs sl@0: sl@0: * generic/tclCompCmds.c (TclCompileRegexpCmd): correct the checking sl@0: for bad re's that didn't terminate the re string. Resultant compiles sl@0: were correct, but much slower than necessary. sl@0: sl@0: 2002-09-29 David Gravereaux sl@0: sl@0: * win/tclAppInit.c: Added proper exiting conditions using Win32 sl@0: console signals. This handles the existing lack of a Ctrl+C exit to sl@0: call exit handlers when built for thread support. Also, properly sl@0: handles exits from other conditions such as CTRL_CLOSE_EVENT, sl@0: CTRL_LOGOFF_EVENT, and CTRL_SHUTDOWN_EVENT signals. In all cases, exit sl@0: handlers will be called. [Bug 219355] sl@0: sl@0: * win/makefile.vc: Added missing tclThreadAlloc.c to the build rules sl@0: and defines USE_THREAD_ALLOC when TCL_THREADS is defined to get the sl@0: new behavior by default. sl@0: sl@0: 2002-09-27 Don Porter sl@0: sl@0: * README: Bumped to version 8.4.1 to avoid confusion sl@0: * generic/tcl.h: of CVS snapshots with the actual 8.4.0 sl@0: * tools/tcl.wse.in: release. sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf sl@0: * win/configure: sl@0: sl@0: 2002-09-26 Jeff Hobbs sl@0: sl@0: * unix/configure: regen. sl@0: * unix/tcl.m4: improve AIX-4/5 64bit compilation support. sl@0: sl@0: * generic/tclProc.c (Tcl_ProcObjCmd): correct overeager optimization sl@0: of noop proc to handle the precompiled case. (sofer) sl@0: sl@0: * unix/ldAix (nmopts): add -X32_64 to make it work for 32 or 64bit sl@0: mode compilation. sl@0: sl@0: * library/encoding/koi8-u.enc: removed extraneous spaces that confused sl@0: encoding reader. [Bug 615115] sl@0: sl@0: * unix/Makefile.in: generate source dists with -src designator and do sl@0: not generate .Z anymore (just .gz and .zip). sl@0: sl@0: 2002-09-18 Mumit Khan sl@0: sl@0: Added basic Cygwin support. sl@0: sl@0: * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build. sl@0: (SC_PATH_TKCONFIG): Likewise. sl@0: (SC_PROG_TCLSH): Likewise. sl@0: (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin sl@0: flags. Add -mwin32 to extra_cflags and extra_ldflags. Remove ``-e sl@0: _WinMain@16'' from LDFLAGS_WINDOW. sl@0: * win/configure.in: Allow Cygwin build. sl@0: (SEH test): Define to be 1 instead of empty value. sl@0: (EXCEPTION_DISPOSITION): Add test. sl@0: * win/configure: Regenerate. sl@0: sl@0: * generic/tcl.h: Don't explicitly define __WIN32__ for Cygwin, let the sl@0: user decide whether to use Windows or POSIX personality. sl@0: (TCL_WIDE_INT_TYPE, TCL_LL_MODIFIER, struct Tcl_StatBuf): Define for sl@0: Cygwin. sl@0: * generic/tclEnv.c (Tcl_CygwinPutenv): putenv replacement for Cygwin. sl@0: * generic/tclFileName.c (Tcl_TranslateFileName): Convert POSIX to sl@0: native format. sl@0: (TclDoGlob): Likewise. sl@0: * generic/tclPlatDecls.h (TCHAR): Define for Cygwin. sl@0: * win/tclWinPort.h (putenv, TclpSysAlloc, TclpSysFree) sl@0: (TclpSysRealloc): Define for Cygwin. sl@0: sl@0: 2002-09-26 Daniel Steffen sl@0: sl@0: * macosx/Makefile: preserve environment value of INSTALL_ROOT. When sl@0: embedding only use deployment build. Force relink before embedded sl@0: build to ensure new linker flags are picked up. sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: add symbolic links to debug lib, sl@0: stub libs and tclConfig.sh in framework toplevel. Configure target sl@0: dependency fix. Fix to 'clean' action. Added private tcl headers to sl@0: framework. Install tclsh symbolic link. Html doc build works when no sl@0: installed tclsh available. Made html doc structure in framework more sl@0: like in Apple frameworks. sl@0: sl@0: 2002-09-24 Donal K. Fellows sl@0: sl@0: * unix/tcl.m4 (SC_TCL_64BIT_FLAGS): Yet more robust 64-bit value sl@0: detection to close [Bug 613117] on more systems. sl@0: sl@0: * generic/tclCompile.c (TclPrintSource): More CONSTifying. sl@0: * generic/tclExecute.c (EvalStatsCmd): Object-ify to reduce warnings. sl@0: Thanks to 'CoderX2' on the chat for bringing this to my attention... sl@0: sl@0: * unix/tcl.m4: Forgot to define TCL_WIDE_INT_IS_LONG at the sl@0: appropriate moment. I believe this is the cause of [Bug 613117] sl@0: sl@0: * doc/lset.n: Changed 'list' to 'varName' for consistency with lappend sl@0: documentation. Thanks to Glenn Jackman [Bug 611719] sl@0: sl@0: 2002-09-22 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected [puts -nonewline] within sl@0: test bodies. Thanks to Harald Kirsch. [Bug 612786, Patch 612788] Also sl@0: corrected reporting of body return code. Thanks to David Taback [Bug sl@0: 611922] sl@0: * library/tcltest/pkgIndex.tcl: Bump to version 2.2.1. sl@0: * tests/tcltest.test: added tests for these bugs. sl@0: sl@0: 2002-09-15 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Add PEEK_XCLOSEIM define under sl@0: Linux. This is used by Tk to double check that an X input context is sl@0: cleaned up before it is closed. sl@0: sl@0: 2002-09-12 David Gravereaux sl@0: sl@0: * win/coffbase.txt: Added BLT to the virtual base address listings sl@0: table should BLT's build tools decide to use it. sl@0: sl@0: 2002-09-12 Daniel Steffen sl@0: sl@0: * generic/tcl.h: sl@0: * mac/tclMacApplication.r: sl@0: * mac/tclMacLibrary.r: sl@0: * mac/tclMacResource.r: unified use of the two equivalent resource sl@0: compiler header inclusion defines RC_INVOKED and RESOURCE_INCLUDED, sl@0: now use RC_INVOKED throughout. sl@0: sl@0: 2002-09-10 Mo DeJong sl@0: sl@0: * unix/README: Add note about building extensions with the same sl@0: compiler Tcl was built with. [Tk Bug 592096] sl@0: sl@0: 2002-09-10 Daniel Steffen sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: disabled building html sl@0: documentation during embedded build. sl@0: sl@0: 2002-09-10 Daniel Steffen sl@0: sl@0: * unix/Makefile.in: added DYLIB_INSTALL_DIR variable for macosx and sl@0: set it to default value ${LIB_RUNTIME_DIR} sl@0: * unix/tcl.m4 (Darwin): use DYLIB_INSTALL_DIR instead of sl@0: LIB_RUNTIME_DIR in the -install_name argument to ld. sl@0: * unix/configure: regen. sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: sl@0: * macosx/Makefile: added support for building Tcl as an embedded sl@0: framework, i.e. using an dyld install_name containing sl@0: @executable_path/../Frameworks via the new DYLIB_INSTALL_DIR sl@0: unix/Makefile variable. sl@0: sl@0: 2002-09-10 Jeff Hobbs sl@0: sl@0: *** 8.4.0 TAGGED FOR RELEASE *** sl@0: sl@0: 2002-09-06 Don Porter sl@0: sl@0: * doc/file.n: Format correction, and clarified [file normalize] sl@0: returns an absolute path. sl@0: sl@0: * doc/tcltest.n: Added examples section, as long promised. sl@0: sl@0: 2002-09-06 Reinhard Max sl@0: sl@0: * tests/tcltest.test: Added nonRoot flag to tests 8.3, 8.4, and 8.12. sl@0: sl@0: 2002-09-05 Don Porter sl@0: sl@0: * doc/tcltest.n: Clarified phrasing. sl@0: sl@0: * generic/tclBasic.c (TclRenameCommand,CallCommandTraces): sl@0: * tests/trace.test (trace-27.1): Corrected memory leak when a rename sl@0: trace deleted the command being traced. Test added. Thanks to Hemang sl@0: Lavana for the fix. [Bug 604609] sl@0: sl@0: * generic/tclVar.c (TclDeleteVars): Corrected logic for setting the sl@0: TCL_INTERP_DESTROYED flag when calling variable traces. [Tk Bug 605121] sl@0: sl@0: 2002-09-04 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (DeleteArray): leak plug [Bug 604239]. Thanks to sl@0: dkf and dgp for the long and difficult discussion in the chat. sl@0: sl@0: 2002-09-03 Jeff Hobbs sl@0: sl@0: * generic/tclVar.c (Tcl_UpVar2): code cleanup to not use goto sl@0: sl@0: * unix/configure: remove -pthread from LIBS on FreeBSD in thread sl@0: * unix/tcl.m4: enabled build. [Bug 602849] sl@0: sl@0: 2002-09-03 Miguel Sofer sl@0: sl@0: * generic/tclInterp.c (AliasCreate): a Tcl_Obj was leaked on error sl@0: return from TclPreventAliasLoop. sl@0: sl@0: 2002-09-03 Daniel Steffen sl@0: sl@0: * macosx/Tcl.pbproj/project.pbxproj: Bumped version number to 8.4.0 sl@0: and updated copyright info. sl@0: sl@0: 2002-09-03 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (Tcl_UpVar2): a Tcl_Obj was being leaked on error sl@0: return from TclGetFrame. sl@0: sl@0: 2002-09-03 Don Porter sl@0: sl@0: * changes: Updated changes for 8.4.0 release. sl@0: sl@0: 2002-09-02 Jeff Hobbs sl@0: sl@0: * unix/tclUnixFile.c (TclpObjLink): removed unnecessary/unfreed sl@0: extra native char*. sl@0: sl@0: * unix/tclUnixChan.c (Tcl_MakeTcpClientChannel): make sure to init sl@0: flags field of TcpState ptr to 0. sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4: added 64-bit gcc compilation support on HP-11. sl@0: [Patch 601051] (martin) sl@0: sl@0: * README: Bumped version number to 8.4.0 sl@0: * generic/tcl.h: sl@0: * tools/tcl.wse.in: sl@0: * unix/configure: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure: sl@0: * win/configure.in: sl@0: sl@0: * generic/tclInterp.c (SlaveCreate): make sure that the memory and sl@0: checkmem commands are initialized in non-safe slave interpreters when sl@0: TCL_MEM_DEBUG is used. [Bug 583445] sl@0: sl@0: * win/tclWinConsole.c (ConsoleCloseProc): only wait on writable pipe sl@0: if there was something to write. This may prevent infinite wait on sl@0: exit. sl@0: sl@0: * tests/exec.test: marked exec-18.1 unixOnly until the Windows sl@0: incompatability (in the test, not the core) can be resolved. sl@0: sl@0: * tests/http.test (http-3.11): added close $fp that was causing an sl@0: error on Windows because the file was not closed before deleting. sl@0: sl@0: * unix/tclUnixInit.c (Tcl_MacOSXGetLibraryPath): made this static sl@0: function only appear when HAVE_CFBUNDLE is defined. sl@0: sl@0: 2002-08-31 Daniel Steffen sl@0: sl@0: * unix/tcl.m4: added TK_SHLIB_LD_EXTRAS analogue of existing sl@0: TCL_SHLIB_LD_EXTRAS for linker settings only used when linking Tk. sl@0: sl@0: * unix/configure: regen sl@0: sl@0: 2002-08-31 Daniel Steffen sl@0: sl@0: *** macosx-8-4-branch merged into the mainline [Patch 602770] *** sl@0: sl@0: * generic/tcl.decls: added new macosx specific entry to stubs table. sl@0: sl@0: * tools/genStubs.tcl: added generation of platform guards for macosx. sl@0: This is a little more complex than it seems, because MacOS X IS "unix" sl@0: plus a little bit, for the purposes of Tcl. BUT unfortunately, Tk uses sl@0: "unix" to mean X11. So added platform keys for macosx (the little sl@0: added to "unix"), "aqua" and "x11" to distinguish these for Tk. sl@0: sl@0: * generic/tcl.h: added a #ifnded RESOURCE_INCLUDED so that tcl.h can sl@0: be passed to the resource compiler. sl@0: sl@0: * generic/tcl.h: sl@0: * generic/tclNotify.c: added a few Notifier procs, to be able to sl@0: modify more bits of the Tcl notifier dynamically. Required to get Mac sl@0: OS X Tk to live on top of the Tcl Unix threaded notifier. Changes the sl@0: size of the Tcl_NotifierProcs structure, but doesn't move any elements sl@0: around. sl@0: sl@0: * unix/tclUnixNotfy.c: moved the call to Tcl_ConditionNotify till sl@0: AFTER we are done mucking with the pointer swap. Fixes cases where the sl@0: thread waiting on the condition wakes & accesses the waitingListPtr sl@0: before it gets reset, causing a hang. sl@0: sl@0: * library/auto.tcl (tcl_findLibrary): added checking the directories sl@0: in the tcl_pkgPath for library files on macosx to enable support of sl@0: the standard Mac OSX library locations sl@0: sl@0: * unix/Makefile.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.m4: added MAC_OSX_DIR. Added PLAT_OBJS to the OBJS: there sl@0: are some MacOS X specific files now for Tcl, and when I get he sl@0: resource & applescript stuff ported over, and restore support for sl@0: FindFiles, etc, there will be a few more. Added LD_LIBRARY_PATH_VAR sl@0: configure variable to avoid having to set all possible LD_LIBRARY_PATH sl@0: analogues on all platforms. LD_LIBRARY_PATH_VAR is "LD_LIBRARY_PATH" sl@0: by default, "LIBPATH" on AIX, "SHLIB_PATH" on HPUX and sl@0: "DYLD_LIBRARY_PATH" on Mac OSX. Added configure option to package Tcl sl@0: as a framework on Mac OSX. sl@0: sl@0: * macosx/tclMacOSXBundle.c (new): support for finding Tcl extension sl@0: packaged as 'bundles' in the standard Mac OSX library locations. sl@0: sl@0: * unix/tclUnixInit.c: added support for findig the tcl script library sl@0: inside Tcl packaged as a framework on Mac OSX. sl@0: sl@0: * macosx/Tcl.pbproj/jingham.pbxuser (new): sl@0: * macosx/Tcl.pbproj/project.pbxproj (new): project for Apple's sl@0: ProjectBuilder IDE. sl@0: sl@0: * macosx/Makefile (new): simple makefile for building the project from sl@0: the command line via the ProjectBuilder tool 'pbxbuild'. sl@0: sl@0: * unix/configure: sl@0: * generic/tclStubInit.c: sl@0: * generic/tclPlatDecls.h: regen sl@0: sl@0: 2002-08-29 Andreas Kupries sl@0: sl@0: * win/tclWinThrd.c (TclpFinalizeThreadData, TclWinFreeAllocCache): sl@0: Applied patch for [Bug 599428] (sofer) sl@0: sl@0: 2002-08-28 David Gravereaux sl@0: sl@0: * generic/tclEnv.c: sl@0: * unix/configure.in: sl@0: * win/tclWinPort.h: putenv() on some systems copies the buffer rather sl@0: than taking reference to it. This causes memory leaks and is know to sl@0: effect mswindows (msvcrt) and NetBSD 1.5.2. This patch tests for this sl@0: behavior and turns on -DHAVE_PUTENV_THAT_COPIES=1 when approriate. sl@0: Thanks to David Welton for assistance. [Bug 414910] sl@0: sl@0: * unix/configure: regen'd sl@0: sl@0: 2002-08-28 Donal K. Fellows sl@0: sl@0: * doc/eval.n: Added mention of list command and corrected "SEE ALSO". sl@0: sl@0: * unix/configure.in: Cache handling of ac_cv_type_socklen_t was wrong. sl@0: [Bug 600931] reported by John Ellson. Fixed by putting the brackets sl@0: where they belong. sl@0: sl@0: 2002-08-26 Miguel Sofer sl@0: sl@0: * generic/tclCompCmds.c: fix for [Bug 599788] (error in element name sl@0: causing segfault), reported by Tom Wilkason. Fixed by copying the sl@0: tokens instead of the source string. sl@0: sl@0: 2002-08-26 Miguel Sofer sl@0: sl@0: * generic/tclThreadAlloc.c: small optimisation, reducing the new sl@0: allocator's overhead. sl@0: sl@0: 2002-08-23 Miguel Sofer sl@0: sl@0: * generic/tclObj.c (USE_THREAD_ALLOC): fixed leak [Bug 597936]. Thanks sl@0: to Zoran Vasiljevic. sl@0: sl@0: 2002-08-23 Miguel Sofer sl@0: sl@0: * generic/tclThreadAlloc.c (USE_THREAD_ALLOC): moving objects between sl@0: caches as a block, instead of one-by-one. sl@0: sl@0: 2002-08-22 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c: sl@0: * generic/tclCmdMZ.c: fix for freed memory r/w in delete traces [Bug sl@0: 589863], patch by Hemang Lavana. sl@0: sl@0: 2002-08-20 Andreas Kupries sl@0: sl@0: * win/Makefile.in (CFLAGS): sl@0: * unix/Makefile.in (MEM_DEBUG_FLAGS): Added usage of @MEM_DEBUG_FLAGS@. sl@0: * win/configure.in: sl@0: * unix/configure.in: Added usage of SC_ENABLE_MEMDEBUG. sl@0: * win/tcl.m4: sl@0: * unix/tcl.m4: Added macro SC_ENABLE_MEMDEBUG. Allows a user of sl@0: configure to (de)activate memory validation and debugging sl@0: (TCL_MEM_DEBUG). No need to modify the makefile anymore. sl@0: sl@0: 2002-08-20 Don Porter sl@0: sl@0: * generic/tclCkalloc.c: CONSTified MemoryCmd and CheckmemCmd. sl@0: sl@0: * README: Bumped version number to 8.4b3 to distinguish sl@0: * generic/tcl.h: HEAD from the 8.4b2 release. sl@0: * tools/tcl.wse.in: sl@0: * unix/configure.in: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure.in: sl@0: sl@0: * unix/configure: autoconf sl@0: * win/configure: sl@0: sl@0: * library/http/http.tcl: Corrected installation directory of sl@0: * library/msgcat/msgcat.tcl: the package tcltest 2.2. Added sl@0: * library/opt/optparse.tcl: comments in other packages to remind sl@0: * library/tcltest/tcltest.tcl: that installation directories need sl@0: * unix/Makefile.in: updates to match increasing version sl@0: * win/Makefile.in: numbers. [Bug 597450] sl@0: * win/makefile.bc: sl@0: * win/makefile.vc: sl@0: sl@0: 2002-08-19 Andreas Kupries sl@0: sl@0: * unix/tclUnixTest.c (TestfilehandlerCmd): Changed sl@0: readable/writable to the more common readable|writable. sl@0: Fixes [Bug 596034] (lvirden) sl@0: sl@0: 2002-08-16 Donal K. Fellows sl@0: sl@0: * tests/fCmd.test: Added test to make sure that the cause of the sl@0: problem is detectable with an unpatched Tcl. sl@0: * doc/ObjectType.3: Added note on the root cause of this problem to sl@0: the documentation, since it is possible for user code to trigger this sl@0: sort of behaviour too. sl@0: * generic/tclIOUtil.c (SetFsPathFromAny): Objects should only have sl@0: their old representation deleted when we know that we are about to sl@0: install a new one. This stops a weird TclX bug under Linux with sl@0: certain kinds of memory debugging enabled which essentally came down sl@0: to a double-free of a string. sl@0: sl@0: 2002-08-14 Miguel Sofer sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tclObj.c: (code cleanup) factored the parts in the macros sl@0: TclNewObj() / TclDecrRefCount() into a common part for all memory sl@0: allocators and two new macros TclAllocObjStorage() / sl@0: TclFreeObjStorage() that are specific to each allocator and fully sl@0: describe the differences. Removed allocator-specific code from sl@0: tclObj.c by using the macros. sl@0: sl@0: 2002-08-12 Miguel Sofer sl@0: sl@0: * generic/tclCmdMZ.c: fixing UMR in delete traces, [Bug 589863]. sl@0: sl@0: 2002-08-08 David Gravereaux sl@0: sl@0: * tools/man2help.tcl: Fixed $argv handling bug where if -bitmap wasn't sl@0: specified $argc was off by one. sl@0: sl@0: 2002-08-08 Miguel Sofer sl@0: sl@0: * tests/uplevel.test: added 6.1 to test [uplevel] with shadowed sl@0: commands [Bug 524383] sl@0: sl@0: * tests/subst.test: added 5.8-10 as further tests for [Bug 495207] sl@0: sl@0: 2002-08-08 Don Porter sl@0: sl@0: * tests/README: Noted removal of defs.tcl. sl@0: sl@0: 2002-08-08 Jeff Hobbs sl@0: sl@0: * doc/lsearch.n: corrected lsearch docs to use -inline in examples. sl@0: sl@0: *** 8.4b2 TAGGED FOR RELEASE *** sl@0: sl@0: * tests/fCmd.test: sl@0: * tests/unixFCmd.test: updated tests for new link copy behavior. sl@0: * generic/tclFCmd.c (CopyRenameOneFile): changed the behavior to sl@0: follow links to endpoints and copy that file/directory instead of just sl@0: copying the surface link. This means that trying to copy a link that sl@0: has no endpoint (danling link) is an error. [Patch 591647] (darley) sl@0: (CopyRenameOneFile): this is currently disabled by default until sl@0: further issues with such behavior (like relative links) can be handled sl@0: correctly. sl@0: sl@0: * tests/README: slight wording improvements sl@0: sl@0: 2002-08-07 Miguel Sofer sl@0: sl@0: * docs/BoolObj.3: added description of valid string reps for a boolean sl@0: object [Bug 584794] sl@0: * generic/tclObj.c: optimised Tcl_GetBooleanFromObj and sl@0: SetBooleanFromAny to avoid parsing the string rep when it can be sl@0: avoided [Bugs 584650, 472576] sl@0: sl@0: 2002-08-07 Miguel Sofer sl@0: sl@0: * generic/tclCompile.h: sl@0: * generic/tclObj.c: making tclCmdNameType static [Bug 584567] (dgp) sl@0: sl@0: 2002-08-07 Miguel Sofer sl@0: sl@0: * generic/tclObj.c (Tcl_NewObj): added conditional code for sl@0: USE_THREAD_ALLOC; objects allocated through Tcl_NewObj() were sl@0: otherwise being leaked. [Bug 587488] reported by Sven Sass. sl@0: sl@0: 2002-08-06 Daniel Steffen sl@0: sl@0: * generic/tclInt.decls: sl@0: * unix/tclUnixThrd.c: Added stubs and implementations for non-threaded sl@0: build for the tclUnixThrd.c procs TclpReaddir, TclpLocaltime, sl@0: TclpGmtime and TclpInetNtoa. Fixes link errors in stubbed & threaded sl@0: extensions that include tclUnixPort.h and use any of the procs sl@0: readdir, localtime, gmtime or inet_ntoa (e.g. TclX 8.4) [Bug 589526] sl@0: * generic/tclIntPlatDecls.h: sl@0: * generic/tclStubInit.c: Regen. sl@0: sl@0: 2002-08-05 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: The setup and cleanup scripts are now sl@0: * library/tcltest/pkgIndex.tcl: skipped when a test is skipped, fixing sl@0: * tests/tcltest.test: [Bug 589859]. Test for bug added, and sl@0: corrected tcltest package bumped to version 2.2. sl@0: sl@0: * generic/tcl.decls: Restored Tcl_Concat to return (char *). Like sl@0: * generic/tclDecls.h: Tcl_Merge, it transfers ownership of a dynamic sl@0: * generic/tclUtil.c: allocated string to the caller. sl@0: sl@0: 2002-08-04 Don Porter sl@0: sl@0: * doc/CmdCmplt.3: Applied Patch 585105 to fully CONST-ify sl@0: * doc/Concat.3: all remaining public interfaces of Tcl. sl@0: * doc/CrtCommand.3: Notably, the parser no longer writes on sl@0: * doc/CrtSlave.3: the string it is parsing, so it is no sl@0: * doc/CrtTrace.3: longer necessary for Tcl_Eval() to be sl@0: * doc/Eval.3: given a writable string. Also, the sl@0: * doc/ExprLong.3: refactoring of the Tcl_*Var* routines sl@0: * doc/LinkVar.3: by Miguel Sofer is included, so that the sl@0: * doc/ParseCmd.3: "part1" argument for them no longer needs sl@0: * doc/SetVar.3: to be writable either. sl@0: * doc/TraceVar.3: sl@0: * doc/UpVar.3: Compatibility support has been enhanced so sl@0: * generic/tcl.decls: that a #define of USE_NON_CONST will remove sl@0: * generic/tcl.h: all possible source incompatibilities with sl@0: * generic/tclBasic.c: the 8.3 version of the header file(s). sl@0: * generic/tclCmdMZ.c: The new #define of USE_COMPAT_CONST now does sl@0: * generic/tclCompCmds.c:what USE_NON_CONST used to do -- disable sl@0: * generic/tclCompExpr.c:only those new CONST's that introduce sl@0: * generic/tclCompile.c: irreconcilable incompatibilities. sl@0: * generic/tclCompile.h: sl@0: * generic/tclDecls.h: Several bugs are also fixed by this patch. sl@0: * generic/tclEnv.c: [Bugs 584051,580433] [Patches 585105,582429] sl@0: * generic/tclEvent.c: sl@0: * generic/tclInt.decls: sl@0: * generic/tclInt.h: sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclInterp.c: sl@0: * generic/tclLink.c: sl@0: * generic/tclObj.c: sl@0: * generic/tclParse.c: sl@0: * generic/tclParseExpr.c: sl@0: * generic/tclProc.c: sl@0: * generic/tclTest.c: sl@0: * generic/tclUtf.c: sl@0: * generic/tclUtil.c: sl@0: * generic/tclVar.c: sl@0: * mac/tclMacTest.c: sl@0: * tests/expr-old.test: sl@0: * tests/parseExpr.test: sl@0: * unix/tclUnixTest.c: sl@0: * unix/tclXtTest.c: sl@0: * win/tclWinTest.c: sl@0: sl@0: 2002-08-01 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: bugfix (reading freed memory). Testsuite sl@0: passed on linux/i386, compile-13.1 hung on linux/alpha. sl@0: sl@0: 2002-08-01 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: added a reference count for the complete sl@0: execution stack, instead of Tcl_Preserve/Tcl_Release. sl@0: sl@0: 2002-08-01 Mo DeJong sl@0: sl@0: * generic/tclCkalloc.c (TclFinalizeMemorySubsystem): Don't lock the sl@0: ckalloc mutex before invoking the Tcl_DumpActiveMemory function since sl@0: it also locks the same mutex. This code is only executed when "memory sl@0: onexit filename" has been executed and Tcl is compiled with sl@0: -DTCL_MEM_DEBUG. sl@0: sl@0: 2002-08-01 Reinhard Max sl@0: sl@0: * win/tclWinPort.h: The windows headers don't provide socklen_t, so we sl@0: have to do it. sl@0: sl@0: 2002-07-31 Miguel Sofer sl@0: sl@0: * generic/tclInt.h (USE_THREAD_ALLOC): for unshared objects, sl@0: TclDecrRefCount now frees the internal rep before the string rep - sl@0: just like the non-macro Tcl_DecrRefCount/TclFreeObj [Bug 524802]. For sl@0: the other allocators the fix was done on 2002-03-06. sl@0: sl@0: 2002-07-31 Miguel Sofer sl@0: sl@0: * generic/tclInterp.c: signed/unsigned comparison warning fixed sl@0: (Vince Darley). sl@0: sl@0: 2002-07-31 Donal K. Fellows sl@0: sl@0: * unix/tcl.m4 (SC_BUGGY_STRTOD): Enabled caching of test results. sl@0: sl@0: * unix/tcl.m4 (SC_BUGGY_STRTOD): Solaris 2.8 still has a buggy sl@0: strtod() implementation; make sure we detect it. sl@0: sl@0: * tests/expr.test (expr-22.*): Marked as non-portable because it seems sl@0: that these tests have an annoying tendency to fail in unexpected ways. sl@0: [Bugs 584825, 584950, 585986] sl@0: sl@0: 2002-07-30 Andreas Kupries sl@0: sl@0: * tests/io.test: sl@0: * generic/tclIO.c (WriteChars): Added flag to break out of loop if sl@0: nothing of the input is consumed at all, to prevent infinite looping sl@0: of called with a non-UTF-8 string. Fixes [Bug 584603] partially. sl@0: Added new test "io-60.1". Might need additional changes to Tcl_Main so sl@0: that unprintable results are printed as binary data. sl@0: sl@0: 2002-07-29 Mo DeJong sl@0: sl@0: * unix/Makefile.in: Use CC_SEARCH_FLAGS instead of LD_SEARCH_FLAGS sl@0: when linking with ${CC}. sl@0: * unix/configure: Regen. sl@0: * unix/configure.in: Don't subst CC_SEARCH_FLAGS or LD_SEARCH_FLAGS sl@0: since this is now done in tcl.m4. sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Document and set CC_SEARCH_FLAGS sl@0: whenever LD_SEARCH_FLAGS is set. [Patch 588290] sl@0: sl@0: 2002-07-29 Reinhard Max sl@0: sl@0: * unix/tcl.m4 (SC_SERIAL_PORT): Fixed detection for cases when sl@0: configure's stdin is not a tty. sl@0: sl@0: * unix/tclUnixPort.h: sl@0: * generic/tclIOSock.c: Changed size_t to socklen_t in sl@0: socket-related function calls. sl@0: sl@0: * unix/configure.in: Added test and fallback definition sl@0: for socklen_t. sl@0: sl@0: * unix/configure: generated. sl@0: sl@0: 2002-07-29 Miguel Sofer sl@0: sl@0: * generic/tclObj.c: fixed a comment sl@0: sl@0: * generic/tcl.h: sl@0: * generic/tclBasic.c: sl@0: * generic/tclInterp.c: added the new flag TCL_EVAL_INVOKE to the sl@0: interface of the Tcl_Eval* functions, removing the sl@0: TCL_EVAL_NO_TRACEBACK added yesterday: alias invocations not only sl@0: require no tracebacks, but also look up the command name in the global sl@0: scope - see new test interp-9.4 sl@0: * tests/interp.test: added 9.3 to test for safety of aliases to hidden sl@0: commands, 9.4 to test for correct command lookup scope. sl@0: sl@0: 2002-07-29 Donal K. Fellows sl@0: sl@0: * generic/regc_locale.c (cclass): [[:xdigit:]] is only a defined sl@0: concept on western characters, so should not allow any unicode digit, sl@0: and hence number of ranges in [[:xdigit:]] is fixed. sl@0: * tests/reg.test: Added test to detect the bug. sl@0: * generic/regc_cvec.c (newcvec): Corrected initial size value in sl@0: character vector structure. [Bug 578363] Many thanks to sl@0: pvgoran@users.sf.net for tracking this down. sl@0: sl@0: 2002-07-28 Miguel Sofer sl@0: sl@0: * generic/tcl.h: sl@0: * generic/tclBasic.c: added the new flag TCL_EVAL_NO_TRACEBACK to the sl@0: interface of the Tcl_Eval* functions. Modified the error message for sl@0: too many nested evaluations. sl@0: * generic/tclInterp.h: changed the Alias struct to be of variable sl@0: length and store the prefix arguments directly (instead of a pointer sl@0: to a Tcl_Obj list). Made AliasObjCmd call Tcl_EvalObjv instead of sl@0: TclObjInvoke - thus making aliases trigger execution traces. [Bug sl@0: 582522] sl@0: * tests/interp.test: sl@0: * tests/stack.test: adapted to the new error message. sl@0: * tests/trace.test: added tests for aliases firing the exec traces. sl@0: sl@0: 2002-07-27 Mo DeJong sl@0: sl@0: * unix/Makefile.in: Revert fix for Tcl bug 529801 since it was sl@0: incorrect and broke the build on other systems. Fix [Bug 587299]. Add sl@0: MAJOR_VERSION, MINOR_VERSION, PATCH_LEVEL, SHLIB_LD_FLAGS, sl@0: SHLIB_LD_LIBS, CC_SEARCH_FLAGS, LD_SEARCH_FLAGS, and LIB_FILE sl@0: variables to support more generic library build/install rules. sl@0: * unix/configure: Regen. sl@0: * unix/configure.in: Move AC_PROG_RANLIB into tcl.m4. Move shared sl@0: build test and setting of MAKE_LIB and MAKE_STUB_LIB into tcl.m4. Move sl@0: subst of a number of variables into tcl.m4 where they are defined. sl@0: * unix/tcl.m4 (SC_ENABLE_SYMBOLS, SC_CONFIG_CFLAGS): sl@0: Subst vars where they are defined. Add MAKE_LIB, MAKE_STUB_LIB, sl@0: INSTALL_LIB, and INSTALL_STUB_LIB rules to deal with the ugly details sl@0: of running ranlib on static libs at build and install time. Replace sl@0: TCL_SHLIB_LD_EXTRAS with SHLIB_LD_FLAGS and use it when building a sl@0: shared library. sl@0: * unix/tclConfig.sh.in: Add TCL_CC_SEARCH_FLAGS. sl@0: sl@0: 2002-07-26 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: fixed Tcl_Obj leak in code corresponding to sl@0: the macro NEXT_INST_V(x, 0, 1). [Bug 587495] sl@0: sl@0: 2002-07-26 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (TclObjLookupVar): leak fix and improved comments. sl@0: sl@0: 2002-07-26 Jeff Hobbs sl@0: sl@0: * generic/tclVar.c (TclLookupVar): removed early returns that sl@0: prevented the parens from being restored. also removed goto label as sl@0: it was not necessary. sl@0: sl@0: 2002-07-24 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: sl@0: * tests/expr-old.test: fix for erroneous error messages in [expr], sl@0: [Bug 587140] reported by Martin Lemburg. sl@0: sl@0: 2002-07-25 Joe English sl@0: sl@0: * generic/tclProc.c: fix for [Tk Bug 219218] "error handling with sl@0: bgerror in Tk" sl@0: sl@0: 2002-07-24 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: restoring full TCL_COMPILE_DEBUG sl@0: functionality. sl@0: sl@0: 2002-07-24 Don Porter sl@0: sl@0: * tests/unixInit.test: relaxed unixInit-3.1 to accept iso8859-15 as a sl@0: valid C encoding. [Bug 575336] sl@0: sl@0: 2002-07-24 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: restoring the tcl_traceCompile functionality sl@0: while I repair tcl_traceExec. The core now compiles and runs also sl@0: under TCL_COMPILE_DEBUG, but execution in the bytecode engine can sl@0: still not be traced. sl@0: sl@0: 2002-07-24 Daniel Steffen sl@0: sl@0: * unix/Makefile.in: sl@0: * unix/configure.in: corrected fix for [Bug 529801]: ranlib only sl@0: needed for static builds on Mac OS X. sl@0: * unix/configure: Regen. sl@0: * unix/tclLoadDyld.c: fixed small bugs introduced by Vince, sl@0: implemented library unloading correctly (needs OS X 10.2). sl@0: sl@0: 2002-07-23 Joe English sl@0: sl@0: * doc/OpenFileChnl.3: (Updates from Larry Virden) sl@0: * doc/open.n: sl@0: * doc/tclsh.1: Fix section numbers in Unix man page references. sl@0: * doc/lset.n: In EXAMPLES section, include command to set the initial sl@0: value used in subsequent examples. sl@0: * doc/http.n: Package version updated to 2.4. sl@0: sl@0: 2002-07-23 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Enable 64 bit compilation when using sl@0: the native compiler on a 64 bit version of IRIX. [Bug 219220] sl@0: sl@0: 2002-07-23 Mo DeJong sl@0: sl@0: * unix/Makefile.in: Combine ranlib tests and avoid printing unless sl@0: ranlib is actually run. sl@0: sl@0: 2002-07-23 Mo DeJong sl@0: sl@0: * unix/tcl.m4 (SC_PATH_X): Set XINCLUDES to "" instead of "# no sl@0: special path needed" or "# no include files found" when x headers sl@0: cannot be located. sl@0: sl@0: 2002-07-22 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: made tclNativeFilesystem static (since 07-19 sl@0: changes removed its usage elsewhere), and added comments about its sl@0: usage. sl@0: * generic/tclLoad.c: sl@0: * generic/tcl.h: sl@0: * generic/tcl.decls: sl@0: * doc/FileSystem.3: converted last load-related ClientData parameter sl@0: to Tcl_LoadHandle opaque structure, removing a couple of casts in the sl@0: process. sl@0: sl@0: * generic/tclInt.h: removed tclNativeFilesystem declaration since it sl@0: is now static again. sl@0: sl@0: 2002-07-22 Donal K. Fellows sl@0: sl@0: * tests/expr.test (expr-22.*): Added tests to help detect the sl@0: corrected handling. sl@0: * generic/tclExecute.c (IllegalExprOperandType): Improved error sl@0: message generated when attempting to manipulate Inf and NaN values. sl@0: * generic/tclParseExpr.c (GetLexeme): Allowed parser to recognise sl@0: 'Inf' as a floating-point number. [Bug 218000] sl@0: sl@0: 2002-07-21 Don Porter sl@0: sl@0: * tclIOUtil.c: Silence compiler warning. [Bug 584408]. sl@0: sl@0: 2002-07-19 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: fix to GetFilesystemRecord sl@0: * win/tclWinFile.c: sl@0: * unix/tclUnixFile.c: fix to subtle problem with links shown up by sl@0: latest tclkit builds. sl@0: sl@0: 2002-07-19 Mo DeJong sl@0: sl@0: * unix/configure: sl@0: * unix/configure.in: sl@0: * win/configure: sl@0: * win/configure.in: Add AC_PREREQ(2.13) in an attempt to make it more sl@0: clear that the configure scripts must be generated with autoconf sl@0: version 2.13. [Bug 583573] sl@0: sl@0: 2002-07-19 Vince Darley sl@0: sl@0: * unix/Makefile.in: fix to build on MacOS X [Bug 529801], bug report sl@0: and fix from jcw. sl@0: sl@0: 2002-07-19 Donal K. Fellows sl@0: sl@0: * win/tclWinSerial.c (no_timeout): Made this variable static. sl@0: sl@0: * generic/tclExecute.c, generic/tclCompile.c, generic/tclBasic.c: sl@0: * generic/tclCompile.h (builtinFuncTable, instructionTable): Added sl@0: prefix to these symbols because they are visible outside the Tcl sl@0: library. sl@0: sl@0: * generic/tclCompExpr.c (operatorTable): sl@0: * unix/tclUnixTime.c (tmKey): sl@0: * generic/tclIOUtil.c (theFilesystemEpoch, filesystemWantToModify, sl@0: (filesystemIteratorsInProgress, filesystemOkToModify): Made these sl@0: variables static. sl@0: sl@0: * unix/tclUnixFile.c: Renamed nativeFilesystem to sl@0: * win/tclWinFile.c: tclNativeFilesystem and declared sl@0: * generic/tclIOUtil.c: it properly in tclInt.h sl@0: * generic/tclInt.h: sl@0: sl@0: * generic/tclUtf.c (totalBytes): Made this array static and const. sl@0: sl@0: * generic/tclParse.c (typeTable): Made this array static and const. sl@0: (Tcl_ParseBraces): Simplified error handling case so that scans are sl@0: only performed when needed, and flags are simpler too. sl@0: sl@0: * license.terms: Added AS to list of copyright holders; it's only fair sl@0: for the current gatekeepers to be listed here! sl@0: sl@0: * tests/cmdMZ.test: Renamed constraint for clarity. [Bug 583427] sl@0: Added tests for the [time] command, which was previously only sl@0: indirectly tested! sl@0: sl@0: 2002-07-18 Vince Darley sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tcl.h: sl@0: * */*Load*.c: added comments on changes of 07/17 and replaced sl@0: clientData with Tcl_LoadHandle in all locations. sl@0: sl@0: * generic/tclFCmd.c: sl@0: * tests/fileSystem.test: fixed a 'knownBug' with 'file sl@0: attributes ""' sl@0: * tests/winFCmd.test: sl@0: * tests/winPipe.test: sl@0: * tests/fCmd.test: sl@0: * tessts/winFile.test: added 'pcOnly' constraint to some tests to make sl@0: for more useful 'tests skipped' log from running all tests on sl@0: non-Windows platforms. sl@0: sl@0: 2002-07-17 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (CallCommandTraces): delete traces now receive sl@0: the FQ old name of the command. [Bug 582532] (Don Porter) sl@0: sl@0: 2002-07-18 Vince Darley sl@0: sl@0: * tests/ioUtil.test: added constraints to 1.4,2.4 so they don't run sl@0: outside of tcltest. [Bugs 583276,583277] sl@0: sl@0: 2002-07-17 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (DupParsedVarName): nasty bug fixed, reported by sl@0: Vince Darley. sl@0: sl@0: 2002-07-17 Miguel Sofer sl@0: sl@0: * generic/tclVar.c (TclPtrIncrVar): missing CONST in declarations, sl@0: inconsistent with tclInt.h. Thanks to Vince Darley for reporting, boo sl@0: to gcc for not complaining. sl@0: sl@0: 2002-07-17 Vince Darley sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclLoadNone.c: sl@0: * unix/tclLoadAout.c: sl@0: * unix/tclLoadDl.c: sl@0: * unix/tclLoadDld.c: sl@0: * unix/tclLoadDyld.c: sl@0: * unix/tclLoadNext.c: sl@0: * unix/tclLoadOSF.c: sl@0: * unix/tclLoadShl.c: sl@0: * mac/tclMacLoad.c: sl@0: * win/tclWinLoad.c: modified to move more functionality to the generic sl@0: code and avoid duplication. Partial replacement of internal uses of sl@0: clientData with opaque Tcl_LoadHandle. A little further work still sl@0: needed, but significant changes are done. sl@0: sl@0: 2002-07-17 D. Richard Hipp sl@0: sl@0: * library/msgcat/msgcat.tcl: fix a comment that was causing problems sl@0: for programs (ex: mktclapp) that embed the initialization scripts in sl@0: strings. sl@0: sl@0: 2002-07-17 Miguel Sofer sl@0: sl@0: * generic/tclInt.decls: sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclStubInit.c: sl@0: * generic/tclVar.c: removing the now redundant functions to access sl@0: indexed variables: Tcl(Get|Set|Incr)IndexedScalar() and sl@0: Tcl(Get|Set|Incr)ElementOfIndexedArray(). sl@0: sl@0: 2002-07-17 Donal K. Fellows sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): Minor fixes to make this sl@0: file compile with SunPro CC... sl@0: sl@0: 2002-07-17 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: modified to do variable lookup explicitly, and sl@0: then either inlining the variable access or else calling the new sl@0: TclPtr(Set|Get|Incr)Var functions in tclVar.c sl@0: * generic/tclInt.h: declare some functions previously local to sl@0: tclVar.c for usage by TEBC. sl@0: * generic/tclVar.c: removed local declarations; moved all special sl@0: accessor functions for indexed variables to the end of the file - they sl@0: are unused and ready for removal, but left there for the time being as sl@0: they are in the internal stubs table. sl@0: sl@0: ** WARNING FOR BYTECODE MAINTAINERS ** sl@0: TCL_COMPILE_DEBUG is currently not functional; will be fixed ASAP. sl@0: sl@0: 2002-07-16 Mo DeJong sl@0: sl@0: * unix/Makefile.in: sl@0: * win/Makefile.in: Add a more descriptive warning in the event `make sl@0: genstubs` needs to be rerun. sl@0: sl@0: 2002-07-16 Mo DeJong sl@0: sl@0: * unix/Makefile.in: Use dltest.marker file to keep track of when the sl@0: dltest package is up to date. This fixes [Bug 575768] since tcltest is sl@0: no longer linked every time. sl@0: * unix/dltest/Makefile.in: Create ../dltest.marker after a successful sl@0: `make all` run in dltest. sl@0: sl@0: 2002-07-16 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/configure.in: Remove useless subst of TCL_BIN_DIR. sl@0: sl@0: 2002-07-15 Miguel Sofer sl@0: sl@0: * generic/tclVar.c: inaccurate comment fixed sl@0: sl@0: 2002-07-15 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_AddObjErrorInfo): sl@0: * generic/tclExecute.c (TclUpdateReturnInfo): sl@0: * generic/tclInt.h: sl@0: * generic/tclProc.c: sl@0: Added two Tcl_Obj to the ExecEnv structure to hold the fully qualified sl@0: names "::errorInfo" and "::errorCode" to cache the addresses of the sl@0: corresponding variables. The two most frequent setters of these sl@0: variables now profit from the new variable name caching. sl@0: sl@0: 2002-07-15 Miguel Sofer sl@0: sl@0: * generic/tclVar.c: refactorisation to reuse already looked-up Var sl@0: pointers; definition of three new Tcl_Obj types to cache variable name sl@0: parsing and lookup for later reuse; modification of internal functions sl@0: to profit from the caching. sl@0: sl@0: * generic/tclInt.decls: sl@0: * generic/tclInt.h: sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclNamesp.c: adding CONST qualifiers to variable names sl@0: passed to Tcl_FindNamespaceVar and to variable resolvers; adding CONST sl@0: qualifier to the 'msg' argument to TclLookupVar. Needed to avoid code sl@0: duplication in the new tclVar.c code. sl@0: sl@0: * tests/set-old.test: sl@0: * tests/var.test: slight modification of error messages due to the sl@0: modifications in the tclVar.c code. sl@0: sl@0: 2002-07-15 Don Porter sl@0: sl@0: * tests/unixInit.test: Improved constraints to protect /tmp. [Bug sl@0: 581403] sl@0: sl@0: 2002-07-15 Vince Darley sl@0: sl@0: * tests/winFCmd.test: renamed 'win2000' and 'notWin2000' to more sl@0: appropriate constraint names. sl@0: * win/tclWinFile.c: updated comments to reflect 07-11 changes. sl@0: * win/tclWinFCmd.c: made ConvertFileNameFormat static again, since no sl@0: longer used in tclWinFile.c sl@0: * mac/tclMacFile.c: completed TclpObjLink implementation which was sl@0: previously lacking. sl@0: * generic/tclIOUtil.c: comment cleanup and code speedup. sl@0: sl@0: 2002-07-14 Don Porter sl@0: sl@0: * generic/tclInt.h: Removed declarations that duplicated entries sl@0: in the (internal) stub table. sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected errors in handling of sl@0: configuration options -constraints and -limitconstraints. sl@0: sl@0: * README: Bumped HEAD to version 8.4b2 so we can sl@0: * generic/tcl.h: distinguish it from the 8.4b1 release. sl@0: * tools/tcl.wse.in: sl@0: * unix/configure*: sl@0: * unix/tcl.spec: sl@0: * win/README.binary: sl@0: * win/configure*: sl@0: sl@0: 2002-07-11 Vince Darley sl@0: sl@0: * doc/file.n: sl@0: * win/tclWinFile.c: on Win 95/98/ME the long form of the path is used sl@0: as a normalized form. This is required because short forms are not a sl@0: robust representation. The file normalization function has been sped sl@0: up, but more performance gains might be possible, if speed is still an sl@0: issue on these platforms. sl@0: sl@0: 2002-07-11 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected reaction to existing but sl@0: false ::tcl_interactive. sl@0: sl@0: * doc/Hash.3: Overlooked CONST documentation update. sl@0: sl@0: 2002-07-11 Donal K. Fellows sl@0: sl@0: * generic/tclCkalloc.c: ckalloc() and friends take the block size as sl@0: an unsigned, so we should use %ud when reporting it in fprintf() and sl@0: panic(). sl@0: sl@0: 2002-07-11 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c: now setting local vars undefined at compile sl@0: time, instead of waiting until the proc is initialized. sl@0: * generic/tclProc.c: use macro TclSetVarUndefined instead of directly sl@0: setting the flag. sl@0: sl@0: 2002-07-11 Donal K. Fellows sl@0: sl@0: * tests/cmdAH.test: [file attr -perm] is Unix-only, so add [catch] sl@0: when not inside a suitably-protected test. sl@0: sl@0: 2002-07-10 Donal K. Fellows sl@0: sl@0: * tests/unixFCmd.test, tests/fileName.test: sl@0: * tests/fCmd.test: Removed [exec] of Unix utilities that have sl@0: equivalents in standard Tcl. [Bug 579268] Also simplified some of sl@0: unixFCmd.test while I was at it. sl@0: sl@0: 2002-07-10 Don Porter sl@0: sl@0: * tests/tcltest.test: Greatly reduced the number of [exec]s, using sl@0: slave interps instead. sl@0: * library/tcltest/tcltest.tcl: Fixed bug uncovered in the conversion sl@0: where a message was written to stdout instead of [outputChannel]. sl@0: sl@0: * tests/basic.test: Cleaned up, constrained, and reduced the sl@0: * tests/compile.test: amount of [exec] usage in the test suite. sl@0: * tests/encoding.test: sl@0: * tests/env.test: sl@0: * tests/event.test: sl@0: * tests/exec.test: sl@0: * tests/io.test: sl@0: * tests/ioCmd.test: sl@0: * tests/regexp.test: sl@0: * tests/regexpComp.test: sl@0: * tests/socket.test: sl@0: * tests/tcltest.test: sl@0: * tests/unixInit.test: sl@0: * tests/winDde.test: sl@0: * tests/winPipe.test: sl@0: sl@0: 2002-07-10 Donal K. Fellows sl@0: sl@0: * tests/cmdAH.test: Removed [exec] of Unix utilities. [Bug 579211] sl@0: sl@0: * tests/expr.test: Added tests to make sure that this works. sl@0: * generic/tclExecute.c (ExprCallMathFunc): Functions should also be sl@0: able to return wide-ints. [Bug 579284] sl@0: sl@0: 2002-07-08 Andreas Kupries sl@0: sl@0: * tests/socket.test: Fixed [Bug 578164]. The original reason for the sl@0: was a DNS outage while running the testsuite. Changed [info hostname] sl@0: to 127.0.0.1 to bypass DNS, knowing that we operate on the local sl@0: host. sl@0: sl@0: 2002-07-08 Don Porter sl@0: sl@0: * doc/tcltest.n: Fixed incompatibility in [viewFile]. sl@0: * library/tcltest/tcltest.tcl: Corrected docs. Bumped to 2.2.1. sl@0: * library/tcltest/pkgIndex.tcl: [Bug 578163] sl@0: sl@0: 2002-07-08 Vince Darley sl@0: sl@0: * tests/cmdAH.test: sl@0: * tests/fCmd.test: sl@0: * tests/fileName.test: tests which rely on 'file link' need a sl@0: constraint so they don't run on older Windows OS. [Bug 578158] sl@0: * generic/tclIOUtil.c: sl@0: * generic/tcl.h: sl@0: * generic/tclInt.h: sl@0: * generic/tclTest.c: sl@0: * mac/tclMacChan.c: sl@0: * unix/tclUnixChan.c: sl@0: * win/tclWinChan.c: sl@0: * doc/FileSystem.3: cleaned up internal handling of sl@0: Tcl_FSOpenFileChannel to remove duplicate code, and make writing sl@0: external vfs's clearer and easier. No functionality change. Also sl@0: clarify that objects with refCount zero should not be passed in to the sl@0: Tcl_FS API, and prevent segfaults from occuring on such user errors. sl@0: [Bug 578617] sl@0: sl@0: 2002-07-06 Don Porter sl@0: sl@0: * tests/pkgMkIndex.test: Constrained tests of [load] package indexing sl@0: to those platforms where the testing shared libraries have been built. sl@0: [Bug 578166]. sl@0: sl@0: 2002-07-05 Don Porter sl@0: sl@0: * changes: added recent changes sl@0: sl@0: 2002-07-05 Reinhard Max sl@0: sl@0: * generic/tclClock.c (FormatClock): Convert the format string to sl@0: UTF8 before calling TclpStrftime, so that non-ASCII characters don't sl@0: get mangled when the result string is being converted back. sl@0: * tests/clock.test: Added a test for that. sl@0: sl@0: 2002-07-05 Donal K. Fellows sl@0: sl@0: * unix/Makefile.in (ro-test,ddd,GDB,DDD): Created new targets to allow sl@0: running the test suite with a read-only current directory, running sl@0: under ddd instead of gdb, and factored out some executable names for sl@0: broken sites (like mine) where gdb and ddd are installed with sl@0: non-standard names... sl@0: sl@0: * tests/httpold.test: Altered test names to httpold-* to avoid clashes sl@0: with http.test, and stopped tests from failing when the current sl@0: directory is not writable... sl@0: sl@0: * tests/event.test: Stop these tests from failing sl@0: * tests/ioUtil.test: when the current directory is sl@0: * tests/regexp.test: not writable... sl@0: * tests/regexpComp.test: sl@0: * tests/source.test: sl@0: * tests/unixFile.test: sl@0: * tests/unixNotfy.test: sl@0: sl@0: * tests/unixFCmd.test: Trying to make these test-files sl@0: * tests/macFCmd.test: not bomb out with an error when sl@0: * tests/http.test: the current directory is not sl@0: * tests/fileName.test: writable... sl@0: * tests/env.test: sl@0: sl@0: 2002-07-05 Jeff Hobbs sl@0: sl@0: *** 8.4b1 TAGGED FOR RELEASE *** sl@0: sl@0: 2002-07-04 Donal K. Fellows sl@0: sl@0: * tests/cmdMZ.test (cmdMZ-1.4): sl@0: * tests/cmdAH.test: More fixing of writable-current-dir assumption. sl@0: [Bug 575824] sl@0: sl@0: 2002-07-04 Miguel Sofer sl@0: sl@0: * tests/basic.test: Same issue as below; fixed [Bug 575817] sl@0: sl@0: 2002-07-04 Andreas Kupries sl@0: sl@0: * tests/socket.test: sl@0: * tests/winPipe.test: sl@0: * tests/pid.test: Fixed [Bug 575848]. See below for a description the sl@0: general problem. sl@0: sl@0: All the bugs below are instances of the same problem: The testsuite sl@0: assumes [pwd] = [temporaryDirectory] and writable. sl@0: sl@0: * tests/iogt.test: Fixed [Bug 575860] sl@0: * tests/io.test: Fixed [Bug 575862] sl@0: * tests/exec.test: sl@0: * tests/ioCmd.test: Fixed [Bug 575836] sl@0: sl@0: 2002-07-03 Don Porter sl@0: sl@0: * tests/pkg1/direct1.tcl: removed sl@0: * tests/pkg1/pkgIndex.tcl: removed sl@0: * tests/pkgMkIndex.test: Imported auxilliary files from tests/pkg1 sl@0: into the test file pkgMkIndex.test itself. Formatting fixes. sl@0: sl@0: * unix/Makefile.in: removed tests/pkg/* from `make dist` sl@0: sl@0: * tests/pkg/circ1.tcl: removed sl@0: * tests/pkg/circ2.tcl: removed sl@0: * tests/pkg/circ3.tcl: removed sl@0: * tests/pkg/global.tcl: removed sl@0: * tests/pkg/import.tcl: removed sl@0: * tests/pkg/pkg1.tcl: removed sl@0: * tests/pkg/pkg2_a.tcl: removed sl@0: * tests/pkg/pkg2_b.tcl: removed sl@0: * tests/pkg/pkg3.tcl: removed sl@0: * tests/pkg/pkg4.tcl: removed sl@0: * tests/pkg/pkg5.tcl: removed sl@0: * tests/pkg/pkga.tcl: removed sl@0: * tests/pkg/samename.tcl: removed sl@0: * tests/pkg/simple.tcl: removed sl@0: * tests/pkg/spacename.tcl: removed sl@0: * tests/pkg/std.tcl: removed sl@0: * tests/pkgMkIndex.test: Fixed [Bug 575857] where this test file sl@0: expected to be able to write to [file join [testsDirectory] pkg]. Part sl@0: of the fix was to import several auxilliary files into the test file sl@0: itself. sl@0: sl@0: * tests/main.test: Cheap fix for [Bugs 575851, 575858]. Avoid sl@0: * tests/tcltest.test: non-writable . by [cd [temporaryDirectory]]. sl@0: sl@0: * library/auto.tcl: Fix [tcl_findLibrary] to be sure it sets $varName sl@0: only if a successful library script is found. [Bug 577033] sl@0: sl@0: 2002-07-03 Miguel Sofer sl@0: sl@0: * generic/tclCompCmds.c (TclCompileCatchCmd): return sl@0: TCL_OUT_LINE_COMPILE instead of TCL_ERROR: let the failure happen at sl@0: runtime so that it can be caught [Bug 577015]. sl@0: sl@0: 2002-07-02 Joe English sl@0: sl@0: * doc/tcltest.n: Markup fixes, spellcheck. sl@0: sl@0: 2002-07-02 Don Porter sl@0: sl@0: * doc/tcltest.n: more refinements of the documentation. sl@0: sl@0: * library/tcltest/tcltest.tcl: Added trace to be sure the stdio sl@0: constraint is updated whenever the [interpreter] changes. sl@0: sl@0: * doc/tcltest.n: Reverted [makeFile] and [viewFile] to sl@0: * library/tcltest/tcltest.tcl: their former behavior, and documented sl@0: * tests/cmdAH.test: it. Corrected misspelling of hook sl@0: * tests/event.test: procedure. Restored tests. sl@0: * tests/http.test: sl@0: * tests/io.test: sl@0: sl@0: * library/tcltest/tcltest.tcl: Simplified logic of [GetMatchingFiles] sl@0: and [GetMatchingDirectories], removing special case processing. sl@0: sl@0: * doc/tcltest.n: More documentation updates. Reference sections are sl@0: complete. Only examples need adding. sl@0: sl@0: 2002-07-02 Vince Darley sl@0: sl@0: * tests/fCmd.test: sl@0: * generic/tclCmdAH.c: clearer error msgs for 'file link', as per the sl@0: man page. sl@0: sl@0: 2002-07-01 Joe English sl@0: sl@0: * doc/Access.3: sl@0: * doc/AddErrInfo.3: sl@0: * doc/Alloc.3: sl@0: * doc/Backslash.3: sl@0: * doc/CrtChannel.3: sl@0: * doc/CrtSlave.3: sl@0: * doc/Encoding.3: sl@0: * doc/Eval.3: sl@0: * doc/FileSystem.3: sl@0: * doc/Notifier.3: sl@0: * doc/OpenFileChnl.3: sl@0: * doc/ParseCmd.3: sl@0: * doc/RegExp.3: sl@0: * doc/Tcl_Main.3: sl@0: * doc/Thread.3: sl@0: * doc/TraceCmd.3: sl@0: * doc/Utf.3: sl@0: * doc/WrongNumArgs.3: sl@0: * doc/binary.n: sl@0: * doc/clock.n: sl@0: * doc/expr.n: sl@0: * doc/fconfigure.n: sl@0: * doc/glob.n: sl@0: * doc/http.n: sl@0: * doc/interp.n: sl@0: * doc/lsearch.n: sl@0: * doc/lset.n: sl@0: * doc/msgcat.n: sl@0: * doc/packagens.n: sl@0: * doc/pkgMkIndex.n: sl@0: * doc/registry.n: sl@0: * doc/resource.n: sl@0: * doc/safe.n: sl@0: * doc/scan.n: sl@0: * doc/tclvars.n: Spell-check, fixed typos (Updates from Larry Virden) sl@0: sl@0: 2002-07-01 Donal K. Fellows sl@0: sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Made Solaris use gcc for linking sl@0: when building with gcc to resolve problems with undefined symbols sl@0: being present when tcl library used with non-gcc linker at later sl@0: stage. Symbols were compiler-generated, so it is the compiler's sl@0: business to define them. [Bug 541181] sl@0: sl@0: 2002-07-01 Don Porter sl@0: sl@0: * doc/tcltest.n: more work in progress updating tcltest docs. sl@0: sl@0: * library/tcltest/tcltest.tcl: Change [configure -match] to stop sl@0: treating an empty list as a list of the single pattern "*". Changed sl@0: the default value to [list *] so default operation remains the same. sl@0: sl@0: * tests/pkg/samename.tcl: restored. Needed by pkgMkIndex.test. sl@0: sl@0: * library/tcltest/tcltest.tcl: restored writeability testing of sl@0: -tmpdir, augmented by a special exception for the deafault value. sl@0: sl@0: 2002-07-01 Donal K. Fellows sl@0: sl@0: * doc/concat.n: Documented the *real* behaviour of [concat]! sl@0: sl@0: 2002-06-30 Don Porter sl@0: sl@0: * doc/tcltest.n: more work in progress updating tcltest docs. sl@0: sl@0: * tests/README: Updated the instructions on running and sl@0: * tests/cmdMZ.test: adding to the test suite. Also updated sl@0: * tests/encoding.test: several tests, mostly to correctly create sl@0: * tests/fCmd.test: and destroy any temporary files in the sl@0: * tests/info.test: [temporaryDirectory] of tcltest. sl@0: * tests/interp.test: sl@0: sl@0: * library/tcltest/tcltest.tcl: Stopped checking for writeability of sl@0: -tmpdir value because no default directory can be guaranteed to be sl@0: writeable. sl@0: sl@0: * tests/autoMkindex.tcl: removed. sl@0: * tests/pkg/samename.tcl: removed. sl@0: * tests/pkg/magicchar.tcl: removed. sl@0: * tests/pkg/magicchar2.tcl: removed. sl@0: * tests/autoMkindex.test: Updated auto_mkIndex tests to use [makeFile] sl@0: and [removeFile] so tests are done in [temporaryDirecotry] where write sl@0: access is guaranteed. sl@0: sl@0: * library/tcltest/tcltest.tcl: Fixed [makeFile] and [viewFile] to sl@0: * tests/cmdAH.test: accurately reflect a file's contents. sl@0: * tests/event.test: Updated tests that depended on buggy sl@0: * tests/http.test: behavior. Also added warning messages sl@0: * tests/io.test: to "-debug 1" operations to debug test sl@0: * tests/iogt.test: calls to (make|remove)(File|Directory). sl@0: sl@0: * unix/mkLinks: `make mklinks` on 6-27 commits. sl@0: sl@0: 2002-06-28 Miguel Sofer sl@0: sl@0: * generic/tclCompile.h: modified the macro TclEmitPush to not call its sl@0: first argument repeatedly or pass it to other macros, [Bug 575194] sl@0: reported by Peter Spjuth. sl@0: sl@0: 2002-06-28 Don Porter sl@0: sl@0: * docs/tcltest.n: Doc revisions in progress. sl@0: * library/tcltest/tcltest.tcl: Corrected -testdir default value. Was sl@0: not reliable, and disagreed with docs! Thanks to Hemang Lavana. [Bug sl@0: 575150] sl@0: sl@0: 2002-06-28 Donal K. Fellows sl@0: sl@0: * unix/tclUnixThrd.c: Renamed the Tcl_Platform* #defines to sl@0: * unix/tclUnixPipe.c: TclOS* because they are only used sl@0: * unix/tclUnixFile.c: internally. Also stopped double-#def sl@0: * unix/tclUnixFCmd.c: of TclOSlstat [Bug 566099, post-rename] sl@0: * unix/tclUnixChan.c: sl@0: * unix/tclUnixPort.h: sl@0: sl@0: * doc/string.n: Improved documentation for [string last] along lines sl@0: described in [Bug 574799] so it indicates that the supplied index sl@0: marks the end of the search space. sl@0: sl@0: 2002-06-27 Don Porter sl@0: sl@0: * doc/dde.n: Work in progress updating the documentation sl@0: * doc/http.n: of the packages that come bundled with sl@0: * doc/msgcat.n: the Tcl source distribution, notably tcltest. sl@0: * doc/registry.n: sl@0: * doc/tcltest.n: sl@0: sl@0: * library/tcltest/tcltest.tcl: Made sure that the TCLTEST_OPTIONS sl@0: environment variablle configures tcltest at package load time. sl@0: sl@0: 2002-06-26 Vince Darley sl@0: sl@0: * tests/fileSystem.test: sl@0: * generic/tclIOUtil.c: fix to handling of empty paths "" which are not sl@0: claimed by any filesystem [Bug 573758]. Ensure good error messages are sl@0: given in all cases. sl@0: * tests/cmdAH.test: sl@0: * unix/tclUnixFCmd.c: fix to bug reported as part of [Patch 566669]. sl@0: Thanks to Taguchi, Takeshi for the report. sl@0: sl@0: 2002-06-26 Reinhard Max sl@0: sl@0: * unix/tclUnixTime.c: Make [clock format] respect locale settings. sl@0: * tests/clock.test: [Bug 565880]. ***POTENTIAL INCOMPATIBILITY*** sl@0: sl@0: 2002-06-26 Miguel Sofer sl@0: sl@0: * doc/CrtInterp.3: sl@0: * doc/StringObj.3: clarifications by Don Porter, [Bugs 493995, 500930] sl@0: sl@0: 2002-06-24 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected suppression of -verbose skip sl@0: * tests/tcltest.test: and start by [test -output]. Also sl@0: corrected test suite errors exposed by corrected code. [Bug 564656] sl@0: sl@0: 2002-06-25 Reinhard Max sl@0: sl@0: * unix/tcl.m4: New macro SC_CONFIG_MANPAGES. sl@0: * unix/configure.in: Added support for symlinks and compression sl@0: * unix/Makefile.in: when installing the manpages. [Patch 518052] sl@0: * unix/mkLinks.tcl: Default is still hardlinks and no compression. sl@0: sl@0: * unix/mkLinks: generated sl@0: * unix/configure: sl@0: sl@0: * unix/README: Added documentation for the new features. sl@0: sl@0: * unix/tcl.m4 (SC_PATH_TCLCONFIG): Replaced ${exec_prefix}/lib by sl@0: ${libdir}. sl@0: sl@0: 2002-06-25 Donal K. Fellows sl@0: sl@0: * generic/tclUtil.c (TclGetIntForIndex): Fix of critical [Bug 533364] sl@0: generated when the index is bad and the result is a shared object. The sl@0: T_ASTO(T_GOR, ...) idiom likely exists elsewhere though. Also removed sl@0: some cruft that just complicated things to no advantage. sl@0: (SetEndOffsetFromAny): Same fix, though this wasn't on the path sl@0: excited by the bug. sl@0: sl@0: 2002-06-24 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Implementation of TIP 101. Adds sl@0: * tests/parseOld.test: and exports a [configure] command sl@0: * tests/tcltest.test: from tcltest. sl@0: sl@0: 2002-06-22 Don Porter sl@0: sl@0: * changes: updated changes file for 8.4b1 release. sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrections to tcltest and the sl@0: * tests/basic.test: Tcl test suite so that a test sl@0: * tests/cmdInfo.test: with options -constraints knownBug sl@0: * tests/compile.test: -limitConstraints 1 only tests the sl@0: * tests/encoding.test: knownBug tests. Mostly involves sl@0: * tests/env.test: replacing direct access to the sl@0: * tests/event.test: testConstraints array with calls sl@0: * tests/exec.test: to the testConstraint command sl@0: * tests/execute.test: (which requires tcltest version 2) sl@0: * tests/fCmd.test: sl@0: * tests/format.test: sl@0: * tests/http.test: sl@0: * tests/httpold.test: sl@0: * tests/ioUtil.test: sl@0: * tests/link.test: sl@0: * tests/load.test: sl@0: * tests/namespace.test: sl@0: * tests/pkgMkIndex.test: sl@0: * tests/reg.test: sl@0: * tests/result.test: sl@0: * tests/scan.test: sl@0: * tests/stack.test: sl@0: sl@0: 2002-06-22 Donal K. Fellows sl@0: sl@0: * tools/tcl.wse.in (Disk Label), unix/tcl.spec (version): sl@0: * win/README.binary, README, win/configure.in, unix/configure.in: sl@0: * generic/tcl.h (TCL_RELEASE_*, TCL_PATCH_LEVEL): Bump to beta1. sl@0: sl@0: 2002-06-21 Joe English sl@0: sl@0: * generic/tclCompExpr.c: sl@0: * generic/tclParseExpr.c: LogSyntaxError() should reset the sl@0: interpreter result [Bug 550142 "Tcl_ExprObj -> abort"] sl@0: sl@0: 2002-06-21 Don Porter sl@0: sl@0: * unix/Makefile.in: Updated all package install directories to sl@0: * win/Makefile.in: match current Major.minor versions of the sl@0: * win/makefile.bc: packages. Added tcltest package to sl@0: * win/makefile.vc: installation on Windows. sl@0: sl@0: * library/init.tcl: Corrected comments and namespace style issues. sl@0: Thanks to Bruce Stephens. [Bug 572025] sl@0: sl@0: 2002-06-21 Vince Darley sl@0: sl@0: * tests/cmdAH.test: Added TIP#99 implementation of 'file sl@0: * tests/fCmd.test: link'. Supports creation of symbolic and sl@0: * tests/fileName.test: hard links in the native filesystems and sl@0: * tests/fileSystem.test: in vfs's, when the individual filesystem sl@0: * generic/tclTest.c: supports the concept. sl@0: * generic/tclCmdAH.c: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tcl.h: sl@0: * generic/tcl.decls: sl@0: * doc/FileSystem.3: sl@0: * doc/file.n: sl@0: * mac/tclMacFile.c: sl@0: * unix/tclUnixFile.c: sl@0: * win/tclWinFile.c: Also enhanced speed of 'file normalize' on Windows sl@0: sl@0: 2002-06-20 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (TclEvalObjvInternal): fix for [Bug 571385] in sl@0: the implementation of TIP#62 (command tracing). Vince Darley, Hemang sl@0: Lavana & Don Porter: thanks. sl@0: sl@0: 2002-06-20 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TclCompEvalObj): clarified and simplified the sl@0: logic for compilation/recompilation. sl@0: sl@0: 2002-06-19 Joe English sl@0: sl@0: * doc/file.n: Fixed indentation. No substantive changes. sl@0: sl@0: 2002-06-19 Jeff Hobbs sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): get the resultPtr again as sl@0: the Tcl_ObjSetVar2 may cause the result to change. sl@0: [Patch 558324] (watson) sl@0: sl@0: 2002-06-19 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TEBC): removing unused "for(;;)" loop; sl@0: improved comments; re-indentation. sl@0: sl@0: 2002-06-18 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TEBC): sl@0: - elimination of duplicated code in the non-immediate INST_INCR sl@0: instructions. sl@0: - elimination of 103 (!) TclDecrRefCount macros. The different sl@0: instructions now jump back to a common "DecrRefCount zone" at the sl@0: top of the loop. The macro "ADJUST_PC" was replaced by two macros sl@0: "NEXT_INST_F" and "NEXT_INST_V" that take three params sl@0: (pcAdjustment, # of stack objects to discard, resultObjPtr handling sl@0: flag). The only instructions that retain a TclDecrRefCount are sl@0: INST_POP (for speed), the common code for the non-immediate sl@0: INST_INCR, INST_FOREACH_STEP and the two INST_LSET. sl@0: sl@0: The object size of tclExecute.o was reduced by approx 20% since the sl@0: start of the consolidation drive, while making room for some peep-hole sl@0: optimisation at runtime. sl@0: sl@0: 2002-06-18 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TEBC, INST_DONE): small bug in the panic code sl@0: for tcl-stack corruption. sl@0: sl@0: 2002-06-17 David Gravereaux sl@0: sl@0: Trims to support the removal of RESOURCE_INCLUDED from rc scripts from sl@0: [FRQ 565088]. sl@0: sl@0: * generic/tcl.h: moved the #ifndef RC_INVOKED start block up in the sl@0: file. rc scripts don't need to know thread mutexes. sl@0: sl@0: * win/tcl.rc: sl@0: * win/tclsh.rc: removed the #define RESOURCE_INCLUDED to let the sl@0: built-in -DRC_INVOKED to the work. sl@0: sl@0: 2002-06-17 Jeff Hobbs sl@0: sl@0: * doc/CrtTrace.3: Added TIP#62 implementation of command sl@0: * doc/trace.n: execution tracing [FRQ 462580] (lavana). sl@0: * generic/tcl.h: This includes enter/leave tracing as well sl@0: * generic/tclBasic.c: as inter-procedure stepping. sl@0: * generic/tclCmdMZ.c: sl@0: * generic/tclCompile.c: sl@0: * generic/tclExecute.c: sl@0: * generic/tclInt.decls: sl@0: * generic/tclInt.h: sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclStubInit.c: sl@0: * generic/tclVar.c: sl@0: * tests/trace.test: sl@0: sl@0: 2002-06-17 Andreas Kupries sl@0: sl@0: * win/tclWinPipe.c (BuildCommandLine): Fixed [bug 554068] ([exec] on sl@0: windows did not treat { in filenames well.). Bug reported by Vince sl@0: Darley , patch provided by Vince sl@0: too. sl@0: sl@0: 2002-06-17 Joe English sl@0: sl@0: * generic/tcl.h: #ifdef logic for K&R C backwards compatibility sl@0: changed to assume modern C by default. See [FRQ 565088] for full sl@0: details. sl@0: sl@0: 2002-06-17 Don Porter sl@0: sl@0: * doc/msgcat.n: Corrected en_UK references to en_GB. UK is not a sl@0: country designation recognized in ISO 3166. sl@0: sl@0: * library/msgcat/msgcat.tcl: More Windows Registry locale codes from sl@0: Bruno Haible. sl@0: sl@0: * doc/msgcat.n: sl@0: * library/msgcat/msgcat.tcl: sl@0: * library/msgcat/pkgIndex.tcl: sl@0: * tests/msgcat.test: Revised locale initialization to interpret sl@0: environment variable locale values according to XPG4, and to recognize sl@0: the LC_ALL and LC_MESSAGES values over that of LANG. Also added many sl@0: Windows Registry locale values to those recognized by msgcat. Revised sl@0: tests and docs. Bumped to version 1.3. Thanks to Bruno Haible for the sl@0: report and assistance crafting the solution. [Bug 525522, 525525] sl@0: sl@0: 2002-06-16 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c (TclCompileTokens): a better algorithm for the sl@0: previous bug fix. sl@0: sl@0: 2002-06-16 Miguel Sofer sl@0: sl@0: * generic/tclCompile.c (TclCompileTokens): sl@0: * tests/compile.test: [Bug 569438] in the processing of dollar sl@0: variables; report by Georgios Petasis. sl@0: sl@0: 2002-06-16 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: bug in the consolidation of the INCR_..._STK sl@0: instructions; the bug could not be exercised as the (faulty) sl@0: instruction INST_INCR_ARRAY_STK was never compiled-in (related to [Bug sl@0: 569438]). sl@0: sl@0: 2002-06-14 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): runtime peep-hole sl@0: optimisation of variables (INST_STORE, INST_INCR) and commands sl@0: (INST_INVOKE); faster check for the existence of a catch. sl@0: (TclExecuteByteCode): runtime peep-hole optimisation of comparisons. sl@0: (TclExecuteByteCode): runtime peep-hole optimisation of INST_FOREACH - sl@0: relies on peculiarities of the code produced by the bytecode compiler. sl@0: sl@0: 2002-06-14 David Gravereaux sl@0: sl@0: * win/rules.vc: The test for compiler optimizations was in error. sl@0: Thanks goes to Roy Terry for his assistance sl@0: with this. sl@0: sl@0: 2002-06-14 Donal K. Fellows sl@0: sl@0: * doc/trace.n, tests/trace.test: sl@0: * generic/tclCmdMZ.c (Tcl_TraceObjCmd,TclTraceCommandObjCmd) sl@0: (TclTraceVariableObjCmd): Changed references to "trace list" to "trace sl@0: info" as mandated by TIP#102. sl@0: sl@0: 2002-06-13 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): consolidated code for the sl@0: conditional branch instructions. sl@0: sl@0: 2002-06-13 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): fixed the previous sl@0: patch - wouldn't compile with TCL_COMPILE_DEBUG set. sl@0: sl@0: 2002-06-13 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): consolidated the handling sl@0: of exception returns to INST_INVOKE and INST_EVAL, as well as most of sl@0: the code for INST_CONTINUE and INST_BREAK, in the new jump target sl@0: "processExceptionReturn". sl@0: sl@0: 2002-06-13 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): consolidated variable sl@0: handling opcodes, replaced redundant code with some 'goto'. All sl@0: store/append/lappend opcodes on the same data type now share the main sl@0: code; same with incr opcodes. sl@0: * generic/tclVar.c: added the bit TCL_TRACE_READS to the possible sl@0: flags to Tcl_SetVar2Ex - it causes read traces to be fired prior to sl@0: setting the variable. This is used in the core for [lappend]. sl@0: sl@0: ***NOTE*** the usage of TCL_TRACE_READS in Tcl_(Obj)?GetVar.* is not sl@0: documented; there, it causes the call to create the variable if it sl@0: does not exist. The new usage in Tcl_(Obj)?SetVar.* remains sl@0: undocumented too ... sl@0: sl@0: 2002-06-13 Vince Darley sl@0: sl@0: * tests/fCmd.test: sl@0: * tests/winFile.test: sl@0: * tests/fileSystem.test: sl@0: * generic/tclTest.c: sl@0: * generic/tclCmdAH.c: sl@0: * generic/tclIOUtil.c: sl@0: * doc/FileSystem.3: sl@0: * mac/tclMacFile.c: sl@0: * unix/tclUnixFile.c: sl@0: * win/tclWinFile.c: fixed up further so both compiles and actually sl@0: works with VC++ 5 or 6. sl@0: * win/tclWinInt.h: sl@0: * win/tclWin32Dll.c: cleaned up code and vfs tests and added tests for sl@0: the internal changes of 2002-06-12, to see whether WinTcl on NTFS can sl@0: coexist peacefully with links in the filesystem. Added new test sl@0: command 'testfilelink' to enable the newer code to be tested. sl@0: * tests/fCmd.test: (made certain tests of 'testfilelink' not run on sl@0: unix). sl@0: sl@0: 2002-06-12 Miguel Sofer sl@0: sl@0: * tclBasic.c (Tcl_DeleteTrace): fixed [Bug 568123] (thanks to sl@0: Hemang Lavana) sl@0: sl@0: 2002-06-12 Jeff Hobbs sl@0: sl@0: * win/tclWinFile.c: corrected the symbolic link handling code to sl@0: allow it to compile. Added real definition of REPARSE_DATA_BUFFER sl@0: (found in winnt.h). Most of the added definitions appear to have sl@0: correct, cross-Win-version equivalents in winnt.h and should be sl@0: removed, but just making things "work" for now. sl@0: sl@0: 2002-06-12 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tcl.decls: sl@0: * generic/tclDecls.h: made code for Tcl_FSNewNativePath agree with man sl@0: pages. sl@0: sl@0: * doc/FileSystem.3: clarified the circumstances under which certain sl@0: functions are called in the presence of symlinks. sl@0: sl@0: * win/tclWinFile.c: sl@0: * win/tclWinPort.h: sl@0: * win/tclWinInt.h: sl@0: * win/tclWinFCmd.c: Fix for Windows to allow 'file lstat', 'file sl@0: type', 'glob -type l', 'file copy', 'file delete', 'file normalize', sl@0: and all VFS code to work correctly in the presence of symlinks sl@0: (previously Tcl's behaviour was not very well defined). This also sl@0: fixes possible serious problems in all versions of WinTcl where 'file sl@0: delete' on a NTFS symlink could delete the original, not the symlink. sl@0: Note: symlinks cannot yet be created in pure Tcl. sl@0: sl@0: 2002-06-11 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c: sl@0: * generic/tclCompCmds.c: sl@0: * generic/tclInt.h: reverted the new compilation functions; replaced sl@0: by a more general approach described below. sl@0: sl@0: * generic/tclCompCmds.c: sl@0: * generic/tclCompile.c: made *all* compiled variable access attempts sl@0: create an indexed variable - even get or incr without previous set. sl@0: This allows indexed access to local variables that are created and set sl@0: at runtime, for example by [global], [upvar], [variable], [regexp], sl@0: [regsub]. sl@0: sl@0: 2002-06-11 Miguel Sofer sl@0: sl@0: * doc/global.n: sl@0: * doc/info.n: sl@0: * test/info.test: sl@0: * generic/tclCmdIL.c: fix for [Bug 567386], [info locals] was sl@0: reporting some linked variables. sl@0: sl@0: * generic/tclBasic.c: sl@0: * generic/tclCompCmds.c: sl@0: * generic/tclInt.h: added compile functions for [global], [variable] sl@0: and [upvar]. They just declare the new local variables, the commands sl@0: themselves are not compiled-in. This gives a notably faster read sl@0: access to these linked variables. sl@0: sl@0: 2002-06-11 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: optimised algorithm for exception range sl@0: lookup; part of [Patch 453709]. sl@0: sl@0: 2002-06-10 Vince Darley sl@0: sl@0: * unix/tclUnixFCmd.c: fixed [Bug 566669] sl@0: * generic/tclIOUtil.c: improved and sped up handling of native paths sl@0: (duplication and conversion to normalized paths), particularly on sl@0: Windows. sl@0: * modified part of above commit, due to problems on Linux. Will sl@0: re-examine bug report and evaluate more closely. sl@0: sl@0: 2002-06-07 Don Porter sl@0: sl@0: * tests/tcltest.test: More corrections to test suite so that tests of sl@0: failing [test]s don't show up themselves as failing tests. sl@0: sl@0: 2002-06-07 Donal K. Fellows sl@0: sl@0: * generic/tclExecute.c: Tidied up headers in relation to float.h to sl@0: cut the cruft and ensure DBL_MAX is defined since doubles seem to be sl@0: the same size everywhere; if the assumption isn't true, the variant sl@0: platforms had better have run configure... sl@0: sl@0: * unix/tclUnixPort.h (EOVERFLOW): Added code to define it if it wasn't sl@0: previously defined. Also some other general tidying and adding of sl@0: comments. [Bugs 563122, 564595] sl@0: * compat/tclErrno.h: Added definition for EOVERFLOW copied from sl@0: Solaris headers; I've been unable to find any uses of EFTYPE, which sl@0: was the error code previously occupying the slot, in Tcl, or any sl@0: definition of it in the Solaris headers. sl@0: sl@0: 2002-06-06 Mo DeJong sl@0: sl@0: * unix/dltest/Makefile.in: Remove hard coded CFLAGS=-g and add sl@0: CFLAGS_DEBUG, CFLAGS_OPTIMIZE, and CFLAGS_DEFAULT varaibles. [Bug sl@0: 565488] sl@0: sl@0: 2002-06-06 Don Porter sl@0: sl@0: * tests/tcltest.test: Corrections to test suite so that tests of sl@0: failing [test]s don't show up themselves as failing tests. sl@0: sl@0: * tests/io.test: Fixed up namespace variable resolution issues sl@0: revealed by running test suite with "-singleproc 1". sl@0: sl@0: * doc/tcltest.n: sl@0: * library/tcltest/tcltest.tcl: sl@0: * tests/tcltest.test: Several updates to tcltest. sl@0: 1) changed to lazy initialization of test constraints sl@0: 2) deprecated [initConstraintsHook] sl@0: 3) repaired badly broken [limitConstraints]. sl@0: 4) deprecated [threadReap] and [mainThread] sl@0: [Patch 512214, Bug 558742, Bug 461000, Bug 534903] sl@0: sl@0: 2002-06-06 Daniel Steffen sl@0: sl@0: * unix/tclUnixThrd.c (TclpReaddir, TclpLocaltime, TclpGmtime): sl@0: added mutex wrapped calls to readdir, localtime & gmtime in case their sl@0: thread-safe *_r counterparts are not available. sl@0: * unix/tcl.m4: added configure check for readdir_r sl@0: * unix/tcl.m4 (Darwin): set TCL_DEFAULT_ENCODING to utf-8 on MacOSX sl@0: (where posix file apis expect utf-8, not iso8859-1). sl@0: * unix/configure: regen sl@0: * unix/Makefile.in: set DYLD_LIBRARY_PATH in parallel to sl@0: LD_LIBRARY_PATH for MacOSX dynamic linker. sl@0: * generic/tclEnv.c (TclSetEnv): fix env var setting on MacOSX. Adapted sl@0: from [Patch 524352] (jkbonfield). sl@0: sl@0: 2002-06-05 Don Porter sl@0: sl@0: * doc/Tcl_Main.3: Documented $tcl_rcFileName and added more sl@0: clarifications about the intended use of Tcl_Main(). [Bug 505651] sl@0: sl@0: 2002-06-05 Daniel Steffen sl@0: sl@0: * generic/tclFileName.c (TclGlob): mac specific fix to recent changes sl@0: in 'glob -tails' handling. sl@0: * mac/tclMacPort.h: sl@0: * mac/tclMacChan.c: fixed TIP#91 bustage. sl@0: * mac/tclMacResource.c (Tcl_MacConvertTextResource): added utf sl@0: conversion of text resource contents. sl@0: * tests/macFCmd.test (macFCmd-1.2): allow CWIE creator. sl@0: sl@0: 2002-06-04 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: sl@0: * tests/init.test: sl@0: * tests/tcltest.test: Added more TIP 85 tests from Arjen Markus. sl@0: Converted tcltest.test to use a private namespace. Fixed bugs in sl@0: [tcltest::Eval] revealed by calling [tcltest::test] from a non-global sl@0: namespace, and namespace errors in init.test. sl@0: sl@0: 2002-06-04 Mo DeJong sl@0: sl@0: * win/README: Update msys+mingw URL. sl@0: sl@0: 2002-06-03 Don Porter sl@0: sl@0: * doc/tcltest.n: sl@0: * library/tcltest/tcltest.tcl: sl@0: * library/tcltest/pkgIndex.tcl: sl@0: * tests/tcltest.test: Implementation of TIP 85. Allows tcltest users sl@0: to add new legal values of the -match option to [test], associating sl@0: each with a Tcl command that does the matching of expected results sl@0: with actual results of tests. Thanks to Arjen Markus. => tcltest 2.1 sl@0: [Patch 521362] sl@0: sl@0: 2002-06-03 Miguel Sofer sl@0: sl@0: * doc/namespace.n: added description of [namepace forget] behaviour sl@0: for unqualified patterns [Bug 559268] sl@0: sl@0: 2002-06-03 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: reverting an accidental modification in the sl@0: last commit. sl@0: sl@0: 2002-06-03 Miguel Sofer sl@0: sl@0: * doc/Tcl.n: clarify the empty variable name issue ([Bug 549285] sl@0: reported by Tom Krehbiel, patch by Don Porter). sl@0: sl@0: 2002-05-31 Don Porter sl@0: sl@0: * library/package.tcl: Fixed leak of slave interp in [pkg_mkIndex]. sl@0: Thanks to Helmut for report. [Bug 550534] sl@0: sl@0: * tests/io.test: sl@0: * tests/main.test: Use the "stdio" constraint to control whether an sl@0: [open "|[interpreter]"] is attempted. sl@0: sl@0: * generic/tclExecute.c (TclMathInProgress,TclExecuteByteCode sl@0: (ExprCallMathFunc): sl@0: * generic/tclInt.h (TclMathInProgress): sl@0: * unix/Makefile.in (tclMtherr.*): sl@0: * unix/configure.in (NEED_MATHERR): sl@0: * unix/tclAppInit.c (matherr): sl@0: * unix/tclMtherr.c (removed file): sl@0: * win/tclWinMtherr.c (_matherr): Removed internal routine sl@0: TclMathInProgress and Unix implementation of matherr(). These are now sl@0: obsolete, dealing with very old versions of the C math library. sl@0: Windows version is retained in case Borland compilers require it, but sl@0: it is inactive. Thanks to Joe English. [Bug 474335, Patch 555635] sl@0: * unix/configure: regen sl@0: sl@0: 2002-05-30 Miguel Sofer sl@0: sl@0: * generic/tclCompExpr.c: sl@0: * generic/tclCompile.c: sl@0: * generic/tclCompile.h: removed exprIsJustVarRef and sl@0: exprIsComparison from the ExprInfo and CompileEnv structs. These were sl@0: set, but not used since dec 1999 [Bug 562383]. sl@0: sl@0: 2002-05-30 Vince Darley sl@0: sl@0: * generic/tclFileName.c (TclGlob): fix to longstanding 'knownBug' in sl@0: fileName tests 15.2-15.4, and fix to a new Tcl 8.4 bug in certain uses sl@0: of 'glob -tails'. sl@0: * tests/fileName.test: removed 'knownBug' flag from some tests, added sl@0: some new tests for above bugs. sl@0: sl@0: 2002-05-29 Jeff Hobbs sl@0: sl@0: * unix/configure: regen'ed sl@0: * unix/configure.in: replaced bigendian check with autoconf standard sl@0: AC_C_BIG_ENDIAN, which defined WORDS_BIGENDIAN on bigendian systems. sl@0: * generic/tclUtf.c (Tcl_UniCharNcmp): sl@0: * generic/tclInt.h (TclUniCharNcmp): use WORDS_BIGENDIAN instead of sl@0: TCL_OPTIMIZE_UNICODE_COMPARE to enable memcmp alternative. sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode INST_STR_CMP): sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd): changed the case for choosing sl@0: the Tcl_UniCharNcmp compare to when both objs are of StringType, as sl@0: benchmarks show that is the optimal check (both bigendian and sl@0: littleendian systems). sl@0: sl@0: 2002-05-29 Don Porter sl@0: sl@0: * generic/tclMain.c: Removed "dummy" reference to Tcl_LinkVar. It is sl@0: no longer needed since Tcl_Main() now actually calls Tcl_LinkVar(). sl@0: Thanks to Joe English for pointing that out. sl@0: sl@0: 2002-05-29 Donal K. Fellows sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd): Use the macro version. sl@0: * generic/tclInt.h (TclUniCharNcmp): Optimised still further with a sl@0: macro for use in sensitive places like tclExecute.c sl@0: sl@0: * generic/tclUtf.c (Tcl_UniCharNcmp): Use new flag to figure out when sl@0: we can use an optimal comparison scheme, and default to the old scheme sl@0: in other cases which is at least safe. sl@0: * unix/configure.in (TCL_OPTIMIZE_UNICODE_COMPARE): New optional flag sl@0: that indicates when we can use memcmp() to compare Unicode strings sl@0: (i.e. when the high-byte of a Tcl_UniChar precedes the low-byte.) sl@0: sl@0: 2002-05-29 Jeff Hobbs sl@0: sl@0: * generic/tclInt.decls: sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclStubInit.c: sl@0: * generic/tclUtf.c: added TclpUtfNcmp2 private command that mirrors sl@0: Tcl_UtfNcmp, but takes n in bytes, not utf-8 chars. This provides a sl@0: faster alternative for comparing utf strings internally. sl@0: (Tcl_UniCharNcmp, Tcl_UniCharNcasecmp): removed the explicit end of sl@0: string check as it wasn't correct for the function (by doc and logic). sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd): reworked the string equal sl@0: comparison code to use TclpUtfNcmp2 as well as short-circuit for equal sl@0: objects or unequal length strings in the equal case. Removed the use sl@0: of goto and streamlined the other parts. sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode): added check for object sl@0: equality in the comparison instructions. Added short-circuit for != sl@0: length strings in INST_EQ, INST_NEQ and INST_STR_CMP. Reworked sl@0: INST_STR_CMP to use TclpUtfNcmp2 where appropriate, and only use sl@0: Tcl_UniCharNcmp when at least one of the objects is a Unicode obj with sl@0: no utf bytes. sl@0: sl@0: * generic/tclCompCmds.c (TclCompileStringCmd): removed error creation sl@0: in code that no longer throws an error. sl@0: sl@0: * tests/string.test: sl@0: * tests/stringComp.test: added more string comparison checks. sl@0: sl@0: * tests/clock.test: better qualified 9.1 constraint check for %s. sl@0: sl@0: 2002-05-28 Jeff Hobbs sl@0: sl@0: * generic/tclThreadAlloc.c (TclpRealloc, TclpFree): protect against sl@0: the case when NULL is based. sl@0: sl@0: * tests/clock.test: added clock-9.1 sl@0: * compat/strftime.c: sl@0: * generic/tclClock.c: sl@0: * generic/tclInt.decls: sl@0: * generic/tclIntDecls.h: sl@0: * unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by using sl@0: an env(TZ) setting trick for in clock format -gmt 1. This also makes sl@0: %s seem to work correctly with -gmt 1 as well as making it a lot sl@0: faster by avoid the env(TZ) hack. TclpStrftime now takes useGMT as an sl@0: arg. [Bug 559376] sl@0: sl@0: 2002-05-28 Vince Darley sl@0: sl@0: * generic/tclIOUtil.c: fixes to Tcl_FSLoadFile when called on a file sl@0: inside a vfs. This should avoid leaving temporary files sitting around sl@0: on exit. [Bug 545579] sl@0: sl@0: 2002-05-27 Donal K. Fellows sl@0: sl@0: * win/tclWinError.c: Added comment on conversion of sl@0: ERROR_NEGATIVE_SEEK because that is a mapping that really belongs, and sl@0: not a catch-all case. sl@0: * win/tclWinPort.h (EOVERFLOW): Should be either EFBIG or EINVAL sl@0: * generic/tclPosixStr.c (Tcl_ErrnoId, Tcl_ErrnoMsg): EOVERFLOW can sl@0: potentially be a synonym for EINVAL. sl@0: sl@0: 2002-05-24 Donal K. Fellows sl@0: sl@0: === Changes due to TIP#91 === sl@0: sl@0: * win/tclWinPort.h: Added declaration of EOVERFLOW. sl@0: * doc/CrtChannel.3: Added documentation of wideSeekProc. sl@0: * generic/tclIOGT.c (TransformSeekProc, TransformWideSeekProc): sl@0: Adapted to use the new channel mechanism. sl@0: * unix/tclUnixChan.c (FileSeekProc, FileWideSeekProc): Renamed sl@0: FileSeekProc to FileWideSeekProc and created new FileSeekProc which sl@0: has the old-style interface and which errors out with EOVERFLOW when sl@0: the returned file position can't fit into the return type (int for sl@0: historical reasons.) sl@0: * win/tclWinChan.c (FileSeekProc, FileWideSeekProc): Renamed sl@0: FileSeekProc to FileWideSeekProc and created new FileSeekProc which sl@0: has the old-style interface and which errors out with EOVERFLOW when sl@0: the returned file position can't fit into the return type (int for sl@0: historical reasons.) sl@0: * mac/tclMacChan.c (FileSeek): Reverted to old interface; Macs lack sl@0: large-file support because I can't see how to add it. sl@0: * generic/tclIO.c (Tcl_Seek, Tcl_Tell): Given these functions sl@0: knowledge of the new arrangement of channel types. sl@0: (Tcl_ChannelVersion): Added recognition of new version code. sl@0: (HaveVersion): New function to do version checking. sl@0: (Tcl_ChannelBlockModeProc, Tcl_ChannelFlushProc) sl@0: (Tcl_ChannelHandlerProc): Made these functions use HaveVersion for sl@0: ease of future maintainability. sl@0: (Tcl_ChannelBlockModeProc): Obvious lookup function. sl@0: * generic/tcl.h (Tcl_ChannelType): New wideSeekProc field, and sl@0: seekProc type restored to old interpretation. sl@0: (TCL_CHANNEL_VERSION_3): New channel version. sl@0: sl@0: 2002-05-24 Andreas Kupries sl@0: sl@0: * tests/winPipe.test: Applied patch for [Bug 549617]. Patch and bug sl@0: report by Kevin Kenny . sl@0: sl@0: * win/tclWinSock.c (TcpWatchProc): Fixed [Bug 557878]. We are not sl@0: allowed to mess with the watch mask if the socket is a server socket. sl@0: I believe that the original reporter is George Peter Staplin. sl@0: sl@0: 2002-05-21 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/configure.in: Invoke SC_ENABLE_SHARED before calling sl@0: SC_CONFIG_CFLAGS so that the SHARED_BUILD variable can be checked sl@0: inside SC_CONFIG_CFLAGS. sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Pass -non_shared instead of -shared sl@0: to ld when configured with --disable-shared under OSF. [Bug 540390] sl@0: sl@0: 2002-05-20 Daniel Steffen sl@0: sl@0: * generic/tclInt.h: added prototype for TclpFilesystemPathType(). sl@0: * mac/tclMacChan.c: use MSL provided creator type if available instead sl@0: of the default 'MPW '. sl@0: sl@0: 2002-05-16 Joe English sl@0: sl@0: * doc/CrtObjCmd.3: Added Tcl_GetCommandFromObj, Tcl_GetCommandFullName sl@0: [Bugs 547987, 414921] sl@0: sl@0: 2002-05-14 Donal K. Fellows sl@0: sl@0: * unix/tclUnixChan.c (TtyOutputProc): #if/#endif-ed this function out sl@0: to stop compiler warnings. Also much general tidying of comments in sl@0: this file and removal of whitespace from blank lines. sl@0: sl@0: 2002-05-13 Donal K. Fellows sl@0: sl@0: * unix/tclUnixChan.c (SETBREAK): Solaris thinks ioctl() takes a signed sl@0: second argument, and Linux thinks ioctl() takes an unsigned second sl@0: argument. So need a longer definition of this macro to get neither to sl@0: spew warnings... sl@0: sl@0: 2002-05-13 Vince Darley sl@0: sl@0: * generic/tclEvent.c: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclInt.h: clean up all memory allocated by the filesystem, sl@0: via introduction of 'TclFinalizeFilesystem'. Move TclFinalizeLoad into sl@0: TclFinalizeFilesystem so we can be sure it is called at just the right sl@0: time. Fix bad comment also. [Bug 555078 and 'fs' part of 543549] sl@0: * win/tclWinChan.c: fix comment referring to wrong function. sl@0: sl@0: 2002-05-10 Don Porter sl@0: sl@0: * tests/load.test: sl@0: * tests/safe.test: sl@0: * tests/tcltest.test: Corrected some list-quoting issues and other sl@0: matters that cause tests to fail when the patch includes special sl@0: characters. Report from Vince Darley. [Bug 554068]. sl@0: sl@0: 2002-05-08 David Gravereaux sl@0: sl@0: * doc/file.n: sl@0: * tools/man2tcl.c: sl@0: * tools/man2help2.tcl: Thanks to Peter Spjuth , sl@0: again. My prior fix for single-quote macro mis-understanding was sl@0: wrong. Reverted to reimpliment the 'macro2' proc which handles sl@0: single-quote macros and restored file.n text arrangement to avoid sl@0: single-quotes on the first line. Sorry for all the confusion. sl@0: sl@0: 2002-05-08 David Gravereaux sl@0: sl@0: * tools/man2tcl.c: sl@0: * tools/man2help2.tcl: Proper source of macro error mis-understanding sl@0: single-quote as the leading macro command found and repaired. sl@0: sl@0: * doc/file.n: Reverted to prior state before I messed with it. sl@0: sl@0: 2002-05-08 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Corrected [uplevel] quoting when sl@0: [source]-ing test script in subdirectories. sl@0: * tests/fileName.test: sl@0: * tests/load.test: sl@0: * tests/main.test: sl@0: * tests/tcltest.test: sl@0: * tests/unixInit.test: Fixes to test suite when there's a space in the sl@0: working path. Thanks to Kevin Kenny. sl@0: sl@0: 2002-05-07 David Gravereaux sl@0: sl@0: -- Changes from Peter Spjuth sl@0: * tools/man2tcl.c: Increased line buffer size and a bail-out if that sl@0: should ever be over-run. sl@0: * tools/man2help.tcl: Include Courier New font in rtf header. sl@0: * tools/man2help2.tcl: Improved handling of CS/CE fields. Use Courier sl@0: New for code samples and indent better. sl@0: sl@0: * doc/file.n: sl@0: * doc/TraceCmd.3: winhelp conversion tools where understanding a ' as sl@0: the first character on a line to be an unknown macro. Not knowing how sl@0: to repair tools/man2tcl.c, I decided to rearrange the text in the docs sl@0: instead. sl@0: sl@0: 2002-05-07 Vince Darley sl@0: sl@0: * generic/tclFileName.c: fix to similar segfault when using sl@0: 'glob -types nonsense -dir dirname -join * *'. [Bug 553320] sl@0: sl@0: * doc/FileSystem.3: further documentation on vfs. sl@0: * tests/cmdAH.test: sl@0: * tests/fileSystem.test: sl@0: * tests/pkgMkindex.test: Fix to testsuite bugs when running out of sl@0: directory whose name contains '{' or '['. sl@0: sl@0: 2002-05-07 Miguel Sofer sl@0: sl@0: * tests/basic.test: Fix for [Bug 549607] sl@0: * tests/encoding.test: Fix for [Bug 549610] sl@0: These are testsuite bugs that caused failures when the filename sl@0: contained spaces. Report & fix by Kevin Kenny. sl@0: sl@0: 2002-05-02 Vince Darley sl@0: sl@0: * generic/tclFileName.c: fix to freeing a bad object (i.e. segfault) sl@0: when using 'glob -types nonsense -dir dirname'. sl@0: * generic/tclWinFile.c: fix to [Bug 551306], also wrapped some long sl@0: lines. sl@0: * tests/fileName.test: added several tests for the above bugs. sl@0: * doc/FileSystem.3: clarified documentation on refCount requirements sl@0: of the object returned by the path type function. sl@0: * generic/tclIOUtil.c: sl@0: * win/tclWinFile.c: sl@0: * unix/tclUnixFile.c: sl@0: * mac/tclMacFile.c: moved TclpFilesystemPathType to the platform sl@0: specific directories, so we can add missing platform-specific sl@0: implementations. On Windows, 'file system' now returns useful results sl@0: like "native NTFS", "native FAT" for that system. Unix and MacOS still sl@0: only return "native". sl@0: * doc/file.n: clarified documentation. sl@0: * tests/winFile.test: test for 'file system' returning correct values. sl@0: * tests/fileSystem.test: test for 'file system' returning correct sl@0: values. Clean up after failed previous test run. sl@0: sl@0: 2002-04-26 Jeff Hobbs sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4: change HP-11 SHLIB_LD_LIBS from "" to ${LIBS} so that sl@0: the .sl knows its dependent libs. sl@0: sl@0: 2002-04-26 Donal K. Fellows sl@0: sl@0: * tests/obj.test (obj-11.[56]): Test conversion to boolean more sl@0: thoroughly. sl@0: * generic/tclObj.c (SetBooleanFromAny): Was not calling an integer sl@0: parsing function on native 64-bit platforms! [Bug 548686] sl@0: sl@0: 2002-04-24 Jeff Hobbs sl@0: sl@0: * generic/tclInt.h: corrected TclRememberJoinableThread decl to use sl@0: VOID instead of void. sl@0: * generic/tclThreadJoin.c: noted that this code isn't needed on Unix. sl@0: sl@0: 2002-04-23 Jeff Hobbs sl@0: sl@0: * doc/exec.n: sl@0: * doc/tclvars.n: doc updates [Patch 509426] (gravereaux) sl@0: sl@0: 2002-04-24 Daniel Steffen sl@0: sl@0: * mac/tclMacResource.r: added check of TCLTK_NO_LIBRARY_TEXT_RESOURCES sl@0: #define to allow disabling the inclusion of the tcl library code in sl@0: the resource fork of Tcl executables and shared libraries. sl@0: sl@0: 2002-04-23 Donal K. Fellows sl@0: sl@0: * doc/TraceCmd.3: New file that documents Tcl_CommandTraceInfo, sl@0: Tcl_TraceCommand and Tcl_UntraceCommand [Bug 414927] sl@0: sl@0: 2002-04-22 Jeff Hobbs sl@0: sl@0: * generic/tclAlloc.c: sl@0: * generic/tclInt.h: sl@0: * generic/tclThreadAlloc.c (new): sl@0: * unix/Makefile.in: sl@0: * unix/tclUnixThrd.c: sl@0: * win/Makefile.in: sl@0: * win/tclWinInt.h: sl@0: * win/tclWinThrd.c: added new threaded allocator contributed by AOL sl@0: that significantly reduces lock contention when multiple threads are sl@0: in use. Only Windows and Unix implementations are ready, and the sl@0: Windows one may need work. It is only used by default on Unix for now, sl@0: and requires that USE_THREAD_ALLOC be defined (--enable-threads on sl@0: Unix will define this). sl@0: sl@0: * generic/tclIOUtil.c (Tcl_FSRegister, Tcl_FSUnregister): corrected sl@0: calling of Tcl_ConditionWait to ensure that there would be a condition sl@0: to wait upon. sl@0: sl@0: * generic/tclCmdAH.c (Tcl_FileObjCmd): added cast in FILE_SIZE. sl@0: sl@0: * win/tclWinFCmd.c (DoDeleteFile): check return of setattr API calls sl@0: in file deletion for correct Win32 API handling. sl@0: sl@0: * win/Makefile.in: correct dependencies for shell, gdb, runtest sl@0: targets. sl@0: sl@0: * doc/clock.n: sl@0: * compat/strftime.c (_fmt): change strftime to correctly handle sl@0: localized %c, %x and %X on Windows. Added some notes about how the sl@0: other values could be further localized. sl@0: sl@0: 2002-04-19 Don Porter sl@0: sl@0: * generic/tclMain.c (Tcl_Main): Free the memory allocated for the sl@0: startup script path. [Bug 543549] sl@0: sl@0: * library/msgcat/msgcat.tcl: [mcmax] wasn't using the caller's sl@0: namespace when determining the max translated length. Also made sl@0: revisions for better use of namespace variables and more efficient sl@0: [uplevel]s. sl@0: sl@0: * doc/msgcat.n: sl@0: * library/msgcat/msgcat.tcl: sl@0: * library/msgcat/pkgIndex.tcl: Added [mcload] to the export list of sl@0: msgcat; bumped to 1.2.3. [Bug 544727] sl@0: sl@0: 2002-04-20 Daniel Steffen sl@0: sl@0: * generic/tclInt.decls: sl@0: * generic/tclIntPlatDecls.h: sl@0: * generic/tclStubInit.c: sl@0: * mac/tclMacFCmd.c: sl@0: * mac/tclMacFile.c: sl@0: * mac/tclMacUtil.c: Modified TclpObjNormalizePath to be alias file sl@0: aware, and replaced various calls to FSpLocationFrom*Path by calls to sl@0: new alias file aware versions FSpLLocationFrom*Path. The alias file sl@0: aware routines don't resolve the last component of a path if it is an sl@0: alias. This allows [file copy/delete] etc. to act correctly on alias sl@0: files. (c.f. discussion in [Bug 511666]) sl@0: sl@0: 2002-04-19 Donal K. Fellows sl@0: sl@0: * tests/lindex.test (lindex-3.7): sl@0: * generic/tclUtil.c (TclGetIntForIndex): Stopped indexes from hitting sl@0: wide ints. [Bug 526717] sl@0: sl@0: 2002-04-18 Miguel Sofer sl@0: sl@0: * generic/tclNamesp.c: sl@0: * tests/info.test: [Bug 545325] info level didn't report namespace sl@0: eval, bug report by Richard Suchenwirth. sl@0: sl@0: 2002-04-18 Don Porter sl@0: sl@0: * doc/subst.n: Clarified documentation on handling unusual return sl@0: codes during substitution, and on variable substitutions implied by sl@0: command substitution, and vice versa. [Bug 536838] sl@0: sl@0: 2002-04-18 Donal K. Fellows sl@0: sl@0: * generic/tclCmdIL.c (InfoBodyCmd): sl@0: * tests/info.test (info-2.6): Proc bodies without string reps would sl@0: report as empty [Bug 545644] sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_SubstObj): More clarification for comment on sl@0: behaviour when substitutions are not well-formed, prompted by [Bug sl@0: 536831]; alas, removing the ill-defined behaviour is a lot of work. sl@0: sl@0: 2002-04-18 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: sl@0: * tests/expr-old.test: fix for [Bug 542588] (Phil Ehrens), where "too sl@0: large integers" were reported as "floating-point value" in [expr] sl@0: error messages. sl@0: sl@0: 2002-04-17 Jeff Hobbs sl@0: sl@0: * generic/tclEncoding.c (EscapeFromUtfProc): sl@0: * generic/tclIO.c (WriteChars, Tcl_Close): corrected the handling of sl@0: outputting end escapes for escape-based encodings. sl@0: [Bug 526524] (yamamoto) sl@0: sl@0: 2002-04-17 Don Porter sl@0: sl@0: * doc/tcltest.n: Removed [saveState] and [restoreState] from tcltest sl@0: 2 documentation, effectively deprecating them. [Bug 495660] sl@0: * library/tcltest/tcltest.tcl: Made separate export for commands kept sl@0: only for tcltest 1 compatibility. sl@0: sl@0: * tests/iogt.test: Revised to run tests in a namespace, rather than sl@0: use the useless and buggy [saveState] and [restoreState] commands of sl@0: tcltest. Updated to use tcltest 2 as well. [Patch 544911] sl@0: sl@0: 2002-04-16 Don Porter sl@0: sl@0: * tests/io.test: Revised to run tests in a namespace, rather than use sl@0: the useless and buggy [saveState] and [restoreState] commands of sl@0: tcltest. Updated to use tcltest 2 as well. [Patch 544546] sl@0: sl@0: 2002-04-15 Miguel Sofer sl@0: sl@0: * generic/tclProc.c: sl@0: * tests/proc-old.test: Improved stack trace for TCL_BREAK and sl@0: TCL_CONTINUE returns from procs. [Bug 536955] (dgp) sl@0: sl@0: * generic/tclExecute.c: sl@0: * tests/compile.test: made bytecodes check for a catch before sl@0: returning; the compiled [return] is otherwise non-catchable. [Bug sl@0: 542142] reported by Andreas Kupries. sl@0: sl@0: 2002-04-15 Don Porter sl@0: sl@0: * tests/socket.test: Increased timeout values so that tests have time sl@0: to successfully complete even on slow/busy machines. [Bug 523470] sl@0: sl@0: * doc/tcltest.n: sl@0: * library/tcltest/tcltest.tcl: sl@0: * tests/tcltest.test: Revised [tcltest::test] to return errors when sl@0: called with invalid syntax and to accept exactly two arguments as sl@0: documented. Improved error messages. [Bug 497446, Patch 513983] sl@0: ***POTENTIAL INCOMPATIBILITY***: Incompatible with previous sl@0: tcltest 2.* releases, found only in alpha releases of Tcl 8.4. sl@0: sl@0: 2002-04-11 Jeff Hobbs sl@0: sl@0: * generic/tclNotify.c (TclFinalizeNotifier): remove remaining sl@0: unserviced events on finalization. sl@0: sl@0: * win/tcl.m4: Enabled COFF as well as CV style debug info with sl@0: --enable-symbols to allow Dr. Watson users to see function info. More sl@0: info on debugging levels can be obtained at: sl@0: http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp sl@0: sl@0: * tests/ioCmd.test: fixed iocmd-8.15 to have mac and unixPc variants. sl@0: sl@0: * generic/tclParse.c (Tcl_ParseVar): conditionally incr obj refcount sl@0: to prevent possible mem leak. sl@0: sl@0: 2002-04-08 Daniel Steffen sl@0: sl@0: * generic/tcl.h: no on mac. sl@0: * mac/tclMacFile.c: minor fixes to Vince's changes from 03-24. sl@0: * mac/tclMacOSA.c: sl@0: * mac/tclMacResource.c: added missing Tcl_UtfToExternalDString sl@0: conversions of resource file names. sl@0: * mac/tclMacSock.c (TcpGetOptionProc): fixed bug introduced by Andreas sl@0: on 02-25; changed strcmp's to strncmp's so that option comparison sl@0: behaves like on other platforms. sl@0: * mac/tcltkMacBuildSupport.sea.hqx (CW Pro6 changes): added support to sl@0: allow Tk to hookup C library stderr/stdout to TkConsole. sl@0: * tests/basic.test: sl@0: * tests/cmdAH.test: sl@0: * tests/encoding.test: sl@0: * tests/fileSystem.test: sl@0: * tests/ioCmd.test: fixed tests failing on mac: check for existence of sl@0: [exec], changed some result strings. sl@0: sl@0: 2002-04-06 Jeff Hobbs sl@0: sl@0: * unix/tclUnixFCmd.c (Realpath): added a little extra code to sl@0: initialize a realpath arg when compiling in PURIFY mode in order to sl@0: prevent spurious purify warnings. We should really create our own sl@0: realpath implementation, but this will at least quiet purify for now. sl@0: sl@0: 2002-04-05 Don Porter sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_SubstObj): sl@0: * tests/subst.test: Corrected [subst] so that return codes TCL_BREAK sl@0: and TCL_CONTINUE returned by variable substitution have the same sl@0: effect as when those codes are returned by command substitution. [Bug sl@0: 536879] sl@0: sl@0: 2002-04-03 Jeff Hobbs sl@0: sl@0: * library/tcltest/tcltest.tcl: added getMatchingFiles back (alias sl@0: to GetMatchingFiles), which was a public function in tcltest 1.0. sl@0: sl@0: 2002-04-01 Vince Darley sl@0: sl@0: * generic/tclEnv.c: sl@0: * generic/tclIOUtil.c: invalidate filesystem cache when the user sl@0: changes env(HOME). Fixes [Bug 535621]. Also cleaned up some of the sl@0: documentation. sl@0: * tests/fileSystem.test: added test for bug just fixed. sl@0: sl@0: 2002-04-01 Kevin Kenny sl@0: sl@0: * win/tclWinTime.c (Tcl_GetTime): made the checks of clock frequency sl@0: more permissive to cope with the fact that Win98SE is observed to sl@0: return 1.19318 in place of 1.193182 for the performance counter sl@0: frequency. sl@0: sl@0: 2002-03-29 Jeff Hobbs sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_TraceObjCmd, TraceVarProc) sl@0: (TraceCommandProc, TclTraceCommandObjCmd): corrected potential sl@0: double-free of traces on variables by flagging in Trace*Proc that it sl@0: will free the var in case the eval wants to delete the var trace as sl@0: well. [Bug 536937] sl@0: Also converted Tcl_UntraceVar -> Tcl_UntraceVar2 and Tcl_Eval to sl@0: Tcl_EvalEx in Trace*Proc for slight efficiency improvement. sl@0: sl@0: 2002-03-29 Don Porter sl@0: sl@0: * doc/AllowExc.3: sl@0: * generic/tclBasic.c (Tcl_EvalObjv,Tcl_EvalEx,Tcl_EvalObjEx): sl@0: * generic/tclCompile.h (TclCompEvalObj): sl@0: * generic/tclExecute.c (TclCompEvalObj,TclExecuteByteCode): sl@0: * tests/basic.test: Corrected problems with Tcl_AllowExceptions having sl@0: influence over the wrong scope of Tcl_*Eval* calls. Patch from Miguel sl@0: Sofer. Report from Jean-Claude Wippler. [Bug 219181] sl@0: sl@0: 2002-03-28 Don Porter sl@0: sl@0: * generic/tclVar.c: Refactored CallTraces to collect repeated handling sl@0: of its returned value into CallTraces itself. sl@0: sl@0: 2002-03-28 David Gravereaux sl@0: sl@0: * tools/feather.bmp: sl@0: * tools/man2help.tcl: sl@0: * tools/man2help2.tcl: sl@0: * win/makefile.vc: More winhelp target fixups. Added a feather bitmap sl@0: to the non-scrollable area and changed the color to be yellow from a sl@0: plain white. The colors can be whatever we want them to be, but sl@0: thought I would start with something bold. [Bug 527941] sl@0: sl@0: * doc/SetVar.3: sl@0: * doc/TraceVar.3: sl@0: * doc/UpVar.3: .AP macro syntax repair. sl@0: sl@0: 2002-03-27 David Gravereaux sl@0: sl@0: * tools/man2help.tcl: sl@0: * win/makefile.vc: winhelp target now copies all needed files from sl@0: tools/ to a workarea under $(OUT_DIR) and builds it from there. No sl@0: build cruft is left in tools/ anymore. All paths used in man2help.tcl sl@0: are now relative to where the script is. [Bug 527941] sl@0: sl@0: 2002-03-27 David Gravereaux sl@0: sl@0: * win/.cvsignore: sl@0: * win/buildall.vc.bat: sl@0: * win/coffbase.txt: sl@0: * win/makefile.vc: sl@0: * win/nmakehlp.c (new): sl@0: * win/rules.vc: First draft fix for [Bug 527941]. More changes need to sl@0: done to the makehelp target to get to stop leaving build files in the sl@0: tools/ directory. This does not address the syntax errors in the man sl@0: files. Having the contents of tcl.hpj(.in) inside makefile.vc allows sl@0: for version numbers to be replaced with macros. sl@0: sl@0: The new nmakehlp.c is built by rules.vc in preprocessing and removes sl@0: the need to use tricky shell syntax that wasn't compatible on Win9x sl@0: systems. Clean targets made Win9x complient. This is a first draft sl@0: repair for [Bug 533862]. sl@0: sl@0: 2002-03-28 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalEx): passing the correct commandSize sl@0: to TclEvalObjvInternal. [Bug 219362], fix by David Knoll. sl@0: sl@0: 2002-03-28 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalEx): sl@0: * tests/basic.test: avoid exceptional returns at level 0 sl@0: [Bug 219181] sl@0: sl@0: 2002-03-27 Don Porter sl@0: sl@0: * doc/tcltest.n ([mainThread]): sl@0: * library/tcltest/tcltest.tcl: sl@0: * tests/tcltest.test: Major code cleanup to deal with whitespace, sl@0: coding conventions, and namespace issues, with several minor bugs sl@0: fixed in the process. sl@0: sl@0: * tests/main.test: Added missing [after cancel]s. sl@0: sl@0: 2002-03-25 Don Porter sl@0: sl@0: * tests/main.test: Removed workarounds for Bug 495977. sl@0: sl@0: * library/tcltest/tcltest.tcl: Keep the value of $::auto_path sl@0: unchanged, so that the tcltest package can test code that depends sl@0: on auto-loading. If a testing application needs $::auto_path pruned, sl@0: it should do that itself. [Bug 495726] sl@0: Improve the processing of the -constraints option to [test] so that sl@0: constraint lists can have arbitrary whitespace, and non-lists don't sl@0: blow things up. [Bug 495977] sl@0: Corrected faulty variable initialization. [Bug 534845] sl@0: sl@0: 2002-03-25 Miguel Sofer sl@0: sl@0: * doc/CrtTrace.3: small doc correction sl@0: * generic/tclBasic.c (Tcl_DeleteTrace): Allow NULL callback on sl@0: trace deletions [Bug 534728] (Hemang Lavana). sl@0: sl@0: 2002-03-24 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalObjv): replaced obscure, incorrect sl@0: code as described in [Bug 533907] (Don Porter). sl@0: sl@0: 2002-03-24 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: Use [interpreter] to set/query the sl@0: executable currently running the tcltest package. [Bug 454050] sl@0: sl@0: * library/tcltest/tcltest.tcl: Allow non-proc commands to be used sl@0: as the customization hooks. [Bug 495662] sl@0: sl@0: 2002-03-24 Vince Darley sl@0: sl@0: * generic/tclFilename.c: sl@0: * generic/tclFCmd.c: sl@0: * generic/tclTest.c: sl@0: * generic/tcl.h: sl@0: * generic/tclIOUtil.c: sl@0: * win/tclWinFile.c: sl@0: * win/tclWinFCmd.c: sl@0: * win/tclWinPipe.c: sl@0: * unix/tclUnixFile.c: sl@0: * unix/tclUnixFCmd.c: sl@0: * mac/tclMacFile.c: sl@0: * doc/FileSystem.3: sl@0: * doc/file.n: sl@0: * tests/cmdAH.test: sl@0: * tests/fileName.test: sl@0: * tests/fileSystem.test: (new file) sl@0: * tests/winFCmd.test: fix [Bug 511666] and [Bug 511658], and improved sl@0: documentation of some aspects of the filesystem, particularly sl@0: 'Tcl_FSMatchInDirectory' which now might match a single file/directory sl@0: only, and 'file normalize' which wasn't very clear before. Removed sl@0: inconsistency betweens docs and the Tcl_Filesystem structure. Also sl@0: fixed [Bug 523217] and corrected file normalization on Unix so that it sl@0: expands symbolic links. Added some new tests of the filesystem code sl@0: (in the new file 'fileSystem.test'), and some extra tests for correct sl@0: handling of symbolic links. Fix to [Bug 530960] which shows up on sl@0: Win98. Made comparison with ".com" case insensitive in tclWinPipe.c sl@0: sl@0: ***POTENTIAL INCOMPATIBILITY***: But only between alpha releases sl@0: (users of the new Tcl_Filesystem lookup table in Tcl 8.4a4 need to sl@0: handle the new way in which Tcl may call Tcl_FSMatchInDirectory, and sl@0: 'file normalize' on unix now behaves correctly). Only known impact is sl@0: with the 'tclvfs' extension. sl@0: sl@0: 2002-03-22 Miguel Sofer sl@0: sl@0: * tests/basic.test (basic-46.1): adding test for [Bug 533758], fixed sl@0: earlier today. sl@0: sl@0: 2002-03-22 Jeff Hobbs sl@0: sl@0: * win/tclWinInt.h: moved undef of TCL_STORAGE_CLASS. [Bug 478579] sl@0: sl@0: 2002-03-22 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalObjEx): sl@0: * generic/tclExecute.c (TclCompEvalObj): fixed the errorInfo for sl@0: return codes other than (TCL_OK, TCL_ERROR) to runLevel 0 [Bug sl@0: 533758]. Removed the static RecordTracebackInfo(), as its sl@0: functionality is easily replicated by Tcl_LogCommandInfo. Bug and sl@0: redundancy noted by Don Porter. sl@0: sl@0: 2002-03-21 Donal K. Fellows sl@0: sl@0: * doc/expr.n: Improved documentation for ceil and floor [Bug 530535] sl@0: sl@0: 2002-03-20 Don Porter sl@0: sl@0: * doc/SetVar.3: sl@0: * doc/TraceVar.3: sl@0: * doc/UpVar.3: sl@0: * generic/tcl.h (Tcl_VarTraceProc): sl@0: * generic/tcl.decls (Tcl_GetVar2, Tcl_SetVar2, Tcl_TraceVar2) sl@0: (Tcl_UnsetVar2, Tcl_UntraceVar2, Tcl_UpVar2, Tcl_VarTraceInfo2) sl@0: (Tcl_GetVar2Ex, TclSetVar2Ex): sl@0: * generic/tclCmdMZ.c (TraceVarProc): sl@0: * generic/tclEnv.c (EnvTraceProc): sl@0: * generic/tclEvent.c (VwaitVarProc): sl@0: * generic/tclInt.decls (TclLookupVar,TclPrecTraceProc): sl@0: * generic/tclLink.c (LinkTraceProc): sl@0: * generic/tclUtil.c (TclPrecTraceProc): sl@0: * generic/tclVar.c (CallTraces, MakeUpvar, VarErrMsg, TclLookupVar, sl@0: (Tcl_GetVar2, Tcl_SetVar2, Tcl_TraceVar2, Tcl_UnsetVar2) sl@0: (Tcl_UntraceVar2, Tcl_UpVar2, Tcl_VarTraceInfo2, Tcl_GetVar2Ex) sl@0: (TclSetVar2Ex): Updated interfaces of generic/tclVar.c according to sl@0: TIP 27. In particular, the "part2" arguments were CONSTified. sl@0: [Patch 532642] sl@0: * generic/tclDecls.h: sl@0: * generic/tclIntDecls.h: make genstubs sl@0: sl@0: 2002-03-15 Donal K. Fellows sl@0: sl@0: * tests/compile.test (compile-12.3): Test to detect bug 530320. sl@0: * generic/tclCompile.c (TclCompileTokens): Fixed buffer overrun sl@0: reported in bug 530320. sl@0: sl@0: 2002-03-14 Mo DeJong sl@0: sl@0: * win/configure: Regen. sl@0: * win/configure.in: Add configure time test for SEH support in the sl@0: compiler. sl@0: * win/tclWin32Dll.c (ESP, EBP, TclpCheckStackSpace, sl@0: (_except_checkstackspace_handler): sl@0: * win/tclWinChan.c (ESP, EBP, Tcl_MakeFileChannel, sl@0: (_except_makefilechannel_handler): sl@0: * win/tclWinFCmd.c (ESP, EBP, DoRenameFile, DoCopyFile, sl@0: (_except_dorenamefile_handler, _except_docopyfile_handler): Implement sl@0: SEH support under gcc using inline asm. Tcl and Tk should now compile sl@0: with Mingw 1.1. [Patch 525746] sl@0: sl@0: 2002-03-14 Mo DeJong sl@0: sl@0: * win/tclWinFCmd.c (DoRenameFile, DoCopyFile): Handle an SEH exception sl@0: with EXCEPTION_EXECUTE_HANDLER instead of restarting the faulting sl@0: instruction with EXCEPTION_CONTINUE_EXECUTION. Bug 466102 provides an sl@0: example of how restarting could send Tcl into an infinite loop. [Patch sl@0: 525746] sl@0: sl@0: 2002-03-11 Mo DeJong sl@0: sl@0: * win/tclWinFCmd.c (DoRenameFile, DoCopyFile, DoDeleteFile, sl@0: (DoRemoveJustDirectory): Make sure we don't pass NULL or "" as a path sl@0: name to Win32 API functions since this was crashing under Windows 98. sl@0: sl@0: 2002-03-11 Don Porter sl@0: sl@0: * library/tcltest/tcltest.tcl: sl@0: * library/tcltest/pkgIndex.tcl: Bumped tcltest package to 2.0.2. sl@0: sl@0: 2002-03-11 Mo DeJong sl@0: sl@0: * library/tcltest/tcltest.tcl (getMatchingFiles): Pass a proper list sl@0: to foreach to avoid munging a Windows patch like D:\Foo\Bar into sl@0: D:FooBar before the glob. sl@0: sl@0: 2002-03-11 Mo DeJong sl@0: sl@0: * generic/tclEncoding.c: Fix typo in comment. sl@0: * generic/tclIO.c (DoReadChars, ReadBytes, ReadChars): Use NULL value sl@0: instead of pointer set to NULL to make things more clear. Reorder sl@0: arguments so that they match the function signatures. Cleanup little sl@0: typos and add more descriptive comment. sl@0: sl@0: 2002-03-08 Mo DeJong sl@0: sl@0: * win/README: Update to indicate that Mingw 1.1 is required to build sl@0: Tcl. Add section describing new msys based build process. Update sl@0: Cygwin build instructions so users know where to find Mingw 1.1. sl@0: sl@0: 2002-03-08 Jeff Hobbs sl@0: sl@0: * win/tclWinFCmd.c (DoCopyFile): correctly set retval to TCL_OK. sl@0: sl@0: 2002-03-07 Mo DeJong sl@0: sl@0: * win/tclWin32Dll.c (TclpCheckStackSpace): sl@0: * win/tclWinFCmd.c (DoRenameFile, DoCopyFile): Replace hard coded sl@0: constants with Win32 symbolic names. Move control flow statements out sl@0: of __try blocks since the documentation indicates it is frowned upon. sl@0: sl@0: 2002-03-07 Don Porter sl@0: sl@0: * doc/interp.n: sl@0: * generic/tclInterp.c (Tcl_InterpObjCmd,SlaveObjCmd, sl@0: (SlaveRecursionLimit): sl@0: * generic/tclTest.c: sl@0: * tests/interp.test: Added the [interp recursionlimit] command to sl@0: set/query the recursion limit of an interpreter. Proposal and sl@0: implementation from Stephen Trier. [TIP 87, Patch 522849] sl@0: sl@0: 2002-03-06 Donal K. Fellows sl@0: sl@0: * generic/tcl.h, tools/tcl.wse.in, unix/configure.in, sl@0: * unix/tcl.spec, win/README.binary, win/configure.in, README: sl@0: Bumped patchlevel; this might need to change in the future, but it sl@0: will help us distinguish between the CVS version and the most sl@0: recent released version. sl@0: sl@0: 2002-03-06 Miguel Sofer sl@0: sl@0: * generic/tclInt.h: for unshared objects, TclDecrRefCount now frees sl@0: the internal rep before the string rep - just like the non-macro sl@0: Tcl_DecrRefCount/TclFreeObj [Bug 524802]. sl@0: sl@0: 2002-03-06 Donal K. Fellows sl@0: sl@0: * doc/lsearch.n: Documentation of new features, plus examples. sl@0: * tests/lsearch.test: Tests of new features. sl@0: * generic/tclCmdIL.c (Tcl_LsearchObjCmd): TIP#80 support. See sl@0: http://purl.org/tcl/tip/80 for details. sl@0: sl@0: 2002-03-05 Jeff Hobbs sl@0: sl@0: *** 8.4a4 TAGGED FOR RELEASE *** sl@0: sl@0: * unix/tclUnixChan.c: initial remedy for [Bug 525783] flush problem sl@0: introduced by TIP #35. This may not satisfy true serial channels, but sl@0: it restores the correct flushing of std* channels on exit. sl@0: sl@0: * unix/README: added --enable-langinfo doc. sl@0: sl@0: * unix/tcl.spec: sl@0: * tools/tcl.wse.in: fixed URL refs to use www.tcl.tk or SF. sl@0: sl@0: 2002-03-04 Jeff Hobbs sl@0: sl@0: * README: sl@0: * mac/README: sl@0: * unix/Makefile.in: sl@0: * unix/README: sl@0: * win/README: sl@0: * win/README.binary: updated to use www.tcl.tk URL. sl@0: sl@0: * unix/Makefile.in: added older ChangeLogs to dist target. sl@0: sl@0: * tests/io.test: sl@0: * tests/encoding.test: corrected iso2022 encoding results. sl@0: added encoding-24.* sl@0: * generic/tclEncoding.c (EscapeFromUtfProc): corrected output of sl@0: escape codes as per RFC 1468. [Patch 474358] (taguchi) sl@0: (TclFinalizeEncodingSubsystem): corrected potential double-free sl@0: when encodings were finalized on exit. [Bug 219314, 524674] sl@0: sl@0: 2002-03-01 Jeff Hobbs sl@0: sl@0: * library/encoding/iso2022-jp.enc: sl@0: * library/encoding/iso2022.enc: sl@0: * tools/encoding/iso2022-jp.esc: sl@0: * tools/encoding/iso2022.esc: gave $B precedence over $@, sl@0: based on comments (point 1) in [Bug 219283] (RFC 1468) sl@0: sl@0: * tests/encoding.test: added encoding-23.* tests sl@0: * generic/tclIO.c (FilterInputBytes): reset the TCL_ENCODING_START sl@0: flags in the ChannelState when using 'gets'. [Bug 523988] sl@0: Also reduced the value of ENCODING_LINESIZE from 30 to 20 as this sl@0: seems to improve the performance of 'gets' according to tclbench. sl@0: sl@0: 2002-02-28 Jeff Hobbs sl@0: sl@0: * generic/tclCmdMZ.c (TraceCommandProc): ensure that TraceCommandInfo sl@0: structure was also deleted when a command was deleted to prevent a sl@0: mem leak. sl@0: sl@0: * generic/tclBasic.c (Tcl_CreateObjTrace): set tracePtr->flags sl@0: correctly. sl@0: sl@0: * generic/tclTimer.c (TimerExitProc): remove remaining events in sl@0: tls on thread exit. sl@0: sl@0: 2002-02-28 Miguel Sofer sl@0: sl@0: * generic/tclNamesp.c: allow cached fully-qualified namespace names to sl@0: be usable from different namespaces within the same interpreter sl@0: without forcing a new lookup [Patch 458872]. sl@0: sl@0: 2002-02-28 Miguel Sofer sl@0: sl@0: * generic/tclExecute.c: Replaced a few direct stack accesses with the sl@0: POP_OBJECT() macro [Bug 507181] (Don Porter). sl@0: sl@0: 2002-02-27 Don Porter sl@0: sl@0: * doc/GetIndex.3: sl@0: * generic/tcl.decls (Tcl_GetIndexFromObjStruct): sl@0: * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Revised the sl@0: prototype of the Tcl_GetIndexFromObjStruct to take its struct sl@0: table as a (CONST VOID *) argument, better describing what it is, sl@0: maintaining source compatibility, and adding CONST correctness sl@0: according to TIP 27. Thanks to Joe English for an elegant sl@0: solution. [Bug 520304] sl@0: sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: * generic/tclMain.c (Tcl_Main,StdinProc): Corrected some reference sl@0: count management errors on the interactive command Tcl_Obj found by sl@0: Purify. Thanks to Jeff Hobbs for the report and assistance. sl@0: sl@0: 2002-02-27 Jeff Hobbs sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalTokensStandard): corrected mem leak sl@0: in error case. sl@0: sl@0: * generic/tclTest.c (TestStatProc[123]): correct harmless UMRs. sl@0: sl@0: * generic/tclLink.c (Tcl_LinkVar): correct mem leak in error case. sl@0: sl@0: 2002-02-27 Andreas Kupries sl@0: sl@0: * tests/socket.test (2.7): Accepted and applied patch for [Bug 523470] sl@0: provided by Don Porter to avoid timing sl@0: problems in that test. sl@0: sl@0: * unix/tclUnixChan.c (TclpOpenFileChannel): Added code to regonize sl@0: "/dev/tty" (by name) and to not handle it as tty / serial line. This sl@0: is the controlling terminal and is special. Setting it into raw mode sl@0: as is done for other tty's is a bad idea. This is a hackish fix for sl@0: expect [Bug 520624]. The fix has limitation: Tcl_MakeFileChannel sl@0: handles tty's specially too, but is unable to recognize /dev/tty as it sl@0: only gets a file descriptor, and no name for it. sl@0: sl@0: 2002-02-26 Jeff Hobbs sl@0: sl@0: * generic/tclCmdAH.c (StoreStatData): corrected mem leak. sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): prevent obj leak in remedial sl@0: regsub case. sl@0: sl@0: * generic/tclFileName.c (Tcl_TranslateFileName): decr refcount for sl@0: error case to prevent mem leak. sl@0: sl@0: * generic/tclVar.c (Tcl_ArrayObjCmd): removed extra obj allocation. sl@0: sl@0: * unix/tclUnixSock.c (Tcl_GetHostName): added an extra gethostbyname sl@0: check to guard against failure with truncated names returned by uname. sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4 (SC_SERIAL_PORT): added sys/modem.h check and defined sl@0: _XOPEN_SOURCE_EXTENDED for HP-11 to get updated header decls. sl@0: sl@0: * unix/tclUnixChan.c: added Unix implementation of TIP #35, serial sl@0: port support. [Patch 438509] (schroedter) sl@0: sl@0: 2002-02-26 Miguel Sofer sl@0: sl@0: * generic/tclCmpCmds.c: (bugfix to the bugfix, hopefully the last) sl@0: Bugfix to the new [for] compiling code: was setting a exceptArray sl@0: parameter using another param which wasn't yet initialised, thus sl@0: filling it with noise. sl@0: sl@0: 2002-02-25 Andreas Kupries sl@0: sl@0: * mac/tclMacSock.c (TcpGetOptionProc): Changed to recognize the option sl@0: "-error". Essentially ignores the option, always returning an empty sl@0: string. sl@0: sl@0: 2002-02-25 Jeff Hobbs sl@0: sl@0: * doc/Alloc.3: sl@0: * doc/LinkVar.3: sl@0: * doc/ObjectType.3: sl@0: * doc/PkgRequire.3: sl@0: * doc/Preserve.3: sl@0: * doc/TCL_MEM_DEBUG.3: Updated documentation to describe the ckalloc, sl@0: ckfree, ckrealloc, attemptckalloc, and attemptckrealloc macros, and sl@0: to accurately describe when and how they are used. [Bug 497459] (dgp) sl@0: sl@0: * generic/tclHash.c (AllocArrayEntry, AllocStringEntry): Before sl@0: invoking ckalloc when creating a Tcl_HashEntry, check that the amount sl@0: of memory being allocated is at least as large as sl@0: sizeof(Tcl_HashEntry). The previous code was allocating memory regions sl@0: that were one or two bytes short. [Bug 521950] (dejong) sl@0: sl@0: 2002-02-25 Miguel Sofer sl@0: sl@0: * generic/tclBasic.c (Tcl_EvalEx): avoiding a buffer overrun reported sl@0: by Joe English, and restoring tcl7.6 behaviour for [subst]: badly sl@0: terminated nested scripts will raise an error and not be evaluated. sl@0: [Bug 495207] sl@0: sl@0: 2002-02-25 Don Porter sl@0: sl@0: * unix/tclUnixPort.h: corrected strtoll prototype mismatch on Tru64. sl@0: * compat/strtod.c (strtod): simplified #includes sl@0: * compat/strtol.c (strtol): gather result in a long before returning sl@0: as a long: necessary on platforms where sizeof(int) != sizeof(long). sl@0: sl@0: 2002-02-25 Daniel Steffen sl@0: sl@0: * unix/tclLoadDyld.c: updated to use Mac OS X 10.1 dyld APIs that have sl@0: more libdl-like semantics. [Bug 514392] sl@0: sl@0: 2002-02-25 Miguel Sofer sl@0: sl@0: * generic/tclCompCmds: fixing a bug in patch dated 2002-02-22, in the sl@0: code for [for] and [while]. Under certain conditions, for long bodies, sl@0: the exception range parameters were badly computed. Tests forthcoming: sl@0: I still can't reproduce the conditions in the testsuite (!), although sl@0: the bug (with assorted segfault or panic!) can be triggered from the sl@0: console or with the new parse.bench in tclbench. sl@0: sl@0: 2002-02-25 Donal K. Fellows sl@0: sl@0: * compat/strtoul.c, compat/strtol.c, compat/strtod.c: Added UCHAR, sl@0: CONST and #includes to clean up GCC output. sl@0: sl@0: 2002-02-23 Don Porter sl@0: sl@0: * compat/strtoull.c (strtoull): sl@0: * compat/strtoll.c (strtoll): sl@0: * compat/strtoul.c (strtoul): Fixed failure to handle leading sign sl@0: symbols '+' and '-' and '0X' and raise overflow errors. [Bug 440916] sl@0: Also corrects prototype and errno problems. sl@0: sl@0: 2002-02-23 Mo DeJong sl@0: sl@0: * configure: Regen. sl@0: * unix/tcl.m4 (SC_CONFIG_CFLAGS): Link with -n32 instead of -32 when sl@0: building on IRIX64-6.* system. [Bug 521707] sl@0: sl@0: 2002-02-22 Don Porter sl@0: sl@0: * generic/tclInt.h: sl@0: * generic/tclObj.c: renamed global variable emptyString -> sl@0: tclEmptyString because it is no longer static. sl@0: * generic/tclPkg.c: Fix for panic when library is loaded on a sl@0: platform without backlinking without proper use of stubs. [Bug 476537] sl@0: sl@0: 2002-02-22 Jeff Hobbs sl@0: sl@0: * tests/regexpComp.test: updated regexp-11.[1-4] to match changes sl@0: in regexp.test for new regsub syntax sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4: added --enable-64bit support for AIX-4 (using -q64 sl@0: flag) when using IBM's xlc compiler. sl@0: sl@0: * tests/safe.test: updated safe-8.5 and safe-8.7 sl@0: * library/safe.tcl (CheckFileName): removed the limit on sl@0: sourceable file names (was only *.tcl or tclIndex files with no sl@0: more than one dot and 14 chars). There is enough internal sl@0: protection in a safe interpreter already. Fixes [Tk Bug 521560]. sl@0: sl@0: 2002-02-22 Miguel Sofer sl@0: sl@0: * generic/tclCompCmds: [FR 465811]. Optimising [if], [for] and sl@0: [while] for constant conditions; in addition, [for] and [while] are sl@0: now compiled with the "loop rotation" optimisation (thanks to Kevin sl@0: Kenny). sl@0: sl@0: 2002-02-22 Donal K. Fellows sl@0: sl@0: --- TIP#76 CHANGES --- sl@0: * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): Final-argument-less sl@0: [regsub] returns the modified string. sl@0: * doc/regsub.n: Updated docs. sl@0: * tests/regexp.test: Updated and added tests. sl@0: sl@0: * compat/strtoll.c (strtoll): sl@0: * compat/strtoull.c (strtoull): sl@0: * unix/tclUnixPort.h: sl@0: * win/tclWinPort.h: Const-ing 64-bit compatability declarations. sl@0: Note that the return pointer is non-const because it is entirely sl@0: legal for the functions to be called from somewhere that owns the sl@0: string being passed. Fixes problem reported by Larry Virden. sl@0: sl@0: 2002-02-21 David Gravereaux sl@0: sl@0: * win/mkd.bat (removed): sl@0: * win/coffbase.txt (new): sl@0: * win/makefile.bc: sl@0: * win/makefile.vc: Changed the 'setup' target to stop using the sl@0: mkd.bat file and just make the directory right in the rule. Same sl@0: change to makefile.bc. configure.in nor Makefile.in use it. sl@0: sl@0: coffbase.txt will be the master list for our "prefered base addresses" sl@0: set by the linker. This should improve load-time (NT only) by avoiding sl@0: relocations. Submissions to the list by extension authors are sl@0: encouraged. sl@0: sl@0: Added a 'tidy' target to compliment 'clean' and 'hose' to remove just sl@0: the outputs. Also removed the $(winlibs) macro as it wasn't being sl@0: used. sl@0: sl@0: Stuff left to do: sl@0: 1) get the winhelp target to stop building in the tools/ directory. sl@0: 2) stop using rmd.bat sl@0: 3) add more dependacy rules. sl@0: sl@0: * win/tclAppInit.c: Reverted back to -r1.6, as the header file change sl@0: to tclPort.h won't allow for easy embedded support outside of the sl@0: source dist. Thanks to Don Porter for pointing this out to me. sl@0: sl@0: 2002-02-21 David Gravereaux sl@0: sl@0: * win/makefile.vc: sl@0: * win/rules.vc: Added a new "loimpact" option that sets the sl@0: -ws:aggressive linker option. Off by default. It's said to keep the sl@0: heap use low at the expense of alloc speed. sl@0: sl@0: * win/tclAppInit.c: Changed #include "tcl.h" to be tclPort.h to remove sl@0: the raw windows.h include. tclPort.h brings in windows.h already and sl@0: lessens the pre-compiled-header mush and the randomly useless #pragma sl@0: comment (lib,...) references throughout the big windows.h tree (as sl@0: observed at high linker warning levels). sl@0: sl@0: 2002-02-21 Donal K. Fellows sl@0: sl@0: * generic/tcl.h: Better guessing of LP64/ILP32 architecture, but sl@0: now sensitive to presence of (suitable) sl@0: sl@0: 2002-02-20 Don Porter sl@0: sl@0: * generic/tcl.decls (Tcl_RegExpRange,Tcl_GetIndexFromObjStruct): sl@0: Overlooked a few source incompatibilities. Now using CONST84. sl@0: * generic/tclDecls.h: make genstubs sl@0: * generic/tcl.h (Tcl_CmdObjTraceProc): silence warning from Sun sl@0: Workshop compiler. sl@0: sl@0: 2002-02-20 David Gravereaux sl@0: sl@0: * win/buildall.vc.bat: sl@0: * win/makefile.vc: sl@0: * win/rules.vc: General clean-ups. Added compiler and linker tests for sl@0: a) the pentium 0x0F errata, b) optimizing (not all have this), and c) sl@0: linker v6 section alignment confusion. All these are tested first to sl@0: make sure any D4002 or LNK1117 warnings aren't displayed. The pentium sl@0: 0x0F errata is a recommended switch. The v5 linker's section alignment sl@0: default is 512, but the v6 linker was changed to 4096 in an attempt to sl@0: speed loading on Win98. I changed the default to always be 512 across sl@0: both linkers, unless linking statically, then 4096 is used for the sl@0: claimed speed effect. Using a 512 alignment saves 12k bytes of dead sl@0: space in the DLL. sl@0: sl@0: Added IA64 B-stepping errata switch when the compiler supports it. sl@0: sl@0: Added profiling to $(lflags) when requested and also removed the sl@0: explict -entry option as the default works fine as is. sl@0: sl@0: Removed win/tclWinInit.c from the special case section to let it use sl@0: the common implicit rule as the $(EXTFLAGS) macro it had was never sl@0: referenced anywhere. sl@0: sl@0: 2002-02-20 Donal K. Fellows sl@0: sl@0: * generic/tcl.h: Added code to guess the correct settings for sl@0: TCL_WIDE_INT_IS_LONG and TCL_WIDE_INT_TYPE when configure doesn't tell sl@0: us them, as can happen with extensions. sl@0: sl@0: 2002-02-19 Donal K. Fellows sl@0: sl@0: * doc/format.n: Updated docs to list the specification. sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): Made behaviour on 64-bit sl@0: platforms correctly meet the specification, that %d works with the sl@0: native word-sized integer, instead of trying to guess (wrongly) from sl@0: the value being passed. sl@0: sl@0: 2002-02-19 Don Porter sl@0: sl@0: * changes: First draft of updated changes for 8.4a4 release. sl@0: sl@0: 2002-02-15 Jeff Hobbs sl@0: sl@0: * unix/tclUnixPort.h: add strtoll/strtoull declarations for platforms sl@0: that do not define them. sl@0: sl@0: * generic/tclIndexObj.c (STRING_AT): removed ptrdiff_t cast and use of sl@0: VOID* in default case (GNU-ism). sl@0: sl@0: 2002-02-15 Kevin Kenny sl@0: sl@0: * compat/strtoll.c: sl@0: * compat/strtoul.c: sl@0: * compat/strtoull.c: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclPosixStr.c: sl@0: * generic/tclTest.c: sl@0: * generic/tclTestObj.c: sl@0: * tests/get.test: sl@0: * win/Makefile.vc: Further tweaks to the TIP 72 patch to make it sl@0: compile under VC++. sl@0: sl@0: 2002-02-15 Andreas Kupries sl@0: sl@0: * tclExecute.c: sl@0: * tclIOGT.c: sl@0: * tclIndexObj.c: Touchups to the TIP 72 patch to make it compileable sl@0: under Windows again. The changes are not complete, there is one nasty sl@0: regarding _stati64 sl@0: sl@0: 2002-02-15 Donal K. Fellows sl@0: sl@0: +----------------------+ sl@0: | TIP #72 IMPLEMENTED. | sl@0: +----------------------+ sl@0: sl@0: There are a lot of changes from this TIP, so please see sl@0: http://tip.tcl.tk/72.html for discussion of backward-compatability sl@0: issues, but the main ones modifications are in: sl@0: sl@0: * generic/tcl.h: New types. sl@0: * generic/tcl.decls: New public functions. sl@0: * generic/tclExecute.c: 64-bit aware bytecode engine. sl@0: * generic/tclBinary.c: 64-bit handling in [binary] command. sl@0: * generic/tclScan.c: 64-bit handling in [scan] command. sl@0: * generic/tclCmdAH.c: 64-bit handling in [file] and [format] sl@0: commands. sl@0: * generic/tclBasic.c: New "wordSize" entry in ::tcl_platform. sl@0: * generic/tclFCmd.c: Large-file support (with many consequences.) sl@0: * generic/tclIO.c: Large-file support (with many consequences.) sl@0: * compat/strtoll.c, compat/strtoull.c: New support functions. sl@0: * unix/tcl.m4, unix/configure: 64-bit support and greatly enhanced sl@0: cacheing. sl@0: sl@0: Most other changes, including all those in doc/* and test/* as well as sl@0: the majority in the platform directories, follow on from these. sl@0: sl@0: Also coming out of the woodwork: sl@0: * generic/tclIndex.c: Better support for Cray PVP. sl@0: * win/tclWinMtherr.c: Better Borland support. sl@0: sl@0: Note that, in a number of places through the Unix part of the platform sl@0: support, there are Tcl_Platform* references. These are expanded into sl@0: the correct way to call that particular underlying function, i.e. with sl@0: or without a '64' suffix, and should be used by people working on the sl@0: core in preference to the API functions they overlay so that the code sl@0: remains portable depending on the presence or absence of 64-bit sl@0: support on the underlying platform. sl@0: sl@0: ***POTENTIAL INCOMPATIBILITY***: Extracted from the TIP sl@0: sl@0: SUMMARY OF INCOMPATIBILITIES AND FIXES sl@0: ====================================== sl@0: sl@0: The behaviour of expressions containing constants that appear positive sl@0: but which have a negative internal representation will change, as sl@0: these will now usually be interpreted as wide integers. This is always sl@0: fixable by replacing the constant with int(constant). sl@0: sl@0: Extensions creating new channel types will need to be altered as sl@0: different types are now in use in those areas. The change to the sl@0: declaration of Tcl_FSStat and Tcl_FSLstat (which are the new preferred sl@0: API in any case) are less serious as no non-alpha releases have been sl@0: made yet with those API functions. sl@0: sl@0: Scripts that are lax about the use of the l modifier in format and sl@0: scan will probably need to be rewritten. This should be very uncommon sl@0: though as previously it had absolutely no effect. sl@0: sl@0: Extensions that create new math functions that take more than one sl@0: argument will need to be recompiled (the size of Tcl_Value changes), sl@0: and functions that accept arguments of any type (TCL_EITHER) will need sl@0: to be rewritten to handle wide integer values. (I do not expect this sl@0: to affect many extensions at all.) sl@0: sl@0: 2002-02-14 Andreas Kupries sl@0: sl@0: * generic/tclIOCmd.c (Tcl_GetsObjCmd): Trivial fix for [Bug 517503], a sl@0: memory leak reported by Miguel Sofer . sl@0: The leak happens if an error occurs for "set var [gets $chan]" and sl@0: leak one empty object. sl@0: sl@0: 2002-02-12 David Gravereaux sl@0: sl@0: * djgpp/ (new directory) sl@0: * djgpp/Makefile (new): sl@0: * unix/tclAppInit.c: sl@0: * unix/tclMtherr.c: sl@0: * unix/tclUnixFCmd.c: sl@0: * unix/tclUnixFile.c: sl@0: * unix/tclUnixInit.c: sl@0: * unix/tclUnixPort.h: Early stage of DJGPP support for building Tcl sl@0: on DOS. Dynamic loading isn't working, yet. Requires watt32 for the sl@0: TCP/IP stack. No autoconf, yet. Barely tested, but makes a working exe sl@0: that runs Tcl in protected-mode, flat memory. [exec] and pipes will sl@0: need the most work as multi-tasking on DOS has to be carefully. sl@0: sl@0: 2002-02-10 Kevin Kenny sl@0: sl@0: * doc/CrtObjCmd.3: sl@0: * doc/CrtTrace.3: sl@0: * generic/tcl.decls: sl@0: * generic/tcl.h: sl@0: * generic/tclBasic.c: sl@0: * generic/tclInt.h: sl@0: * generic/tclTest.c: sl@0: * tests/basic.test: Added Tcl_CreateObjTrace, sl@0: Tcl_GetCommandInfoFromToken and Tcl_SetCommandInfoFromToken. sl@0: (TIPs #32 and #79.) sl@0: sl@0: * generic/tclDecls.h: sl@0: * generic/tclStubInit.c: Regenerated Stubs tables. sl@0: sl@0: 2002-02-08 Jeff Hobbs sl@0: sl@0: * unix/configure: sl@0: * unix/tcl.m4: added -pthread for FreeBSD to EXTRA_CFLAGS and sl@0: LDFLAGS. Also triggered nodots only for FreeBSD-3. sl@0: Added AC_DEFINE(_POSIX_PTHREAD_SEMANTICS) for Solaris. sl@0: sl@0: * unix/tclUnixPort.h: sl@0: * unix/tclUnixThrd.c: added thread-safe versions of readdir, sl@0: localtime, gmtime and inet_ntoa for threaded build. (jgdavidson) sl@0: sl@0: * generic/tclScan.c (Tcl_ScanObjCmd): prevented ckfree being sl@0: called on a pointer to NULL. sl@0: sl@0: 2002-02-07 Don Porter sl@0: sl@0: * doc/DString.3: sl@0: * doc/Encoding.3: sl@0: * doc/GetCwd.3: sl@0: * doc/SplitPath.3: sl@0: * doc/Translate.3: sl@0: * doc/Utf.3: sl@0: * generic/tcl.decls: sl@0: * generic/tcl.h: sl@0: * generic/tclEncoding.c: sl@0: * generic/tclEnv.c: sl@0: * generic/tclFileName.c: sl@0: * generic/tclIOUtil.c: sl@0: * generic/tclUtf.c: sl@0: * generic/tclUtil.c: sl@0: * mac/tclMacInit.c: sl@0: * unix/tclUnixFile.c: sl@0: * unix/tclUnixInit.c: sl@0: * unix/tclUnixPipe.c: sl@0: * win/tclWin32Dll.c: sl@0: * win/tclWinFCmd.c: sl@0: * win/tclWinFile.c: sl@0: * win/tclWinInit.c: Partial TIP 27 rollback. Following routines sl@0: restored to return (char *): Tcl_DStringAppend, sl@0: Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName, sl@0: Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString, sl@0: Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also sl@0: restored Tcl_WinUtfToTChar to return (TCHAR *) and sl@0: Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified sl@0: some callers. This change recognizes that Tcl_DStrings are sl@0: de-facto white-box objects. sl@0: sl@0: * generic/tclDecls.h: sl@0: * generic/tclPlatDecls.h: make genstubs sl@0: sl@0: * generic/tclCmdMZ.c: corrected use of C++-style comment. sl@0: sl@0: 2002-02-06 Jeff Hobbs sl@0: sl@0: * tests/scan.test: sl@0: * generic/tclScan.c (Tcl_ScanObjCmd): corrected scan 0x... %x handling sl@0: that didn't accept the 0x as a prelude to a base 16 number. [Bug sl@0: 495213] sl@0: sl@0: * generic/tclCompCmds.c (TclCompileRegexpCmd): made early check sl@0: for bad RE to stop checking further. sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): added special case to sl@0: search for simple 'string map' style regsub calls. sl@0: Delayed creation of resultPtr object until an initial match is sl@0: made, as the input string object can then be reused for no matches. sl@0: (Tcl_StringObjCmd): optimization improvements to the STR_MAP sl@0: algorithm for zero-length and nocase cases. sl@0: sl@0: * tests/regexp.test: sl@0: * tests/regexpComp.test: extra code coverage tests. sl@0: sl@0: * tests/string.test: added 10.18 and 10.19 extra tests. sl@0: sl@0: * generic/regc_locale.c (casecmp): slight performance improvement. sl@0: sl@0: 2002-02-05 Don Porter sl@0: sl@0: * library/http/http.tcl: sl@0: * library/http/pkgIndex.tcl: Corrected use of http::error when sl@0: ::error was intended. Bump to http 2.4.2. sl@0: sl@0: 2002-02-04 Andreas Kupries sl@0: sl@0: * unix/tclUnixChan.c (FileOutputProc): Fixed [bug 465765] reported by sl@0: Dale Talcott . Avoid writing sl@0: nothing into a file as STREAM based implementations will consider this sl@0: a EOF (if the file is a pipe). Not done in the generic layer as this sl@0: type of writing is actually useful to check the state of a socket. sl@0: sl@0: * doc/open.n: Fixed [Bug 511540], added cross-reference to 'pid' as sl@0: the command to use to retrieve the pid of a command pipeline created sl@0: via 'open'. sl@0: sl@0: 2002-02-01 Jeff Hobbs sl@0: sl@0: * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): handle quirky about case sl@0: earlier to avoid shimmering problem. sl@0: sl@0: 2002-02-01 Andreas Kupries sl@0: sl@0: * tests/io.test: io-39.22 split into two tests, one platform sl@0: dependent, the other not. -eofchar is not empty on the windows sl@0: platform. sl@0: sl@0: 2002-02-01 Vince Darley sl@0: sl@0: * generic/tclTest.c: fix to picky windows compiler problem with the sl@0: 'MainLoop' function declaration. sl@0: sl@0: 2002-01-31 Andreas Kupries sl@0: sl@0: * win/tclWinFCmd.c: TIP 27: Applied patch fixing CONST warnings on sl@0: behalf of Don Porter . sl@0: sl@0: 2002-01-30 Don Porter sl@0: sl@0: * generic/tcl.decls: sl@0: * generic/tcl.h: sl@0: * generic/tclInt.h: For each interface identified in the TIP 27 sl@0: changes below as a POTENTIAL INCOMPATIBILITY, the source of the sl@0: incompatibility has been parameterized so that it can be removed. When sl@0: compiling extension code against the Tcl header files, use the sl@0: compiler flag -DUSE_NON_CONST to remove the irresolvable source sl@0: incompatibilities introduced by the TIP 27 changes. Resolvable changes sl@0: are left for extension authors to resolve. sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: 2002-01-30 Vince Darley sl@0: sl@0: * doc/FileSystem.3: added documentation for 3 public functions which sl@0: had been overlooked. Fixes [Bug 507701] sl@0: * unix/mkLinks: make mklinks sl@0: sl@0: 2002-01-29 Jeff Hobbs sl@0: sl@0: * tests/regexpComp.test: sl@0: * generic/tclCompCmds.c (TclCompileRegexpCmd): enhanced to support sl@0: -nocase and -- options. sl@0: sl@0: 2002-01-28 Mo DeJong sl@0: sl@0: * unix/tcl.m4 (SC_LOAD_TCLCONFIG): sl@0: * win/tcl.m4 (SC_LOAD_TCLCONFIG): Set TCL_LIB_SPEC, TCL_STUB_LIB_SPEC, sl@0: and TCL_STUB_LIB_PATH to the values of TCL_BUILD_LIB_SPEC, sl@0: TCL_BUILD_STUB_LIB_SPEC, and TCL_BUILD_STUB_LIB_PATH when tclConfig.sh sl@0: is loaded from the build directory. A Tcl extension should make use of sl@0: the non-build versions of these variables since they will work in both sl@0: cases. This modification was described in TIP #34. sl@0: sl@0: 2002-01-28 Jeff Hobbs sl@0: sl@0: * win/tclWinReg.c (regConnectRegistryProc,RecursiveDeleteKey) sl@0: (DeleteKey,GetKeyNames,GetType,GetValue,OpenSubKey,SetValue): sl@0: redid the CONSTification as previous changes caused failing tests. sl@0: sl@0: * tests/regexpComp.test (new): sl@0: * generic/tclInt.h: sl@0: * generic/tclBasic.c: added TclCompileRegexpCmd entry sl@0: * generic/tclCompCmds.c (TclCompileStringCmd): corrected to return sl@0: TCL_OUT_LINE_COMPILE instead of TCL_ERROR for parsing errors, so sl@0: it only throws the error for runtime compile, in case the user sl@0: modifies 'string'. sl@0: (TclCompileRegexpCmd): first try at a byte-compiled regexp sl@0: command. It handles static strings and ^$ bounded static strings. sl@0: (TclCompileAppendCmd): made TclPushVarName call always use sl@0: TCL_CREATE_VAR as numWords is always > 2 at that point. sl@0: sl@0: * generic/tclExecute.c (TclExecuteByteCode:INST_LIST): correct sl@0: possibly dangerous decr in macro call. sl@0: sl@0: * win/tclWinInit.c (TclpFindVariable): CONSTification touch-up sl@0: sl@0: * win/tclWinReg.c (OpenSubKey): corrected bug introduced in sl@0: CONSTification that dropped pointer reference. sl@0: sl@0: * ChangeLog.2000 (new file): sl@0: * ChangeLog: broke changes from 2000 into ChangeLog.2000 to reduce sl@0: size of the main ChangeLog. sl@0: sl@0: 2002-01-28 David Gravereaux sl@0: sl@0: * generic/tclPlatDecls.h: Added preprocessor logic to force a typedef sl@0: of TCHAR when __STDC__ is defined when using the uncommon -Za compiler sl@0: switch with the microsoft compiler. sl@0: sl@0: 2002-01-27 Don Porter sl@0: sl@0: * doc/package.n: Documented global namespace context for script sl@0: evaluation by [package require]. sl@0: sl@0: 2002-01-27 Daniel Steffen sl@0: sl@0: * generic/tclInt.decls: sl@0: * generic/tclIntPlatDecls.h: sl@0: * mac/tclMacChan.c: sl@0: * mac/tclMacFCmd.c: sl@0: * mac/tclMacFile.c: sl@0: * mac/tclMacInit.c: sl@0: * mac/tclMacLoad.c: sl@0: * mac/tclMacResource.c: sl@0: * mac/tclMacSock.c: TIP 27 CONSTification induced changes sl@0: sl@0: * tests/event.test: sl@0: * tests/main.test: added catches/constraints to test that use features sl@0: that don't exist on the mac. sl@0: sl@0: 2002-01-25 Mo DeJong sl@0: sl@0: Make -eofchar and -translation options read only for server sockets. sl@0: [Bug 496733] sl@0: sl@0: * generic/tclIO.c (Tcl_GetChannelOption, Tcl_SetChannelOption): sl@0: Instead of returning nothing for the -translation option on a server sl@0: socket, always return "auto". Return the empty string enclosed in sl@0: quotes for the -eofchar option on a server socket. Fixup -eofchar sl@0: usage message so that it matches the implementation. sl@0: * tests/io.test: Add -eofchar tests and -translation tests to ensure sl@0: options are read only on server sockets. sl@0: * tests/socket.test: Update tests to account for -eofchar and sl@0: -translation option changes. sl@0: sl@0: 2002-01-25 Don Porter sl@0: sl@0: * compat/strstr.c (strstr): sl@0: * generic/tclCmdAH.c (Tcl_FormatObjCmd): sl@0: * generic/tclCmdIL.c (InfoNameOfExecutableCmd): sl@0: * generic/tclEnv.c (ReplaceString): sl@0: * generic/tclFileName.c (ExtractWinRoot): sl@0: * generic/tclIO.c (FlushChannel,Tcl_BadChannelOption): sl@0: * generic/tclStringObj.c (AppendUnicodeToUtfRep): sl@0: * generic/tclThreadTest.c (TclCreateThread): sl@0: * generic/tclUtf.c (Tcl_UtfPrev): sl@0: * mac/tclMacFCmd.c (TclpObjListVolumes): sl@0: * mac/tclMacResource.c (TclMacRegisterResourceFork) sl@0: (BuildResourceForkList): sl@0: * win/tclWinInit.c (AppendEnvironment): Sought out and eliminated sl@0: instances of CONST-casting that are no longer needed after the sl@0: TIP 27 effort. sl@0: sl@0: * Following is [Patch 501006] sl@0: * generic/tclInt.decls (Tcl_AddInterpResolvers, Tcl_Export) sl@0: (Tcl_FindNamespace, Tcl_GetInterpResolvers, Tcl_ForgetImport) sl@0: (Tcl_Import, Tcl_RemoveInterpResolvers): sl@0: * generic/tclNamesp.c (Tcl_Export, Tcl_Import, Tcl_ForgetImport) sl@0: (Tcl_FindNamespace): sl@0: * generic/tclResolve.c (Tcl_AddInterpResolvers,Tcl_GetInterpResolvers, sl@0: (Tcl_RemoveInterpResolvers): Updated APIs in generic/tclResolve.c and sl@0: generic/tclNamesp.c according to the guidelines of TIP 27. sl@0: * generic/tclIntDecls.h: make genstubs sl@0: sl@0: * Following is [Patch 505630] sl@0: * doc/AddErrorInfo.3: sl@0: * generic/tcl.decls (Tcl_LogCommandInfo): sl@0: * generic/tclBasic.c (Tcl_LogCommandInfo): Updated interfaces sl@0: of generic/tclBasic.cc according to TIP 27. sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: * Following is [Patch 506818] sl@0: * doc/Hash.3: sl@0: * generic/tcl.decls (Tcl_HashStats): sl@0: * generic/tclHash.c (Tcl_HashStats): Updated APIs of generic/tclHash.c sl@0: according to guidelines of TIP 27. sl@0: * generic/tclDecls.h: make genstubs sl@0: * generic/tclVar.c (Tcl_ArrayObjCmd): Updated callers. sl@0: sl@0: * Following is [Patch 506807] sl@0: * doc/ObjectType.3: sl@0: * generic/tcl.decls (Tcl_GetObjType): sl@0: * generic/tclObj.c (Tcl_GetObjType): Updated APIs of generic/tclObj.c sl@0: according to guidelines of TIP 27. sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: * Following is [Patch 507304] sl@0: * doc/Encoding.3: sl@0: * generic/tcl.decls (Tcl_WinUtfToTChar,Tcl_WinTCharToUtf): sl@0: * win/tclWin32Dll.c (Tcl_WinUtfToTChar,Tcl_WinTCharToUtf): sl@0: Updated interfaces in win/tclWin32Dll.c according to TIP 27. sl@0: * generic/tclPlatDecls.h: make genstubs sl@0: * generic/tclIOUtil.c (TclpNativeToNormalized): sl@0: * win/tclWinFCmd.c (TclpObjNormalizePath): sl@0: * win/tclWinFile.c (TclpFindExecutable,TclpMatchInDirectory) sl@0: (NativeIsExec,NativeStat): sl@0: * win/tclWinLoad.c (TclpLoadFile): sl@0: * win/tclWinPipe.c (TclpOpenFile,ApplicationType): sl@0: * win/tclWinReg.c (regConnectRegistryProc,RecursiveDeleteKey,DeleteKey) sl@0: (GetKeyNames,GetType,GetValue,OpenSubKey,SetValue): sl@0: * win/tclWinSerial.c (SerialSetOptionProc): Update callers. sl@0: sl@0: * Following is [Patch 505072] sl@0: * doc/Concat.3: sl@0: * doc/Encoding.3: sl@0: * doc/Filesystem.3: sl@0: * doc/Macintosh.3: sl@0: * doc/OpenFileChnl.3 sl@0: * doc/SetResult.3: sl@0: * doc/SetVar.3: sl@0: * doc/SplitList.3: sl@0: * doc/SplitPath.3: sl@0: * doc/Translate.3: sl@0: * generic/tcl.h (Tcl_FSMatchInDirectoryProc): sl@0: * generic/tclInt.h (TclpMatchInDirectory): sl@0: * generic/tcl.decls (Tcl_Concat,Tcl_GetStringResult,Tcl_GetVar, sl@0: (Tcl_GetVar2,Tcl_JoinPath,Tcl_Merge,Tcl_OpenCommandChannel,Tcl_SetVar) sl@0: (Tcl_SetVar2,Tcl_SplitList,Tcl_SplitPath,Tcl_TranslateFileName) sl@0: (Tcl_ExternalToUtfDString,Tcl_GetEncodingName,Tcl_UtfToExternalDString) sl@0: (Tcl_GetDefaultEncodingDir,Tcl_SetDefaultEncodingDir) sl@0: (Tcl_FSMatchInDirectory,Tcl_MacEvalResource,Tcl_MacFindResource): sl@0: * generic/tclInt.decls (TclCreatePipeline,TclGetEnv,TclpGetCwd, sl@0: (TclpCreateProcess): sl@0: * mac/tclMacFile.c (TclpGetCwd): sl@0: * generic/tclEncoding.c (Tcl_GetDefaultEncodingDir) sl@0: (Tcl_SetDefaultEncodingDir,Tcl_GetEncodingName) sl@0: (Tcl_ExternalToUtfDString,Tcl_UtfToExternalDString, OpenEncodingFile) sl@0: (LoadEscapeEncoding): sl@0: * generic/tclFileName.c (DoTildeSubst,Tcl_JoinPath,Tcl_SplitPath, sl@0: (Tcl_TranslateFileName): sl@0: * generic/tclIOUtil.c (Tcl_FSMatchInDirectory): sl@0: * generic/tclPipe.c (FileForRedirect,TclCreatePipeline) sl@0: (Tcl_OpenCommandChannel): sl@0: * generic/tclResult.c (Tcl_GetStringResult): sl@0: * generic/tclUtil.c (Tcl_Concat,Tcl_SplitList,Tcl_Merge): sl@0: * generic/tclVar.c (Tcl_GetVar,Tcl_GetVar2,Tcl_SetVar,Tcl_SetVar2): sl@0: * mac/tclMacResource.c (Tcl_MacEvalResource,Tcl_MacFindResource): sl@0: Updated interfaces of generic/tclEncoding, generic/tclFilename.c, sl@0: generic/tclIOUtil.c, generic/tclPipe.c, generic/tclResult.c, sl@0: generic/tclUtil.c, generic/tclVar.c and mac/tclMacResource.c according sl@0: to TIP 27. Tcl_TranslateFileName rewritten as wrapper around sl@0: VFS-aware version. sl@0: ***POTENTIAL INCOMPATIBILITY*** sl@0: Includes source incompatibilities: argv arguments of Tcl_Concat, sl@0: Tcl_JoinPath, Tcl_OpenCommandChannel, Tcl_Merge; argvPtr arguments of sl@0: Tcl_SplitList and Tcl_SplitPath. sl@0: * generic/tclDecls.h: sl@0: * generic/tclIntDecls.h: make genstubs sl@0: sl@0: * generic/tclCkalloc.c (MemoryCmd): sl@0: * generic/tclClock.c (FormatClock): sl@0: * generic/tclCmdAH.c (Tcl_CaseObjCmd,Tcl_EncodingObjCmd,Tcl_FileObjCmd): sl@0: * generic/tclCmdIL.c (InfoLibraryCmd,InfoPatchLevelCmd, sl@0: (InfoTclVersionCmd): sl@0: * generic/tclCompCmds.c (TclCompileForeachCmd): sl@0: * generic/tclCompCmds.h (TclCompileForeachCmd): sl@0: * generic/tclCompile.c (TclFindCompiledLocal): sl@0: * generic/tclEnv.c (TclSetupEnv,TclSetEnv,Tcl_PutEnv,TclGetEnv, sl@0: (EnvTraceProc): sl@0: * generic/tclEvent.c (Tcl_BackgroundError): sl@0: * generic/tclIO.c (Tcl_BadChannelOption,Tcl_SetChannelOption): sl@0: * generic/tclIOCmd.c (Tcl_ExecObjCmd,Tcl_OpenObjCmd): sl@0: * generic/tclIOSock.c (TclSockGetPort): sl@0: * generic/tclIOUtil.c (SetFsPathFromAny): sl@0: * generic/tclLink.c (LinkTraceProc): sl@0: * generic/tclMain.c (Tcl_Main): sl@0: * generic/tclNamesp.c (TclTeardownNamespace): sl@0: * generic/tclProc.c (TclCreateProc): sl@0: * generic/tclTest.c (TestregexpObjCmd,TesttranslatefilenameCmd, sl@0: (TestchmodCmd,GetTimesCmd,TestsetCmd,TestOpenFileChannelProc1, sl@0: (TestOpenFileChannelProc2,TestOpenFileChannelProc3,AsyncHandlerProc, sl@0: (TestpanicCmd): sl@0: * generic/tclThreadTest.c (ThreadErrorProc,ThreadEventProc): sl@0: * generic/tclUtil.c (TclPrecTraceProc): sl@0: * mac/tclMacFCmd.c (GetFileSpecs): sl@0: * mac/tclMacFile.c (TclpMatchInDirectory): sl@0: * mac/tclMacInit.c (TclpInitLibraryPath,Tcl_SourceRCFile): sl@0: * mac/tclMacOSA.c (tclOSAStore,tclOSALoad): sl@0: * mac/tclMacResource.c (Tcl_MacEvalResource): sl@0: * unix/tclUnixFCmd.c (TclpObjNormalizePath): sl@0: * unix/tclUnixFile.c (TclpMatchInDirectory,TclpGetUserHome,TclpGetCwd, sl@0: (TclpReadLink): sl@0: * unix/tclUnixInit.c (TclpInitLibraryPath,TclpSetVariables, sl@0: (Tcl_SourceRCFile): sl@0: * unix/tclUnixPipe.c (TclpOpenFile,TclpCreateTempFile, sl@0: (TclpCreateProcess): sl@0: * win/tclWinFile.c (TclpGetCwd,TclpMatchInDirectory): sl@0: * win/tclWinInit.c (TclpInitLibraryPath,Tcl_SourceRCFile, sl@0: (TclpSetVariables): sl@0: * win/tclWinPipe.c (TclpCreateProcess): Updated callers. sl@0: sl@0: 2002-01-24 Don Porter sl@0: sl@0: * generic/tclIOUtil.c (SetFsPathFromAny): Corrected tilde-substitution sl@0: of pathnames where > 1 separator follows the ~. [Bug 504950] sl@0: sl@0: 2002-01-24 Jeff Hobbs sl@0: sl@0: * library/http/pkgIndex.tcl: sl@0: * library/http/http.tcl: don't add port in default case to handle sl@0: broken servers. http bumped to 2.4.1 [Bug 504508] sl@0: sl@0: 2002-01-23 Andreas Kupries sl@0: sl@0: * unix/mkLinks: Regenerated. sl@0: * doc/CrtChannel.3: sl@0: * doc/ChnlStack.3: Moved documentation for 'Tcl_GetTopChannel' from sl@0: 'CrtChannel' to 'ChnlStack'. Added documentation of sl@0: 'Tcl_GetStackedChannel'. [Bug 506147] reported by Mark Patton sl@0: sl@0: sl@0: 2002-01-23 Don Porter sl@0: sl@0: * win/tclWinFile.c (NativeAccess,NativeStat,NativeIsExec, sl@0: (TclpGetUserHome): sl@0: * win/tclWinPort.h (TclWinSerialReopen): sl@0: * win/tclWinSerial.c (TclWinSerialReopen): sl@0: * win/tclWinSock.c (Tcl_OpenTcpServer): Corrections to earlier TIP sl@0: #27 changes. Thanks to Andreas Kupries for the feedback. sl@0: * generic/tclPlatDecls.h: make genstubs sl@0: sl@0: * doc/GetHostName.3: sl@0: * doc/GetOpnFl.3: sl@0: * doc/OpenTcp.3: sl@0: * tcl.decls (Tcl_GetHostName,Tcl_GetOpenFile,Tcl_OpenTcpClient, sl@0: (Tcl_OpenTclServer): sl@0: * mac/tclMacSock.c (CreateSocket,Tcl_OpenTcpClient,Tcl_OpenTcpServer, sl@0: (Tcl_GetHostName,GetHostFromString): sl@0: * unix/tclUnixChan.c (CreateSocket,CreateSocketAddress, sl@0: (Tcl_OpenTcpClient,Tcl_OpenTcpServer,Tcl_GetOpenFile): sl@0: * unix/tclUnixSock.c (Tcl_GetHostName): sl@0: * win/tclWinSock.c (CreateSocket,CreateSocketAddress, sl@0: (Tcl_OpenTcpClient,Tcl_OpenTcpServer,Tcl_GetHostName): sl@0: Updated socket interfaces according to TIP 27. sl@0: * generic/tclCmdIL.c (InfoHostnameCmd): Updated callers. sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: 2002-01-21 David Gravereaux sl@0: sl@0: * generic/tclLoadNone.c: TclpLoadFile() didn't match proto of typedef sl@0: Tcl_FSLoadFileProc. OK'd by vincentdarley. [Patch 502488] sl@0: sl@0: 2002-01-21 Andreas Kupries sl@0: sl@0: * generic/tclIO.c (WriteChars): Fix for [Bug 506297], reported by sl@0: Martin Forssen . The encoding chosen in sl@0: the script exposing the bug writes out three intro characters when sl@0: TCL_ENCODING_START is set, but does not consume any input as sl@0: TCL_ENCODING_END is cleared. As some output was generated the sl@0: enclosing loop calls UtfToExternal again, again with START set. Three sl@0: more characters in the out and still no use of input ... To break this sl@0: infinite loop we remove TCL_ENCODING_START from the set of flags after sl@0: the first call (no condition is required, the later calls remove an sl@0: unset flag, which is a no-op). This causes the subsequent calls to sl@0: UtfToExternal to consume and convert the actual input. sl@0: sl@0: 2002-01-21 Don Porter sl@0: sl@0: * generic/tclTest.c: Converted declarations of TestReport file system sl@0: to more portable form. [Bug 501417]. sl@0: sl@0: * generic/tcl.decls (Tcl_TraceCommand,Tcl_UntraceCommand, sl@0: (Tcl_CommandTraceInfo): sl@0: * generic/tclCmdMZ.c (Tcl_TraceCommand,Tcl_UntraceCommand, sl@0: (Tcl_CommandTraceInfo): Updated APIs in generic/tclCmdMZ.c sl@0: according to the guidelines of TIP 27. sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: 2002-01-18 Don Porter sl@0: sl@0: * win/tclWinChan.c: sl@0: * win/tclWinFCmd.c: sl@0: * win/tclWinFile.c: Overlooked callers of Tcl_FSGetNativePath sl@0: sl@0: * win/tclWinDde.c: sl@0: * win/tclWinReg.c: Overlooked callers of Tcl_GetIndexFromObj sl@0: sl@0: 2002-01-18 Daniel Steffen sl@0: sl@0: * generic/tclThreadTest.c: sl@0: * mac/tclMacChan.c: sl@0: * mac/tclMacFCmd.c: sl@0: * mac/tclMacFile.c: sl@0: * mac/tclMacLoad.c: sl@0: * mac/tclMacResource.c: TIP 27 CONSTification broke the mac build in a sl@0: number of places. sl@0: sl@0: 2002-01-17 Andreas Kupries sl@0: sl@0: * generic/tclIOCmd.c (Tcl_GetsObjCmd): Fixed [Bug 504642] as reported sl@0: by Brian Griffin , using his patch. sl@0: Before the patch the generic I/O layer held an unannounced reference sl@0: to the interp result to store the read line into. This unfortunately sl@0: has disastrous results if the channel driver executes a Tcl script to sl@0: perform its operation, this freeing the interp result. In that case we sl@0: are dereferencing essentially a dangling reference. It is not truly sl@0: dangling because the object is in the free list, but this only causes sl@0: us to smash the free list and have the error occur later somewhere sl@0: else. The patch simply creates a new object for the line and later sl@0: sets it into the interp result when we are done with reading. sl@0: sl@0: 2002-01-16 Mo DeJong sl@0: sl@0: * unix/tcl.m4 (SC_LOAD_TCLCONFIG): sl@0: * win/tcl.m4 (SC_LOAD_TCLCONFIG): Subst TCL_DBGX into sl@0: TCL_STUB_LIB_FILE and TCL_STUB_LIB_FLAG variables so that an extension sl@0: does not need to subst TCL_DBGX into its makefile. [Tk Bug 504356] sl@0: sl@0: 2002-01-16 Don Porter sl@0: sl@0: * doc/FileSystem.3: sl@0: * doc/GetCwd.3: sl@0: * doc/GetIndex.3: sl@0: * generic/tcl.decls (Tcl_GetIndexFromObj, Tcl_GetIndexFromObjStruct, sl@0: (Tcl_GetCwd, Tcl_FSFileAttrStrings, Tcl_FSGetNativePath, sl@0: (Tcl_FSGetTranslatedStringPath): sl@0: * generic/tcl.h (Tcl_FSFileAttrStringsProc): sl@0: * generic/tclFCmd.c (TclFileAttrsCmd): sl@0: * generic/tclIOUtil.c (Tcl_GetCwd,NativeFileAttrStrings, sl@0: (Tcl_FSFileAttrStrings,Tcl_FSGetTranslatedStringPath, sl@0: (Tcl_FSGetNativePath): sl@0: * generic/tclIndexObj.c (Tcl_GetIndexFromObj,Tcl_GetIndexFromObjStruct): sl@0: More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that were sl@0: overlooked before. [Patch 504671] sl@0: ***POTENTIAL INCOMPATIBILITY*** sl@0: Includes a source incompatibility in the tablePtr arguments of the sl@0: Tcl_GetIndexFromObj* routines. sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: * generic/tclBinary.c (Tcl_BinaryObjCmd): sl@0: * generic/tclClock.c (Tcl_ClockObjCmd): sl@0: * generic/tclCmdAH.c (Tcl_EncodingObjCmd, Tcl_FileObjCmd): sl@0: * generic/tclCmdIL.c (Tcl_InfoObjCmd,Tcl_LsearchObjCmd,Tcl_LsortObjCmd): sl@0: * generic/tclCmdMZ.c (Tcl_TraceObjCmd,Tcl_RegexpObjCmd,Tcl_RegsubObjCmd, sl@0: (Tcl_StringObjCmd,Tcl_SubstObjCmd,Tcl_SwitchObjCmd, sl@0: (TclTraceCommandObjCmd,TclTraceVariableObjCmd): sl@0: * generic/tclCompCmds.c (TclCompileStringCmd): sl@0: * generic/tclEvent.c (Tcl_UpdateObjCmd): sl@0: * generic/tclFileName.c (Tcl_GlobObjCmd): sl@0: * generic/tclIO.c (Tcl_FileEventObjCmd): sl@0: * generic/tclIOCmd.c (Tcl_SeekObjCmd,Tcl_ExecObjCmd,Tcl_SocketObjCmd, sl@0: (Tcl_FcopyObjCmd): sl@0: * generic/tclInterp.c (Tcl_InterpObjCmd,SlaveObjCmd): sl@0: * generic/tclNamesp.c (Tcl_NamespaceObjCmd): sl@0: * generic/tclPkg.c (Tcl_PackageObjCmd): sl@0: * generic/tclTest.c (Tcltest_Init,TestencodingObjCmd,TestgetplatformCmd, sl@0: (TestlocaleCmd,TestregexpObjCmd,TestsaveresultCmd, sl@0: (TestGetIndexFromObjStructObjCmd,TestReportFileAttrStrings): sl@0: * generic/tclTestObj.c (TestindexObjCmd,TeststringObjCmd): sl@0: * generic/tclTimer.c (Tcl_AfterObjCmd): sl@0: * generic/tclVar.c (Tcl_ArrayObjCmd): sl@0: * mac/tclMacFCmd.c (SetFileFinderAttributes): sl@0: * unix/tclUnixChan.c (TclpOpenFileChannel): sl@0: * unix/tclUnixFCmd.c (tclpFileAttrStrings): sl@0: * unix/tclUnixFile.c (TclpObjAccess,TclpObjChdir,TclpObjStat, sl@0: (TclpObjLstat): sl@0: * win/tclWinFCmd.c (tclpFileAttrStrings): Updated callers. sl@0: sl@0: * doc/RegExp.3: sl@0: * doc/Utf.3: sl@0: * generic/tcl.decls: sl@0: * generic/tclInt.decls: sl@0: * generic/tclRegexp.c: sl@0: * generic/tclUtf.c: Updated APIs in generic/tclUtf.c and sl@0: generic/tclRegexp.c according to the guidelines of TIP 27. sl@0: [Patch 471509] sl@0: sl@0: * generic/regc_locale.c (element,cclass): sl@0: * generic/tclCmdMZ.c (Tcl_StringObjCmd): sl@0: * generic/tclFileName.c (TclpGetNativePathType,SplitMacPath): sl@0: * generic/tclIO.c (ReadChars): sl@0: * mac/tclMacLoad.c (TclpLoadFile): sl@0: * win/tclWinFile.c (TclpGetUserHome): Updated callers. sl@0: sl@0: * generic/tclDecls.h: sl@0: * generic/tclIntDecls.h: make genstubs sl@0: sl@0: * doc/ParseCmd.3 (Tcl_ParseVar): sl@0: * generic/tcl.decls (Tcl_ParseVar): sl@0: * generic/tclParse.c (Tcl_ParseVar): sl@0: * generic/tclTest.c (TestparsevarObjCmd): Updated APIs in sl@0: generic/tclParse.c according to the guidelines of TIP 27. Updated sl@0: callers. [Patch 501046] sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: * generic/tcl.decls (Tcl_RecordAndEval): sl@0: * generic/tclDecls.h: make genstubs sl@0: * generic/tclHistory.c (Tcl_RecordAndEval): Updated APIs in sl@0: generic/tclHistory.c according to the guidelines of TIP 27. sl@0: [Patch 504091] sl@0: sl@0: * doc/CrtSlave.3: sl@0: * generic/tcl.decls (Tcl_CreateAlias, Tcl_CreateAliasObj, sl@0: (Tcl_CreateSlave, Tcl_GetAlias, Tcl_GetAliasObj, Tcl_GetSlave): sl@0: * generic/tclInterp.c (Tcl_CreateAlias, Tcl_CreateAliasObj, sl@0: (Tcl_CreateSlave, Tcl_GetAlias, Tcl_GetAliasObj, Tcl_GetSlave): sl@0: Updated APIs in the file generic/tclInterp.c according to the sl@0: guidelines of TIP 27. [Patch 501371] sl@0: ***POTENTIAL INCOMPATIBILITY*** sl@0: Includes a source incompatibility in the targetCmdPtr arguments of sl@0: the Tcl_GetAlias* routines. sl@0: sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: 2002-01-15 Don Porter sl@0: sl@0: * doc/SetErrno.3 (Tcl_ErrnoMsg): Corrected documentation for sl@0: Tcl_ErrnoMsg; it takes an integer argument. Thanks to Georgios sl@0: Petasis. [Bug 468183] sl@0: sl@0: * doc/AddErrInfo.3 (Tcl_PosixError): sl@0: * doc/Eval.3 (Tcl_EvalFile): sl@0: * doc/FileSystem.c (Tcl_FSOpenFileChannel,Tcl_FSOpenFileChannelProc): sl@0: * doc/OpenFileChnl.3 (Tcl_OpenFileChannel): sl@0: * doc/SetErrno.3 (Tcl_ErrnoId,Tcl_ErrnoMsg): sl@0: * doc/Signal.3 (Tcl_SignalId,Tcl_SignalMsg): sl@0: * generic/tcl.decls (Tcl_ErrnoId,TclErrnoMsg,Tcl_EvalFile, sl@0: (Tcl_OpenFileChannel,Tcl_PosixError,Tcl_SignalId,Tcl_SignalMsg, sl@0: (Tcl_FSOpenFileChannel): sl@0: * generic/tcl.h (Tcl_FSOpenFileChannelProc): sl@0: * generic/tclIO.c (FlushChannel): sl@0: * generic/tclIOUtil.c (Tcl_OpenFileChannel,Tcl_EvalFile,TclGetOpenMode, sl@0: (Tcl_PosixError,Tcl_FSOpenFileChannel): sl@0: * generic/tclInt.decls (TclGetOpenMode): sl@0: * generic/tclInt.h (TclOpenFileChannelProc_,TclGetOpenMode, sl@0: (TclpOpenFileChannel): sl@0: * generic/tclPipe.c (TclCleanupChildren): sl@0: * generic/tclPosixStr.c (Tcl_ErrnoId,Tcl_ErrnoMsg,Tcl_SignalId, sl@0: (Tcl_SignalMsg): sl@0: * generic.tclTest.c (PretendTclpOpenFileChannel, sl@0: (TestOpenFileChannelProc1,TestOpenFileChannelProc2, sl@0: (TestOpenFileChannelProc3,TestReportOpenFileChannel): sl@0: * mac/tclMacChan.c (TclpOpenFileChannel): sl@0: * unix/tclUnixChan.c (TclpOpenFileChannel): sl@0: * win/tclWinChan.c (TclpOpenFileChannel): Updated APIs in sl@0: generic/tclIOUtil.c and generic/tclPosixStr.c according to the sl@0: guidelines of TIP 27. Updated callers. [Patch 499196] sl@0: sl@0: * generic/tclDecls.h: sl@0: * generic/tclIntDecls.h: make genstubs sl@0: sl@0: * doc/CrtChannel.3: sl@0: * doc/OpenFileChnl.3: sl@0: * generic/tcl.decls: sl@0: * generic/tclIO.h: sl@0: * generic/tclIO.c (DoWrite, Tcl_RegisterChannel, Tcl_GetChannel, sl@0: (Tcl_CreateChannel, Tcl_GetChannelName, CloseChannel, Tcl_Write, sl@0: (Tcl_WriteRaw, Tcl_Ungets, Tcl_BadChannelOption, Tcl_GetChannelOption, sl@0: (Tcl_SetChannelOption, Tcl_GetChannelNamesEx, Tcl_ChannelName): sl@0: Updated APIs in the file generic/tclIO.c according to the guidelines sl@0: of TIP 27. Several minor documentation corrections as well. [Patch sl@0: 503565] sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: * generic/tcl.h (Tcl_DriverOutputProc, Tcl_DriverGetOptionProc, sl@0: (Tcl_DriverSetOptionProc): sl@0: * generic/tclIOGT.c (TransformOutputProc, TransformGetOptionProc, sl@0: (TransformSetOptionProc): sl@0: * mac/tclMacChan.c (FileOutput, StdIOOutput): sl@0: * man/tclMacSock.c (TcpGetOptionProc, TcpOutput): sl@0: * unix/tclUnixChan.c (FileOutputProc, TcpGetOptionProc, TcpOutputProc, sl@0: (TtyGetOptionProc, TtySetOptionProc): sl@0: * unix/tclUnixPipe.c (PipeOuputProc): sl@0: * win/tclWinChan.c (FileOutputProc): sl@0: * win/tclWinConsole.c (ConsleOutputProc): sl@0: * win/tclWinPipe.c (PipeOuputProc): sl@0: * win/tclWinSerial.c (SerialOutputProc, SerialGetOptionProc, sl@0: (SerialSetOptionProc): sl@0: * win/tclWinSock.c (TcpGetOptionProc, TcpOutput): Updated channel sl@0: driver interface according to the guidelines of TIP 27. See also [Bug sl@0: 500348]. sl@0: sl@0: * doc/CrtChannel.3: sl@0: * generic/tcl.h: sl@0: * generic/tclIO.c: sl@0: * generic/tclIO.h: sl@0: * generic/tclInt.h: sl@0: * tools/checkLibraryDoc.tcl: sl@0: Moved Tcl_EolTranslation enum declaration from generic/tcl.h to sl@0: generic/tclInt.h (renamed to TclEolTranslation). It is not used sl@0: anywhere in Tcl's public interface. sl@0: sl@0: 2002-01-14 Don Porter sl@0: sl@0: * doc/GetIndex.3: sl@0: * doc/WrongNumArgs.3: sl@0: * generic/tcl.decls (Tcl_GetIndexFromObj, Tcl_GetIndexFromObjStruct, sl@0: (Tcl_WrongNumArgs): sl@0: * generic/tclIndexObj.c (Tcl_GetIndexFromObj, Tcl_GetIndexFromObjStruct, sl@0: (Tcl_WrongNumArgs): Updated APIs in the file generic/tclIndexObj.c sl@0: according to the guidelines of TIP 27. [Patch 501491] sl@0: * generic/tclDecls.h: make genstubs sl@0: sl@0: 2002-01-11 Mo DeJong sl@0: sl@0: * unix/configure: Regen. sl@0: * unix/configure.in: sl@0: * win/configure: Regen. sl@0: * win/configure.in: Use ${libdir} instead of ${exec_prefix}/lib sl@0: to properly support the --libdir option to configure. [Bug 489370] sl@0: sl@0: 2002-01-11 Andreas Kupries sl@0: sl@0: * win/tclWinSerial.c (SerialSetOptionProc): Applied patch for [Bug sl@0: 500348] supplied by Rolf Schroedter . The sl@0: function modified the contents of the the 'value' string and now does sl@0: not do this anymore. This is a followup to the change made on sl@0: 2001-12-17. sl@0: sl@0: 2002-01-11 David Gravereaux sl@0: sl@0: * win/makefile.vc: Removed -GD compiler option. It was intended for sl@0: future use, but MS is again changing the future at their whim. The sl@0: D4002 warning was harmless though, but someone using VC .NET logged it sl@0: as a concern. [Bug 501565] sl@0: sl@0: 2002-01-11 Mo DeJong sl@0: sl@0: * unix/Makefile.in: Burn Tcl build directory into tcltest executable sl@0: to avoid crashes caused by ld loading a previously installed version sl@0: of the tcl shared library. [Bug 218110] sl@0: sl@0: 2002-01-10 Don Porter , sl@0: Kevin Kenny sl@0: sl@0: * unix/tclLoadDld.c (TclpLoadFile): syntax error: unbalanced parens. sl@0: Kevin notes that it's far from clear that this file is ever included sl@0: in an actual build; Linux without dlopen appears to be a nonexistent sl@0: configuration. sl@0: sl@0: 2002-01-08 Don Porter , sl@0: Kevin Kenny sl@0: sl@0: * doc/StaticPkg.3 (Tcl_StaticPackage): sl@0: * generic/tcl.decls (Tcl_StaticPackage): sl@0: * generic/tclDecls.h (Tcl_StaticPackage): sl@0: * generic/tclInt.decls (TclGuessPackageName): sl@0: * generic/tclInt.h (TclGuessPackageName): sl@0: * generic/tclLoad.c (Tcl_StaticPackage): sl@0: * generic/tclLoadNone.c (TclGuessPackageName): sl@0: * mac/tclMacLoad.c (TclGuessPackageName): sl@0: * unix/tclLoadAout.c (TclGuessPackageName): sl@0: * unix/tclLoadDl.c (TclGuessPackageName): sl@0: * unix/tclLoadDld.c (TclGuessPackageName): sl@0: * unix/tclLoadDyld.c (TclGuessPackageName): sl@0: * unix/tclLoadNext.c (TclGuessPackageName): sl@0: * unix/tclLoadOSF.c (TclGuessPackageName): sl@0: * unix/tclLoadShl.c (TclGuessPackageName): sl@0: * win/tclWinLoad.c (TclGuessPackageName): Updated APIs in the files sl@0: */tcl*Load*.c according to the guidelines of TIP 27. [Patch 501096] sl@0: sl@0: 2002-01-09 Don Porter sl@0: sl@0: * generic/tclTest.c (MainLoop): sl@0: * tests/main.test (Tcl_Main-1.{3,4,5,6}): Corrected some non-portable sl@0: tests from the new Tcl_Main changes. Thanks to Kevin Kenny. sl@0: sl@0: 2002-01-07 Don Porter sl@0: sl@0: * generic/tclEvent.c (TclInExit): sl@0: * generic/tclIOUtil.c (SetFsPathFromAbsoluteNormalized, sl@0: (SetFsPathFromAny,Tcl_FSNewNativePath,DupFsPathInternalRep): sl@0: * generic/tclListObj.c (TclLsetList,TclLsetFlat): Added some type sl@0: casts to satisfy picky compilers. sl@0: sl@0: * generic/tclMain.c: Bug fix: neglected the NULL case in sl@0: TclGetStartupScriptFileName(). Broke Tk/wish. sl@0: sl@0: 2002-01-05 Don Porter sl@0: sl@0: * doc/Tcl_Main.3: sl@0: * generic/tclMain.c: Substantial rewrite and expanded documentation sl@0: of Tcl_Main to correct a number of bugs and flaws: sl@0: sl@0: * Interactive Tcl_Main can now enter a main loop, exit that sl@0: loop and continue interactive operations. The loop may even sl@0: exit in the midst of interactive command typing without loss sl@0: of the partial command. [Bugs 486453, 474131] sl@0: * Tcl_Main now gracefully handles deletion of its master sl@0: interpreter. sl@0: * Interactive Tcl_Main can now operate with non-blocking stdin sl@0: * Interactive Tcl_Main can now detect EOF on stdin even in sl@0: mid-command. [Bug 491341] sl@0: * Added VFS-aware internal routines for managing the startup sl@0: script selection. sl@0: * Tcl variable 'tcl_interactive' is now linked to C variable sl@0: 'tty' so that one can disable/enable interactive prompts at sl@0: the script level when there is no startup script. This is sl@0: meant for use by the test suite. sl@0: * Consistent use of the Tcl libraries standard channels as sl@0: returned by Tcl_GetStdChannel(); as opposed to the channels sl@0: named 'stdin', 'stdout', and 'stderr' in the master interp, sl@0: which can be different or unavailable. sl@0: * Tcl_Main now calls Tcl_Exit() if evaluation of [exit] in the sl@0: master interpreter returns, assuring Tcl_Main does not sl@0: return. sl@0: * Documented Tcl_Main's absence from public stub table sl@0: * Documented that Tcl_Main does not return. sl@0: * Documented Tcl variables set by Tcl_Main. sl@0: * All prompts are done from a single procedure, Prompt. sl@0: * Use of Tcl_Obj-enabled interfaces everywhere. sl@0: sl@0: * generic/tclInt.decls (TclGetStartupScriptPath, sl@0: (TclSetStartupScriptPath): New internal VFS-aware routines for sl@0: managing the startup script of Tcl_Main. sl@0: * generic/tclIntDecls.h: sl@0: * generic/tclStubInit.c: make genstubs sl@0: sl@0: * generic/tclTest.c (TestsetmainloopCmd,TestexitmainloopCmd, sl@0: (Tcltest_Init,TestinterpdeleteCmd): sl@0: * tests/main.test (new): Added new file to test suite that thoroughly sl@0: tests generic/tclMain.c; added some new test commands for testing sl@0: Tcl_SetMainLoop(). sl@0: sl@0: 2002-01-04 Don Porter sl@0: sl@0: * doc/Alloc.3: sl@0: * doc/Concat.3: sl@0: * doc/CrtMathFnc.3: sl@0: * doc/Hash.3: sl@0: * doc/Interp.3: sl@0: * doc/LinkVar.3: sl@0: * doc/ObjectType.3: sl@0: * doc/PkgRequire.3: sl@0: * doc/Preserve.3: sl@0: * doc/SetResult.3: sl@0: * doc/SplitList.3: sl@0: * doc/SplitPath.3: sl@0: * doc/TCL_MEM_DEBUG.3: Updated documentation to describe the ckalloc, sl@0: ckfree, ckrealloc, attemptckalloc, and attemptckrealloc macros, and to sl@0: accurately describe when and how they are used. [Bug 497459] sl@0: sl@0: * generic/tclThreadJoin.c (TclRememberJoinableThread,TclJoinThread): sl@0: Replaced Tcl_Alloc and Tcl_Free calls with ckalloc and ckfree so that sl@0: memory debugging is supported. sl@0: sl@0: 2002-01-04 Daniel Steffen sl@0: sl@0: * mac/tclMacTime.c (TclpGetTZName): fix for daylight savings TZName sl@0: bug sl@0: sl@0: 2002-01-03 Don Porter sl@0: sl@0: * doc/FileSystem.3: sl@0: * generic/tclIOUtil.c: Updated some old uses of "fileName" to new VFS sl@0: terminology, "pathPtr". sl@0: sl@0: 2002-01-03 Donal K. Fellows sl@0: sl@0: * tests/basic.test (basic-39.4): Greatly simplified test while still sl@0: leaving it so that it crashes when run without the fix to the sl@0: [foreach] implementation. sl@0: * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Stopped [Bug 494348] from sl@0: happening by not trying to be so clever with cacheing; if nothing sl@0: untoward is happening anyway, the less efficient technique will only sl@0: add a few instruction cycles (one function call and a few sl@0: derefs/assigns per list per iteration, with no change in the number of sl@0: tests) and if something odd *is* going on, the code is now far more sl@0: robust. sl@0: sl@0: * tests/basic.test (basic-39.4): Reproducable script from [Bug 494348] sl@0: sl@0: 2002-01-02 Donal K. Fellows sl@0: sl@0: * tests/util.test (Wrapper_Tcl_StringMatch,util-5.*): Rewrote so the sl@0: test is performed with the right internal function since [string sl@0: match] no longer uses Tcl_StringCaseMatch internally. sl@0: sl@0: * tests/string.test (string-11.51): sl@0: * generic/tclUtf.c (Tcl_UniCharCaseMatch): sl@0: * generic/tclUtil.c (Tcl_StringCaseMatch): Fault with matching sl@0: case-insensitive non-ASCII patterns containing upper case characters. sl@0: [Bug 233257] sl@0: sl@0: ****************************************************************** sl@0: *** CHANGELOG ENTRIES FOR 2001 IN "ChangeLog.2001" *** sl@0: *** CHANGELOG ENTRIES FOR 2000 IN "ChangeLog.2000" *** sl@0: *** CHANGELOG ENTRIES FOR 1999 AND EARLIER IN "ChangeLog.1999" *** sl@0: ******************************************************************