summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * * 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: fix leak due to bad looping construct,Miguel Sofer2010-11-181-3/+5
| | | | | | | | | | | | | | | [Bug 3111059] (Correct fix this time around)
* | | * generic/tclNamesp.c: fix leak due to bad looping construct,Miguel Sofer2010-11-181-5/+3
| | | | | | | | | | | | [Bug 3111059]
* | | [Patch 2995655] Report inner contexts in [info errorstack]ferrieux2010-10-201-9/+100
| | |
* | | * generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,dkf2010-10-011-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c, * generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c, * generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c: More purging of strcpy() from locations where we already know the length of the data being copied.
* | | * generic/tclBasic.c: New implementation for [tailcall]:Miguel Sofer2010-08-301-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/tclBasic.c: New redesign of [tailcall]: findMiguel Sofer2010-08-181-6/+14
| | | | | | | | | | | | | | | | | | * generic/tclExecute.c: errors early on, so that errorInfo * generic/tclInt.h: contains the proper info [Bug 3047235] * generic/tclNamesp.c:
* | | * generic/tclBasic.c: Redesign of [tailcall] toMiguel Sofer2010-08-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: (a) fix #3047235 * generic/tclCompile.h: (b) enable fix for #3046594 * generic/tclExecute.c: (c) enable recursive tailcalls * generic/tclInt.h: * generic/tclNamesp.c: * tests/tailcall.test:
* | | whitespacedgp2010-06-081-17/+19
| | |
* | | Ensure proper reset of [info errorstack] even when compiling constant expr's ↵ferrieux2010-06-071-47/+49
| | | | | | | | | | | | with errors.
* | | Safer (and faster) computation of [uplevel] offsets in TIP 348. Toplevel ↵ferrieux2010-06-021-10/+7
| | | | | | | | | | | | offsets no longer overestimated.
* | | Fix computation of [uplevel] offsets in TIP 341.ferrieux2010-05-311-2/+2
| | | | | | | | | | | | | | | Only depend on callerPtr chaining now. Needed for upcoming coro patch.
* | | TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-051-1/+42
| | |
* | | Code Audit results:dkf2010-03-051-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-8/+8
| | |
* | | Fix [Bug 2950259] so that deleting an object by killing its namespace willdkf2010-02-151-1/+22
| | | | | | | | | | | | reliably call the object's destructor.
* | | Corrected a comment.dkf2010-02-141-3/+2
| | |
* | | Hive off the ensemble code into its own file.dkf2010-02-131-2809/+90
| | | | | | | | | | | | Split the [switch] compiler for sanity's sake.
* | | * generic/tclBasic.c: Fix lerak of coroutines on namespaceMiguel Sofer2010-01-031-1/+25
| | | | | | | | | | | | | | | | | | | | | * generic/tclCompile.h: deletion, [Bug 2724403]. Added a test * generic/tclNamesp.c: for this leak, and also a test for * tests/coroutine.test: leaks on namespace deletion. * tests/namespace.test:
* | | * generic/tclBasic.c: Release TclPopCallFrame() from itsMiguel Sofer2009-12-131-6/+1
| | | | | | | | | | | | | | | * generic/tclExecute.c: tailcall-management duties * generic/tclNamesp.c:
* | | factoring TclSpliceTailcall out of TclPopStackFrameMiguel Sofer2009-12-061-45/+2
| | |
* | | * generic/tclBasic.c: Fixed things so that you can tailcallMiguel Sofer2009-12-051-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: properly out of a coroutine. * tests/tailcall.test: * generic/tclInterp.c: Fixed tailcalls for same-interp aliases (no test)
* | | Revert mistaken commitdgp2009-11-161-34/+2
| | |
* | | (forward port) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-161-2/+34
| | | | | | | | | | | | manifestations in the future. Add tcltest support for finalization.
* | | * generic/tclDictObj.c: Updated freeIntRepProc routines sodgp2009-09-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: that they set the typePtr field to * generic/tclIO.c: NULL so that the Tcl_Obj is not left * generic/tclIndexObj.c: in an inconsistent state. * generic/tclInt.h: [Bug 2857044] * generic/tclListObj.c: * generic/tclNamesp.c: * generic/tclOOCall.c: * generic/tclObj.c: * generic/tclPathObj.c: * generic/tclProc.c: * generic/tclRegexp.c: * generic/tclStringObj.c:
* | | Added code to save space in namespaces. Currently #ifdef'ed out for compat.dkf2009-07-151-25/+232
| | | | | | | | | | | | Also added code from itcl-ng for better separation of concerns.
* | | * generic/tclBasic.c: fixed "leaks" in aliases, imports andMiguel Sofer2009-03-211-1/+4
| | | | | | | | | | | | | | | | | | | | | * 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:
* | | * generic/tcl.h:Miguel Sofer2009-03-191-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | - eliminate some unnessary type castsnijtmans2009-02-101-18/+18
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | Fix [Bug 2519474]dkf2009-01-291-2/+3
| | |
* | | Fix [Bug 2529117]dkf2009-01-291-21/+40
| | |
* | | Apply resolution for [Bug 2529157]. Fix another location in tclBasic.c wheredkf2009-01-281-10/+10
| | | | | | | | | | | | only the objProc case was handled and not the nreProc case.
* | | Fix [Bug 1558654]dkf2009-01-091-1/+9
| | |
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-8/+8
| | | | | | | | | | | | etc.)