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. FossilOrigin-Name: dbab97cbba58a39c357af59d4ab96a4d419cc9d7
* TclFreeIntRep() cleanup.dgp2011-04-271-1/+0
| | | FossilOrigin-Name: 53b79ea68a8a27842e45d4b2badedb5cb20edeeb
* fix for [Bug 3288345]: use _stat32i64 for CYGWIN toojan.nijtmans2011-04-271-19/+19
|\ | | | | | | | | fix a few more gcc warnings FossilOrigin-Name: eaf4d5e09fb5dd8f77fcf281d0ada19f9ca8209a
* \ Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-1/+6
|\ \ | |/ | | FossilOrigin-Name: 36b0307ba2ada5375598e444799d6f9fd0edb46b
| * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-1/+6
| |\ | | | | | | FossilOrigin-Name: 0da07d5b1e2189ddb3e03e53da787dc681cb46bc
| | * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+4
| | | | | | | | | FossilOrigin-Name: 2adc132d5223ca31015c197873552d9d7fd254ab
* | | More generation of error codes (namespace creation, path normalization,dkf2011-04-031-0/+4
| | | | | | | | | | | | | | | pipeline creation, package handling, procedures, [scan] formats) FossilOrigin-Name: a6c95ed9e060d601f5fecd29fdadf14567d377ff
* | | More generation of errorCode information.dkf2011-03-261-0/+6
| | | | | | | | | FossilOrigin-Name: a70db7c3eb936292c0e219a592c95989dea1f8a9
* | | Squelch another unnecessary cast.dkf2011-03-261-1/+1
| | | | | | | | | FossilOrigin-Name: 8ad026f31b99cc47e56ecdb6ecbe8c044b440af2
* | | Reduce the number of casts used to manage Tcl_Obj internal representations.dkf2011-03-261-3/+3
| | | | | | | | | FossilOrigin-Name: b2381061a7b89af02f5c0247d1f4fa8164587470
* | | 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. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* | | Merge to feature branchdkf2011-03-091-13/+9
|\ \ \ | | | | | | | | FossilOrigin-Name: 4004f4151757ac56a730493245d8eb178f97230e
| * \ \ * 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. FossilOrigin-Name: 52f5d3218acc2595a2cb5c620acde30703ef9820
| | * | * generic/tclNamesp.c: Tighten the detector of nested [namespace code]dgp2011-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] FossilOrigin-Name: ac4c249ecfb6ff77a5aac99c07d75270410ee002
* | | | Turn namespace into an ensemble. Not yet on trunk because of some mysterious ↵dkf2011-03-091-202/+161
|/ / / | | | | | | | | | | | | failures that need resolving... FossilOrigin-Name: 13038535e3e18a331d8399f4cfa3d4735ff72d58
* | | 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). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * | 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. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * 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. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * * 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: FossilOrigin-Name: 87a9c9155a383f7e221244f3b8caf28a85bd3b47
| | * * generic/tclNamesp.c: Plugged memory leak related todgp2007-05-151-2/+8
| | | | | | | | | | | | | | | | | | [namespace delete ::]. [Bug 1716782] FossilOrigin-Name: 13bfe388224dbb90372889d1e58bede56081bf65
| | * * 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: FossilOrigin-Name: a88d79cbf88f04a3f3918625a36a4df1d75704a2
| | * * 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. FossilOrigin-Name: a5ddb548a6e68c8d45eba7ee84315ab008f729ea
| | * * generic/tclNamesp.c (NamespaceInscopeCmd): [namespace inscope]dgp2006-01-091-3/+5
| | | | | | | | | | | | | | | | | | | | | * tests/namespace.test: commands were not reported by [info level] [Bug 1400572]. FossilOrigin-Name: 7a2466007a4b5c0e4714c8a312c8b461005930e2
| | * * generic/tclBasic.c (Tcl_DeleteCommandFromToken):msofer2005-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]. FossilOrigin-Name: 56a462e45ca6948aca94cef4232dec3080078aa1
| | * * generic/tclInt.h:msofer2005-11-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: * generic/tclVar.c: fix for [Bugs 1338280/1337229]. Thanks Don. * tests/trace.test: fix duplicate test numbers FossilOrigin-Name: 3d6cada5c05de690f8d38cd0730fbfc70261ff25
| | * * 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] FossilOrigin-Name: 98ddae5f7cbaca457cf1757a6a723a1ebe601213
| | * * 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] FossilOrigin-Name: 18818ddf02f729281c01620284803b42839867f7
| | * * generic/tclNamesp.c (Tcl_PopCallFrame): Removed Bug 1038021dgp2004-10-051-19/+1
| | | | | | | | | | | | | | | | | | workaround. That bug is now fixed. FossilOrigin-Name: 7da3c43972116d4de6783d5192a917d28bb514f8
| | * * 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]. FossilOrigin-Name: 713215081c3559112c57e6af56df08a98faa82e1
| | * * 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. FossilOrigin-Name: f023e9218c6181665ea8c1f8997d7660429e4e94
| | * Also corrected faulty prevention of [namespace import] cycles.dgp2004-09-091-21/+27
| | | | | | | | | | | | | | | | | | [Bug 1017299] FossilOrigin-Name: 82b85fe72b72c7d44d381914c5ff861963b1ce04
| | * * 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] FossilOrigin-Name: 4749497df8414bd7129f248c557e7013ec6f1606
| | * 2003-06-18 Miguel Sofer <msofer@users.sf.net>msofer2003-06-181-4/+2
| | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c (Tcl_Export): removed erroneous comments [Bug 756744] FossilOrigin-Name: 82b74923702265ef8586a7243995fcfcead58d62
| * | Backport fix for [Bug 2519474]dkf2009-01-291-2/+3
| | | | | | | | | FossilOrigin-Name: a14bcc8666ff64651b6021ac29bc46e45f55738f
| * | * 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: FossilOrigin-Name: 40f723e2c02d71c7eaa2d914ed2d6d471a6f2f04
| * | * 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]. FossilOrigin-Name: 02b0ef8de283d66282ebe739a0ce524256a08709
| * | Backport of fixes to Tcl_SetNamespaceUnknownHandlerdkf2008-05-211-24/+37
| | | | | | | | | FossilOrigin-Name: 15a8ca3a6c68712d62b9c79ac903a4beb37a7201
* | | * generic/tclNamesp.c: fix leak due to bad looping construct,msofer2010-11-181-3/+5
| | | | | | | | | | | | | | | | | | | | | [Bug 3111059] (Correct fix this time around) FossilOrigin-Name: 1bc1cdfe72e99801815f2a3dd9a7fbac0a3ac107
* | | * generic/tclNamesp.c: fix leak due to bad looping construct,msofer2010-11-181-5/+3
| | | | | | | | | | | | | | | | | | [Bug 3111059] FossilOrigin-Name: ff0d55246111b8d6a21ee846daf399c7fafe647f
* | | [Patch 2995655] Report inner contexts in [info errorstack]ferrieux2010-10-201-9/+100
| | | | | | | | | FossilOrigin-Name: 14d357357cdf6363ddf9b3cc605f253acafb302b
* | | * 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. FossilOrigin-Name: 50bdab468291447e44eee4503c3fcce02a5dea4d
* | | * generic/tclBasic.c: New implementation for [tailcall]:msofer2010-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. FossilOrigin-Name: c263c556adf1dd0e756a39cc73c0cbd7a80715e0
* | | * generic/tclBasic.c: New redesign of [tailcall]: findmsofer2010-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: FossilOrigin-Name: c73d12f03c2dbb54b55d46741d87aaf1444a59ef
* | | * generic/tclBasic.c: Redesign of [tailcall] tomsofer2010-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: FossilOrigin-Name: beb3af88b5e286758fed136d9747338d89d5009d
* | | whitespacedgp2010-06-081-17/+19
| | | | | | | | | FossilOrigin-Name: 017f16cad515d6a06409f6abe3f532a5d403e316
* | | Ensure proper reset of [info errorstack] even when compiling constant expr's ↵ferrieux2010-06-071-47/+49
| | | | | | | | | | | | | | | with errors. FossilOrigin-Name: 638f2559313ecbc0a5691c1f4448e7c884a77a88
* | | Safer (and faster) computation of [uplevel] offsets in TIP 348. Toplevel ↵ferrieux2010-06-021-10/+7
| | | | | | | | | | | | | | | offsets no longer overestimated. FossilOrigin-Name: 5c19ed1d60ae9cc45d6b846d8692fe7ed8ab47a0
* | | Fix computation of [uplevel] offsets in TIP 341.ferrieux2010-05-311-2/+2
| | | | | | | | | | | | | | | | | | | | | Only depend on callerPtr chaining now. Needed for upcoming coro patch. FossilOrigin-Name: 7bf546d17188d20dd4ecbbe06070a8395d339fc2
* | | TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-051-1/+42
| | | | | | | | | FossilOrigin-Name: 43fe3048397d3a082c8a3c34f0cd6875f4350dd3
* | | 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 FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601