Tk Source Code

Check-in [fd92f39c]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Two more warnings, back with compiling against Tcl 8.7
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | revised_text | tip-466
Files: files | file ages | folders
SHA3-256:fd92f39c289ea74f67007138e718b4ae2bb50fd3a56202e5c213bd6c23c2a07c
User & Date: jan.nijtmans 2018-10-19 22:20:30
Context
2018-10-22
12:59
(1) Compile problem eliminated in unix/tkUnixRFont.c. (2) Problem with -wrap=none fixed, tabbing didn't work properly in this case because of a lost bugfix, see [1c8aad0efa]. check-in: c2bbf946 user: gcramer tags: revised_text, tip-466
2018-10-19
22:20
Two more warnings, back with compiling against Tcl 8.7 check-in: fd92f39c user: jan.nijtmans tags: revised_text, tip-466
22:02
Fix a few more warnings, when compiling against Tcl 9.0 check-in: c36d1ff4 user: jan.nijtmans tags: revised_text, tip-466
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/tkTextDisp.c.

2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
LayoutFinalizeCharInfo(
    LayoutData *data,
    bool gotTab)
{
    CharInfo *ciPtr = data->chunkPtr->clientData;

    assert(data->trimSpaces ?
	    data->chunkPtr->numBytes >= ciPtr->numBytes :
	    data->chunkPtr->numBytes == ciPtr->numBytes);

    /*
     * Update the character information. Take into account that we don't want
     * to display the newline character.
     */

    if (ciPtr->u.chars[ciPtr->baseOffset + ciPtr->numBytes - 1] == '\n') {







|
|







2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
LayoutFinalizeCharInfo(
    LayoutData *data,
    bool gotTab)
{
    CharInfo *ciPtr = data->chunkPtr->clientData;

    assert(data->trimSpaces ?
	    (TkSizeT)data->chunkPtr->numBytes >= ciPtr->numBytes :
	    (TkSizeT)data->chunkPtr->numBytes == ciPtr->numBytes);

    /*
     * Update the character information. Take into account that we don't want
     * to display the newline character.
     */

    if (ciPtr->u.chars[ciPtr->baseOffset + ciPtr->numBytes - 1] == '\n') {