summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Documented [coroutine] and [yield]. [Bug 2152285]dkf2009-03-252-0/+113
|
* Fix [Bug 2704302]dkf2009-03-244-19/+39
|
* Fix [Bug 2673163]dkf2009-03-244-121/+161
|
* * generic/tclBasic.c: NR-enable the handling of unknown commandsMiguel Sofer2009-03-222-19/+49
| | | | [Bug 2502037].
* removed extra cleanupTests callMiguel Sofer2009-03-211-5/+1
|
* forgot one file :}Miguel Sofer2009-03-211-2/+25
|
* * generic/tclBasic.c: fixed "leaks" in aliases, imports andMiguel Sofer2009-03-215-5/+21
| | | | | | | * generic/tclInt.h: ensembles. Only remaining known leak * generic/tclInterp.c: is in ensemble unknown dispatch (as it * generic/tclNamesp.c: not NR-enabled) * tests/tailcall.test:
* * tclInt.h: commentsMiguel Sofer2009-03-213-6/+96
| | | | | | * tests/tailcall.test: added tests to show that [tailcall] does not currently always execute in constant space: interp-alias, ns-imports and ensembles "leak" as of this commit.
* * tests/nre.test: [foreach] has been NR-enabled for a while, theMiguel Sofer2009-03-212-2/+5
| | | | test was marked 'knownBug': unmark it.
* * generic/tclBasic.c: Fix for (among others) [Bug 2699087]Miguel Sofer2009-03-216-34/+99
| | | | | | | | | * generic/tclCmdAH.c: Tailcalls now perform properly even from * generic/tclExecute.c: within [eval]ed scripts. * generic/tclInt.h: More tests missing, as well as proper exploration and testing of the interaction with "redirectors" like interp-alias (suspect that it does not happen in constant space) and pure-eval commands.
* * generic/tclExecute.c: proper fix for [Bug 2415422]. ReenabledMiguel Sofer2009-03-213-9/+34
| | | | | | * tests/nre.test: the failing assertion that was disabled on 2008-12-18: the assertion is correct, the fault was in the management of expansions.
* * generic/tclExecute.c: fix both test and code for tailcallMiguel Sofer2009-03-213-5/+18
| | | | * tests/tailcall.test: from within a compiled [eval] body.
* * tests/stringObj.test: Test stringObj-6.9 checks thatdgp2009-03-212-1/+11
| | | | | Tcl_AppendStringsToObj() no longer crashes when operating on a pure unicode value. [Bug 2597185]
* * tests/tailcall.test: slightly improved testsMiguel Sofer2009-03-212-5/+31
|
* * generic/tclExecute.c (INST_CONCAT1): Panic when appends overflowdgp2009-03-202-5/+22
| | | | the max length of a Tcl value. [Bug 2669109]
* * generic/tcl.h:Miguel Sofer2009-03-198-594/+609
| | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclNamesp.c (Tcl_PopCallFrame): Rewritten tailcall implementation, ::unsupported::atProcExit is (temporarily?) gone. The new approach is much simpler, and also closer to being correct. This commit fixes [Bug 2649975] and [Bug 2695587]. * tests/coroutine.test: Moved the tests to their own files, * tests/tailcall.test: removed the unsupported.test. Added * tests/unsupported.test: tests for the fixed bugs.
* Added documentation for tailcall.dkf2009-03-192-0/+73
|
* * win/tclWinFile.c (TclpObjNormalizePath): Corrected Tcl_Obj leak.dgp2009-03-182-2/+15
| | | | Thanks to Joe Mistachkin for detection and patch. [Bug 2688184].
* * generic/tclVar.c (TclLookupSimpleVar): Shift all calls todgp2009-03-182-7/+9
| | | | | | Tcl_SetErrorCode() out of TclLookupSimpleVar and onto its callers, where control with TCL_LEAVE_ERR_MSG flag is more easily handled. [Bug 2689307]
* Fix [Bug 2688063]dkf2009-03-162-27/+39
|
* revise fix for [Bug 2687952]Joe Mistachkin2009-03-163-7/+10
|
* Fix [Bug 2687952]dkf2009-03-153-5/+24
|
* Added support for SIGINFO. [Patch 1513655]dkf2009-03-152-1/+12
|
* regendkf2009-03-141-1/+2
|
* Added support for reporting TEA-like info via pkg-config.dkf2009-03-144-6/+35
|
* * generic/tclBasic.c (TclNRCoroutineObjCmd): fix Tcl_Obj leak.Miguel Sofer2009-03-112-2/+6
| | | | Diagnose and fix thx to GPS.
* Move the implementation of [try] from Tcl to C. Not yet bytecoded.dkf2009-03-096-204/+524
|
* Related correctionsdkf2009-03-042-4/+5
|
* Fix bug 2662434dkf2009-03-043-4/+14
|
* [Bug 218977] Tcl_DbCkfree needs a return valuenijtmans2009-02-278-45/+51
| | | | don't use CONST84/CONST86 in internal header files
* * generic/tclUtil.c (TclStringMatchObj): Revised the branchingdgp2009-02-252-3/+10
| | | | | | | on the strObj->typePtr so that untyped values get converted to the "string" type and pass through the Unicode matcher. [Bug 2613766] Also added checks to only perform "bytearray" optimization on pure bytearray values. [Bug 2637173].
* * generic/tclCmdMZ.c: Since Tcl_GetCharLength() has its owndgp2009-02-253-27/+16
| | | | | * generic/tclExecute.c: optimizations for the tclByteArrayType, stop having the callers do them.
* General minor documentation improvements.dkf2009-02-249-60/+82
|
* Update to installed module version numberdkf2009-02-242-6/+6
|
* Added support for 8.6's zlib integration.dkf2009-02-243-138/+182
|
* Revert commits of 20080723. Those were speed tests, that are inherently ↵ferrieux2009-02-223-19/+7
| | | | brittle.
* * generic/tclStringObj.c: Several revisions to the shimmeringdgp2009-02-222-17/+79
| | | | | | | | | | | | | patterns between Unicode and UTF string reps. Most notably the call: objPtr = Tcl_NewUnicodeObj(...,0); followed by a loop of calls: Tcl_AppendUnicodeToObj(objPtr, u, n); will now grow and append to the Unicode representation. Before this commit, the sequence would convert each append to UTF and perform the append to the UTF rep. This is puzzling and likely a bug. The performance of [string map] is significantly improved by this change (according to the MAP collection of benchmarks in tclbench). Just in case there was some wisdom in the old ways that I missed, I left in the ability to restore the old patterns with a #define COMPAT 1 at the top of the file.
* * generic/tclPathObj.c: Fixed mistaken logic in TclFSGetPathType()dgp2009-02-203-2/+24
| | | | | | * tests/fileName.test: that assumed (not "absolute" => "relative"). This is a false assumption on Windows, where "volumerelative" is another possibility. [Bug 2571597].
* alternative solution to the signed/unsigned warningsdgp2009-02-191-5/+5
|
* fix signed/unsigned comparison warningsdas2009-02-191-4/+4
|
* * generic/tclStringObj.c: Simplify the logic of thedgp2009-02-182-66/+34
| | | | Tcl_*SetObjLength() routines.
* another TODOdgp2009-02-181-1/+2
|
* * generic/tclStringObj.c: Rewrite GrowStringBuffer() so that itdgp2009-02-182-16/+30
| | | | | | | | has parallel structure with GrowUnicodeBuffer(). The revision permits allocation attempts to continue all the way up to failure, with no gap. It also directly manipulates the String and Tcl_Obj internals instead of inefficiently operating via Tcl_*SetObjLength() with all of its extra protections and underdocumented special cases.
* * generic/tclStringObj.c: Another round of simplification ondgp2009-02-181-21/+21
| | | | the allocation macros.
* * generic/tclStringObj.c: Another round of simplification ondgp2009-02-182-29/+30
| | | | the allocation macros.
* * generic/tclStringObj.c: Pare back the length of the unicodedgp2009-02-172-12/+17
| | | | | | | | array in a non-extended String struct to one Tcl_UniChar, meant to hold the terminating NUL character. Non-empty unicode strings are then stored by extending the String struct by stringPtr->maxChars additional slots in that array with sizeof(Tcl_UniChar) bytes per slot. This revision makes the allocation macros much simpler.
* * generic/tclStringObj.c: Factor out common GrowUnicodeBuffer()dgp2009-02-172-44/+54
| | | | and solve overflow and growth algorithm fallbacks in it.
* * win/tcl.m4, win/configure: Check if cl groks _WIN64 already tohobbs2009-02-173-6/+189
| | | | | avoid CC manipulation that can screw up later configure checks. Use 'd'ebug runtime in 64-bit builds.
* * generic/tclStringObj.c: Factor out common GrowStringBuffer().dgp2009-02-173-152/+60
| | | | | | | | | | | * generic/tclStringObj.c: Convert Tcl_AppendStringsToObj into * tests/stringObj.test: a radically simpler implementation where we just loop over calls to Tcl_AppendToObj. This fixes [Bug 2597185]. It also creates a *** POTENTIAL INCOMPATIBILITY *** in that T_ASTO can now allocate more space than is strictly required, like all the other Tcl_Append* routines. The incompatibility was detected by test stringObj-6.5, which I've updated to reflect the new behavior.
* * generic/tclStringObj.c: Revise buffer growth implementationdgp2009-02-172-21/+46
| | | | | | | in ExtendStringRepWithUnicode. Use cheap checks to determine that no reallocation is necessary without cost of computing the precise number of bytes needed. Also make use of the string growth algortihm in the case of repeated appends.