summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2020-09-281-2/+2
|\
* | Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-1/+1
| | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
* | Fix for test lindex-18.0dgp2020-09-021-9/+8
| |
* | Merge 8.6jan.nijtmans2020-07-201-2/+2
|\ \ | |/
| * Use "Global" in stead of "Master" internally, where "Master" is not used in ↵jan.nijtmans2020-07-201-2/+2
| | | | | | | | the Master-Slave paradigm and where this makes sense.
* | Make Tcl_GetIntForIndex() do reasonable things when endValue < -1 and when ↵jan.nijtmans2020-06-161-9/+13
| | | | | | | | indexPtr == NULL.
* | Merge 8.7jan.nijtmans2020-05-241-244/+193
|\ \
| * \ Merge 8.6jan.nijtmans2020-05-141-1/+2
| |\ \ | | |/
| | * In some places, Tcl_UtfPrev()/Tcl_UtfNext() is used traversing the ↵jan.nijtmans2020-05-141-4/+5
| | | | | | | | | | | | | | | | | | 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.
| * | Merge 8.6jan.nijtmans2020-05-051-16/+16
| |\ \ | | |/
| | * More usage of TclUtfToUCS4(), so we can use the whole Unicode range better ↵jan.nijtmans2020-05-051-22/+22
| | | | | | | | | | | | in TCL_UTF_MAX>3 builds.
| * | Merge 8.6. This mainly introduces the overlong check into Tcl_UtfPrev(). 10 ↵jan.nijtmans2020-04-241-2/+2
| |\ \ | | |/ | | | | | | testcase changed results, all of them due to the Tcl_UtfPrev() improvement. Tcl_UtfNext() is not affected: Previous implementation was based on Tcl_UtfToUniChar(), which already did this check.
| | * Code cleanup (more typecasts), making it more compatible with -Wc++-compat. ↵jan.nijtmans2020-04-201-31/+30
| | | | | | | | | | | | Less use of /* ARGUSED */.
| | * Merge 8.5. Failing tests for now. To be remedied shortly.dgp2020-04-161-2/+2
| | |\
| | | * merge 8.5dgp2020-04-161-1/+1
| | | |\
| | | | * Create and use macro TclUtfPrev for Tcl_UtfPrev.dgp2020-04-161-1/+1
| | | | |
| | | * | Create and use an optimized macro TclUtfNext() for Tcl_UtfNext().dgp2020-04-141-1/+1
| | | |/
| | * | TclTrimRight/TclTrimLeft: removed mixed declarations and code (forbidden in ↵sebres2020-04-151-3/+4
| | | | | | | | | | | | | | | | | | | | ISO C90, declaration-after-statement); restored mistakenly removed part of check-in [578c25b43a] (move Tcl_UniChar initializations out of the loop), but "ch2" belongs to the inner loop, so move it inside outer interation.
| * | | Fix windows build (with older compilers)jan.nijtmans2020-04-141-1/+1
| | | |
| * | | Merge 8.6jan.nijtmans2020-04-141-228/+176
| |\ \ \ | | |/ /
| | * | Merge 8.5. Failing tests highlight ticket [1b1f5f0b53].dgp2020-04-131-232/+181
| | |\ \ | | | |/
| | | * [a7f685a181] Eliminate botched call of Tcl_UtfPrev.dgp2020-04-131-3/+5
| | | |
| | | * TclTrim() can also demand NUL-terminated arguments, and be simplified.dgp2020-04-131-64/+21
| | | |
| | | * TclTrimLeft and TclTrimRight are internal routines. They demand NUL-terminateddgp2020-04-131-69/+25
| | | | | | | | | | | | | | | | arguments. That's a reasonable burden to put on internal callers, and all existing callers already meet it.
| | | * [c61818e4c9] [string trimright] robustly handle backing up over incompletedgp2020-04-131-2/+9
| | | | | | | | | | | | or malformed byte sequences.
| | | * Cherrypick partial fix.dgp2020-04-131-5/+4
| | | |
| | | * [085913c760] Fix Tcl_DStringAppendElement quoting of #.dgp2020-04-091-12/+32
| | | |
| | | * Guarantee TclNeedSpace and TclFindElement have common definition of whitespacedgp2020-04-091-70/+50
| | | | | | | | | | | | | | | | by having both call the same routine. Create a macro form to contain performance costs and adapt callers.
| | | * [afa4b28153] Correct TclNeedSpace handling of trailing escaped space.dgp2020-04-091-8/+36
| | | |
* | | | Merge 8.7jan.nijtmans2020-04-081-6/+6
|\ \ \ \ | |/ / /
| * | | Fix [dd010cadfb]: [string trim] mishandles surrogatesjan.nijtmans2020-04-061-6/+6
| | | |
* | | | Merge 8.7jan.nijtmans2020-03-201-4/+4
|\ \ \ \ | |/ / /
| * | | Merge 8.6jan.nijtmans2020-03-181-4/+4
| |\ \ \ | | |/ /
| | * | More uppercase HEX representations in source-code.jan.nijtmans2020-03-181-4/+4
| | | |
* | | | Merge 8.7jan.nijtmans2020-03-171-2/+1
|\ \ \ \ | |/ / /
| * | | TIP 569 - remove lint commentsdgp2020-03-171-2/+1
| | | |
* | | | Complete implementation. Let's take some time for testing.jan.nijtmans2020-03-161-8/+10
| | | |
* | | | More WIPjan.nijtmans2020-03-161-13/+32
| | | |
* | | | Further simply TclIndexEncode(), and fix range checks.jan.nijtmans2020-03-161-46/+34
| | | |
* | | | Simplify TclIndexEncode(). Range checks not 100% correct yet. More WIP.jan.nijtmans2020-03-151-180/+168
| | | |
* | | | WIP: Reform internal representation of "end-offset" type, so it can be used ↵jan.nijtmans2020-03-131-9/+18
|/ / / | | | | | | | | | for "integer-integer" as well.
* | | Moredgp2020-03-091-5/+3
| | |
* | | Merge 8.7jan.nijtmans2020-01-071-18/+5
|\ \ \
| * \ \ Merge 8.6jan.nijtmans2019-12-221-18/+5
| |\ \ \ | | |/ /
| | * | Minor optimization in TclFormatInt: No need to check for "0" as special ↵jan.nijtmans2019-12-221-18/+5
| | | | | | | | | | | | | | | | value. No need to include final NULL-byte in character-reversion operation, as we already known the NULL-byte will come last.
* | | | Two more unused arguments. jan.nijtmans2019-12-201-15/+4
|\ \ \ \ | |/ / / | | | | Merge 8.7
| * | | Merge 8.6jan.nijtmans2019-12-191-1/+1
| |\ \ \ | | |/ /
| | * | Merge 8.5jan.nijtmans2019-12-191-1/+1
| | |\ \ | | | |/
| | | * Add type-cast, making sure that the unary minus is handled correctly on any ↵jan.nijtmans2019-12-191-1/+1
| | | | | | | | | | | | | | | | compiler
| * | | Merge 8.6jan.nijtmans2019-12-191-15/+4
| |\ \ \ | | |/ /