summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-8/+8
| | | | | | | | | | | Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1965787]. 'tell' now works for locations > 2 GB as well instead of going negative. * generic/tclIO.c (Tcl_SetChannelBufferSize): Accepted a patch by * tests/io.test: Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.
* Also, panic early if we find out the wrong thread attemptingvasiljevic2008-04-271-1/+9
| | | | | to delete the async handler (common trap). As, only the one that created the handler is allowed to delete it.
* generic/tclAsync.c: Tcl_AsyncDelete(): panic if attemptvasiljevic2008-04-261-18/+26
| | | | | to locate handler token fails. Happens when some other thread attempts to delete somebody else's token.
* style revisions to latest commitdgp2008-04-171-2/+2
|
* * generic/tclCompExpr.c (CompileMathFuncCall): Addedandreas_kupries2008-04-171-1/+2
| | | | | | | * tests/compile.test (compile-16.0): Tcl_ResetResult before appending error message, to clear out possible sharing. Added test case demonstrating the crash (abort on shared object) without the fix.
* * generic/tclIO.c (CopyData): Applied another patch by Alexandreandreas_kupries2008-04-151-6/+9
| | | | | | | * io.test (io-53.8a): Ferrieux <ferrieux@users.sourceforge.net>, to shift EOF handling to the async part of the command if a callback is specified, should the channel be at EOF already when fcopy is called. Testcase by myself.
* * generic/tclExecute.c: Plug memory leak introduced in thedgp2008-04-141-2/+3
| | | | 2008-03-07 commit. [Bug 1940433]
* * README: Bump version number to 8.4.19dgp2008-04-111-3/+3
| | | | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure: * changes: updates for 8.4.19 release.
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-101-13/+8
| | | | | | | | | | | values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Added checking of -sizeandreas_kupries2008-04-091-1/+15
| | | | | | | | * tests/ioCmd.test (iocmd-15.{13,14}): value to reject negative values, and values overflowing 32-bit signed. [Bug 1557855]. Basic patch by Alexandre Ferrieux <ferrieux@users.sourceforge.net>, with modifications from me to separate overflow from true negative value. Extended testsuite.
* * tests/io.test (io-53.10): Testcase for bi-directionaly fcopy.andreas_kupries2008-04-072-29/+42
| | | | | | | * generic/tclIO.c: Additional changes to data structures for fcopy * generic/tclIO.h: and channels to perform proper cleanup in case of a channel having two background copy operations running as is now possible.
* * generic/tclIO.c (BUSY_STATE, CheckChannelErrors,andreas_kupries2008-04-071-4/+8
| | | | | | | | | | | TclCopyChannel): New macro, and the places using it. This change allows for bi-directional fcopy on channels. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for the patch. * tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. Backported from Kevin Kenny's change to the same test on the 8.5 and head branches.
* * generic/tclIO.c (CopyData): Applied patch [Bug 1932639] toandreas_kupries2008-04-031-13/+23
| | | | | | * tests/io.test: prevent fcopy from calling -command synchronously the first time. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for report and patch.
* * generic/tclIO.c (CopyData): Applied patch for the fcopy problemandreas_kupries2008-04-021-2/+2
| | | | | | | [Bug 780533], with many thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for tracking it down and providing a solution. Still have to convert his test script into a proper test case.
* Backported fix for #1923966patthoyts2008-03-241-2/+4
|
* typodgp2008-03-101-3/+3
|
* * generic/tclExecute.c (Tcl_ExprObj): Revised expression bytecodedgp2008-03-071-31/+103
| | | | | | compiling so that bytecodes invalid due to changing context or due to the difference between expressions and scripts are not reused. [Bug 1899164].
* * generic/tclTest.c: Backport the [testexprlongobj] testing command.dgp2008-03-071-1/+48
|
* * generic/tclIOCmd.c (Tcl_GetsObjCmd): do not reuse resultObj ashobbs2008-02-261-4/+3
| | | | it may be shared (crash condition).
* *** 8.4.18 TAGGED FOR RELEASE ***core_8_4_18dgp2008-02-061-3/+3
| | | | | | | | | | | | | | | * README: Bump version number to 8.4.18 * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure: * changes: updates for 8.4.18 release.
* * generic/tclInterp.c (Tcl_GetAlias): fix for [Bug 1882373]Miguel Sofer2008-01-301-2/+2
|
* Fixes for problems created when processing regular expressions thatdkf2007-12-185-14/+87
| | | | | | | generate very large automata. An enormous number of thanks to Will Drewry <wad@google.com>, Tavis Ormandy <taviso@google.com>, and Tom Lane <tgl@sss.pgh.pa.us> from the Postgresql crowd for their help in tracking these problems down. [Bug 1810264]
* * generic/tclIOUtil.c (TclGetOpenMode): Only set the O_APPEND flaghobbs2007-12-141-2/+6
| | | | | * tests/ioUtil.test (ioUtil-4.1): on a channel for the 'a' mode and not for 'a+'. [Bug 1773127] (backport from HEAD)
* Prevent shimmering crash in [lsearch] when -exact and -integer/-real aredkf2007-12-051-1/+3
| | | | mixed. [Bug 1844789]
* * generic/tclThread.c: Back-port locking changes from Tcl8.5vasiljevic2007-11-261-1/+11
| | | | | in Tcl_Mutex/ConditionFinlize. Now we properly master-lock the finalization of sync primitives.
* * generic/regc_nfa.c: Fixed infinite loop in the regexp compilerdgp2007-11-152-10/+54
| | | | | | | * generic/regcomp.c: [Bug 1810038]. Corrected looping logic in * tests/regexp.test: fixempties() to avoid wasting time walking a list of dead states [Bug 1832612]. Convert optst() from expensive no-op to a cheap no-op. Improve newline usage in debug output.
* Backport of fix for first part of [Bug 1810264]dkf2007-10-301-1/+1
|
* * generic/tclParse.c (Tcl_ParseBraces): fix for possible readMiguel Sofer2007-10-151-2/+2
| | | | after the end of buffer, [Bug 1813528] (Joe Mistachkin).
* * generic/tclObj.c (Tcl_FindCommandFromObj): fix finding a deletedMiguel Sofer2007-10-031-2/+3
| | | | | | command; cannot trigger this from Tcl itself, but crash reported on xotcl. This check is new to 8.4 but exists in 8.5, so this is a backport or something. Thanks Gustaf Neumann.
* * generic/tcl.h (Tcl_DecrRefCount): Update change from 2006-05-29hobbs2007-10-021-3/+4
| | | | to make macro more warning-robust in unbraced if code.
* * README: Bump version number to 8.4.17dgp2007-10-021-3/+3
| | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure:
* s/amount/amt/ [Bug 1800153]das2007-09-221-2/+2
|
* * generic/tclPkg.c: Backport fix for [1573844] to thedgp2007-09-191-802/+484
| | | | * tests/pkg.test: TCL_TIP268 sections.
* whitespacedas2007-09-131-2/+2
|
* * generic/tclDTrace.d (new file): add DTrace provider for Tcl; allowsdas2007-09-137-11/+424
| | | | | | | | | | | | | | | * generic/tclCompile.h: tracing of proc and command entry & * generic/tclBasic.c: return, bytecode execution, object * generic/tclExecute.c: allocation and more; with essentially * generic/tclInt.h: zero cost when tracing is inactive; * generic/tclObj.c: enable with --enable-dtrace configure * generic/tclProc.c: arg (disabled by default, will only * unix/Makefile.in: enable if DTrace is present). * unix/configure.in: [Patch 1793984] * macosx/Makefile: enable DTrace support. * unix/configure: autoconf-2.13
* * generic/tclLink.c (Tcl_UpdateLinkedVar): guard against var beinghobbs2007-09-101-2/+9
| | | | unlinked. [Bug 1740631] (maros)
* * generic/tclClock.c (FormatClock): Claimed additional space forKevin B Kenny2007-08-251-1/+4
| | | | | | the %c format code to avoid a buffer overrun when formatting (for example) a Friday in February in the Portuguese locale. [Bug 1751117]
* * generic/tclCompile.c: replaced copy loop that tripped someMiguel Sofer2007-08-241-5/+5
| | | | compilers with memmove [Bug 1780870]
* ensure WORDS_BIGENDIAN redefinition is consistent with autoconf definitiondas2007-08-231-2/+2
|
* * generic/tclEnv.c: improve environ handling on Mac OS X (adapteddas2007-08-071-23/+1
| | | | * unix/tclUnixPort.h: from Apple changes in Darwin tcl-64).
* * generic/tclParse.c: In contexts where interp and parsePtr->interpdgp2007-07-191-8/+8
| | | | might be different, be sure to use the latter for error reporting.
* De-fang an instance of the shared-result anti-pattern. [Bug 1716704]dkf2007-06-301-1/+5
|
* Prevent RemeberSyncObj() from growing the syncvasiljevic2007-06-301-3/+14
| | | | | object lists by reusing already free'd slots, if possible. See discussion on Bug 1726873 for more information.
* * generic/tclAlloc.c: on Darwin, ensure memory allocated bydas2007-06-292-50/+65
| | | | | * generic/tclThreadAlloc.c: the custom TclpAlloc()s is aligned to 16 byte boundaries (as is the case with the Darwin system malloc).
* * generic/tclCmdMZ.c: Corrected broken trace reversal logic indgp2007-06-272-7/+22
| | | | | | * generic/tclTest.c: TclCheckInterpTraces that led to infinite loop * tests/basic.test: when multiple Tcl_CreateTrace traces were set and one of them did not fire due to level restrictions. [Bug 1743931].
* * README: Bump version number to 8.4.16dgp2007-05-301-3/+3
| | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure:
* * generic/tclIO.c: Backport memleak fix in TclFinalizeIOSubsystem.dgp2007-05-241-74/+79
|
* * generic/tclNamesp.c: Plugged memory leak related todgp2007-05-151-2/+8
| | | | [namespace delete ::]. [Bug 1716782]
* * generic/tclInt.h: TclFinalizeThreadAlloc() is always defined,dgp2007-05-101-2/+2
| | | | so make sure it is also always declared.
* [Tcl Bug 1706140]dgp2007-05-104-53/+35
| | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c (Trace*Proc): Update Tcl_VarTraceProcs so * generic/tclLink.c (LinkTraceProc): that they call * generic/tclUtil.c (TclPrecTraceProc): Tcl_InterpDeleted() for themselves, and do not rely on (frequently buggy) setting of the TCL_INTERP_DESTROYED flag by the trace core. * generic/tclVar.c: Update callers of CallVarTraces to not pass in the TCL_INTERP_DESTROYED flag. Also apply filters so that public routines only pass documented flag values down to lower level routines. * generic/tclVar.c (CallVarTraces): The setting of the TCL_INTERP_DESTROYED flag is now done entirely within the CallVarTraces routine, the only place it can be done right.