summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authorgriffin <briang42@easystreet.net>2023-08-12 23:14:43 (GMT)
committergriffin <briang42@easystreet.net>2023-08-12 23:14:43 (GMT)
commitbaa91f87baabfa31e9174c78f76125d98d891b4e (patch)
treec9a925bd14a109fd68acf52b65f5cbb180639be4 /generic/tclDictObj.c
parent946847b4b9f3b9b7aa252d830921d41033d5175b (diff)
downloadtcl-baa91f87baabfa31e9174c78f76125d98d891b4e.zip
tcl-baa91f87baabfa31e9174c78f76125d98d891b4e.tar.gz
tcl-baa91f87baabfa31e9174c78f76125d98d891b4e.tar.bz2
Rename Tcl_BumpObj() to Tcl_BounceRefCount().
After the presentation on Abstract Lists at the 2023 OpenACS/Tcl Conference, there was a strong opinion that this function should be renamed. The results of an informal poll had a tie between Tcl_DoneWithObj() and Tcl_BounceRefCount(). Having seen a reference to "Bounce" in a research paper on Ref Counting, I chose to use Tcl_BounceRefCount().
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 94a30da..121661d 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -62,7 +62,7 @@ static Tcl_ObjCmdProc DictMapNRCmd;
static Tcl_NRPostProc DictForLoopCallback;
static Tcl_NRPostProc DictMapLoopCallback;
static Tcl_ObjTypeLengthProc DictAsListLength;
-static Tcl_ObjTypeIndexProc DictAsListIndex;
+/* static Tcl_ObjTypeIndexProc DictAsListIndex; Needs rewrite */
/*
* Table of dict subcommand names and implementations.
@@ -3885,6 +3885,7 @@ DictAsListLength(
*
*/
+#if 0 /* Needs rewrite */
static int
DictAsListIndex(
Tcl_Interp *interp,
@@ -3952,6 +3953,7 @@ DictAsListIndex(
*elemObjPtr = elemPtr;
return TCL_OK;
}
+#endif
/*
* Local Variables: