summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | | Merge tip-548jan.nijtmans2019-08-291-3/+1
|\ \ \ \ | |/ / /
| * | | Merge 8.6jan.nijtmans2019-08-281-3/+1
| |\ \ \ | | |/ /
| | * | Add /* FALLTHRU */ markers in various places (silencing possible GCC ↵jan.nijtmans2019-08-281-3/+1
| | | | | | | | | | | | | | | | warnings). Eliminate some more "register" keywords. Eliminate (or silence) some unused function parameters.
* | | | Merge 8.7. Continue implementation for win32jan.nijtmans2019-08-021-22/+22
|\ \ \ \ | |/ / /
| * | | Eliminate "register" keyword usage from all header-files (and also ↵jan.nijtmans2019-07-251-24/+24
| | | | | | | | | | | | | | | | corresponding implementations).
| * | | Eliminate the use of C++ keywords as variable names. Nothing more than ↵jan.nijtmans2019-07-231-2/+2
| | | | | | | | | | | | | | | | rename the variables in something else.
* | | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-23/+23
|\ \ \ \ | |/ / /
* | | | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-6/+6
|/ / /
* | | Eliminate (internal) TclOffset() usage, just use offsetof() in stead.jan.nijtmans2019-06-121-1/+1
| | |
* | | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-1/+1
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | merge 8.6 (regression fix [e3f481f187], conflicts resolved)sebres2019-02-011-30/+25
|\ \ \ | |/ /
| * | code review with small amend (note nameLength is number of bytes, the ↵sebres2019-01-311-17/+16
| | | | | | | | | | | | argument may be utf-8 as well as not necessarily a NTS, so access of char after end may cause segfault).
| * | fixes utf-8 compatibility of proc/lambda arguments (regression on compiled ↵sebres2019-01-301-14/+11
| | | | | | | | | | | | | | | | | | | | | locals/variables containing utf-8 characters) - CompiledLocal::nameLength is length in bytes not in chars everywhere in tcl; simplest example: % apply {{€} { set "€" }} 1; # or apply [list \u20ac { set \u20ac }] 1 can't read "€": no such variable
* | | New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep. jan.nijtmans2019-01-281-4/+4
| | | | | | | | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* | | merge 8.7dgp2018-10-181-82/+56
|\ \ \
| * \ \ Implementatin of TIP #515: Level Value Reformjan.nijtmans2018-09-261-59/+31
| |\ \ \
| | * \ \ merge 8.7jan.nijtmans2018-09-221-1/+1
| | |\ \ \
| | * \ \ \ Merge core-8-branchjan.nijtmans2018-09-081-4/+4
| | |\ \ \ \
| | * | | | | TIP #515 implementation: Level Value Reformjan.nijtmans2018-09-071-59/+31
| | | | | | |
| * | | | | | merge 8.6jan.nijtmans2018-09-251-17/+19
| |\ \ \ \ \ \ | | |_|_|/ / / | |/| | | / / | | | |_|/ / | | |/| | |
| | * | | | Contributed patch from Gustaf Neumann, preventing problems where ↵jan.nijtmans2018-09-251-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | "localCachePtr" can be NULL
| * | | | | Merge 8.6jan.nijtmans2018-09-071-1/+1
| |\ \ \ \ \ | | |/ / / / | | | | / / | | |_|/ / | |/| | |
| | * | | small code review (duplicate code removed)sebres2018-09-071-1/+1
| | | | |
| * | | | merge 8.6 (segfault fix)sebres2018-09-071-4/+4
| |\ \ \ \ | | |/ / / | | | / / | | |/ / | |/| |
| | * | closes [631b4c45df]: segfault by usage of wrong length (no string ↵sebres2018-09-071-4/+4
| | | | | | | | | | | | | | | | representation)
| | * | Fix segmentation fault in TclOO that was noted in [16fe1b5807]. Updatepooryorick2018-02-141-11/+11
| | | | | | | | | | | | coroutine and TclOO object creation routines to use TclCreateObjCommandInNs.