summaryrefslogtreecommitdiffstats
path: root/generic/tclLink.c
Commit message (Collapse)AuthorAgeFilesLines
* More use of TclHasIntRep() macro. Add vfs build director to fossil ignore-globjan.nijtmans2019-03-011-1/+1
|
* New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep. jan.nijtmans2019-01-281-1/+1
| | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* merge 8.7dgp2017-11-301-1/+1
|\
| * merge core-8-6-branch.jan.nijtmans2017-11-301-1/+1
| |\ | | | | | | Provide compatibility macro's, compensating for the internal stub table change, so Itcl 3.4 builds again. Thanks to Don Porter for bringing this to my attention!
| | * Don't provide the setFromAnyProc through the invalidRealType objType. This ↵jan.nijtmans2017-11-301-1/+1
| | | | | | | | | | | | is a Tcl internal type, extensions shouldn't be able to convert their own Tcl_Obj to this. This shouldn't have been exposed to begin with. Tcl itself never calls it this way.
* | | merge trunkdgp2017-06-261-2/+2
|\ \ \ | |/ /
| * | TIP #472 implementation: Add Support for 0d Radix Prefix to Integer Literalsjan.nijtmans2017-06-231-2/+2
| |\ \
| | * \ Rebase to core-8-6-branch (who told that fossil doesn't know how to rebase ....)jan.nijtmans2017-06-141-2/+2
| | |\ \ | | | |/ | | |/|
| | | * 0d in LinkVargriffin2017-05-281-2/+2
| | |/ | |/|
* | | merge trunkdgp2017-02-161-0/+16
|\ \ \ | |/ /
| * | On Windows, Cygwin and 64-bit platforms, no need to handle 'long' in ↵jan.nijtmans2017-02-141-0/+16
| | | | | | | | | | | | | | | tclLink.c, since its size is equal to either 'int' or 'Tcl_WideInt'. This enhances interoperabilty between win64 extensions loaded in cygwin64 using Tcl_LinkVar(), whill still being 100% compatible. init.tcl: unnecessary spacing.
* | | merge trunkdgp2017-02-091-102/+79
|\ \ \ | |/ /
| * | Code cleanup (based on feedback from René Zaumseil): Only call ↵jan.nijtmans2017-02-071-102/+79
| |\ \ | | |/ | | | | | | GetInvalidIntFromObj() when Tcl_GetIntFromObj() fails.
| | * Code cleanup (based on feedback from René Zaumseil): Only call ↵jan.nijtmans2017-02-071-118/+85
| | | | | | | | | | | | GetInvalidIntFromObj() when Tcl_GetIntFromObj() fails.
* | | merge trunkdgp2017-02-021-14/+17
|\ \ \ | |/ /
| * | Update documentation on recent changes in Tcl_LinkVar.jan.nijtmans2017-01-311-14/+17
| |\ \ | | |/ | | | Minor code clean-up. No functional changes.
| | * Update documentation on recent changes in Tcl_LinkVar.jan.nijtmans2017-01-311-18/+20
| | | | | | | | | | | | Don't use TCL_NO_DEPRECATED for disabling tests-cases: Those were not deprecated in 8.6 yet. Minor code clean-up. No functional changes.
* | | merge trunkdgp2017-01-271-40/+26
|\ \ \ | |/ /
| * | Some code cleanup: More internal use of size_t, less type casts (because of ↵jan.nijtmans2017-01-271-40/+26
| | | | | | | | | | | | this). No functional changes.
* | | merge trunkdgp2017-01-231-3/+4
|\ \ \ | |/ /
| * | Fix [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e] follow-up: Make ↵jan.nijtmans2017-01-201-3/+4
| |\ \ | | |/ | | | | | | Tcl_LinkVar toleranto to the empty string as well
| | * Fix [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e] follow-up: Make ↵jan.nijtmans2017-01-201-3/+4
| | |\ | | | | | | | | | | | | Tcl_LinkVar toleranto to the empty string as well
| | | * Fix [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e] follow-up: Make ↵jan.nijtmans2017-01-201-3/+4
| | | | | | | | | | | | | | | | Tcl_LinkVar toleranto to the empty string as well
* | | | merge trunkdgp2017-01-121-40/+172
|\ \ \ \ | |/ / /
| * | | merge core-8-6-branchjan.nijtmans2017-01-011-40/+172
| |\ \ \ | | |/ /
| | * | Fix [39f6304c2e]: Tcl_LinkVar is not tolerant to minus, plus, dotjan.nijtmans2017-01-011-40/+172
| | |\ \ | | | |/
| | | * Little tweak: Decimal dot's should be allowed as well as first part. ↵jan.nijtmans2016-12-231-1/+1
| | | | | | | | | | | | | | | | Test-case for that as well.
| | | * Handle other invalid sequences, like "1234e" or "-567e+", that could be the ↵jan.nijtmans2016-12-231-5/+49
| | | | | | | | | | | | | | | | start of a valid real number.
| | | * Fix some comments (which were not correct any more in this branch), and ↵jan.nijtmans2016-12-221-10/+9
| | | | | | | | | | | | | | | | don't allow booleans in integer context.
| | | * Re-based to core-8-5-branch. jan.nijtmans2016-12-221-40/+129
| | | |\ | | | | | | | | | | Proposed fix for [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e], which doesn't need modifications to Double/Integer valid string representations.
| | | | * Merge trunk. Implement sequences like "0x", "0b" and "0o" as well. And also ↵jan.nijtmans2016-12-221-18/+62
| | | | |\ | | | | | | | | | | | | | | | | | | the "." for doubles and floats.
| | | | * | Experimental (partial) fix for ↵jan.nijtmans2016-12-211-53/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e]: Tcl_LinkVar is not tolerant to minus, plus, dot. This handled minus and plus only, not other possible errors. Will need a TIP, because the boolean type is extended to consider '-', '+' and 'o' (necessary for being able to type 'on' or 'off') as valid booleans Dot, and integer prefixes (such as 0x) not handled yet, should be handled completely different.
* | | | | | merge trunkdgp2016-12-231-17/+24
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Eliminate the internal macro/function TclNewIntObj: In all cases ↵jan.nijtmans2016-12-231-1/+1
| | |_|_|/ | |/| | | | | | | | | | | | | TclNewLongObj is just as good.
| * | | | Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj ↵jan.nijtmans2016-12-211-16/+23
| |\ \ \ \ | | |/ / / | | | | / | | |_|/ | |/| | don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp.
| | * | Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj ↵jan.nijtmans2016-12-211-16/+23
| | |\ \ | | | |/ | | | | | | | | don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp.
| | | * Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj ↵jan.nijtmans2016-12-211-16/+23
| | | | | | | | | | | | | | | | don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp.
* | | | merge trunkdgp2016-07-091-1/+1
|\ \ \ \ | |/ / /
| * | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-1/+1
| |/ / | | | | | | | | | in many places where possible.
* | | Revise several ACCEPT_NAN stanzas.dgp2016-03-301-2/+3
|/ /
* | Some VOID -> void, Tcl_TraceVar -> Tcl_TraceVar2 and Tcl_VarTraceInfo -> ↵jan.nijtmans2013-02-271-10/+11
| | | | | | | | Tcl_VarTraceInfo2 conversions.
* | 3317466 Prevent multiple Tcl_LinkVar() links to a single Tcl variable.dgp2011-06-211-0/+8
|\ \ | |/
| * 3317466 Prevent multiple Tcl_LinkVar() links to a single Tcl variable.dgp2011-06-211-0/+8
| |
* | 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.
* | 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/tclLink.c (Tcl_UpdateLinkedVar): guard against var beinghobbs2007-09-101-2/+9
| | | | | | | | | | | | unlinked. [Bug 1740631] (maros)
| | * [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.
| | * * generic/tclBasic.c:Miguel Sofer2005-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.