summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-10 09:26:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-10 09:26:16 (GMT)
commit8f805cf711937914ecd371343acfe9a4b8f27238 (patch)
treeae39f8b2d3ef7155cbb47b6e2f33170f38aac9a4 /generic/tclBasic.c
parentf608eb10d475301aedbbf0d6a0addbd50dea0e34 (diff)
downloadtcl-8f805cf711937914ecd371343acfe9a4b8f27238.zip
tcl-8f805cf711937914ecd371343acfe9a4b8f27238.tar.gz
tcl-8f805cf711937914ecd371343acfe9a4b8f27238.tar.bz2
Use TclListObjLength/TclListObjGetElements in stead of Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 5975fd3..33a96eb 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -4715,7 +4715,7 @@ TEOV_NotFound(
* itself.
*/
- Tcl_ListObjGetElements(NULL, currNsPtr->unknownHandlerPtr,
+ TclListObjGetElements(NULL, currNsPtr->unknownHandlerPtr,
&handlerObjc, &handlerObjv);
newObjc = objc + handlerObjc;
newObjv = (Tcl_Obj **)TclStackAlloc(interp, sizeof(Tcl_Obj *) * newObjc);
@@ -5322,7 +5322,7 @@ TclEvalEx(
int numElements;
Tcl_Obj **elements, *temp = copy[wordIdx];
- Tcl_ListObjGetElements(NULL, temp, &numElements,
+ TclListObjGetElements(NULL, temp, &numElements,
&elements);
objectsUsed += numElements;
while (numElements--) {
@@ -8497,7 +8497,7 @@ TclNRTailcallEval(
int objc;
Tcl_Obj **objv;
- Tcl_ListObjGetElements(interp, listPtr, &objc, &objv);
+ TclListObjGetElements(interp, listPtr, &objc, &objv);
nsObjPtr = objv[0];
if (result == TCL_OK) {