summaryrefslogtreecommitdiffstats
path: root/generic/tclFCmd.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/tclFCmd.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/tclFCmd.c')
-rw-r--r--generic/tclFCmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c
index e2d4164..d58d02d 100644
--- a/generic/tclFCmd.c
+++ b/generic/tclFCmd.c
@@ -1006,7 +1006,7 @@ TclFileAttrsCmd(
* Use objStrings as a list object.
*/
- if (Tcl_ListObjLength(interp, objStrings, &numObjStrings) != TCL_OK) {
+ if (TclListObjLength(interp, objStrings, &numObjStrings) != TCL_OK) {
goto end;
}
attributeStringsAllocated = (const char **)