summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
Commit message (Collapse)AuthorAgeFilesLines
* [d614d63989] Ensure that there are no trailing colons as that causes chaos ↵dkf2013-09-251-24/+59
| | | | when a deleteProc is specified.
* 3605447 Make sure the -clear option to [namespace export] always clears,dgp2013-02-211-43/+20
|\ | | | | whether or not new export patterns are specified.
| * The flag TCL_LEAVE_ERR_MSG has no effect on the routinedgp2013-02-211-8/+4
| | | | | | | | TclGetNamespaceForQualName() so for goodness sake stop making any special efforts to add it in when making calls.
| * refinementdgp2013-02-201-2/+1
| |
| * 36054447 Convert [namespace export -clear] interface to something less stupid.dgp2013-02-201-32/+18
| | | | | | Test suite does not demand the stupidity continue, thank goodness.
* | Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-7/+7
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* | Backport fix for [Bug 2857044].dgp2011-04-271-0/+1
| |
* | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-1/+6
|\ \ | |/
| * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+4
| |
* | * generic/tclNamesp.c: Tighten the detector of nested [namespace code] bug_3202171dgp2011-03-091-13/+9
| | | | | | | | | | * tests/namespace.test: quoting that the quoted scriptsfunction properly even in a namespace that contains a custom "namespace" command. [Bug 3202171]
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ \ | |/ | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * * generic/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-4/+7
| | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c:
| * * generic/tclNamesp.c: Plugged memory leak related todgp2007-05-151-2/+8
| | | | | | | | [namespace delete ::]. [Bug 1716782]
| * * generic/tclBasic.c: TIP #280 implementation, conditional on the define ↵andreas_kupries2006-11-281-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_TIP280. * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test:
| * * generic/tclNamesp.c (NamespaceInscopeCmd): revert [Bug 1400572]hobbs2006-05-311-5/+3
| | | | | | | | | | | | fix of 2006-01-09 for [namespace inscope] as it seems to mess with itcl scope decoding. Leaving namespace-29.6 test failure until final cause it determined.
| * * generic/tclNamesp.c (NamespaceInscopeCmd): [namespace inscope]dgp2006-01-091-3/+5
| | | | | | | | | | * tests/namespace.test: commands were not reported by [info level] [Bug 1400572].
| * * generic/tclBasic.c (Tcl_DeleteCommandFromToken):Miguel Sofer2005-11-181-8/+13
| | | | | | | | | | | | | | | | * generic/tclCmdMZ.c (TraceCommandProc): * generic/tclInt.h (NS_KILLED): * generic/tclNamesp.c (Tcl_DeleteNamespace * tests/namespace.test (namespace-7.3-6): * tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342].
| * * generic/tclInt.h:Miguel Sofer2005-11-041-4/+4
| | | | | | | | | | | | | | * generic/tclNamesp.c: * generic/tclVar.c: fix for [Bugs 1338280/1337229]. Thanks Don. * tests/trace.test: fix duplicate test numbers
| * * generic/tclNamesp.c (TclTeardownNamespace): Re-ordering so thatdgp2005-07-261-16/+16
| | | | | | | | | | * tests/trace.test (trace-34.4): command delete traces fire while the command still exists. [Bug 1047286]
| * * generic/tclNamesp.c: Allow for [namespace import] of a commanddgp2005-07-051-1/+11
| | | | | | | | | | * tests/namespace.test: over a previous [namespace import] of itself without throwing an error. [RFE 1230597]
| * * generic/tclNamesp.c (Tcl_PopCallFrame): Removed Bug 1038021dgp2004-10-051-19/+1
| | | | | | | | workaround. That bug is now fixed.
| * * generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ifieddgp2004-09-301-33/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/namespace.test (namespace-8.5,6): the save/restore of ::errorInfo and ::errorCode during global namespace teardown. Revised the comment to clarify why this is done, and added tests that will fail if this is not done. * generic/tclResult.c (TclTransferResult): Added safety checks so that unexpected undefined ::errorInfo or ::errorCode will not lead to a segfault. * generic/tclVar.c (CallVarTraces): Save/restore the flag * tests/var.test (var-16.1): values that define part of the interpreter state during variable traces. [Bug 10381021].
| * * generic/tclNamespace.c (TclGetNamespaceForQualName): Resolveddgp2004-09-101-12/+8
| | | | | | | | | | | | | | | | | | longstanding inconsistency in the treatment of the TCL_NAMESPACE_ONLY flag revealed by testing the 2004-09-09 commits against Itcl. TCL_NAMESPACE_ONLY now acts as specified in the pre-function comment, forcing resolution in the passed in context namespace. It has been incorrectly forcing resolution in the interp's current namespace.
| * Also corrected faulty prevention of [namespace import] cycles.dgp2004-09-091-21/+27
| | | | | | | | [Bug 1017299]
| * * generic/tclNamesp.c (Tcl_ForgetImport): Corrected faultydgp2004-09-091-45/+78
| | | | | | | | | | * tests/namespace.test: logic that relied exclusively on string matching and failed in the presence of [rename]s. [Bug 560297]
| * 2003-06-18 Miguel Sofer <msofer@users.sf.net>Miguel Sofer2003-06-181-4/+2
| | | | | | | | | | * generic/tclNamesp.c (Tcl_Export): removed erroneous comments [Bug 756744]
* | Backport fix for [Bug 2519474]dkf2009-01-291-2/+3
| |
* | * generic/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-4/+7
| | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c:
* | * generic/tclNamesp.c (Tcl_LogCommandInfo): Restored ability todgp2008-05-221-1/+4
| | | | | | | | | | handle the argument value length = -1. Thanks to Chris Darroch for discovering the bug and providing the fix. [Bug 1968245].
* | Backport of fixes to Tcl_SetNamespaceUnknownHandlerdkf2008-05-211-24/+37
| |
* | * generic/tclNamesp.c (GetNamespaceFromObj): spoil the intrep ofMiguel Sofer2008-03-021-6/+8
| | | | | | | | | | an nsNameType obj when the reference crosses interpreter boundaries.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Fix [Bug 1845320] and [Bug 1845397]dkf2007-12-061-1/+2
| |
* | * generic/tclNamesp.c (Tcl_SetEnsembleMappingDict): Added checksdgp2007-11-281-2/+24
| | | | | | | | | | that the dict value passed in is in the format required to make the internals of ensembles work.
* | Factor out the core compiled-ensemble builder for simplicity.dkf2007-11-211-1/+75
| |
* | Reduce cast count.dkf2007-11-191-118/+116
| |
* | Simplification+comments for ensemble dispatch enginedkf2007-11-181-128/+175
| |
* | Greatly improved ensemble compiler. This one now can handle any ensemble.dkf2007-11-161-9/+27
| | | | | | | | | | It is usually not enabled though; only worth it when a subcommand is actually expected to undergo bytecode compilation.
* | Must pass non-NULL interp to Tcl_SetEnsemble* functions.dkf2007-11-151-17/+11
| |
* | Compile [info exists] into bytecode. Includes new instructions to support it.dkf2007-11-141-1/+25
| |
* | [Patch 1830038]: Increased usage of macros to detect and take advantage of ↵Miguel Sofer2007-11-111-17/+17
| | | | | | | | objTypes.
* | * generic/tclNamesp.c (Tcl_FindCommand): insure that FQ commandMiguel Sofer2007-10-271-2/+2
| | | | | | | | | | names are searched from the global namespace, ie, bypassing resolvers of the current namespace [Bug 1114355].
* | Generate literal values more efficiently using TclNewLiteralStringObj macro.dkf2007-09-171-6/+6
| |
* | * generic/tclInt.h: Removed the "nsName" Tcl_ObjType from thedgp2007-09-091-217/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: registered set. Revised the management of * generic/tclObj.c: the intrep of that Tcl_ObjType. Revised the * tests/obj.test: TclGetNamespaceFromObj() routine to return TCL_ERROR and write a consistent error message when a namespace is not found. [Bug 1588842. Patch 1686862] ***POTENTIAL INCOMPATIBILITY*** For callers of Tcl_GetObjType() on the name "nsName". * generic/tclExecute.c: Update TclGetNamespaceFromObj() callers. * generic/tclProc.c: * tests/apply.test: Updated tests to expect new consistent * tests/namespace-old.test: error message when a namespace is not * tests/namespace.test: found. * tests/upvar.test:
* | Tidying up.dkf2007-08-031-31/+31
| |
* | VarReform [Patch 1750051]Miguel Sofer2007-07-311-150/+37
| | | | | | | | *** POTENTIAL INCOMPATIBILITY *** (tclInt.h and tclCompile.h)
* | clarify comments for last commitMiguel Sofer2007-07-051-2/+2
| |
* | * generic/tclNamesp.c (SetNsNameFromAny):Miguel Sofer2007-07-051-21/+28
| | | | | | | | | | * generic/tclObj.c (SetCmdNameFromAny): Avoid unnecessary ckfree/ckalloc when the old structs can be reused.
* | * generic/tclNamesp.c: Fix case where a FQ cmd or ns was beingMiguel Sofer2007-07-041-1/+2
| | | | | | | | | | * generic/tclObj.c: cached in a different interp, tkcon [Bug 1747512]