Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make tclCkalloc.c and tclExecute warning-free on Windows when compiled with ↵ | jan.nijtmans | 2021-01-20 | 1 | -10/+10 |
| | | | | --enable-memory=(mem|all). | ||||
* | More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵ | jan.nijtmans | 2020-10-13 | 1 | -4/+4 |
| | | | | stead of Tcl_NewIntObj() | ||||
* | Make Tcl compile warning-free using -Wshadow | jan.nijtmans | 2020-09-28 | 1 | -17/+17 |
| | |||||
* | Folow-up to previous commit: ExecStack is a FLEXARRAY too | jan.nijtmans | 2020-09-11 | 1 | -3/+3 |
| | |||||
* | Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵ | jan.nijtmans | 2020-08-11 | 1 | -2/+2 |
| | | | | size_t or int | ||||
* | closes [3c6e47363e]: missing de-duplication mechanism for nested TEBC ↵ | sebres | 2020-07-15 | 1 | -1/+17 |
| | | | | starting from scratch (e. g. nested compiled blocks enclosed in parent cycle), so reset interp's result to avoid possible duplications of large objects by first commands like lappend, append, etc | ||||
* | Fix compiled "string is <class>" for TCL_UTF_MAX=4 build, for characters > ↵ | jan.nijtmans | 2020-05-25 | 1 | -2/+4 |
| | | | | U+FFFF. | ||||
* | New internal function TclGetUCS4() only available when TCL_UTF_MAX=4. This ↵ | jan.nijtmans | 2020-05-04 | 1 | -9/+3 |
| | | | | fixes all "knownBug" testcases related to tip389. | ||||
* | More uppercase HEX representations in source-code. | jan.nijtmans | 2020-03-18 | 1 | -9/+9 |
| | |||||
* | A few more "break" statements, so any compiler knows these are no ↵ | jan.nijtmans | 2020-01-15 | 1 | -17/+59 |
| | | | | FALLTHROUGH situations. | ||||
* | Use _copysign on Windows always (available from float.h). Use mp_iszero() ↵ | jan.nijtmans | 2020-01-08 | 1 | -3/+3 |
|\ | | | | | | | whenever appropriate. | ||||
* | | Fix Valgrind problem reported as follow-up in [fc4393e9b0]. Since it happens ↵ | jan.nijtmans | 2019-12-08 | 1 | -1/+1 |
| | | | | | | | | only for TCL_UTF_MAX>3 it's not actully a 'bug' in 8.6, but it might be a corner-case not handled well in 8.7 | ||||
* | | Change mp_isodd() (back) from libtommath stub entry to macro. libtommath ↵ | jan.nijtmans | 2019-10-30 | 1 | -1/+1 |
| | | | | | | | | | | changed it back to macro too in its master branch, we better do the same. Better usage of mp_isneg() macro, in stead of directly comparing sign with MP_NEG/MP_ZPOS. | ||||
* | | Update to latest Tcl (core-8-6-branch) and latest libtommath (1.2.0-rc1) | jan.nijtmans | 2019-10-17 | 1 | -13/+24 |
|\ \ | |||||
| * | | TEBC: avoid error "unitialized variable" if called in debug mode (or with ↵ | sebres | 2019-09-18 | 1 | -1/+1 |
| | | | | | | | | | | | | analysis tools) - objv = NULL, similar to objc = 0 (e. g. calling parser.test, in doYield by INTERP_DEBUG_FRAME) | ||||
| * | | Add /* FALLTHRU */ markers in various places (silencing possible GCC ↵ | jan.nijtmans | 2019-08-28 | 1 | -0/+5 |
| | | | | | | | | | | | | warnings). Eliminate some more "register" keywords. Eliminate (or silence) some unused function parameters. | ||||
| * | | closes [fa6bf38d07]: integrate bug-fa6bf38d07-v2 | sebres | 2019-08-27 | 1 | -12/+18 |
| |\ \ | |||||
| | * | | small amend: be sure checkInterp is set if entering back the code marked as ↵ | sebres | 2019-08-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | TCL_BYTECODE_RECOMPILE (normally also set in CACHE_STACK_INFO, but...) | ||||
| | * | | simplification, use the same "fixed" (and faster) code for INST_EVAL_STK | sebres | 2019-08-27 | 1 | -11/+6 |
| | | | | |||||
| | * | | fixes [fa6bf38d07]: command invocation (NRE callback to TEBCResume) caused ↵ | sebres | 2019-08-27 | 1 | -9/+20 |
| |/ / | | | | | | | | | | by execution of recompiled TEBC (on epoch bump) | ||||
* | | | Merge core-8-6-branch, and merge latest libtommath | jan.nijtmans | 2019-07-28 | 1 | -3/+19 |
|\ \ \ | |/ / | |||||
| * | | merge 8.5 (reintegrate, no functional changes) | sebres | 2019-07-24 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | cherrypick timerate-loop-opti--discard-result | sebres | 2019-07-24 | 1 | -1/+17 |
| | | | |||||
| | * | fixed build with MSVC 6.0 | sebres | 2019-06-25 | 1 | -6/+3 |
| | | | |||||
| * | | fix done optimization (TCL_EVAL_DISCARD_RESULT) for nested call - supply and ↵ | sebres | 2019-07-23 | 1 | -2/+10 |
| | | | | | | | | | | | | | | | reset discard result flag in registering TEBC-callback, because it is applicable for this call only, and should not affect all the nested invocations may return result (added tests covering that). | ||||
| * | | better rewritten loop optimization: new evalFlag "TCL_EVAL_DISCARD_RESULT" ↵ | sebres | 2019-07-23 | 1 | -1/+9 |
|/ / | | | | | | | | | | | introduced, which allows to organize faster TEBC-loop with discarding of result, simulating pop & done, like it does continue in loop (so ensures that setting of result will not smudge the measurement). | ||||
* | | Trying to fix C4761 warning with VC++ 6.0 | jan.nijtmans | 2019-06-29 | 1 | -1/+1 |
| | | |||||
* | | [6bdadfba7d] Stop crash with multi-lappend and failing writes | dkf | 2019-06-20 | 1 | -8/+13 |
| | | |||||
* | | Rename mp_get_bit to s_mp_get_bit, rename mp_tc_div_2d to mp_signed_rsh, ↵ | jan.nijtmans | 2019-05-31 | 1 | -1/+1 |
| | | | | | | | | remove mp_tc_(add|or|xor) functions in favor of mp_(add|or|xor) which can now handle twos-complement. Following ongoing changes in libtommath development. | ||||
* | | Merge 8.5 | jan.nijtmans | 2019-05-29 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Update some libtommath functions to the latest trunk versions. Small step ↵ | jan.nijtmans | 2019-05-29 | 1 | -153/+36 |
| | | | | | | | | | | forward in the upgrade to (upcoming) libtommath 1.2. Advantage: simplify Tcl code accessing those functions. | ||||
* | | end-of-line spacing | jan.nijtmans | 2019-05-24 | 1 | -2/+2 |
|\ \ | |/ | |||||
* | | Minor compiler warning | jan.nijtmans | 2019-05-09 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | back-ported branch sebres-8-6-timerate (new command "timerate" for 8.5) | sebres | 2017-05-16 | 1 | -94/+134 |
| |\ | |||||
| * | | [04e26c02c0] Remove useless condition that raises warnings. | dgp | 2017-04-27 | 1 | -6/+2 |
| | | | |||||
* | | | Only use special mp_sqrt() code when double format/tommath format are ↵ | jan.nijtmans | 2019-04-11 | 1 | -12/+8 |
| | | | | | | | | | | | | | | | | | | exactly what's expected. Otherwise, use original always-working tommath code. Simplify overflow check in bignum expononent code, not using bignums where it's not necessary. Don't overallocate bignums when using wideint's only. | ||||
* | | | Fix gcc warning on 32-bit platforms | jan.nijtmans | 2019-04-02 | 1 | -0/+4 |
| | | | |||||
* | | | integrate sebres-8-6-tommath-1-1 - cherry-picking of several optimizations ↵ | sebres | 2019-04-01 | 1 | -282/+187 |
|\ \ \ | | | | | | | | | | | | | and simplifications of 8.7 (tommath 1.1), well-arranged branching of long/wide/bignum base and exponent cases, test-cases extended to cover all this branches and edge cases. | ||||
| * | | | code review | sebres | 2019-02-04 | 1 | -4/+6 |
| | | | | |||||
| * | | | cherry pick of [238bd4d2c053540c]..[31dd092df4b57fdb]: More simplifications ↵ | sebres | 2019-02-04 | 1 | -150/+178 |
| | | | | | | | | | | | | | | | | in tclExecute.c (INST_EXPON), much more and well-arranged branching of long/wide/bignum base and exponent cases, test-cases extended to cover all this branches and edge cases. | ||||
| * | | | partial cherry pick of [e8e92eb381d689ab]: One more libtommath function, ↵ | sebres | 2019-02-04 | 1 | -10/+1 |
| | | | | | | | | | | | | | | | | mp_tc_div_2d, which simplifies code. | ||||
| * | | | partial cherry pick of [c5c83014d6]: Many simplifications in tclExecute.c, ↵ | sebres | 2019-02-04 | 1 | -121/+5 |
| | | | | | | | | | | | | | | | | now that libtommath provides new functions mp_tc_and, mp_tc_or and mp_tc_xor | ||||
* | | | | Document maximum value for right argument of '**' operator. | jan.nijtmans | 2019-03-27 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | | | | | Adapt test-cases to test for exactly one more than this maximum value. Make sure that the maximum is the same for DIGIT_BIT > 28. Change macro's for mp_iseven()/mp_isodd() so they don't depend on value of DIGIT_BIT any more. | ||||
* | | | | Eliminate all usage of mp_iszero/mp_iseven/mp_isodd/mp_isneg from ↵ | jan.nijtmans | 2019-03-25 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | libtommath: In the upcoming new version those will become real functions, causing possible binary incompatibility. This change makes Tcl independant from libtommath's changes. | ||||
* | | | | Backport [bd94500678e837d7] from 8.7, preventing endless loops in UTF-8 ↵ | jan.nijtmans | 2019-03-02 | 1 | -1/+1 |
|/ / / | | | | | | | | | | conversions when handling surrogates. Only effective when compiling with -DTCL_UTF_MAX=4|6 (default: 3). Meant for benefit of Androwish. | ||||
* | | | minor optimization: check length instead of content - don't touch other ↵ | sebres | 2019-01-14 | 1 | -1/+1 |
| | | | | | | | | | | | | memory (so potentially fewer cpu-cache washout's) | ||||
* | | | Slightly simpler test for empty string, still covering all cases. Also ↵ | jan.nijtmans | 2019-01-13 | 1 | -1/+1 |
| | | | | | | | | | | | | prepare testpurebytesobj for strings >2G | ||||
* | | | Fix crash reported by reported by François Vogel related to: ↵ | jan.nijtmans | 2019-01-11 | 1 | -1/+1 |
| | | | | | | | | | | | | [cc1e91552c0ca1817292d951f8c694b28c2b2251|cc1e91552c] | ||||
* | | | closes [cc1e91552c]: fixes lrange instruction on empty list, return original ↵ | sebres | 2019-01-08 | 1 | -2/+6 |
| | | | | | | | | | | | | list only if it is canonical (otherwise new list object) | ||||
* | | | resolve warnings: array subscript -1 is below array bounds of 'void *[1]' ↵ | sebres | 2018-12-28 | 1 | -1/+1 |
| | | | | | | | | | | | | [-Warray-bounds] if compiled with newest gcc |