diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-12 21:59:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-12 21:59:23 (GMT) |
commit | dd4f5b0646f28e3e3729557730e81550f3faeb16 (patch) | |
tree | 99dce5cc0b6563216817878a1170376b663365d2 /generic/tkTextMark.c | |
parent | 1a1118fa21d731504dac09ed2e6d6238601f5c84 (diff) | |
download | tk-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.c | 6 |
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( |