diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-12 06:09:22 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-12 06:09:22 (GMT) |
commit | d132f6a77e1eef979d0c0d3809383546184fcb27 (patch) | |
tree | 96b4e2feb35dbe8fe183cac17ce50857d094c967 /generic/tkText.c | |
parent | 327ab1ecf903217147e6cbbc0f33f4813ca67f56 (diff) | |
parent | cb3a0ab0484b6747c2055c04530979b75363ca54 (diff) | |
download | tk-d132f6a77e1eef979d0c0d3809383546184fcb27.zip tk-d132f6a77e1eef979d0c0d3809383546184fcb27.tar.gz tk-d132f6a77e1eef979d0c0d3809383546184fcb27.tar.bz2 |
Merge trunk
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 990ffb3..ce4f976 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -701,7 +701,7 @@ TextWidgetObjCmd( { TkText *textPtr = (TkText *)clientData; int result = TCL_OK; - int index; + int idx; static const char *const optionStrings[] = { "bbox", "cget", "compare", "configure", "count", "debug", "delete", @@ -724,12 +724,12 @@ TextWidgetObjCmd( } if (Tcl_GetIndexFromObjStruct(interp, objv[1], optionStrings, - sizeof(char *), "option", 0, &index) != TCL_OK) { + sizeof(char *), "option", 0, &idx) != TCL_OK) { return TCL_ERROR; } textPtr->refCount++; - switch ((enum options) index) { + switch ((enum options) idx) { case TEXT_BBOX: { int x, y, width, height; const TkTextIndex *indexPtr; @@ -3173,7 +3173,7 @@ DeleteIndexRange( line2 = TkBTreeLinesTo(textPtr, index2.linePtr); if (line2 == TkBTreeNumLines(sharedTextPtr->tree, textPtr)) { TkTextTag **arrayPtr; - int arraySize, i; + int arraySize; TkTextIndex oldIndex2; oldIndex2 = index2; |