summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-13 09:45:57 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-13 09:45:57 (GMT)
commit9cc68bccbf2916d0295cdfcb5db818c22c0da154 (patch)
treef139c8175f4a5b8428a0ae29570be55f28d47480 /generic/tclNamesp.c
parent26619872a685f373c6fa06066eb03c5da5951bfa (diff)
downloadtcl-9cc68bccbf2916d0295cdfcb5db818c22c0da154.zip
tcl-9cc68bccbf2916d0295cdfcb5db818c22c0da154.tar.gz
tcl-9cc68bccbf2916d0295cdfcb5db818c22c0da154.tar.bz2
Restore TclListObjLength()/TclListObjGetElements() macro's, as they were in 8.6
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 9aea2b6..781e125 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -4086,7 +4086,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) {
@@ -4454,7 +4454,7 @@ Tcl_SetNamespaceUnknownHandler(
*/
if (handlerPtr != NULL) {
- if (TclListObjLengthM(interp, handlerPtr, &lstlen) != TCL_OK) {
+ if (TclListObjLength(interp, handlerPtr, &lstlen) != TCL_OK) {
/*
* Not a list.
*/
@@ -5030,7 +5030,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.
@@ -5115,7 +5115,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.