summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-12 21:24:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-12 21:24:14 (GMT)
commit3b079f137c6a1a8776a9696cbbac0ff4d4b9cedc (patch)
tree448e0e818cab2430c5c59271e31123d787f132b2 /generic/tclNamesp.c
parentb2a28063811abb4c3bbe540d8e42b24c571b4588 (diff)
downloadtcl-3b079f137c6a1a8776a9696cbbac0ff4d4b9cedc.zip
tcl-3b079f137c6a1a8776a9696cbbac0ff4d4b9cedc.tar.gz
tcl-3b079f137c6a1a8776a9696cbbac0ff4d4b9cedc.tar.bz2
Restore TclListObjGetElements()/TclListObjLength() as they were in 8.6 too.
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 1e9b182..2268609 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -4083,7 +4083,7 @@ NamespacePathCmd(
* There is a path given, so parse it into an array of namespace pointers.
*/
- if (TclListObjGetElementsM(interp, objv[1], &nsObjc, &nsObjv) != TCL_OK) {
+ if (TclListObjGetElements(interp, objv[1], &nsObjc, &nsObjv) != TCL_OK) {
goto badNamespace;
}
if (nsObjc != 0) {
@@ -4451,7 +4451,7 @@ Tcl_SetNamespaceUnknownHandler(
*/
if (handlerPtr != NULL) {
- if (TclListObjLengthM(interp, handlerPtr, &lstlen) != TCL_OK) {
+ if (TclListObjLength(interp, handlerPtr, &lstlen) != TCL_OK) {
/*
* Not a list.
*/
@@ -5027,7 +5027,7 @@ TclLogCommandInfo(
Tcl_Size len;
iPtr->resetErrorStack = 0;
- TclListObjLengthM(interp, iPtr->errorStack, &len);
+ TclListObjLength(interp, iPtr->errorStack, &len);
/*
* Reset while keeping the list internalrep as much as possible.
@@ -5112,7 +5112,7 @@ TclErrorStackResetIf(
Tcl_Size len;
iPtr->resetErrorStack = 0;
- TclListObjLengthM(interp, iPtr->errorStack, &len);
+ TclListObjLength(interp, iPtr->errorStack, &len);
/*
* Reset while keeping the list internalrep as much as possible.