summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-19 10:14:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-19 10:14:52 (GMT)
commitbdb580aa2563588e6e1f5090bb9b89369e2f2d4f (patch)
tree011764b9a1c9b1b47f5d61b56f1627526961f832 /generic/tkText.c
parent7a5d64437977cc14b7b79e336b3b2a20785348e5 (diff)
downloadtk-bdb580aa2563588e6e1f5090bb9b89369e2f2d4f.zip
tk-bdb580aa2563588e6e1f5090bb9b89369e2f2d4f.tar.gz
tk-bdb580aa2563588e6e1f5090bb9b89369e2f2d4f.tar.bz2
More simplifications
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index dacadbe..8ae17a5 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -4615,7 +4615,7 @@ TkTextGetTabs(
* There may be a more efficient way of getting this.
*/
- TkUtfToUniChar2(Tcl_GetString(objv[i+1]), &ch);
+ TkUtfToUniChar(Tcl_GetString(objv[i+1]), &ch);
if (!Tcl_UniCharIsAlpha(ch)) {
continue;
}
@@ -5966,7 +5966,7 @@ SearchCore(
CLANG_ASSERT(pattern);
do {
- Tcl_UniChar ch;
+ int ch;
const char *p;
int lastFullLine = lastOffset;
@@ -6196,7 +6196,7 @@ SearchCore(
}
} else {
firstOffset = p - startOfLine +
- Tcl_UtfToUniChar(startOfLine+matchOffset,&ch);
+ TkUtfToUniChar(startOfLine+matchOffset,&ch);
}
}
} while (searchSpecPtr->all);