summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7. Documentation improvements and code cleanup. Approaching finish.jan.nijtmans2019-08-011-1/+1
|
* TIP #544 implementation. Documentation still missing.jan.nijtmans2019-05-151-3/+3
|
* Modify testbytestring such that is only produces pure byte-arrays, if not it ↵jan.nijtmans2019-04-011-3/+3
| | | | | errors out. Modify Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewWideIntObj. Less references to "long" datatype.
* Make Tcl_StringMatch() into a wrapper macro around Tcl_StringCaseMatch()jan.nijtmans2019-03-271-1/+3
|
* Make all internal small buffer related to Tcl_UtfBackslash() length 4, not ↵jan.nijtmans2019-03-241-1/+1
| | | | | TCL_UTF_MAX: For TCL_UTF_MAX=6 it was overkill, for TCL_UTF_MAX=3 not enough. Prove that this works by adding a Travis CI build configuration using TCL_UTF_MAX=3
* Eliminate usage of mp_isneg(), just check bignum->sign directly (as ↵jan.nijtmans2019-03-151-3/+3
| | | | | libtommath itself does) Make TclInitBugnumFromLong() a static function in stubtable only, as it isn't used by Tcl anymore.
* Fixes for TCL_UTF_MAX=6, (gcc compiler warnings). Also make everything work ↵jan.nijtmans2019-03-071-1/+1
| | | | on win32/win64. Patch adapted from Androwish (thanks, Werner!)
* More use of TclHasIntRep() macro. Add vfs build director to fossil ignore-globjan.nijtmans2019-03-011-1/+1
|
* Fix [bd94500678e837d7]: SEGFAULT by conversion of unicode (out of BMP) to ↵jan.nijtmans2019-02-271-1/+1
|\ | | | | | | byte-array
| * Finish complete fix, all corner-cases correct now. Also spurious UTF-8 ↵jan.nijtmans2019-02-251-1/+1
| | | | | | | | testcase failure (as seen on travis) fixed now.
* | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-5/+5
|/ | | | and (unsigned) type-casts, which don't make sense any more.
* 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.
* One more libtommath function, mp_tc_div_2d, which simplifies code. Some more ↵jan.nijtmans2019-01-221-11/+8
| | | | code readability improvements.
* Clamp output of TclIndexDecode() between -1 (TCL_INDEX_NONE) and INT_MAX. ↵jan.nijtmans2019-01-181-3/+7
| | | | Use this to produce slightly better error-message for lsort -index
* More TIP #502 optimizations and improvements, preparing further for the road ↵jan.nijtmans2019-01-161-24/+18
| | | | | | to Tcl 9. No longer use INT_MAX for TCL_INDEX_AFTER, because INT_MAX can be a normal index in Tcl 9. TclGetIntForIndex now clips between -1 and INT_MAX. In Tcl 9 size_t will be used for the index data type.
* If compiled with -DTCL_NO_DEPRECATED, remove ↵jan.nijtmans2018-12-121-4/+4
| | | | | Tcl_NewIntObj/Tcl_NewLongObj/Tcl_DbNewLongObj from stub table, as they will be gone in 9.0 (converted to a macro) Use Tcl_WideInt's directly in more places, diminishing the possibility of inadvent overflow.
* Merge and adapt 8.6dgp2018-11-091-0/+17
|\
| * merge 8.5dgp2018-11-091-0/+17
| |\
| | * Revise bug fix to support (length == 0) correctly.dgp2018-11-091-4/+17
| | | | | | | | | Added comments and improved safety in caller.
| | * closes [35a8f1c04a]: minimalist fix - beware of discrepancy between ↵sebres2018-11-091-0/+4
| | | | | | | | | | | | TclScanElement and TclConvertElement (prefer braces considering TCL_DONT_QUOTE_HASH in case of first list element)
* | | Implement TIP 445dkf2018-11-061-15/+15
|\ \ \
| * \ \ merge 8.7dgp2018-10-241-115/+72
| |\ \ \
| * \ \ \ merge 8.7dgp2018-10-181-111/+360
| |\ \ \ \
| * \ \ \ \ merge 8.7dgp2018-03-151-72/+183
| |\ \ \ \ \
| * \ \ \ \ \ merge 8.7dgp2018-03-101-1/+138
| |\ \ \ \ \ \
| * \ \ \ \ \ \ merge 8.7dgp2018-02-231-5/+7
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ merge 8.7dgp2018-02-151-0/+3
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ merge 8.7dgp2018-02-091-1/+1
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ merge 8.7dgp2018-02-061-5/+5
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ merge 8.7dgp2018-01-231-0/+2
| |\ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ merge 8.7dgp2017-12-191-4/+6
| |\ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ merge 8.7dgp2017-11-301-6/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ merge 8.7dgp2017-11-151-21/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2017-09-011-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2017-04-121-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2017-02-031-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2017-01-271-4/+13
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2016-11-161-14/+13
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | Reduce direct use of the tclEmptyStringRep.dgp2016-10-121-3/+3
| | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | Purge another direct access to bytes field.dgp2016-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | merge trunkdgp2016-07-091-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2016-06-221-0/+24
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | Revise the "end-offset" objType to use proposed routines, and not export ordgp2016-04-111-123/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | provide unneeded things.
| * | | | | | | | | | | | | | | | | | | | | | Update Tcl_InitStringRep callers to handle OOM condition.dgp2016-03-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | Revised "end-offset" Tcl_ObjType to use new routine.dgp2016-03-241-8/+7
| | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | Fix compilation on Visual C++ 6.0, which doesn't have LLONG_MIN/LLONG_MAXjan.nijtmans2018-10-291-18/+18
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | / / | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | Streamline and comment combined routine.dgp2018-10-231-24/+34
| | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | rework the logic a bitdgp2018-10-231-30/+27
| | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | End the deprecated practice of accepting "e" and "en" as valid index values.dgp2018-10-231-3/+5
| | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | Refactor the SetEndOffsetFromAny() routine into its only caller.dgp2018-10-231-102/+59
| | | | | | | | | | | | | | | | | | | | | |