summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
Commit message (Collapse)AuthorAgeFilesLines
* Factorise definition of snprintf in tkWinInt.h (MSVC before 2015 didn't know ↵fvogel2023-01-141-8/+0
| | | | snprintf).
* Eradicate uses of sprintf because it triggers deprecation warning on macOS ↵fvogel2023-01-101-3/+11
| | | | Ventura. Only a single instance left in TkpPrintWindowId() (tkWinWindow.c).
* merge 8.6fvogel2022-04-031-2/+16
|\
| * Fix memory problem revealed by valgrind with textWind-18.2. At this point ↵fvogel2022-01-301-0/+7
| | | | | | | | dInfoPtr is already freed when running textWind-18.2.
| * Don't use return in DisplayText but 'goto end' so that Tcl_Preserve / ↵fvogel2022-01-231-1/+1
| | | | | | | | Tcl_Release calls keep being balanced.
| * More accurate comment. Indeed long ago there used to be ↵fvogel2022-01-231-1/+1
| | | | | | | | Tcl_Preserve/Tcl_Release calls around the call to TkTextPickCurrent but they have been replaced by refcount management when TIP #155 was implemented, see [e58248ce5f8b5af2].
| * Fix the second part of [1501749fff]. Now textWind-18.2 passes.fvogel2022-01-231-0/+7
| |
* | merge 8.6fvogel2022-01-051-38/+41
|\ \ | |/
| * Don't use TK_TEXT_TABSTYLE_NONE/TEXT_WRAPMODE_NULL in comparisons, just use ↵jan.nijtmans2021-12-201-38/+41
| | | | | | | | the explicit valid values instead. Also, some formatting and adding type-casts
* | Move comment where it really belongs.fvogel2021-08-011-5/+6
|/
* More usage of TCL_UNUSED() and implicit type-casts. Eliminate "register" keywordjan.nijtmans2020-09-251-14/+14
|
* Fix [3bc0f44ef3]: UBSan complains about body.chars[] usagejan.nijtmans2020-09-111-1/+1
|\
| * Merge trunkjan.nijtmans2020-09-101-29/+14
| |\
| | * Merge 8.6jan.nijtmans2020-09-101-31/+16
| | |\ | |_|/ |/| |
| * | Merge trunk. Introduce TKFLEXARRAY, since this usage is a GNU extension ↵jan.nijtmans2020-09-101-2/+2
| |/ | | | | | | (lated adopted by MSVC too)
| * New TIP #580 implementation. Documentation still missing.jan.nijtmans2020-07-141-2/+2
| |
| * Fix [34214bbdae]: typographical fixes in comments. Thanks to Christopher Chavez.fvogel2020-07-081-2/+2
| |\
| * \ Merge 8.6jan.nijtmans2020-06-081-2/+2
| |\ \
| * \ \ Rename Aqua stub TkpAppCanDraw as TkpWillDrawWidgetculler2020-05-311-2/+2
| |\ \ \
| * \ \ \ Remove some unnecessary macOS conditional code by using internal stubs.culler2020-05-291-16/+24
| |\ \ \ \
| * | | | | Convert Tk_ItemIndexProc/Tk_ItemInsertProc to use size_t as index type, when ↵jan.nijtmans2020-05-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | compiled against Tcl 9 headers. Various more fixes in using size_t for Tcl >= 9
| * | | | | Formatting and even more size_t usage.jan.nijtmans2020-05-251-1/+1
| | | | | |
| * | | | | More progressjan.nijtmans2020-05-241-5/+5
| | | | | |
| * | | | | More progressjan.nijtmans2020-05-221-13/+12
| |\ \ \ \ \
| * | | | | | More progressjan.nijtmans2020-05-211-1/+3
| |/ / / / /
| * | | | | TIP 569 remove lint commentsdgp2020-03-181-1/+1
| | | | | |
| * | | | | Much more WIP: Appears to be working on UNIX, and for a bit part on Windows too.jan.nijtmans2019-12-201-44/+60
| | | | | |
| * | | | | Sort all usage of "pages", "pixels" and "units", make it alphabetical, in ↵jan.nijtmans2019-07-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | implementation, tests and documentation.
| * | | | | Merge trunkjan.nijtmans2019-05-101-2/+2
| |\ \ \ \ \
| | * | | | | Change size_t usages to (internal type) TkSizeT usages, which is "int" when ↵jan.nijtmans2019-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | compiling against 8.x headers.
| * | | | | | Merge trunkjan.nijtmans2019-04-021-1/+1
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Tcl_BackgroundError -> Tcl_BackgroundException. Mark deprecated macro's as ↵jan.nijtmans2019-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | such (remove then with -DTCL_NO_DEPRECATED). Change field in Tk_ClassProcs to size_t, when compiling against Tcl 9 headers
| * | | | | | Merge 8.7jan.nijtmans2019-01-131-38/+72
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 8.6jan.nijtmans2019-01-101-19/+19
| | |\ \ \ \ \
| | * \ \ \ \ \ Resolve bug [18a4ba19bd]. Make winfo containing behave consistently acrossculler2019-01-041-0/+1
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | platforms and fix a bug with embedded toplevels.
| | * | | | | | | Remove 3 lines of code in tkTextDisp.c which had become obsolete but werejan.nijtmans2019-01-031-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | accidentally left in the file.
| | * | | | | | | Fix bug [b2dd3b4fe8] (text-11a.41 sometimes hangs) by reworking how thejan.nijtmans2019-01-031-20/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | <<WidgetViewSync>> event is handled.
| * | | | | | | | Merge trunkjan.nijtmans2018-12-081-1/+1
| |\ \ \ \ \ \ \ \ | | |/ / / / / / /
| | * | | | | | | 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
| * | | | | | | | merge trunkjan.nijtmans2018-12-011-5/+6
| |\ \ \ \ \ \ \ \ | | |/ / / / / / /
| | * | | | | | | Cherry-pick Fix [0a9c91951b]: text-11a.22 segfault in trunkjan.nijtmans2018-11-301-1/+2
| | | | | | | | |
| | * | | | | | | There's never need to cast NULL to (char *)jan.nijtmans2018-11-271-4/+4
| | |\ \ \ \ \ \ \
| * | \ \ \ \ \ \ \ Merge trunkjan.nijtmans2018-11-251-14/+46
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / /
| | * | | | | | | | Many updates for macOS. Most, but not all, were triggered by changes ↵culler2018-10-301-7/+40
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | between OSX 10.13 and 10.14.
| | * | | | | | | | | Another round of (internal) int|long -> size_t replacements, at least when ↵jan.nijtmans2018-10-161-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiling against Tcl 9.0 headers.
| | * | | | | | | | | Use more size_t internally, comparable with TIP #494 but then in Tk. ↵jan.nijtmans2018-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate unnecessary type casts
| * | | | | | | | | | Experiment: let's see if we can deprecate Tk_Offset() in favor of offsetof()jan.nijtmans2018-10-061-1/+1
| |/ / / / / / / / /
| * | | | | | | | | More of of size_t in photo implementation, and remove unnecessary #includesjan.nijtmans2018-08-131-6/+0
| | | | | | | | | |
| * | | | | | | | | 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.
| * | | | | | | | | merge core-8-6-branchjan.nijtmans2017-11-271-1/+1
| |\ \ \ \ \ \ \ \ \