summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclCompile.c: The value stashed in iPtr->compiledProcPtrdgp2009-06-134-8/+31
| | | | | | | | | | | | | * generic/tclProc.c: when compiling a proc survives too long. We * tests/execute.test: only need it there long enough for the right TclInitCompileEnv() call to re-stash it into envPtr->procPtr. Once that is done, the CompileEnv controls. If we let the value of iPtr->compiledProcPtr linger, though, then any other bytecode compile operation that takes place will also have its CompileEnv initialized with it, and that's not correct. The value is meant to control the compile of the proc body only, not other compile tasks that happen along. Thanks to Carlos Tasada for discovering and reporting the problem. [Bug 2802881].
* * unix/tcl.m4, unix/configure (SC_CONFIG_CFLAGS): harden the checkhobbs2009-04-283-357/+364
| | | | to add _r to CC on AIX with threads.
* Backport fix for [Bug 1028264]: WSACleanup() too early. The fix introduces ↵ferrieux2009-04-274-10/+119
| | | | "late exit handlers" for similar late process-wide cleanups.
* Backport fix for [Bug 2446662]: resync Win behavior on RST with that of unix ↵ferrieux2009-04-272-2/+19
| | | | (EOF).
* * generic/tclStringObj.c (UpdateStringOfString): Added cast to fixandreas_kupries2009-04-222-2/+7
| | | | signed/unsigned mismatch breaking win32 symbol/debug build.
* UpdateStringOfString: matchup with core-8-5-branch changesdas2009-04-151-6/+6
|
* * generic/tclStringObj.c: AppendUnicodeToUnicodeRep faileddgp2009-04-152-1/+7
| | | | to set stringPtr->allocated to 0, leading to crashes.
* Regen unix/configurestwo2009-04-141-1/+1
|
* Removed -Wno-implicit-int from CFLAGS_WARNING.stwo2009-04-142-1/+5
|
* * library/tcltest/tcltest.tcl: Fixed unsafe [eval]s in the tcltestdgp2009-04-083-8/+13
| | | | * library/tcltest/pkgIndex.tcl: package. [Bug 2570363]
* * generic/tclStringObj.c: Completed backports of fixes fordgp2009-04-072-66/+118
| | | | [Bug 2494093] and [Bug 2553906].
* * doc/Alloc.3: Size argument is "unsigned int". [Bug 2556263]dgp2009-03-302-2/+4
|
* * generic/tclStringObj.c: Added protections from invalid memorydgp2009-03-304-4/+139
| | | | | | | * generic/tclTestObj.c: accesses when we append (some part of) * tests/stringObj.test: a Tcl_Obj to itself. Added the appendself and appendself2 subcommands to the [teststringobj] testing command and added tests to the test suite. [Bug 2603158]
* * tests/fileName.test: Tests for [Bug 2710920] to guard againstdgp2009-03-272-1/+18
| | | | its appearance.
* * generic/tclStringObj.c: Test stringObj-6.9 checks thatdgp2009-03-213-3/+19
| | | | | * tests/stringObj.test: Tcl_AppendStringsToObj() no longer crashes when operating on a pure unicode value. [Bug 2597185]
* * generic/tclExecute.c (INST_CONCAT1): Panic when appends overflowdgp2009-03-202-2/+13
| | | | the max length of a Tcl value. [Bug 2669109]
* * win/tclWinFile.c (TclpObjNormalizePath): Corrected Tcl_Obj leak.dgp2009-03-182-2/+17
| | | | Thanks to Joe Mistachkin for detection and patch. [Bug 2688184].
* * generic/tclPathObj.c: Fixed mistaken logic in TclFSGetPathType()dgp2009-02-203-2/+25
| | | | | | * tests/fileName.test: that assumed (not "absolute" => "relative"). This is a false assumption on Windows, where "volumerelative" is another possibility. [Bug 2571597].
* * generic/tcl.h (Darwin): workaround conflict between deprecated tcldas2009-02-062-1/+7
| | | | panic macro and panic() function declaration in <mach/mach.h> header.
* * generic/tclStringObj.c: Added overflow protections to thedgp2009-02-052-4/+35
| | | | | AppendUtfToUtfRep routine to either avoid invalid arguments and crashes, or to replace them with controlled panics. [Bug 2561794]
* * generic/tclStringObj.c (SetUnicodeObj): Corrected failure ofdgp2009-02-042-46/+40
| | | | | Tcl_SetUnicodeObj() to panic on a shared object. [Bug 2561488]. Also factored out common code to reduce duplication.
* typodgp2009-01-141-2/+2
|
* * generic/tclStringObj.c (STRING_SIZE): Corrected failure to limitdgp2009-01-092-4/+13
| | | | | memory allocation requests to the sizes that can be supported by Tcl's memory allocation routines. [Bug 2494093].
* * generic/tclStringObj.c (STRING_UALLOC): Added missing parensdgp2009-01-082-2/+8
| | | | | required to get correct results out of things like STRING_UALLOC(num + append). [Bug 2494093].
* Tcl_MacOSXOpenVersionedBundleResources: Fix leak, simplify logicdas2008-12-071-28/+36
|
* * generic/tclIOUtil.c (Tcl_FSGetNormalizedPath): Added anotherdgp2008-12-042-11/+84
| | | | | flag value TCLPATH_NEEDNORM to mark those intreps which need more complete normalization attention for correct results. [Bug 2385549]
* * generic/tclFileName.c (TclDoGlob): One of thedgp2008-12-032-4/+12
| | | | | | | Tcl_FSMatchInDirectory() calls did not have its return code checked. Some VFS drivers can return TCL_ERROR, and when that's not checked, the error message gets converted into a list of matching files returned by [glob], with ridiculous results.
* * generic/tclIO.c (TclFinalizeIOSubsystem): Revised latest commit todgp2008-12-012-3/+8
| | | | something that doesn't crash the test suite.
* * generic/tclIO.c (TclFinalizeIOSubsystem): Applied backport ofandreas_kupries2008-11-252-2/+9
| | | | | | Alexandre Ferrieux's patch for [Bug 2270477] to prevent infinite looping during finalization of channels not bound to interpreters.
* * generic/tclIO.c: Backport of fix for [Bug 2333466].andreas_kupries2008-11-232-2/+8
|
* * generic/tclPort.h: remove the ../{win,unix}/ header dirs as thehobbs2008-11-042-3/+9
| | | | | build system already has it, and it confuses builds when used with private headers installed.
* * doc/global.n: Correct false claim about [info locals].dgp2008-09-252-3/+8
|
* * tests/fileName.test: Revise new tests for portability to casedgp2008-08-142-4/+9
| | | | insensitive filesystems.
* * generic/tclCompile.h: add support for debug logging of DTracedas2008-08-143-3/+119
| | | | | * generic/tclBasic.c: 'proc', 'cmd' and 'inst' probes (does _not_ require a platform with DTrace).
* autoconf-2.13das2008-08-131-1/+5
|
* * unix/Makefile.in: ensure Makefile shell is /bin/bash fordas2008-08-133-3/+17
| | | | | * unix/configure.in (SunOS): DTrace-enabled build on Solaris. (followup to 2008-06-12) [Bug 2016584]
* * unix/tcl.m4 (SC_PATH_X): check for libX11.dylib in addition todas2008-08-131-1/+1
| | | | libX11.so et al.
* * generic/tclFileName.c: Fix for errors handling -types {}dgp2008-08-133-3/+51
| | | | | * tests/fileName.test: option to [glob]. [Bug 1750300] Thanks to Matthias Kraft and George Peter Staplin.
* * generic/tclProc.c (Tcl_ProcObjCmd): Fixed memory leak triggeredandreas_kupries2008-08-113-10/+62
| | | | | | * tests/proc.test: by procbody::test::proc. See [Bug 2043636]. Added a test case demonstrating the leak before the fix. Fixed a few spelling errors in test descriptions as well.
* * generic/tclBasic.c: Added missing release of extended commandandreas_kupries2008-07-284-98/+146
| | | | | | | | | | | | | | | word index when deleting an interpreter (DeleteInterpProc). Added missing ref count when creating an empty string as path (EvalEx). * generic/tclCompile.c (TclInitCompileEnv): Made same change to control flow as in TclEvalObjEx. Not needed while uplevel and siblings go through the eval-direct code path, however if that changes (like it did in 8.5+) better to have this in place instead of re-searching why certain places are without absolute locations. * tests/info.test: Added tests 38.*, exactly testing the tracking of location for uplevel scripts, and made the testsuite fully usable with and without -singleproc 1.
* * tests/info.test: Add !singleTestInterp constraint to various tests;das2008-07-252-27/+33
| | | | | (info-22.8, info-23.0): switch to glob matching to avoid sensitivity to tcltest.tcl line number changes. [Bug 1605269]
* * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-242-1/+91
| | | | of location for uplevel scripts.
* Contrain the new test to run only when tip280 is active.andreas_kupries2008-07-231-2/+2
|
* * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-235-33/+79
| | | | | | | | | | * generic/tclCmdIL.c: immediately, without search. Reworked setup * generic/tclCompile.c: of eoFramePtr, doesn't need the line * tests/info.test: information, more sensible to have everything on line 1 when eval'ing a pure list. Updated the users of the line information to special case this based on the frame type (i.e. TCL_LOCATION_EVAL_LIST). Added a testcase demonstrating the new behaviour.
* Fixed the failure to link in the default (non-TCL_TIP280) build.dgp2008-07-231-1/+3
|
* * generic/tclBasic.c: Added missing function comments.andreas_kupries2008-07-222-3/+44
|
* * generic/tclCompile.c: Made the new TclEnterCmdWordIndexandreas_kupries2008-07-223-11/+14
| | | | * generic/tclCompile.h: static.
* * generic/tclBasic.c: Reworked the handling of bytecode literalsandreas_kupries2008-07-226-59/+169
| | | | | | | | | | * generic/tclCompile.c: for #280 to fix the abysmal performance * generic/tclCompile.h: for deep recursion, replaced the linear * generic/tclExecute.c: search through the whole stack with * generic/tclInt.h: another hashtable and simplified the data structure used by the compiler (array instead of hashtable). Incidentially this also fixes the memory leak reported via [Bug 2024937].
* * generic/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-2110-56/+391
| | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c:
* * generic/tclCmdIL.c (InfoFrameCmd): Fixed unsafe idiom of settingandreas_kupries2008-07-072-2/+7
| | | | the interp result found by Don Porter.