diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-10-31 19:28:42 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-10-31 19:28:42 (GMT) |
| commit | c25f14940d3c7823cae0a783f34c6f147518a1b3 (patch) | |
| tree | d598543193e4ffbb2336840441fd696a854ab6cc /generic/tkTextIndex.c | |
| parent | 3d21e16ae679d4c1ae0b73441536c7429a72657d (diff) | |
| parent | 2f48a0563a693aeccaf7550989d0539a3c940d95 (diff) | |
| download | tk-core-tk-print-fixes.zip tk-core-tk-print-fixes.tar.gz tk-core-tk-print-fixes.tar.bz2 | |
Merge trunkcore-tk-print-fixes
Diffstat (limited to 'generic/tkTextIndex.c')
| -rw-r--r-- | generic/tkTextIndex.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c index a77fd9a..6b7f872 100644 --- a/generic/tkTextIndex.c +++ b/generic/tkTextIndex.c @@ -1559,7 +1559,7 @@ TkTextIndexForwChars( Tcl_Size byteOffset; char *start, *end, *p; int ch; - int elide = 0; + bool elide = false; int checkElided = (type & COUNT_DISPLAY); if (charCount < 0) { @@ -1636,7 +1636,7 @@ TkTextIndexForwChars( * elide will be zero, of course). */ - elide = 0; + elide = false; while (--infoPtr->elidePriority > 0) { if (infoPtr->tagCnts[infoPtr->elidePriority] & 1) { @@ -1822,8 +1822,8 @@ TkTextIndexCount( TkTextSegment *segPtr, *seg2Ptr = NULL; TkTextElideInfo *infoPtr = NULL; Tcl_Size byteOffset, maxBytes, count = 0; - int elide = 0; - int checkElided = (type & COUNT_DISPLAY); + bool elide = false; + bool checkElided = (type & COUNT_DISPLAY) != 0; /* * Find seg that contains src index, and remember how many bytes not to @@ -2086,8 +2086,8 @@ TkTextIndexBackChars( TkTextElideInfo *infoPtr = NULL; int lineIndex, segSize; const char *p, *start, *end; - int elide = 0; - int checkElided = (type & COUNT_DISPLAY); + bool elide = false; + bool checkElided = (type & COUNT_DISPLAY) != 0; if (charCount < 0) { TkTextIndexForwChars(textPtr, srcPtr, -charCount, dstPtr, type); @@ -2174,7 +2174,7 @@ TkTextIndexBackChars( * will be zero, of course). */ - elide = 0; + elide = false; while (--infoPtr->elidePriority > 0) { if (infoPtr->tagCnts[infoPtr->elidePriority] & 1) { elide = infoPtr->tagPtrs[ |
