summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
Commit message (Collapse)AuthorAgeFilesLines
* merge core-8-6-branchjan.nijtmans2017-08-181-1/+1
|\
| * Better UTF-8 surrogate handling, only functional when TCL_UTF_MAX>3jan.nijtmans2017-06-081-1/+1
| |
* | merge core-8-6-branchjan.nijtmans2017-06-081-12/+35
|\ \
| * | Revert part of [95d096e0378b460c6c5168bb55bb2ca8b2fd799e|95d096e037]: Missed ↵jan.nijtmans2017-06-081-12/+35
| | | | | | | | | | | | the fact that tolower() was optimized for the ASCII case as well, so this was a mistake!
* | | merge core-8-6-branchjan.nijtmans2017-06-081-35/+12
|\ \ \ | |/ /
| * | tclUtil.c: Use TclUtfToUniChar() in stead of handling ASCII characters ↵jan.nijtmans2017-06-081-35/+12
| |/ | | | | | | | | separately: This macro already does that. Add new test-case for Tcl_NumUtfChars(), for a knownBug still to be fixed.
* | Remove some unnecessary "struct" definitions and some type casts no longer ↵jan.nijtmans2017-04-111-2/+2
| | | | | | | | necessary. No functional changes.
* | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-3/+3
| | | | | | | | | | TCL_ERROR is returned: The caller doesn't do anything with this. Don't access (non-const) variable tclEmptyStringRep any more, use its value (&tclEmptyString) directly. Only keep it in tclPkg.c, for error checking.
* | If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much ↵jan.nijtmans2017-01-251-4/+13
| | | | | | | | less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
* | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-14/+13
| | | | | | | | type-casts which are not necessary any more.
* | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-3/+3
|/ | | | in many places where possible.
* [16896d49fd] Tcl_DStrings should tolerate appends to self.dgp2016-06-221-0/+24
|\
| * [16896d49fd] Tcl_DStrings should tolerate appends to self.dgp2016-06-221-0/+24
| |
* | [40f628e8e3] Tcl_ListObjReplace() callers need to handle TCL_ERROR.dgp2015-11-201-1/+6
|\ \ | |/
| * [40f628e8e3] Tcl_ListObjReplace() callers need to handle TCL_ERROR.dgp2015-11-201-1/+7
| |
* | Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-24/+24
|\ \ | |/
| * Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-25/+25
| |
| * Fix more corner-cases like ↵jan.nijtmans2014-05-011-1/+1
| | | | | | | | [0e92c404f19ede5b2eb06e6db27647d3138cc56|0e92c404f1]: The only place where a type of &tclByteArrayType can be trusted is when determining its length, because the character length of a (UTF-8) string is always equal to the byte length of the byte array.
* | mark function return as unused, to avoid confusing CoverityMiguel Sofer2015-08-051-1/+1
| |
* | [84af1192f5]: [regsub] compiler no longer confused by quantification handling.dkf2014-09-091-1/+8
| |
* | Improved the error messages. dkf2014-06-071-20/+85
| | | | | | | | We do not want parsing an invalid dictionary to give errors about lists! As compensation, we get greater precision in the errorcode.
* | put the other definition of a trim set in the header file toodkf2013-12-301-6/+10
| |
* | Fix 3 trivial (possible) errors, discovered by covertity.comjan.nijtmans2013-09-041-2/+1
| |
* | speling ficksdgp2013-01-031-2/+2
|\ \ | |/
| * speling ficksdgp2013-01-031-2/+2
| |
| * Remove surplus parensdgp2012-07-191-1/+1
| |
* | Stop leaking allocated space when objifying a zero-length DString. [Bug ↵ferrieux2012-12-221-8/+10
| | | | | | | | 3598150] spotted by afredd.
* | Minor changes to improve style (C89 declarations, consistent indentation,dkf2012-08-071-323/+480
| | | | | | | | clarification of #endifs, reduction of unnecessary casts, use of array syntax for reading array elements, etc.)
* | converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-24/+16
| |
* | Fix mostly-harmless minor buffer overrun.dkf2012-07-161-2/+2
| |
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-3/+34
| |
* | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-0/+58
| | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one.
* | Reduce amount of unreachable code. Refactor Win socket and load code to be lessdkf2012-04-051-11/+0
| | | | | | baroque in its internals.
* | Refactor TclScanElement() part of list parsing to take advantage of tablesdgp2012-03-071-15/+18
| | | | | | | | | | constructed for the task of script parsing. Ought to speed generation of string representation of lists, though the effect is likely only noticeable on long lists made up primarily of simple elements (not needing quoting).
* | 3390638 Workaround broken solaris studio cc optimizer.dgp2011-09-131-1/+2
|\ \ | |/ | | Thanks to Wolfgang S. Kechel.
| * 3390638 Workaround broken solaris studio cc optimizer.dgp2011-09-131-1/+2
| |\ | | | | | | Thanks to Wolfgang S. Kechel.
| | * 3390638 Workaround broken solaris studio cc optimizer.dgp2011-09-131-1/+2
| | | | | | | | | Thanks to Wolfgang S. Kechel.
* | | 3371644 Repair failure to properly handle (length == -1) in TclConvertElement().dgp2011-07-191-3/+1
|\ \ \ | |/ /
| * | 3371644 Repair failure to properly handle (length == -1) in TclConvertElement().dgp2011-07-191-1/+1
| | |
* | | Fix [bug 3371644] -- crash on Tcl_ConvertElement with leading pound.ferrieux2011-07-191-1/+3
| | |
* | | Revised fix for bug 3309871dgp2011-06-011-2/+2
|\ \ \ | |/ /
| * | Revised fix for bug 3309871dgp2011-06-011-2/+2
| | |
* | | fix for [Bug 3309871]: Valgrind finds: invalid read in TclMaxListLength()jan.nijtmans2011-06-011-2/+2
|\ \ \ | |/ /
| * | fix for [Bug 3309871]: Valgrind finds: invalid read in TclMaxListLength()jan.nijtmans2011-06-011-2/+2
| | |
* | | Rewind from a refactoring that veered into the weeds.bug_3293874dgp2011-05-311-19/+4
|\ \ \
* | | | First draft of bug fix.dgp2011-05-111-2/+2
|/ / /
* | | New internal routines TclScanElement() and TclConvertElement().dgp2011-05-101-227/+722
|\ \ \ | |/ / | | | Rewritten guts of machinery to produce string rep of lists. [Bug 3173086]
| * | Completed patch with mucho comments. Merge 8.5.bug_3173086dgp2011-05-101-321/+744
| | |
| * | merge trunk + partial improvements to commentsdgp2011-03-071-40/+76
| | |
| * | Correct flaw in the rewrite handling [list \\\\\}].dgp2011-03-031-1/+1
| | |