summaryrefslogtreecommitdiffstats
path: root/generic/tkSelect.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2024-06-191-4/+4
|\
| * Use "(char *)NULL" sentinels in more places. Fix some indentingjan.nijtmans2024-06-191-4/+4
| |
| * Better approach, using "Tk" prefix for UTF-32 versions of APIjan.nijtmans2024-03-141-3/+3
|/
* Never use TCL_SIZE_MODIFIER "u", because Tcl_Size can be negativejan.nijtmans2023-12-261-1/+1
|
* Still more int -> Tcl_Sizejan.nijtmans2023-04-251-1/+1
|
* Missed more than a few TIP 660 changes. Possibly more to come.apnadkarni2023-04-181-2/+2
|
* More -1 -> TCL_INDEX_NONE. More TCL_UNUSED(jan.nijtmans2023-03-121-3/+3
|
* Merge core-8-6-branch: Eradicate uses of sprintf because it triggers ↵fvogel2023-01-181-1/+5
|\ | | | | | | deprecation warning on macOS Ventura. Resolve conflicts. Remove sprintf calls specific to the main branch.
| * Factorise definition of snprintf in tkWinInt.h (MSVC before 2015 didn't know ↵fvogel2023-01-141-6/+2
| | | | | | | | snprintf).
| * Provide explicit size in snprintf when needed. Fix gcc warning: 'argument to ↵fvogel2023-01-121-1/+1
| | | | | | | | ‘sizeof’ in ‘snprintf’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]'
| * Eradicate uses of sprintf because it triggers deprecation warning on macOS ↵fvogel2023-01-101-1/+9
| | | | | | | | Ventura. Only a single instance left in TkpPrintWindowId() (tkWinWindow.c).
* | Enhance TkSelDefaultSelection function (int maxBytes -> Tcl_Size maxBytes)jan.nijtmans2022-10-311-43/+44
| |
* | TIP #628 for Tk: Shared 8.7/9.0 build environmentjan.nijtmans2022-06-251-6/+6
| |
* | Merge 8.7jan.nijtmans2021-06-211-1/+1
|\ \ | |/
| * 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
| |
* | Merge 8.6jan.nijtmans2021-03-231-2/+2
|\ \ | |/
| * 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.
* | After TIP #481 reaches Tcl9.0, TkGetStringFromObj() becomes obsolete. This ↵jan.nijtmans2020-12-111-1/+1
| | | | | | | | commit shows how.
* | (c) -> ©jan.nijtmans2020-12-091-2/+2
| |
* | Merge 8.6jan.nijtmans2020-09-111-1/+1
|\ \ | |/
| * Fix [3bc0f44ef3]: UBSan complains about body.chars[] usagejan.nijtmans2020-09-111-1/+1
| |\
| | * Merge trunkjan.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)
* | | Merge 8.6jan.nijtmans2020-09-101-3/+1
|\ \ \ | |/ / | | / | |/ |/|
| * 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
* | 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.
| * 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.
* | | Merge 8.6jan.nijtmans2020-05-181-1/+2
|\ \ \ | |/ /
| * | 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.
* | 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
|\ \ | |/
| * 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)
* | 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
|/ /