Tk Source Code

Check-in [862a73d9]
Login
Bounty program for improvements to Tcl and certain Tcl packages.

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

Overview
Comment:Minor compiler warning
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | size-for-sel
Files: files | file ages | folders
SHA3-256: 862a73d9dc947c7f5ce3a441bb9e49458cd801f25361f53fc4814520a0bf03bd
User & Date: jan.nijtmans 2020-05-22 08:36:30
Context
2020-05-22
11:32
More progress check-in: 68e4c6f7 user: jan.nijtmans tags: size-for-sel
08:36
Minor compiler warning check-in: 862a73d9 user: jan.nijtmans tags: size-for-sel
2020-05-21
22:29
More progress check-in: 09125140 user: jan.nijtmans tags: size-for-sel
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/tkCanvText.c.

1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
				 * character to be returned. */
    char *buffer,		/* Location in which to place selection. */
	TkSizeT maxBytes)		/* Maximum number of bytes to place at buffer,
				 * not including terminating NULL
				 * character. */
{
    TextItem *textPtr = (TextItem *) itemPtr;
    int byteCount;
    char *text;
    const char *selStart, *selEnd;
    Tk_CanvasTextInfo *textInfoPtr = textPtr->textInfoPtr;
    (void)canvas;

    if ((textInfoPtr->selectFirst == -1) ||
	    (textInfoPtr->selectFirst > textInfoPtr->selectLast)) {






|







1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
				 * character to be returned. */
    char *buffer,		/* Location in which to place selection. */
	TkSizeT maxBytes)		/* Maximum number of bytes to place at buffer,
				 * not including terminating NULL
				 * character. */
{
    TextItem *textPtr = (TextItem *) itemPtr;
    TkSizeT byteCount;
    char *text;
    const char *selStart, *selEnd;
    Tk_CanvasTextInfo *textInfoPtr = textPtr->textInfoPtr;
    (void)canvas;

    if ((textInfoPtr->selectFirst == -1) ||
	    (textInfoPtr->selectFirst > textInfoPtr->selectLast)) {