summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmdsSZ.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-05 00:26:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-05 00:26:54 (GMT)
commit923ff1e3ca4171dd5d562edfcfc4aaab9dfb8d7a (patch)
treea39a82c0a93f888dc256ddbaf203a67b9267e084 /generic/tclCompCmdsSZ.c
parent33d81b98be1160ae0475a3d162cec7359264c8c8 (diff)
downloadtcl-923ff1e3ca4171dd5d562edfcfc4aaab9dfb8d7a.zip
tcl-923ff1e3ca4171dd5d562edfcfc4aaab9dfb8d7a.tar.gz
tcl-923ff1e3ca4171dd5d562edfcfc4aaab9dfb8d7a.tar.bz2
More -1 -> TCL_INDEX_NONE
Diffstat (limited to 'generic/tclCompCmdsSZ.c')
-rw-r--r--generic/tclCompCmdsSZ.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c
index 0e98584..b86aa43 100644
--- a/generic/tclCompCmdsSZ.c
+++ b/generic/tclCompCmdsSZ.c
@@ -2604,9 +2604,9 @@ PrintJumptableInfo(
offset = PTR2INT(Tcl_GetHashValue(hPtr));
if (i++) {
- Tcl_AppendToObj(appendObj, ", ", -1);
+ Tcl_AppendToObj(appendObj, ", ", TCL_INDEX_NONE);
if (i%4==0) {
- Tcl_AppendToObj(appendObj, "\n\t\t", -1);
+ Tcl_AppendToObj(appendObj, "\n\t\t", TCL_INDEX_NONE);
}
}
Tcl_AppendPrintfToObj(appendObj, "\"%s\"->pc %" TCL_Z_MODIFIER "u",
@@ -2633,10 +2633,10 @@ DisassembleJumptableInfo(
for (; hPtr ; hPtr = Tcl_NextHashEntry(&search)) {
keyPtr = (const char *)Tcl_GetHashKey(&jtPtr->hashTable, hPtr);
offset = PTR2INT(Tcl_GetHashValue(hPtr));
- Tcl_DictObjPut(NULL, mapping, Tcl_NewStringObj(keyPtr, -1),
+ Tcl_DictObjPut(NULL, mapping, Tcl_NewStringObj(keyPtr, TCL_INDEX_NONE),
Tcl_NewWideIntObj(offset));
}
- Tcl_DictObjPut(NULL, dictObj, Tcl_NewStringObj("mapping", -1), mapping);
+ Tcl_DictObjPut(NULL, dictObj, Tcl_NewStringObj("mapping", TCL_INDEX_NONE), mapping);
}
/*
@@ -4081,7 +4081,7 @@ CompileAssociativeBinaryOpCmd(
CompileWord(envPtr, tokenPtr, interp, words);
}
if (parsePtr->numWords <= 2) {
- PushLiteral(envPtr, identity, -1);
+ PushLiteral(envPtr, identity, TCL_INDEX_NONE);
words++;
}
if (words > 3) {