summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* installData.tcl: Make sure that copyDir only receives normalized paths.nijtmans2010-05-213-33/+40
| | | | | | tclPlatDecls.h: Fix <tchar.h> inclusion for CYGWIN. tclPathObj.c: Fix Tcl_SetStringObj usage for CYGWIN. *.c: Fix various minor other gcc warnings, like signed<->unsigned mismatch.
* Backport of fix for [Bug 3004007], EIAS violation in list-dict conversions.ferrieux2010-05-191-3/+5
|
* Backport of fix for [Bug 3004007], EIAS violation in list-dict conversions.ferrieux2010-05-191-1/+9
|
* * generic/tclBinary.c (UpdateStringOfByteArray): Add panicdgp2010-04-301-2/+5
| | | | | when the generated string representation would grow beyond Tcl's size limits. [Bug 2994924]
* Reverted previous checin as Tcl_ObjSetVar2 (convoluted and undocumented)vasiljevic2010-04-061-2/+1
| | | | | jnterface implicitly decrements refcount of the passed result object when the passed result object refcount was already zero.
* Fixed object leakvasiljevic2010-04-061-1/+2
|
* Added VALGRIND define so we can silence helgrind race-report at placesvasiljevic2010-04-031-5/+34
| | | | we know we cheated on in order to reduce contention.
* * generic/tclThreadStorage.c (ThreadStorageGetHashTable):vasiljevic2010-04-021-12/+7
| | | | avoid accessing shared table index w/o mutex protection.
* * generic/tclStringObj.c: (SetStringFromAny): avoid tramplingvasiljevic2010-04-021-2/+4
| | | | | over the tclEmptyStringRep->bytes as it is thread-shared (thx to Gustaf Neumann for the (hard) work of locating this one).
* * generic/tclIORChan.c (ReflectClose, ReflectInput, ReflectOutput,andreas_kupries2010-03-301-47/+86
| | | | | | | | ReflectSeekWide, ReflectWatch, ReflectBlock, ReflectSetOption, ReflectGetOption, ForwardProc): [Bug 2978773]: Preserve ReflectedChannel* structures across handler invokations, to avoid crashes when the handler implementation induces nested callbacks and destruction of the channel deep inside such a nesting.
* * generic/tclObj.c (Tcl_GetCommandFromObj): [Bug 2979402]: Reorderdgp2010-03-301-2/+2
| | | | | the validity tests on internal rep of a "cmdName" value to avoid invalid reads reported by valgrind.
* * generic/tclStringObj.c: Fix array overrun in test format-1.12dgp2010-03-291-2/+2
| | | | caught by valgrind testing.
* * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-1/+21
| | | | * tests/result.test: that it rejects illegal non-list values.
* * generic/tclIO.c (CopyData): Allow the total number of bytes copieddkf2010-03-202-6/+7
| | | | by [fcopy] to exceed 2GB. Can happen when no -size parameter given.
* constification backport to silence warningdgp2010-03-191-3/+3
|
* * generic/tclListObj.c: Prevent in overflow trouble in [lreplace]dgp2010-03-182-3/+107
| | | | | * generic/tclTestObj.c: operations. Thanks to kbk for fix and test. * tests/listObj.test: [Bug 2971669].
* * generic/tclIORChan.c: [Bug 2936225]: Thanks to Alexandre Ferrieuxandreas_kupries2010-03-091-6/+27
| | | | | | * doc/refchan.n: <ferrieux@users.sourceforge.net> for debugging and fixing * tests/ioCmd.test: the problem. It is the write-side equivalent to the bug fixed 2009-08-06.
* Only look for the needle when it fits in the haystack. [Bug 2960021]dkf2010-02-271-3/+13
|
* Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-19/+41
| | | | and added test cases for it.
* [Bug 2949740]: Do not try to put a NULL pipeline channel into binary mode.dkf2010-02-111-2/+2
|
* Backport various formatting (spacing)nijtmans2010-02-079-2738/+2408
| | | | | | | changes from HEAD, so diffing between 8.5.x and 8.6 shows the real structural differences again. (any signature change not backported!)
* More corrections to the [array unset] command.dkf2010-02-031-7/+6
|
* * generic/tclCompile.c: [Bug 2933089]: A literal sharing problem withandreas_kupries2010-02-023-3/+101
| | | | | | * generic/tclCompile.h: 'info frame' affects not only 8.6 but 8.5 as * generic/tclExecute.h: well. Backported the fix done in 8.6, without * tests/info.test: changes. New testcase info-39.1.
* Ensure that decrements never assume that they can't do (actual) deletion.dkf2010-02-021-3/+7
|
* Fix [Bug 2939073]: dangling ref when an unset trace triggered by [array unset]dkf2010-02-021-20/+59
| | | | hits the next element to be deleted.
* [Bug 2942697]: Rework the RE engine so that certain pathological patterns aredkf2010-02-011-50/+41
| | | | | matched much more rapidly. Many thanks to Tom Lane for dianosing this issue and providing an initial patch.
* better panic messagenijtmans2010-02-011-9/+9
|
* Various CYGWIN-related fixesnijtmans2010-01-315-247/+260
| | | | | | | | | backported from HEAD. Still configure script not modified, so CYGWIN build is still disabled. Reason: although the build succeeds with those changes, many tests still fail.
* Fix macro conflict on CYGWIN: don't use "small".nijtmans2010-01-291-12/+12
|
* Use correct TCL_LL_MODIFIER for CYGWIN.nijtmans2010-01-292-67/+76
| | | | | Formatting (all backported from HEAD) Fix gcc 4.4 warning: ignoring return value of ‘write’,
* * generic/tclIO.c (CreateScriptRecord): [Bug 2918110]: Initializeandreas_kupries2010-01-181-6/+23
| | | | | | | | the EventScriptRecord (esPtr) fully before handing it to Tcl_CreateChannelHandler for registration. Otherwise a reflected channel calling 'chan postevent' (== Tcl_NotifyChannel) in its 'watchProc' will cause the function 'TclChannelEventScriptInvoker' to be run on an uninitialized structure.
* [Bug 2932421]: Make [format] less likely to smash intreps.dkf2010-01-181-21/+33
|
* Fix environment tests under CYGWINnijtmans2010-01-062-11/+33
|
* Various trivial fixes, discovered during CYGWIN porting attempt. All ↵nijtmans2010-01-062-4/+4
| | | | backported from trunk.
* * generic/tclPathObj.c (TclPathPart): Correct inconsistency betweendgp2010-01-051-26/+10
| | | | | | * tests/fileName.test (filename-14.31): the string rep and the intrep of a path value created by [file rootname]. Thanks to Vitaly Magerya for reporting. [Bug 2918610]
* [Bug 2895741]: Make min() and max() supported in safe interpreters.dkf2009-12-291-1/+18
|
* [Bug 942170]: Detect the st_blocks field of 'struct stat' correctly.dkf2009-12-283-36/+34
|
* [Bug 2891362]: Make time limits work better with the event loop.dkf2009-12-281-2/+12
|
* Plug testing memleak. [Bug 2895367]dkf2009-12-121-89/+110
|
* * generic/tclObj.c (TclContinuationsEnter): [Bug 2895323]: Updatedandreas_kupries2009-12-101-6/+20
| | | | | | | | comments to describe when the function can be entered for the same Tcl_Obj* multiple times. This is a continuation of the 2009-11-10 entry where a memory leak was plugged, but where not sure if that was just a band-aid to paper over some other error. It isn't, this is a legal situation.
* * generic/tclStrToD.c: Correct conditional compile directives todgp2009-12-071-4/+5
| | | | | better detect the toolchain that needs extra work for proper underflow treatment instead of merely detecting the mips platform. [Bug 2902010].
* Fix [Bug 2891556] and improve test to detect similar manifestations in the ↵ferrieux2009-11-161-6/+22
| | | | future.
* * generic/tclIO.c (CopyData): [Bug 2895565]. Dropped bogosityandreas_kupries2009-11-121-10/+13
| | | | | | which used the number of _written_ bytes or character to update the counters for the read bytes/characters. See last entry for the test case.
* * generic/tclClock.c (TclClockInit): Do not create [clock] supportdgp2009-11-121-1/+10
| | | | commands in safe interps.
* Backported fix for [Bug 2888099] (close discards ENOSPC error) byferrieux2009-11-111-2/+15
| | | | | saving the errno from the first of two FlushChannel()s. Uneasy to test; might need specific channel drivers. Four-hands with aku.
* * generic/tclBasic.c: Plug another leak in TCL_EVAL_DIRECTdgp2009-11-101-9/+9
| | | | evaluation.
* * generic/tclObj.c: Plus memory leak in TclContinuationsEnter().dgp2009-11-101-1/+12
| | | | [Bug 2895323]
* * generic/tclBasic.c (TclEvalObjEx): Plug memory leak indgp2009-11-091-7/+7
| | | | | | TCL_EVAL_DIRECT evaluation. * tests/info.test: Resolve ambiguous resolution of variable "res".
* * generic/tcl.h: Bump to 8.5.8 for release.dgp2009-11-031-3/+3
| | | | | | | | | | | | * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * README: * unix/configure: autoconf-2.59 * win/configure:
* [Bug 2889593]: Make [expr round()] give the right error.dkf2009-10-311-2/+2
|