summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* regendkf2009-06-182-2/+13
|
* Apply patch from [Bug 988703]. Many thanks to Joe Mistachkin for development.dkf2009-06-185-11/+171
|
* Applied a patch by George Peter Staplin drastically reducing the ambition of ↵ferrieux2009-06-171-33/+65
| | | | [exit] wrt finalization, and thus solving many multi-thread teardown issues [Bugs 2001201, 486399, and possibly 597575, 990457, 1437595, 2750491].
* * generic/tclStringObj.c: sprintf() -> Tcl_ObjPrintf() conversion.dgp2009-06-151-5/+3
|
* * generic/tclCompile.c: The value stashed in iPtr->compiledProcPtrdgp2009-06-132-5/+3
| | | | | | | | | | | | | * 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].
* * generic/tclStringObj.c: Revised [format] to not overflow thedgp2009-06-101-8/+69
| | | | | | | integer calculations computing the length of the %ll formats of really big integers. Also added protections so that [format]s that would produce results overflowing the maximum string length of Tcl values throw a normal Tcl error instead of a panic. [Bug 2801413]
* * generic/tclStringObj.c: Corrected failures to deal with thedgp2009-06-101-22/+10
| | | | | "pure unicode" representation of an empty string. Thanks to Julian Noble for reporting the problem. [Bug 2803109]
* * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-092-280/+464
| | | | | | | | | | * library/clock.tcl: Bison parser (needed a %pure-parser * tests/clock.test: declaration to avoid static variables). Discovered that the %pure-parser declaration allowed for returning the Bison error message to the Tcl caller in the event of a syntax error, so did so. * generic/tclDate.c: bison 2.3
* fix signed vs unsigned comparison warningsdas2009-06-031-12/+12
|
* * generic/tclExecute.c: Replace dynamically-initialized table withdgp2009-06-021-44/+10
| | | | | a table of static constants in the lookup table for exponent operator computations that fit in a 64 bit integer result.
* * generic/tclExecute.c: Corrected implementations and selectiondgp2009-06-021-41/+63
| | | | logic of the INST_EXPON instruction to fix [Bug 2798543].
* fix TCL_COMPILE_DEBUG 64bit warningsdas2009-05-161-5/+5
|
* Added more introspection: ability to look up namespace of an object.dkf2009-05-151-1/+36
|
* Fix [Bug 2414858].dkf2009-05-083-3/+13
|
* * generic/tclObj.c (Tcl_GetCommandFromObj): fix for bug [2785893],Miguel Sofer2009-05-081-1/+2
| | | | | insure that a command in a deleted namespace cannot be found through a cached name.
* * generic/tclBasic.c: Let coroutines start with a much smallerMiguel Sofer2009-05-083-12/+16
| | | | | * generic/tclCompile.h: stack: 200 words (previously was 2000, * generic/tclExecute.c: the same as interps)
* * generic/tclCmdMZ.c: Improve overflow error message fromdgp2009-05-062-3/+6
| | | | [string repeat]. [Bug 2582327]
* Missed a spot.dkf2009-05-051-2/+4
|
* Stop deletion of support namespaces leading to a potential crash.dkf2009-05-042-11/+66
|
* * generic/tclBasic.c (TclObjInvoke): Make sure that a null objProcMiguel Sofer2009-04-301-2/+7
| | | | is not used, use Tcl_NRCallObjProc instead [Bug 2486550].
* Revert last commit which fails to build with msvc2005 and msvc6patthoyts2009-04-291-4/+4
|
* Fix [Bug 2651823].dkf2009-04-291-4/+4
|
* Reset internal INTERP_ALTERNATE_WRONG_ARGSnijtmans2009-04-272-4/+3
| | | | | flag inside the Tcl_WrongNumArgs function, so the caller no longer has to do the reset.
* Clarify the rules for resolution of what forwarded methods forward to.dkf2009-04-112-7/+27
|
* * macosx/tclMacOSXNotify.c: revise CoreFoundation notifier to allowdas2009-04-103-3/+18
| | | | | | | | | | | | | | | | | | * unix/tclUnixChan.c: embedding into applications that * unix/tclUnixEvent.c: already have a CFRunLoop running and want to run the tcl event loop via Tcl_ServiceModeHook(TCL_SERVICE_ALL). * macosx/tclMacOSXNotify.c: add CFRunLoop based Tcl_Sleep() and * unix/tclUnixChan.c: TclUnixWaitForFile() implementations * unix/tclUnixEvent.c: and disable select() based ones in CoreFoundation builds. * unix/tclUnixNotify.c: simplify, sync with tclMacOSXNotify.c. * generic/tclInt.decls: add TclMacOSXNotifierAddRunLoopMode() * generic/tclIntPlatDecls.h: internal API, regen. * generic/tclStubInit.c:
* * generic/tclStringObj.c: Correction so that value ofdgp2009-04-071-2/+2
| | | | TCL_GROWTH_MIN_ALLOC is everywhere expressed in bytes as comment claims.
* * generic/tclPathObj.c (TclPathPart): TclPathPart() was computingdgp2009-03-271-3/+29
| | | | | | * tests/fileName.test: the wrong results for both [file dirname] and [file tail] on "path" arguments with the PATHFLAGS != 0 intrep and with an empty string for the "joined-on" part. [Bug 2710920]
* Fix [Bug 2704302]dkf2009-03-241-14/+5
|
* Fix [Bug 2673163]dkf2009-03-242-11/+49
|
* * generic/tclBasic.c: NR-enable the handling of unknown commandsMiguel Sofer2009-03-221-19/+44
| | | | [Bug 2502037].
* * generic/tclBasic.c: fixed "leaks" in aliases, imports andMiguel Sofer2009-03-214-5/+15
| | | | | | | * 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-211-4/+2
| | | | | | * 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.
* * generic/tclBasic.c: Fix for (among others) [Bug 2699087]Miguel Sofer2009-03-214-31/+78
| | | | | | | | | * 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-211-8/+11
| | | | | | * 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-211-1/+9
| | | | * tests/tailcall.test: from within a compiled [eval] body.
* * generic/tclExecute.c (INST_CONCAT1): Panic when appends overflowdgp2009-03-201-5/+17
| | | | the max length of a Tcl value. [Bug 2669109]
* * generic/tcl.h:Miguel Sofer2009-03-195-194/+136
| | | | | | | | | | | | | | * 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.
* * generic/tclVar.c (TclLookupSimpleVar): Shift all calls todgp2009-03-181-7/+2
| | | | | | 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-161-27/+34
|
* revise fix for [Bug 2687952]Joe Mistachkin2009-03-162-7/+4
|
* Fix [Bug 2687952]dkf2009-03-152-5/+20
|
* Added support for SIGINFO. [Patch 1513655]dkf2009-03-151-1/+7
|
* * generic/tclBasic.c (TclNRCoroutineObjCmd): fix Tcl_Obj leak.Miguel Sofer2009-03-111-2/+1
| | | | Diagnose and fix thx to GPS.
* Move the implementation of [try] from Tcl to C. Not yet bytecoded.dkf2009-03-093-8/+504
|
* Related correctionsdkf2009-03-041-4/+4
|
* Fix bug 2662434dkf2009-03-041-3/+5
|
* [Bug 218977] Tcl_DbCkfree needs a return valuenijtmans2009-02-277-45/+41
| | | | don't use CONST84/CONST86 in internal header files
* * generic/tclUtil.c (TclStringMatchObj): Revised the branchingdgp2009-02-251-3/+4
| | | | | | | 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-252-27/+10
| | | | | * generic/tclExecute.c: optimizations for the tclByteArrayType, stop having the callers do them.
* * generic/tclStringObj.c: Several revisions to the shimmeringdgp2009-02-221-17/+65
| | | | | | | | | | | | | 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.