summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdMZ.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Fix crash in [string map] when objects are shared. [Bug 1018562]dkf2004-08-301-5/+21
| | |
| | * * generic/tclCmdMZ.c (TclCheckInterpTraces): The TIP 62dgp2004-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclTest.c (TestcmdtraceCmd): implementation introduced a * tests/basic.test (basic-39.10): bug by testing the CallFrame level instead of the iPtr->numLevels level when deciding what traces created by Tcl_Create(Obj)Trace to call. Added test to expose the error, and made fix. [Request 462580]
| | * * generic/tclCmdMZ.c (TclTraceExecutionObjCmd)hobbs2004-02-171-6/+4
| | | | | | | | | | | | (TclTraceCommandObjCmd): fix possible mem leak in trace info.
| | * regsub fixvincentdarley2003-10-141-2/+13
| | |
| | * * generic/tclBasic.c: Fixed error in ref count management of commanddgp2003-10-031-16/+65
| | | | | | | | | | | | | | | * generic/tclCmdMZ.c: and execution traces that caused access to freed memory in trace-32.1. [Bug 811483].
| | * * generic/tclCmdMZ.c (): Fixed [Bug 807243] wheredgp2003-09-241-1/+17
| | | | | | | | | | | | | | | | | | * tests/trace.test (trace-31,32.*): the introspection results of both [trace info command] and [trace info execution] were getting co-mingled. Thanks to Mark Saye for the report.
| | * Removed trivially-unreachable line [Bug 771939]dkf2003-07-161-2/+1
| | |
| | * backport of regsub empty string fixesvincentdarley2003-06-171-6/+16
| | |
| | * * generic/tclCmdMZ.c (Tcl_StringObjCmd): prevent string repeathobbs2003-05-101-1/+10
| | | | | | | | | | | | crash when overflow sizes were given (throws error). [Bug #714106]
| | * * generic/tclCmdMZ.c (Tcl_StringObjCmd,STR_IS_INT): Correcteddgp2003-04-111-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | inconsistent results of [string is integer] observed on systems where sizeof(long) != sizeof(int). [Bug 718878] * tests/string.test: Added tests for Bug 718878. * doc/string.n: Clarified that [string is integer] accepts 32-bit integers.
| | * * generic/tclCmdMZ.c (TraceExecutionProc): Added missingdgp2003-04-071-2/+4
| | | | | | | | | | | | Tcl_DiscardResult() call to avoid memory leak.
| | * * generic/tclCmdMZ.c (Tcl_SubstObj): Corrected and added test fordgp2003-03-121-15/+16
| | | | | | | | | | | | | | | * tests/subst.test (subst-2.4): Tcl_SubstObj's incorrect halting of substitution at the first \x00 byte. [Bug 685106]
| * | * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): [Bug 2826551, Patch 2948425]:dkf2010-08-121-19/+27
| | | | | | | | | | | | Backport of updates to make handling of RE line anchors correct.
| * | 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
| | |
| * | Only look for the needle when it fits in the haystack. [Bug 2960021]dkf2010-02-271-3/+13
| | |
| * | * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EvalTokensStandard, Tcl_EvalEx, EvalEx, TclAdvanceContinuations, TclEvalObjEx): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, TclListLines): * generic/tclCompCmds.c (*): * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv, TclFreeCompileEnv, TclCompileScript): * generic/tclCompile.h (CompileEnv): * generic/tclInt.h (ContLineLoc, Interp): * generic/tclObj.c (ThreadSpecificData, ContLineLocFree, TclThreadFinalizeObjects, TclInitObjSubsystem, TclContinuationsEnter, TclContinuationsEnterDerived, TclContinuationsCopy, TclContinuationsGet, TclFreeObj): * generic/tclParse.c (TclSubstTokens, Tcl_SubstObj): * generic/tclProc.c (TclCreateProc): * generic/tclVar.c (TclPtrSetVar): * tests/info.test (info-30.0-24): Extended parser, compiler, and execution with code and attendant data structures tracking the positions of continuation lines which are not visible in script Tcl_Obj*'s, to properly account for them while counting lines for #280.
| * | Performance boost for [string is].dkf2009-07-201-37/+68
| | |
| * | * generic/tclCmdMZ.c: Improve overflow error message fromdgp2009-05-061-2/+2
| | | | | | | | | | | | [string repeat]. [Bug 2582327]
| * | * generic/tclCmdMZ.c: Prevent crashes due to int overflow of thedgp2009-02-041-11/+14
| | | | | | | | | | | | length of the result of [string repeat]. [Bug 2561746]
| * | remove outdated commentarydgp2008-09-181-5/+3
| | |
* | | Fix gcc -Wextra warning: missing initializernijtmans2010-12-101-24/+24
| | |
* | | * generic/tclCmdMZ.c (TryPostBody): Ensure that errors when settingdkf2010-11-031-1/+3
| | | | | | | | | | | | | | | * tests/error.test (error-19.1[12]): message/opt capture variables get reflected properly to the caller.
* | | * generic/tclBasic.c: New implementation for [tailcall]:Miguel Sofer2010-08-301-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: it now schedules the command and returns * generic/tclCmdMZ.c: TCL_RETURN. This fixes all issues with * generic/tclExecute.c: [catch] and [try] - [Bug 3046594], * generic/tclInt.h: [Bug 3047235] and [Bug 3048771]. Thanks * generic/tclNamesp.c: dgp for exploring the dark corners. * tests/tailcall.test: More thorough testing is required.
* | | * generic/tclCmdAH.c (TclNRTryObjCmd): block tailcalling out ofMiguel Sofer2010-08-181-2/+4
| | | | | | | | | | | | the body of a non-bc'ed [try], #3046594
* | | Undodkf2010-04-061-2/+1
| | |
* | | * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): Plug leak of object whendkf2010-04-061-1/+2
| | | | | | | | | | | | setting a variable fails.
* | | [Freq 2974744] share exception codes (ObjType?)nijtmans2010-03-271-13/+2
| | |
* | | * generic/tclCmdMZ.c (TryPostBody, TryPostHandler): Make sure that thedkf2010-03-241-5/+31
| | | | | | | | | | | | [try] command does not trap unwinding due to limits.
* | | * generic/tclCmdMZ.c: [Bug 2973361] Revised fix for computingdgp2010-03-231-24/+29
| | | | | | | | | | | | indices of script arguments to [try].
* | | Make error message in "try" implementationnijtmans2010-03-231-8/+10
| | | | | | | | | | | | exactly the same as the one in "return"
* | | * generic/tclCmdMZ.c: [Bug 2973361]: Compute the correct integerdgp2010-03-221-6/+11
| | | | | | | | | | | | | | | values to identify the argument indices of the various script arguments to [try]. Passing in -1 led to invalid memory reads.
* | | Quell a warning in Kevin Kenny's build environmentdkf2010-03-051-2/+3
| | |
* | | Code Audit results:dkf2010-03-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations
* | | Use a less hacky way of using a char as a hash keydkf2010-03-021-3/+3
| | |
* | | Only look for the needle when it fits in the haystack. [Bug 2960021]dkf2010-02-271-3/+13
| | |
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-18/+15
| | |
* | | Remove unnecessary EXTERN's, which alreadynijtmans2010-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | are in the global stub table. Use @EXEEXT@ in stead of @EXT_SUFFIX@ Use -DBUILD_tcl in Makefile for CYGWIN Use EXTERN to control CYGWIN exported symbols Remove some unnecessary type casts.
* | | Tcl Bug 2826551 regexp bugs related to -all -line and -start and newlinesdkf2010-02-111-20/+29
| | |
* | | CONST -> constnijtmans2009-12-251-3/+3
| | |
* | | Plug memory leak. [Bug 2910044]dkf2009-12-071-1/+9
| | |
* | | Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-25/+25
| | |
* | | * generic/tclCmdMZ.c: Replaced TclProcessReturn() calls withdgp2009-09-281-17/+9
| | | | | | | | | | | | | | | | | | * tests/error.test: Tcl_SetReturnOptions() calls as a simple fix for [Bug 2855247]. Thanks to Anton Kovalenko for the report and fix. Additional fixes for other failures demonstrated by new tests.
* | | TIP #356 IMPLEMENTATIONdgp2009-09-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: Promote internal routine TclNRSubstObj() * generic/tclCmdMZ.c: to public Tcl_NRSubstObj(). Still needs docs. * generic/tclCompile.c: * generic/tclInt.h: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c:
* | | * generic/tclBasic.c: Completed the NR-enabling of [subst].dgp2009-09-111-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c: [Bug 2314561]. * generic/tclCompCmds.c: * generic/tclCompile.c: * generic/tclInt.h: * tests/coroutine.test: * tests/parse.test:
* | | * generic/tclCompCmds.c (TclCompileSubstCmd): Added a bytecodedgp2009-09-041-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: compiler routine for the [subst] command. * generic/tclCmdMZ.c: This is a partial solution to the need to * generic/tclCompile.c: NR-enable [subst] since bytecode execution is * generic/tclCompile.h: already NR-enabled. [Bug 2314561] Two new * generic/tclExecute.c: bytecode instructions, INST_NOP and * generic/tclInt.h: INST_RETURN_CODE_BRANCH were added to support * generic/tclParse.c: the new routine. INST_RETURN_CODE_BRANCH is * tests/basic.test: likely to be useful in any future effort to * tests/info.test: add a bytecode compiler routine for [try]. * tests/parse.test:
* | | * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tcl_EvalEx, TclEvalEx, TclAdvanceContinuations, TclNREvalObjEx): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, TclListLines): * generic/tclCompCmds.c (*): * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv, TclFreeCompileEnv, TclCompileScript, TclCompileTokens): * generic/tclCompile.h (CompileEnv): * generic/tclInt.h (ContLineLoc, Interp): * generic/tclObj.c (ThreadSpecificData, ContLineLocFree, TclThreadFinalizeObjects, TclInitObjSubsystem, TclContinuationsEnter, TclContinuationsEnterDerived, TclContinuationsCopy, TclContinuationsGet, TclFreeObj): * generic/tclParse.c (TclSubstTokens, Tcl_SubstObj): * generic/tclProc.c (TclCreateProc): * generic/tclVar.c (TclPtrSetVar): * tests/info.test (info-30.0-24): Extended the parser, compiler, and execution engine with code and attendant data structures tracking the position of continuation lines which are not visible in the resulting script Tcl_Obj*'s, to properly account for them while counting lines for #280.
* | | Small tweaksdkf2009-08-201-43/+39
| | |
* | | Formatting correctionsdkf2009-08-191-6/+5
| | |
* | | Performance boost for [string is].dkf2009-07-201-36/+67
| | |