summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * generic/tclVar.c (UnsetVarStruct): fixing incomplete change,Miguel Sofer2007-06-251-24/+25
| | | | more streamlining.
* * generic/tclVar.c (UnsetVarStruct): fixing incomplete changeMiguel Sofer2007-06-251-2/+2
|
* * generic/tclVar.c (TclDeleteCompiledLocalVars): removed inliningMiguel Sofer2007-06-241-57/+62
| | | | | | that ended up not really optimising (limited benchmarks). Now calling UnsetVarStruct (streamlined old code is #ifdef'ed out, in case better benchmarks do show a difference).
* * generic/tclVar.c (UnsetVarStruct): fixed a leak introduced inMiguel Sofer2007-06-241-1/+8
| | | | last commit.
* * generic/tclVar.c (UnsetVarStruct, TclDeleteVars): made the logicMiguel Sofer2007-06-231-177/+90
| | | | | | | | | slightly clearer, eliminated some duplicated code. *** POTENTIAL INCOMPATIBILITY *** (tclInt.h and Var struct users) The core never builds VAR_LINK variable to have traces. Such a "monster", should one exist, will now have its unset traces called *before* it is unlinked.
* * generic/tclVar.c: streamline namespace vars deletion: onlyMiguel Sofer2007-06-201-11/+46
| | | | compute the variable's full name if the variable is traced.
* * generic/tclInt.h:Miguel Sofer2007-06-101-3/+3
| | | | | | | | | * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclvar.c: new macros TclGetCurrentNamespace() and TclGetGlobalNamespace(); Tcl_GetCommandFromObj and TclGetNamespaceFromObj rewritten to make the logic clearer; slightly faster too.
* Minor whitespace cleanupdkf2007-05-111-1/+6
|
* [Tcl Bug 1706140]dgp2007-05-071-48/+24
| | | | | | | | | | | | | | | | | * generic/tclLink.c (LinkTraceProc): Update Tcl_VarTraceProcs so that * generic/tclNamesp.c (Error*Read): they call Tcl_InterpDeleted() * generic/tclTrace.c (Trace*Proc): for themselves, and do not rely * generic/tclUtil.c (TclPrecTraceProc): on (frequently buggy) setting of the TCL_INTERP_DESTROYED flag by the trace core. * generic/tclVar.c: Update callers of TclCallVarTraces to not pass in the TCL_INTERP_DESTROYED flag. Also apply filters so that public routines only pass documented flag values down to lower level routines. * generic/tclTrace.c (TclCallVarTraces): The setting of the TCL_INTERP_DESTROYED flag is now done entirely within the TclCallVarTraces routine, the only place it can be done right.
* * generic/tclVar.c (TclPtrSetVar): fixed leak whenever newvaluePtrMiguel Sofer2007-05-021-2/+7
| | | | | had refCount 0 and was used for appending (but not lappending). [Bug 1710710], thanks to mistachkin and kbk.
* * generic/tclVar.c (UnsetVarStruct): Make sure thedgp2007-04-231-2/+2
| | | | | TCL_INTERP_DESTROYED flags gets passed to unset trace routines so they can respond appropriately. [Bug 1705778, leak #9]
* * generic/tclVar.c (TclDeleteNamespaceVars): fixed access to freedMiguel Sofer2007-04-231-3/+2
| | | | memory detected by valgrind.
* Replaced commas in varargs with string concatenation where possible [Patch ↵Kevin B Kenny2007-04-201-3/+3
| | | | 1515234]
* * generic/tclBasic.c: Added bytecode compilers for theMiguel Sofer2007-04-031-2/+3
| | | | | | | | * generic/tclCompCmds.c: variable linking commands: 'global', * generic/tclCompile.h: 'variable', 'upvar', 'namespace upvar' * generic/tclExecute.c: [Patch 1688593] * generic/tclInt.h: * generic/tclVar.c:
* * generic/tclVar.c (TclArraySet): Make efficient private copy ofdgp2007-03-121-3/+6
| | | | | * tests/var.test (var-17.1): the "list" argument to [array set] to avoid crash due to shimmering invalidating pointers. [Bug 1669489].