summaryrefslogtreecommitdiffstats
path: root/generic/tkTextMark.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-12 21:59:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-12 21:59:23 (GMT)
commitdd4f5b0646f28e3e3729557730e81550f3faeb16 (patch)
tree99dce5cc0b6563216817878a1170376b663365d2 /generic/tkTextMark.c
parent1a1118fa21d731504dac09ed2e6d6238601f5c84 (diff)
downloadtk-dd4f5b0646f28e3e3729557730e81550f3faeb16.zip
tk-dd4f5b0646f28e3e3729557730e81550f3faeb16.tar.gz
tk-dd4f5b0646f28e3e3729557730e81550f3faeb16.tar.bz2
Even more -1 -> TCL_INDEX_NONE
Diffstat (limited to 'generic/tkTextMark.c')
-rw-r--r--generic/tkTextMark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextMark.c b/generic/tkTextMark.c
index c302ca0..ca3cba0 100644
--- a/generic/tkTextMark.c
+++ b/generic/tkTextMark.c
@@ -157,7 +157,7 @@ TkTextMarkCmd(
} else {
typeStr = "left";
}
- Tcl_SetObjResult(interp, Tcl_NewStringObj(typeStr, -1));
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(typeStr, TCL_INDEX_NONE));
return TCL_OK;
}
str = Tcl_GetStringFromObj(objv[4],&length);
@@ -188,9 +188,9 @@ TkTextMarkCmd(
}
resultObj = Tcl_NewObj();
Tcl_ListObjAppendElement(NULL, resultObj, Tcl_NewStringObj(
- "insert", -1));
+ "insert", TCL_INDEX_NONE));
Tcl_ListObjAppendElement(NULL, resultObj, Tcl_NewStringObj(
- "current", -1));
+ "current", TCL_INDEX_NONE));
for (hPtr = Tcl_FirstHashEntry(&textPtr->sharedTextPtr->markTable,
&search); hPtr != NULL; hPtr = Tcl_NextHashEntry(&search)) {
Tcl_ListObjAppendElement(NULL, resultObj, Tcl_NewStringObj(