summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Make [array get] work again with a trivial pattern.dkf2010-02-041-4/+4
| | |
* | | Minor updates: more errorcodes, less C stack levels for old APIsdkf2010-02-041-98/+191
| | |
* | | More corrections to the [array unset] command.dkf2010-02-031-26/+30
| | |
* | | Turned the [array] command into a true ensemble. Test changes indicate somedkf2010-02-021-551/+1177
| | | | | | | | | | | | alteration to error messages, otherwise no change.
* | | Switch to using the new faster var-ref internal API inside [array unset] whendkf2010-02-021-4/+5
| | | | | | | | | | | | it makes sense.
* | | 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.
* | | One more function that needs the LVT index passing into it now.dkf2010-01-311-5/+7
| | |
* | | Make the [unset] command be bytecode compiled.dkf2010-01-301-14/+58
| | |
* | | a bit of cleanupdgp2009-11-201-1/+4
| | |
* | | Fix [Bug 2629338]: Stop evil unset traces from accessing freed memory.dkf2009-10-171-15/+37
| | |
* | | * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Revert series of local changes not relevant to the last commit.andreas_kupries2009-07-231-12/+3
| | |
* | | * generic/tclIO.c (Tcl_GetChannelHandle): Do not crash forandreas_kupries2009-07-231-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclPipe.c (FileForRedirect): getHandleProc == NULL, this is allowed. Provide a nice error message in the bypass area. Updated caller to check the bypass for a mesage. This fixes the bug [Bug 2826248] reported by Andy Sonnenburg <andy22286@users.sourceforge.net>
* | | * generic/tclBinary.c: Removed unused variables.dgp2009-07-161-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclHash.c: * generic/tclIOUtil.c: * generic/tclVar.c: * generic/tclBasic.c: Silence compiler warnings about ClientData. * generic/tclProc.c: * generic/tclScan.c: Typo in ACCEPT_NAN configuration. * generic/tclStrToD.c: Set floating point control register on MIPS systems so that the gradual underflow expected by Tcl is in effect. [Bug 2819200]
* | | Fix [Bug 2673163]dkf2009-03-241-8/+38
| | |
* | | * 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]
* | | - eliminate some unnessary type castsnijtmans2009-02-101-22/+23
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-10/+10
| | | | | | | | | | | | etc.)
* | | Generate errorcodes for more cases.dkf2009-01-081-2/+21
| | |
* | | move variable "length" inside if()nijtmans2008-12-171-2/+2
| | | | | | | | | | | | | | | don't use ckfree((void *)...) but ckfree((char *)...)
* | | Fix signature and implementation of Tcl_HashStats,nijtmans2008-11-171-2/+2
| | | | | | | | | | | | such that it conforms to the documentation.
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-5/+5
| | |
* | | Add "const" to many internalnijtmans2008-10-151-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | | * generic/tclTrace.c: Corrected handling of errors returned bydgp2008-10-081-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | variable traces so that the errorInfo value contains the original error message. [Bug 2151707] * generic/tclVar.c: Revised implementation of TclObjVarErrMsg so that error message construction does not disturb an existing iPtr->errorInfo that may be in progress.
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-251-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | * doc/global.n: Revise [global] to accept zero variable names. * doc/variable.n: Revise [variable] likewise. * generic/tclVar.c: * tests/proc-old.test: * tests/var.test:
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-251-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/global.n: Revise [global] to accept zero variable names. * generic/tclVar.c: * tests/proc-old.test: * tests/var.test: * doc/global.n: Correct false claim about [info locals].
* | | * generic/tclVar.c (TclLookupSimpleVar): fix bug that the coreMiguel Sofer2008-08-061-3/+2
| | | | | | | | | | | | | | | | | | could not trigger before TclOO: the number of locals was being read from the Proc, which can under some circumstance be out of sync with the localCache's.
* | | fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-3/+3
| | |
* | | * generic/tclVar.c: fix error messageMiguel Sofer2008-07-141-2/+2
| | |
* | | TIP #230 IMPLEMENTATIONandreas_kupries2008-06-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclIOCmd.c: Integration of transform commands into 'chan' ensemble. * generic/tclInt.h: Definitions of the transform commands. * generic/tclIORTrans.c: Implementation of the reflection transforms. * tests/chan.test: Tests updated for new sub-commands of 'chan'. * tests/ioCmd.test: Tests updated for new sub-commands of 'chan'. * tests/ioTrans.test: Whole new set of tests for the reflection transform. * unix/Makefile.in: Integration of new files into build rules. * win/Makefile.in: Integration of new files into build rules. * win/makefile.vc: Integration of new files into build rules. NOTE: The file 'tclIORTrans.c' has a lot of code in common with the file 'tclIORChan.c', as that made it much easier to develop the reference implementation as a separate module. Now that the transforms have been committed the one thing left to do is to go over both modules and see which of the common parts we can factor out and share.
* | | Oops. Undo commit of the local tweaks.andreas_kupries2008-05-231-12/+1
| | |
* | | * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-3/+12
|/ / | | | | | | | | | | | | | | | | | | | | | | Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1965787]. 'tell' now works for locations > 2 GB as well instead of going negative. * generic/tclIO.c (Tcl_SetChannelBufferSize): Accepted a patch by * tests/io.test: Alexandre Ferrieux <ferrieux@users.sourceforge.net> * tests/chanio.test: to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.
* | * generic/tclVar.c (TclDeleteNamespaceVars):Miguel Sofer2008-03-111-2/+8
| | | | | | | | | | | | | | * tests/var.test (var-8.2): unset traces on vars should be called with a FQ named during namespace deletion. This was causing infinite loops when unset traces recreated the var, as reported by Julian Noble on [Bug 1911919].
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclVar.c (Tcl_ArrayObjCmd): handle the right data forhobbs2007-11-231-6/+11
| | | | | | | | * tests/var.test (var-14.2): [array names $var -glob $ptn]
* | More minor cleanupdkf2007-11-181-56/+61
| |
* | Add comments for clarity.dkf2007-11-151-51/+75
| |
* | [Patch 1830038]: Increased usage of macros to detect and take advantage of ↵Miguel Sofer2007-11-111-7/+7
| | | | | | | | objTypes.
* | * generic/tclTest.c (TestSetCmd2):Miguel Sofer2007-11-031-2/+3
| | | | | | | | | | | | | | * generic/tclVar.c (TclObjLookupVarEx): * tests/set.test (set-5.1): fix error branch when array name looks like array element (code not normally exercised). x
* | * generic/tclVar.c: try to preserve Tcl_Objs when doing variableMiguel Sofer2007-10-271-55/+97
| | | | | | | | lookups by name, partially addressing [Bug 1793601]
* | * generic/tclVar.c (Tcl_SetVar2, TclPtrSetVar): [Bug 1710710]Miguel Sofer2007-09-081-7/+4
| | | | | | | | fixed correctly, reverted fix of 2007-05-01.
* | make tclVarHashKeyType definition staticdas2007-09-031-2/+2
| |
* | * generic/tclVar.c: improved localVarNameType caching to leverageMiguel Sofer2007-08-171-9/+42
| | | | | | | | | | the new availability of Tcl_Obj in variable names, avoiding string comparisons to verify that the cached value is usable.
* | modifs to help itcl adapt to VarReformMiguel Sofer2007-08-041-2/+19
| |
* | Tidying up.dkf2007-08-031-207/+258
| |
* | Abstracted the 'offsetof' to a TclOffset macro as per Tk_Offset to permitpatthoyts2007-08-011-2/+2
| | | | | | | | compilation with MSVC6 and anything else that may not define this macro.
* | * generic/tclVar.c (TclCleanupVar): fix [Bug 1765225], thx LarryMiguel Sofer2007-08-011-2/+2
| | | | | | | | Virden.
* | VarReform [Patch 1750051]Miguel Sofer2007-07-311-777/+1550
| | | | | | | | *** POTENTIAL INCOMPATIBILITY *** (tclInt.h and tclCompile.h)
* | * generic/tclVar.c (UnsetVarStruct): fix possible segfault withMiguel Sofer2007-06-281-5/+6
| | | | | | | | recent streamlining.
* | * generic/tclVar.c (UnsetVarStruct): more streamlining.Miguel Sofer2007-06-261-10/+8
| |