summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
Commit message (Collapse)AuthorAgeFilesLines
* Reduce use of Tcl_AppendElement, which is not (and can't be) a Tcl_Obj-aware ↵dkf2011-05-091-17/+41
| | | | API.
* TclFreeIntRep() cleanup.dgp2011-04-271-1/+0
|
* fix for [Bug 3288345]: use _stat32i64 for CYGWIN toojan.nijtmans2011-04-271-19/+19
|\ | | | | fix a few more gcc warnings
* \ 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-1/+6
| |\
| | * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+4
| | |
* | | More generation of error codes (namespace creation, path normalization,dkf2011-04-031-0/+4
| | | | | | | | | pipeline creation, package handling, procedures, [scan] formats)
* | | More generation of errorCode information.dkf2011-03-261-0/+6
| | |
* | | Squelch another unnecessary cast.dkf2011-03-261-1/+1
| | |
* | | Reduce the number of casts used to manage Tcl_Obj internal representations.dkf2011-03-261-3/+3
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-21/+19
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | Merge to feature branchdkf2011-03-091-13/+9
|\ \ \
| * \ \ * generic/tclNamesp.c: Tighten the detector of nested [namespace code]dgp2011-03-091-13/+9
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | * tests/namespace.test: quoting that the quoted scripts function properly even in a namespace that contains a custom "namespace" command. [Bug 3202171] * doc/tclvars.n: Formatting fix. Thanks to Pat Thotys.
| | * | * 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]
* | | | Turn namespace into an ensemble. Not yet on trunk because of some mysterious ↵dkf2011-03-091-202/+161
|/ / / | | | | | | | | | failures that need resolving...
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | cause more harm than good. Purged them (except in zlib files).
| * | 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: 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