summaryrefslogtreecommitdiffstats
path: root/generic/tclLink.c
Commit message (Collapse)AuthorAgeFilesLines
* 3317466 Prevent multiple Tcl_LinkVar() links to a single Tcl variable.dgp2011-06-211-0/+8
|\ | | | | FossilOrigin-Name: fb1352c7ed335bb045472120f9104be68a9b41b2
| * 3317466 Prevent multiple Tcl_LinkVar() links to a single Tcl variable.dgp2011-06-211-0/+8
| | | | | | FossilOrigin-Name: 39eb20d6a2249d4b28ab2749c9d63dd20662327b
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-5/+5
| | | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* | 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/tclLink.c (Tcl_UpdateLinkedVar): guard against var beinghobbs2007-09-101-2/+9
| | | | | | | | | | | | | | | | | | unlinked. [Bug 1740631] (maros) FossilOrigin-Name: 1ae99dbfd25fe27ff3e6bcb9b983d71f89ef026e
| | * [Tcl Bug 1706140]dgp2007-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c (Trace*Proc): Update Tcl_VarTraceProcs so * generic/tclLink.c (LinkTraceProc): that they call * generic/tclUtil.c (TclPrecTraceProc): Tcl_InterpDeleted() for themselves, and do not rely on (frequently buggy) setting of the TCL_INTERP_DESTROYED flag by the trace core. * generic/tclVar.c: Update callers of CallVarTraces 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/tclVar.c (CallVarTraces): The setting of the TCL_INTERP_DESTROYED flag is now done entirely within the CallVarTraces routine, the only place it can be done right. FossilOrigin-Name: e09d290d78d358bdb642204b2e1d794f4f93e953
| | * * generic/tclBasic.c:msofer2005-10-231-15/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclLink.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclScan.c: * generic/tclTest.c: * generic/tclVar.c: * mac/tclMacInit.c: * unix/tclUnixInit.c: * win/tclWinInit.c: Insure that the core never calls TclPtrSetVar, Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new value. It is not possible to handle error returns correctly in that case [Bug 1334947], one has the choice of leaking the object in some cases, or else risk crashing in some others. FossilOrigin-Name: 8761ab798f625b66cadb3eaf8fafdedce6553a02
* | | CONSTify TclDTraceInfonijtmans2008-10-281-18/+18
| | | | | | | | | | | | | | | | | | Eliminate some -Wstrings-write warnings FossilOrigin-Name: f5c4b2c4b3c8439f4c332039b7a16441eda4fc06
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-20/+17
|/ / | | | | FossilOrigin-Name: 2d205c22fbe5def21ccd36bc6f7b2d3831f6122d
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | * generic/tclLink.c (Tcl_UpdateLinkedVar): guard against var beinghobbs2007-09-101-2/+9
| | | | | | | | | | | | unlinked. [Bug 1740631] (maros) FossilOrigin-Name: f8c52b52058cf511d383f88ed53892adecd93a63
* | [Tcl Bug 1706140]dgp2007-05-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. FossilOrigin-Name: 4fde67d5013eaf91210425a103fabdd2507b93fd
* | Handle creation of Tcl_Objs from constant strings better (easier to use, moredkf2007-04-101-3/+6
| | | | | | | | | | | | efficient). After [Patch 1529526] (afredd) FossilOrigin-Name: 4d69119aadb4298f8e994440eb988c6c46396086
* | * generic/tclEnv.c: Some more ckalloc -> ckrealloc replacements.dgp2007-03-201-5/+3
| | | | | | | | | | | | * generic/tclLink.c: FossilOrigin-Name: 843738505661ae6e6cdb50b4db1e117cc0924916
* | Added macro to conceal at least some of the pointer hackery.dkf2007-03-031-56/+64
| | | | | | FossilOrigin-Name: b75ce52a19295e052bce8f65c0063ed0fb63543c
* | * generic/tclLink.c: Broken linked float logic corrected. Thanksdgp2007-01-291-2/+2
| | | | | | | | | | | | to Andy Goth [Bug 1602538]. FossilOrigin-Name: 74c8f71e220cc4539e81b4a4bee1f0fd3554fc10
* | * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, fordas2006-08-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | universal builds including x86_64, for 64-bit CoreFoundation on Leopard and for use of -mmacosx-version-min instead of MACOSX_DEPLOYMENT_TARGET. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59 * generic/tcl.h: add fixes for building on Leopard and support * unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard. * macosx/tclMacOSXFCmd.c: * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it causes execve to fail intermittently. (rdar://4685553) * generic/tclTomMath.h: on Darwin 64-bit, for now disable use of 128-bit arithmetic through __attribute__ ((mode(TI))), as it leads to link errors due to missing fallbacks. (rdar://4685527) * macosx/Tcl.xcodeproj/project.pbxproj: add x86_64 to universal build, switch native release targets to use DWARF with dSYM, Xcode 3.0 changes. * macosx/README: updates for x86_64 and Xcode 2.3. * macosx/Tcl.xcodeproj/default.pbxuser: add test suite target that runs * macosx/Tcl.xcodeproj/project.pbxproj: the tcl test suite at build time and shows clickable test suite errors in the GUI build window. * tests/macOSXFCmd.test: fix use of deprecated resource fork paths. * unix/tclUnixInit.c (TclpInitLibraryPath): move code that is only needed when TCL_LIBRARY is defined to run only in that case. * generic/tclLink.c (LinkTraceProc): fix 64-bit signed-with-unsigned comparison warning from gcc4 -Wextra. FossilOrigin-Name: 8e0081af99484566f768574cb6062fcadb3acf72
* | Export stubs for libtommath; fix mingw compiler warningskennykb2005-12-131-3/+3
| | | | | | FossilOrigin-Name: 3842b9c46803a8677c011078725b04cff7adff2d
* | More ANSIfyingdkf2005-11-091-25/+25
| | | | | | FossilOrigin-Name: b7189a0fbad1936fddcd5affb145389ac48e5856
* | * generic/tclBinary.c:msofer2005-11-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclIOCmd.c: * generic/tclLink.c: * generic/tclTest.c: * generic/tclVar.c: fix for [Bug 1334947]. The functions TclPtrSetVar, Tcl_ObjSetVar2 and Tcl_SetVar2Ex now always consume the newValuePtr argument - i.e., they will free a 0-refCount object if they failed to set the variable. Fixed all callers in the core. FossilOrigin-Name: 510663a99e3a096bb7bab7314eb59fc805335318
* | TIP#237 IMPLEMENTATIONdgp2005-10-081-1/+8
| | | | | | | | | | | | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code. FossilOrigin-Name: 83fdb360a9aec952bc3ad040afe39106bf9e5ec3
* | TIP #254 implementationdkf2005-09-081-2/+177
| | | | | | | | | | | | Still missing additional tests. FossilOrigin-Name: 62727c5bbe851fb74c0b29d6254b855684ab849f
* | Remove _ANSI_ARGS_dkf2005-08-261-20/+18
| | | | | | FossilOrigin-Name: 63474c1c0a99a602d81606c37d71df85da7d448b
* | Getting more systematic about styledkf2005-07-171-71/+75
| | | | | | FossilOrigin-Name: 7591df07d6708876cd588c42190751e37f827e21
* | * generic/tclLink.c: Simplified LinkTraceProc [Bug 1208108].dgp2005-07-061-27/+12
|/ | | FossilOrigin-Name: 828cc933d5be1843fc1c1521194699c60ae9a68a
* * doc/CmdCmplt.3: Applied Patch 585105 to fully CONST-ifydgp2002-08-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Concat.3: all remaining public interfaces of Tcl. * doc/CrtCommand.3: Notably, the parser no longer writes on * doc/CrtSlave.3: the string it is parsing, so it is no * doc/CrtTrace.3: longer necessary for Tcl_Eval() to be * doc/Eval.3: given a writable string. Also, the * doc/ExprLong.3: refactoring of the Tcl_*Var* routines * doc/LinkVar.3: by Miguel Sofer is included, so that the * doc/ParseCmd.3: "part1" argument for them no longer needs * doc/SetVar.3: to be writable either. * doc/TraceVar.3: * doc/UpVar.3: Compatibility support has been enhanced so * generic/tcl.decls that a #define of USE_NON_CONST will remove * generic/tcl.h all possible source incompatibilities with * generic/tclBasic.c the 8.3 version of the header file(s). * generic/tclCmdMZ.c The new #define of USE_COMPAT_CONST now does * generic/tclCompCmds.c what USE_NON_CONST used to do -- disable * generic/tclCompExpr.c only those new CONST's that introduce * generic/tclCompile.c irreconcilable incompatibilities. * generic/tclCompile.h * generic/tclDecls.h Several bugs are also fixed by this patch. * generic/tclEnv.c [Bugs 584051,580433] [Patches 585105,582429] * generic/tclEvent.c * generic/tclInt.decls * generic/tclInt.h * generic/tclIntDecls.h * generic/tclInterp.c * generic/tclLink.c * generic/tclObj.c * generic/tclParse.c * generic/tclParseExpr.c * generic/tclProc.c * generic/tclTest.c * generic/tclUtf.c * generic/tclUtil.c * generic/tclVar.c * mac/tclMacTest.c * tests/expr-old.test * tests/parseExpr.test * unix/tclUnixTest.c * unix/tclXtTest.c * win/tclWinTest.c FossilOrigin-Name: e476c22fecaa0dd7fea635d29d8ea1d5579365a1
* * Updated interfaces of generic/tclVar.c accordingdgp2002-03-201-3/+3
| | | | | | to TIP 27. In particular, the "part2" arguments were CONSTified. FossilOrigin-Name: b64c27e52d63f10977aa98296f7f47941929cfff
* * generic/tclLink.c (Tcl_LinkVar): correct mem leak in error case.hobbs2002-02-281-2/+5
| | | FossilOrigin-Name: 8f4f1c961261effa8b42c41ac61559431f59d233
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-110/+124
| | | | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode. FossilOrigin-Name: 8d82de1905ada4c5d06f5fb967721e8b681b7c82
* * Updated interfaces of generic/tclEncoding, generic/tclFilename.c,dgp2002-01-251-3/+4
| | | | | | | | | | | | | generic/tclIOUtil.c, generic/tclPipe.c, generic/tclResult.c, generic/tclUtil.c, generic/tclVar.c and mac/tclMacResource.c according to TIP 27. Tcl_TranslateFileName rewritten as wrapper around VFS-aware version. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes source incompatibilities: argv arguments of Tcl_Concat, Tcl_JoinPath, Tcl_OpenCommandChannel, Tcl_Merge; argvPtr arguments of Tcl_SplitList and Tcl_SplitPath. FossilOrigin-Name: fceed15544ad472b748cdf463c3b4005e83b5e8f
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-17/+24
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+423
FossilOrigin-Name: cacdd0f329872d67973970d74c6978730bc24baa