summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
Commit message (Collapse)AuthorAgeFilesLines
* Reduce shimmering: If a conclusion can be drawn about the number of list ↵jan.nijtmans2022-11-281-0/+8
| | | | elements, don't get the elements before the list length is checked
* If CFLAGS contains -DTCL_NO_DEPRECATED, remove TclInitCompiledLocals. More ↵jan.nijtmans2022-11-021-45/+51
| | | | code cleanup (backported from 9.0)
* Merge 8.6jan.nijtmans2022-09-221-3/+2
|\
| * Do the "#undef TclObjInterpProc" slightly earlierjan.nijtmans2022-09-221-2/+1
| |
* | Merge 8.6jan.nijtmans2022-09-221-1/+1
|\ \ | |/
| * Make TclObjInterpProc a macro (since it always should be used through ↵jan.nijtmans2022-09-221-50/+25
| | | | | | | | | | TclGetObjInterpProc()) Add some unused stub entries. Add some more type-casts to tclProc.c
* | New (internal) function TclGetObjInterpProc2() and macro TclObjInterpProc2. ↵jan.nijtmans2022-09-191-5/+48
| | | | | | | | Will be needed for Itcl (in combination with TIP #626). Should have been part of TIP #627.
* | Change TclObjInterpProc() to a macro, since extensions should never invoke ↵jan.nijtmans2022-09-091-0/+2
| | | | | | | | it directly, always through TclGetObjInterpProc()
* | [37108037b9]: Code cleanups to support CHERI: Apply patch 0007 (modified)jan.nijtmans2022-08-261-1/+1
| |
* | amend for [4eb3a155ac] SF-fix: 8.7 specific implementation and warnings ↵sebres2022-07-291-5/+5
| | | | | | | | silencing
* | merge 8.6 (apply SF fix)sebres2022-07-291-2/+15
|\ \ | |/
| * fixes [4eb3a155ac] and similar segfaults: reset corresponding ↵sebres2022-07-271-2/+15
| | | | | | | | bodyPtr->procPtr if procPtr gets released in TclProcCleanupProc, also recompile body if its procPtr is not the same as supplied.
* | Unneeded type-castjan.nijtmans2022-06-201-1/+1
| |
* | Deprecate 2 internal typedefs: TclCmdProcType/TclObjCmdProcType. Too little ↵jan.nijtmans2022-05-251-2/+2
| | | | | | | | benefit to keep them
* | Rename macro's TclListObjGetElements -> TclListObjGetElementsM and ↵jan.nijtmans2022-05-171-4/+4
| | | | | | | | TclListObjLength -> TclListObjLengthM (prevent conflict with TIP #616)
* | Handle Tcl_GetCharLengthjan.nijtmans2022-03-161-1/+1
| |
* | Merge 8.6jan.nijtmans2022-02-101-3/+3
|\ \ | |/
| * Use TclListObjLength/TclListObjGetElements in stead of ↵jan.nijtmans2022-02-101-3/+3
| | | | | | | | Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type
* | Merge 8.6jan.nijtmans2022-01-141-1/+1
|\ \ | |/
| * Fix [816913a65e]: GrowStringBuffer(): signed integer overflow. And a few ↵jan.nijtmans2022-01-131-1/+1
| | | | | | | | similar situations in other place
* | Merge 8.6jan.nijtmans2022-01-131-1/+1
|\ \ | |/
| * Fix [6cb3db4965]: pointer arithmetic using NULL in InitArgsAndLocals()jan.nijtmans2022-01-131-1/+1
| |
* | Merge 8.7jan.nijtmans2021-10-111-1/+1
|\ \ | |/
| * Fix for issue [a8579d906a28], "argument with no name".pooryorick2021-10-081-1/+1
| |
* | Change "IntRep" to "InternalRep", as discussed in the Tcl Core mailing listjan.nijtmans2021-10-061-36/+36
| |
* | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-4/+4
| | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | Merge 8.6jan.nijtmans2020-09-251-1/+1
|\ \ | |/
| * When sourcing script files (even when simulating that through open|read), ↵jan.nijtmans2020-09-251-1/+1
| |\ | | | | | | | | | | | | always set -eofchar \032 just like the source command does. Possible security issue: this could make it possible to evaluate hidden content at the end of pkgIndex files.
* | \ Merge 8.6dgp2020-09-201-16/+14
|\ \ \ | |/ /
| * | Make the check to avoid generating a string representation in [uplevel] a ↵pooryorick2020-09-201-16/+14
| | | | | | | | | | | | little less intrusive.
| * | Fix for [b9ecf3ce98], [uplevel] unnecessarily generates string representation.pooryorick2020-09-191-11/+34
| | |
* | | Fix for [b9ecf3ce98], [uplevel] unnecessarily generates string representation.pooryorick2020-09-191-11/+34
| | |
* | | Merge 8.6. Remove tests/safe-stock86.test for win builds too (GIT, what are ↵jan.nijtmans2020-09-111-3/+4
|\ \ \ | |/ / | | | | | | you doing ...!)
| * | Fix [https://core.tcl-lang.org/tk/tktview?name=3bc0f44ef3|3bc0f44ef3]: UBSan ↵jan.nijtmans2020-09-111-5/+5
| | | | | | | | | | | | | | | complains about body.chars[] usage. (Yes, I know, this one is for Tk, but Tcl was using the same construct too ....)
* | | Backout uncomplete fix for [3422267ed6b79922]: segmentation fault from ↵jan.nijtmans2020-08-131-7/+0
| | | | | | | | | | | | | | | deleting the the target of an imported alias during a trace on the target of the alias. Since it causes build failures.
* | | Fix for [3422267ed6b7], segmentation fault with imported alias.pooryorick2020-08-121-0/+7
| | |
* | | Merge 8.6jan.nijtmans2020-05-141-2/+2
|\ \ \ | |/ /
| * | In some places, Tcl_UtfPrev()/Tcl_UtfNext() is used traversing the ↵jan.nijtmans2020-05-141-45/+45
| |\ \ | | | | | | | | | | | | | | | | | | | | individual bytes of a string searching for '(', ')', '::' or other single bytes. It is overkill to use Tcl_UtfPrev/Tcl_UtfNext for that, since those characters can only appear as their ASCII byte, not as any other sequence. This effectively removes the last Tcl_UtfNext() call from the core, the only ones left are in tclTest.c for test commands. So the TclUtfNext() macro doesn't make sense any more. Remove "register" keyword from many files.
| | * | In some places, Tcl_UtfPrev()/Tcl_UtfNext() is used traversing the ↵jan.nijtmans2020-05-131-2/+2
| |/ / | | | | | | | | | individual bytes of a string searching for '(', ')', '::' or other single bytes. It is overkill to use Tcl_UtfPrev/Tcl_UtfNext for that, since those characters can only appear as their ASCII byte, not as any other sequence.
| * | Merge 8.5jan.nijtmans2019-09-101-1/+1
| |\ \ | | |/
| * | merge 8.5sebres2019-09-061-2/+7
| |\ \ | | |/
| | * if frameName (actual level) does not contain a real level (#0 or 1) ↵sebres2019-09-061-3/+8
| | | | | | | | | | | | | | | historically TclGetFrame and Tcl_UpVar2 uses current level - 1, so to put supplied name in case of bad level (error at top - 1) is wrong; be more consistent with TclObjGetFrame (at least in error case if relative level used).
| | * fix bad level (if specified argument is not a level at all)sebres2019-09-061-0/+1
| | |
* | | TIP 569 - remove lint commentsdgp2020-03-171-2/+0
| | |
* | | More TCL_UNUSED.dgp2020-03-081-19/+12
| | |
* | | Merge 8.7jan.nijtmans2019-09-191-1/+1
|\ \ \
* \ \ \ Merge 8.7jan.nijtmans2019-09-141-6/+12
|\ \ \ \ | |/ / /
| * | | simple and binary compatible fix for [775ee88560]: use correct relative ↵sebres2019-09-061-5/+11
| | | | | | | | | | | | | | | | level (1) in case of top-1, "bad level" message points "below global level" (no regressions anymore, all tests pass)
| * | | cherry-pick [af744d56e0ffcc65] fixed segfault of [775ee88560] in 8.7sebres2019-09-061-1/+1
| | | |
* | | | Mark more function paramaters as unused. Now Tcl compiles fully (on UNIX and ↵jan.nijtmans2019-09-051-0/+8
|\ \ \ \ | |/ / / | | | | | | | | Windows) without -Wunused-parameters warnings