summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.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/tclUtil.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/tclUtil.c')
-rw-r--r--generic/tclUtil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 1fdcda3..79433e1 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -2005,10 +2005,10 @@ Tcl_ConcatObj(
!= Tcl_ListObjAppendList(NULL, resPtr, objPtr)) {
/* Abandon ship! */
Tcl_DecrRefCount(resPtr);
- Tcl_BumpObj(elemPtr); // could be an abstract list element
+ Tcl_BounceRefCount(elemPtr); // could be an abstract list element
goto slow;
}
- Tcl_BumpObj(elemPtr); // could be an an abstract list element
+ Tcl_BounceRefCount(elemPtr); // could be an an abstract list element
} else {
resPtr = TclDuplicatePureObj(
NULL, objPtr, &tclListType);