summaryrefslogtreecommitdiffstats
path: root/generic/tkSelect.c
Commit message (Collapse)AuthorAgeFilesLines
* Add ISSUE_TEMPLATE and PULL_REQUEST_TEMPLATE for github. jan.nijtmans2021-06-211-1/+1
| | | Change many url's from http:// to https://
* Add more implicit type-casts. Backported from 8.7jan.nijtmans2021-04-231-1/+1
|
* Fix 3 places where Tcl_UtfToUniChar must be used and not TkUtfToUniChar: ↵jan.nijtmans2021-03-231-2/+2
| | | | | numChars/charIndex is counting character indexes here; surrogate-pairs count as 2. This can cause a miscount when Emoji are pasted in a Text widget.
* Fix [3bc0f44ef3]: UBSan complains about body.chars[] usagejan.nijtmans2020-09-111-1/+1
|\
| * Merge trunkjan.nijtmans2020-09-101-3/+1
| |\
| | * Merge 8.6jan.nijtmans2020-09-101-3/+1
| | |\ | |_|/ |/| |
| * | Merge trunk. Introduce TKFLEXARRAY, since this usage is a GNU extension ↵jan.nijtmans2020-09-101-1/+1
| |/ | | | | | | (lated adopted by MSVC too)
| * New TIP #580 implementation. Documentation still missing.jan.nijtmans2020-07-141-1/+1
| |
| * Formatting and even more size_t usage.jan.nijtmans2020-05-251-2/+2
| |
| * Merge trunk. Fix C++ builds, also for TCL_UTF_MAX=4 and TCL_UTF_MAX=6jan.nijtmans2020-05-231-2/+2
| |\
| * | Use more size_t for *Sel*-related functions, in case compiling with Tcl 9jan.nijtmans2020-05-211-9/+9
| |/
| * Merge 8.6. Protection done by TkUtfAtIndex() not needed here, because ↵jan.nijtmans2020-05-201-2/+2
| |\ | | | | | | | | | Tcl_UtfAtIndex() in Tcl 8.7 already does that.
| * \ Merge 8.6jan.nijtmans2020-05-181-1/+2
| |\ \
| * | | TIP 569 remove lint commentsdgp2020-03-181-1/+0
| | | |
| * | | Much more WIP: Appears to be working on UNIX, and for a bit part on Windows too.jan.nijtmans2019-12-201-31/+33
| | | |
| * | | Merge 8.6jan.nijtmans2019-07-021-1/+1
| |\ \ \
| * | | | Eliminate some redundant type-castsjan.nijtmans2019-06-211-1/+1
| | | | |
| * | | | Merge trunkjan.nijtmans2019-05-101-3/+3
| |\ \ \ \
| | * | | | Remove a few unnecessary (size_t) type-casts, and add a "const"jan.nijtmans2019-04-041-2/+2
| | | | | |
| | * | | | Change size_t usages to (internal type) TkSizeT usages, which is "int" when ↵jan.nijtmans2019-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | compiling against 8.x headers.
| | * | | | Eliminate USE_OLD_TAG_SEARCH: It isn't used and tested any more.jan.nijtmans2018-12-081-1/+1
| | | | | | | | | | | | | | | | | | Eliminate a ton of unnecessary type casts
| * | | | | Minor tweaks, mostly formattingjan.nijtmans2018-12-011-1/+1
| | | | | |
| * | | | | Merge trunkjan.nijtmans2018-11-251-3/+3
| |\ \ \ \ \ | | |/ / / /
| | * | | | Fix PTR2INT/PTR2UINT, so they no longer are restricted to the "int" range.jan.nijtmans2018-10-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Make TCL_Z_MODIFIER available in Tk (even when compiled with Tcl 8.6), and use it. More size_t/clientData related improvements
| * | | | | Experiment: let's see if we can deprecate Tk_Offset() in favor of offsetof()jan.nijtmans2018-10-061-2/+2
| |/ / / /
| * | | | More preparation for TIP #494 compatibitly. Add 2 utility functions, which ↵jan.nijtmans2018-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | can retreive big strings and ByteArrays without length overflow.
| * | | | Fix [73ba07efcd]: Use correct property type when handling MULTIPLE ↵fvogel2017-11-191-0/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | conversion requests. Patch from 'dpb'
| * \ \ \ \ merge core-8-6-branchjan.nijtmans2017-05-081-2/+2
| |\ \ \ \ \
| * | | | | | Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
* | | | | | | More use of TCL_UNUSED() and C++-safe typecasts. Use Tk_Offset() in stead of ↵jan.nijtmans2020-09-101-33/+32
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | sizeof() when using flexible arrays
* | | | | | Add (and use) new internal function TkUtfAtIndex(), which does the same as ↵jan.nijtmans2020-05-201-2/+2
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | Tcl_UtfAtIndex() only it protects against ending in the middle of a 4-byte UTF-8 sequence. This should fix another part of [a179564826] when handling copy-pasted Emoji in Text/Entry (and other) widgets.
| * | | | | Use Glyph indexing in more places (underscoring and canvas text and some more)jan.nijtmans2020-05-191-3/+3
| | | | | |
| * | | | | More improvements handling characters > U+FFFF as surrogates. Add internal ↵jan.nijtmans2020-05-141-1/+2
| | |_|_|/ | |/| | | | | | | | | | | | | TkUtfPrev(), which handles jumping back over surrogate pairs.
* | | | | Eliminate two Tcl_UtfNext() calls, because the UtfToUniChar() variants are ↵jan.nijtmans2020-05-181-1/+2
|/ / / / | | | | | | | | | | | | more likely to do the right thing when surrogates are involved.
* | | | Don't use "struct ThreadSpecificData", while the type name ↵jan.nijtmans2019-07-021-1/+1
| | | | | | | | | | | | | | | | "ThreadSpecificData" is already sufficient.
* | | | More use of Tcl_WinTCharToUtf() in stead of Tcl_UniCharToUtfDString(), ↵jan.nijtmans2019-03-191-1/+1
| |_|/ |/| | | | | | | | making Tk less sensitive to the value of TCL_UTF_MAX (either 3, 4, or 6)
* | | Fix [73ba07efcd]: Use correct property type when handling MULTIPLE ↵fvogel2017-09-021-0/+1
| |/ |/| | | | | conversion requests. Patch from 'dpb'
* | Don't use sizeof(struct) when the structure has a char array as last ↵jan.nijtmans2017-05-081-2/+2
|/ | | | element: If the size of this array changes, we'll be in trouble.
* Eliminate all usage of __WIN32__ macro: Some compilers (e.g. Clang/LLVM) ↵jan.nijtmans2014-02-101-1/+1
| | | | | don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
* Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-10/+10
| | | exists and is used.
* Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-10/+10
| | | | Tcl_GetIndexFromObjStruct.
* Much more cleaning up of result handling.dkf2012-07-231-46/+41
|
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * [Patch #3129527]: Fix buffer overflow w/ GCC 4.5 and -D_FORTIFY_SOURCE=2.nijtmans2011-01-251-3/+3
| | | | | | | | | | | | Just the strcpy->memcpy part, to prevent anything like [Bug #3164879]
| | * Backport of fixes for [Bug 1353414]dkf2005-11-221-12/+15
| | |
| * | [Patch #3129527]: Fix buffer overflow w/ GCC 4.5 and -D_FORTIFY_SOURCE=2.nijtmans2011-01-251-2/+2
| | | | | | | | | | | | Just the strcpy->memcpy part, to prevent anything like [Bug #3164879]
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-16/+16
| | | | | | | | | using useful casts internally.
* | | tkSelect.c: Fix for [Bug #3164879] (memory allocation bugjenglish2011-01-241-3/+3
| | | | | | | | | | | | introduced by [Patch #3129527])