summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-12 21:33:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-12 21:33:48 (GMT)
commit9923d0e4e6ea62c2086d396031cfe3d16abfbe06 (patch)
tree6af6d4bf892d26919e5fa95bfce75a397d9a66d6
parent648f2bd64be3781ac7d0dc2777e5a77ff9d21e70 (diff)
parent3b079f137c6a1a8776a9696cbbac0ff4d4b9cedc (diff)
downloadtcl-9923d0e4e6ea62c2086d396031cfe3d16abfbe06.zip
tcl-9923d0e4e6ea62c2086d396031cfe3d16abfbe06.tar.gz
tcl-9923d0e4e6ea62c2086d396031cfe3d16abfbe06.tar.bz2
Merge 9.0
-rw-r--r--generic/tcl.h2
-rw-r--r--generic/tclAssembly.c4
-rw-r--r--generic/tclBasic.c14
-rw-r--r--generic/tclBinary.c6
-rw-r--r--generic/tclClock.c8
-rw-r--r--generic/tclCmdAH.c6
-rw-r--r--generic/tclCmdIL.c42
-rw-r--r--generic/tclCmdMZ.c28
-rw-r--r--generic/tclCompCmds.c6
-rw-r--r--generic/tclCompCmdsSZ.c12
-rw-r--r--generic/tclCompExpr.c4
-rw-r--r--generic/tclDecls.h4
-rw-r--r--generic/tclDictObj.c18
-rw-r--r--generic/tclDisassemble.c2
-rw-r--r--generic/tclEncoding.c10
-rw-r--r--generic/tclEnsemble.c40
-rw-r--r--generic/tclEvent.c2
-rw-r--r--generic/tclExecute.c38
-rw-r--r--generic/tclFCmd.c2
-rw-r--r--generic/tclFileName.c14
-rw-r--r--generic/tclIO.c2
-rw-r--r--generic/tclIOGT.c2
-rw-r--r--generic/tclIORChan.c10
-rw-r--r--generic/tclIORTrans.c6
-rw-r--r--generic/tclIOUtil.c12
-rw-r--r--generic/tclIndexObj.c10
-rw-r--r--generic/tclInt.h4
-rw-r--r--generic/tclInterp.c6
-rw-r--r--generic/tclLink.c2
-rw-r--r--generic/tclListObj.c12
-rw-r--r--generic/tclNamesp.c8
-rw-r--r--generic/tclOODefineCmds.c16
-rw-r--r--generic/tclOOMethod.c10
-rw-r--r--generic/tclObj.c2
-rw-r--r--generic/tclPathObj.c4
-rw-r--r--generic/tclPkg.c4
-rw-r--r--generic/tclProc.c10
-rw-r--r--generic/tclProcess.c4
-rw-r--r--generic/tclResult.c10
-rw-r--r--generic/tclStrToD.c2
-rw-r--r--generic/tclStringObj.c4
-rw-r--r--generic/tclStubInit.c14
-rw-r--r--generic/tclTrace.c16
-rw-r--r--generic/tclUtil.c2
-rw-r--r--generic/tclVar.c14
-rw-r--r--generic/tclZipfs.c4
-rw-r--r--generic/tclZlib.c8
47 files changed, 231 insertions, 229 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index a4480a7..059b7a4 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -327,7 +327,7 @@ typedef unsigned TCL_WIDE_INT_TYPE Tcl_WideUInt;
# define TCL_SIZE_MODIFIER ""
#else
typedef ptrdiff_t Tcl_Size;
-# define TCL_SIZE_MAX ((ptrdiff_t)(((size_t)-1)>>1))
+# define TCL_SIZE_MAX ((Tcl_Size)(((size_t)-1)>>1))
# define TCL_SIZE_MODIFIER TCL_T_MODIFIER
#endif /* TCL_MAJOR_VERSION */
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c
index ce5ced6..ba2e5a7 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -1984,7 +1984,7 @@ CreateMirrorJumpTable(
* table. */
Tcl_Size i;
- if (TclListObjLengthM(interp, jumps, &objc) != TCL_OK) {
+ if (TclListObjLength(interp, jumps, &objc) != TCL_OK) {
return TCL_ERROR;
}
if (objc % 2 != 0) {
@@ -1996,7 +1996,7 @@ CreateMirrorJumpTable(
}
return TCL_ERROR;
}
- if (TclListObjGetElementsM(interp, jumps, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, jumps, &objc, &objv) != TCL_OK) {
return TCL_ERROR;
}
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 592529f..50806e3 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -4872,7 +4872,7 @@ TEOV_NotFound(
* itself.
*/
- TclListObjGetElementsM(NULL, currNsPtr->unknownHandlerPtr,
+ TclListObjGetElements(NULL, currNsPtr->unknownHandlerPtr,
&handlerObjc, &handlerObjv);
newObjc = objc + handlerObjc;
newObjv = (Tcl_Obj **)TclStackAlloc(interp, sizeof(Tcl_Obj *) * newObjc);
@@ -5383,7 +5383,7 @@ TclEvalEx(
if (tokenPtr->type == TCL_TOKEN_EXPAND_WORD) {
Tcl_Size numElements;
- code = TclListObjLengthM(interp, objv[objectsUsed],
+ code = TclListObjLength(interp, objv[objectsUsed],
&numElements);
if (code == TCL_ERROR) {
/*
@@ -5445,7 +5445,7 @@ TclEvalEx(
Tcl_Size numElements;
Tcl_Obj **elements, *temp = copy[wordIdx];
- TclListObjGetElementsM(NULL, temp, &numElements,
+ TclListObjGetElements(NULL, temp, &numElements,
&elements);
objectsUsed += numElements;
while (numElements--) {
@@ -6208,7 +6208,7 @@ TclNREvalObjEx(
TclNRAddCallback(interp, TEOEx_ListCallback, listPtr, eoFramePtr,
objPtr, NULL);
- TclListObjGetElementsM(NULL, listPtr, &objc, &objv);
+ TclListObjGetElements(NULL, listPtr, &objc, &objv);
return TclNREvalObjv(interp, objc, objv, flags, NULL);
}
@@ -8894,7 +8894,7 @@ TclNRTailcallEval(
Tcl_Size objc;
Tcl_Obj **objv;
- TclListObjGetElementsM(interp, listPtr, &objc, &objv);
+ TclListObjGetElements(interp, listPtr, &objc, &objv);
nsObjPtr = objv[0];
if (result == TCL_OK) {
@@ -9324,7 +9324,7 @@ TclNREvalList(
TclMarkTailcall(interp);
TclNRAddCallback(interp, TclNRReleaseValues, listPtr, NULL, NULL,NULL);
- TclListObjGetElementsM(NULL, listPtr, &objc, &objv);
+ TclListObjGetElements(NULL, listPtr, &objc, &objv);
return TclNREvalObjv(interp, objc, objv, 0, NULL);
}
@@ -9611,7 +9611,7 @@ InjectHandler(
TclMarkTailcall(interp);
TclNRAddCallback(interp, InjectHandlerPostCall, corPtr, listPtr,
INT2PTR(nargs), isProbe);
- TclListObjGetElementsM(NULL, listPtr, &objc, &objv);
+ TclListObjGetElements(NULL, listPtr, &objc, &objv);
return TclNREvalObjv(interp, objc, objv, 0, NULL);
}
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index 314e9fd..152b21e 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -961,7 +961,7 @@ BinaryFormatCmd(
* The macro evals its args more than once: avoid arg++
*/
- if (TclListObjLengthM(interp, objv[arg], &listc
+ if (TclListObjLength(interp, objv[arg], &listc
) != TCL_OK) {
return TCL_ERROR;
}
@@ -974,7 +974,7 @@ BinaryFormatCmd(
-1));
return TCL_ERROR;
}
- if (TclListObjGetElementsM(interp, objv[arg], &listc,
+ if (TclListObjGetElements(interp, objv[arg], &listc,
&listv) != TCL_OK) {
return TCL_ERROR;
}
@@ -1249,7 +1249,7 @@ BinaryFormatCmd(
listc = 1;
count = 1;
} else {
- TclListObjGetElementsM(interp, objv[arg], &listc, &listv);
+ TclListObjGetElements(interp, objv[arg], &listc, &listv);
if (count == BINARY_ALL) {
count = listc;
}
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 0664432..9b3e60e 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -1906,7 +1906,7 @@ ConvertLocalToUTC(
return TCL_ERROR;
}
- if (TclListObjGetElementsM(interp, tzdata, &rowc, &rowv) != TCL_OK) {
+ if (TclListObjGetElements(interp, tzdata, &rowc, &rowv) != TCL_OK) {
return TCL_ERROR;
}
@@ -2023,7 +2023,7 @@ ConvertLocalToUTCUsingTable(
row = LookupLastTransition(interp, fields->seconds, rowc, rowv,
rangesVal);
if ((row == NULL)
- || TclListObjGetElementsM(interp, row, &cellc,
+ || TclListObjGetElements(interp, row, &cellc,
&cellv) != TCL_OK
|| TclGetIntFromObj(interp, cellv[1],
&fields->tzOffset) != TCL_OK) {
@@ -2204,7 +2204,7 @@ ConvertUTCToLocal(
return TCL_ERROR;
}
- if (TclListObjGetElementsM(interp, tzdata, &rowc, &rowv) != TCL_OK) {
+ if (TclListObjGetElements(interp, tzdata, &rowc, &rowv) != TCL_OK) {
return TCL_ERROR;
}
@@ -2294,7 +2294,7 @@ ConvertUTCToLocalUsingTable(
row = LookupLastTransition(interp, fields->seconds, rowc, rowv, rangesVal);
if (row == NULL ||
- TclListObjGetElementsM(interp, row, &cellc, &cellv) != TCL_OK ||
+ TclListObjGetElements(interp, row, &cellc, &cellv) != TCL_OK ||
TclGetIntFromObj(interp, cellv[1], &fields->tzOffset) != TCL_OK) {
return TCL_ERROR;
}
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c
index e3f3698..1268751 100644
--- a/generic/tclCmdAH.c
+++ b/generic/tclCmdAH.c
@@ -2825,7 +2825,7 @@ EachloopCmd(
result = TCL_ERROR;
goto done;
}
- result = TclListObjLengthM(interp, statePtr->vCopyList[i],
+ result = TclListObjLength(interp, statePtr->vCopyList[i],
&statePtr->varcList[i]);
if (result != TCL_OK) {
result = TCL_ERROR;
@@ -2841,7 +2841,7 @@ EachloopCmd(
result = TCL_ERROR;
goto done;
}
- TclListObjGetElementsM(NULL, statePtr->vCopyList[i],
+ TclListObjGetElements(NULL, statePtr->vCopyList[i],
&statePtr->varcList[i], &statePtr->varvList[i]);
/* Values */
@@ -2861,7 +2861,7 @@ EachloopCmd(
result = TCL_ERROR;
goto done;
}
- result = TclListObjGetElementsM(interp, statePtr->aCopyList[i],
+ result = TclListObjGetElements(interp, statePtr->aCopyList[i],
&statePtr->argcList[i], &statePtr->argvList[i]);
if (result != TCL_OK) {
goto done;
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 0079167..fec8fcf 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -2179,7 +2179,7 @@ Tcl_JoinObjCmd(
!= TCL_OK) {
return TCL_ERROR;
}
- } else if (TclListObjGetElementsM(interp, objv[1], &listLen,
+ } else if (TclListObjGetElements(interp, objv[1], &listLen,
&elemPtrs) != TCL_OK) {
return TCL_ERROR;
}
@@ -2280,7 +2280,7 @@ Tcl_LassignObjCmd(
*/
listPtr = objv[1];
- if (TclListObjLengthM(interp, listPtr, &listObjc) != TCL_OK) {
+ if (TclListObjLength(interp, listPtr, &listObjc) != TCL_OK) {
return TCL_ERROR;
}
origListObjc = listObjc;
@@ -2439,7 +2439,7 @@ Tcl_LinsertObjCmd(
return TCL_ERROR;
}
- result = TclListObjLengthM(interp, objv[1], &len);
+ result = TclListObjLength(interp, objv[1], &len);
if (result != TCL_OK) {
return result;
}
@@ -2569,7 +2569,7 @@ Tcl_LlengthObjCmd(
return TCL_ERROR;
}
- result = TclListObjLengthM(interp, objv[1], &listLen);
+ result = TclListObjLength(interp, objv[1], &listLen);
if (result != TCL_OK) {
return result;
}
@@ -2624,7 +2624,7 @@ Tcl_LpopObjCmd(
return TCL_ERROR;
}
- result = TclListObjLengthM(interp, listPtr, &listLen);
+ result = TclListObjLength(interp, listPtr, &listLen);
if (result != TCL_OK) {
return result;
}
@@ -2736,7 +2736,7 @@ Tcl_LrangeObjCmd(
return TCL_ERROR;
}
- result = TclListObjLengthM(interp, objv[1], &listLen);
+ result = TclListObjLength(interp, objv[1], &listLen);
if (result != TCL_OK) {
return result;
}
@@ -2825,7 +2825,7 @@ Tcl_LremoveObjCmd(
}
listObj = objv[1];
- if (TclListObjLengthM(interp, listObj, &listLen) != TCL_OK) {
+ if (TclListObjLength(interp, listObj, &listLen) != TCL_OK) {
return TCL_ERROR;
}
@@ -3066,7 +3066,7 @@ Tcl_LreplaceObjCmd(
return TCL_ERROR;
}
- result = TclListObjLengthM(interp, objv[1], &listLen);
+ result = TclListObjLength(interp, objv[1], &listLen);
if (result != TCL_OK) {
return result;
}
@@ -3179,7 +3179,7 @@ Tcl_LreverseObjCmd(
}
} /* end Abstract List */
- if (TclListObjLengthM(interp, objv[1], &elemc) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &elemc) != TCL_OK) {
return TCL_ERROR;
}
@@ -3191,7 +3191,7 @@ Tcl_LreverseObjCmd(
Tcl_SetObjResult(interp, objv[1]);
return TCL_OK;
}
- if (TclListObjGetElementsM(interp, objv[1], &elemc, &elemv) != TCL_OK) {
+ if (TclListObjGetElements(interp, objv[1], &elemc, &elemv) != TCL_OK) {
return TCL_ERROR;
}
@@ -3463,7 +3463,7 @@ Tcl_LsearchObjCmd(
*/
i++;
- if (TclListObjGetElementsM(interp, objv[i],
+ if (TclListObjGetElements(interp, objv[i],
&sortInfo.indexc, &indices) != TCL_OK) {
result = TCL_ERROR;
goto done;
@@ -3569,7 +3569,7 @@ Tcl_LsearchObjCmd(
* pointer to its array of element pointers.
*/
- result = TclListObjGetElementsM(interp, objv[objc - 2], &listc, &listv);
+ result = TclListObjGetElements(interp, objv[objc - 2], &listc, &listv);
if (result != TCL_OK) {
goto done;
}
@@ -3674,7 +3674,7 @@ Tcl_LsearchObjCmd(
* 1844789]
*/
- TclListObjGetElementsM(NULL, objv[objc - 2], &listc, &listv);
+ TclListObjGetElements(NULL, objv[objc - 2], &listc, &listv);
break;
case REAL:
result = Tcl_GetDoubleFromObj(interp, patObj, &patDouble);
@@ -3687,7 +3687,7 @@ Tcl_LsearchObjCmd(
* 1844789]
*/
- TclListObjGetElementsM(NULL, objv[objc - 2], &listc, &listv);
+ TclListObjGetElements(NULL, objv[objc - 2], &listc, &listv);
break;
}
} else {
@@ -4616,7 +4616,7 @@ Tcl_LsortObjCmd(
sortInfo.resultCode = TCL_ERROR;
goto done;
}
- if (TclListObjGetElementsM(interp, objv[i+1], &sortindex,
+ if (TclListObjGetElements(interp, objv[i+1], &sortindex,
&indexv) != TCL_OK) {
sortInfo.resultCode = TCL_ERROR;
goto done;
@@ -4709,7 +4709,7 @@ Tcl_LsortObjCmd(
if (indexPtr) {
Tcl_Obj **indexv;
- TclListObjGetElementsM(interp, indexPtr, &sortInfo.indexc, &indexv);
+ TclListObjGetElements(interp, indexPtr, &sortInfo.indexc, &indexv);
switch (sortInfo.indexc) {
case 0:
sortInfo.indexv = NULL;
@@ -4771,7 +4771,7 @@ Tcl_LsortObjCmd(
sortInfo.resultCode =
TclObjTypeGetElements(interp, listObj, &length, &listObjPtrs);
} else {
- sortInfo.resultCode = TclListObjGetElementsM(interp, listObj,
+ sortInfo.resultCode = TclListObjGetElements(interp, listObj,
&length, &listObjPtrs);
}
if (sortInfo.resultCode != TCL_OK || length <= 0) {
@@ -5066,7 +5066,7 @@ Tcl_LeditObjCmd(
* by Tcl_{Lrange,Lreplace,Ledit}ObjCmd
*/
- result = TclListObjLengthM(interp, listPtr, &listLen);
+ result = TclListObjLength(interp, listPtr, &listLen);
if (result != TCL_OK) {
return result;
}
@@ -5302,10 +5302,10 @@ SortCompare(
* Replace them and evaluate the result.
*/
- TclListObjLengthM(infoPtr->interp, infoPtr->compareCmdPtr, &objc);
+ TclListObjLength(infoPtr->interp, infoPtr->compareCmdPtr, &objc);
Tcl_ListObjReplace(infoPtr->interp, infoPtr->compareCmdPtr, objc - 2,
2, 2, paramObjv);
- TclListObjGetElementsM(infoPtr->interp, infoPtr->compareCmdPtr,
+ TclListObjGetElements(infoPtr->interp, infoPtr->compareCmdPtr,
&objc, &objv);
infoPtr->resultCode = Tcl_EvalObjv(infoPtr->interp, objc, objv, 0);
@@ -5516,7 +5516,7 @@ SelectObjFromSublist(
int index;
Tcl_Obj *currentObj, *lastObj=NULL;
- if (TclListObjLengthM(infoPtr->interp, objPtr, &listLen) != TCL_OK) {
+ if (TclListObjLength(infoPtr->interp, objPtr, &listLen) != TCL_OK) {
infoPtr->resultCode = TCL_ERROR;
return NULL;
}
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c
index 2660ff1..a887aaf 100644
--- a/generic/tclCmdMZ.c
+++ b/generic/tclCmdMZ.c
@@ -677,7 +677,7 @@ Tcl_RegsubObjCmd(
* object. (If they aren't, that's cheap to do.)
*/
- if (TclListObjLengthM(interp, objv[2], &numParts) != TCL_OK) {
+ if (TclListObjLength(interp, objv[2], &numParts) != TCL_OK) {
return TCL_ERROR;
}
if (numParts < 1) {
@@ -779,7 +779,7 @@ Tcl_RegsubObjCmd(
Tcl_Obj **args = NULL, **parts;
Tcl_Size numArgs;
- TclListObjGetElementsM(interp, subPtr, &numParts, &parts);
+ TclListObjGetElements(interp, subPtr, &numParts, &parts);
numArgs = numParts + info.nsubs + 1;
args = (Tcl_Obj **)Tcl_Alloc(sizeof(Tcl_Obj*) * numArgs);
memcpy(args, parts, sizeof(Tcl_Obj*) * numParts);
@@ -1809,7 +1809,7 @@ StringIsCmd(
* well-formed lists.
*/
- if (TCL_OK == TclListObjLengthM(NULL, objPtr, &length3)) {
+ if (TCL_OK == TclListObjLength(NULL, objPtr, &length3)) {
break;
}
@@ -2023,7 +2023,7 @@ StringMapCmd(
Tcl_DictObjDone(&search);
} else {
Tcl_Size i;
- if (TclListObjGetElementsM(interp, objv[objc-2], &i,
+ if (TclListObjGetElements(interp, objv[objc-2], &i,
&mapElemv) != TCL_OK) {
return TCL_ERROR;
}
@@ -3587,7 +3587,7 @@ TclNRSwitchObjCmd(
Tcl_Size listc;
blist = objv[0];
- if (TclListObjLengthM(interp, objv[0], &listc) != TCL_OK) {
+ if (TclListObjLength(interp, objv[0], &listc) != TCL_OK) {
return TCL_ERROR;
}
@@ -3600,7 +3600,7 @@ TclNRSwitchObjCmd(
"?-option ...? string {?pattern body ...? ?default body?}");
return TCL_ERROR;
}
- if (TclListObjGetElementsM(interp, objv[0], &listc, &listv) != TCL_OK) {
+ if (TclListObjGetElements(interp, objv[0], &listc, &listv) != TCL_OK) {
return TCL_ERROR;
}
objc = listc;
@@ -3980,7 +3980,7 @@ Tcl_ThrowObjCmd(
* The type must be a list of at least length 1.
*/
- if (TclListObjLengthM(interp, objv[1], &len) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &len) != TCL_OK) {
return TCL_ERROR;
} else if (len < 1) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
@@ -4770,7 +4770,7 @@ TclNRTryObjCmd(
return TCL_ERROR;
}
code = 1;
- if (TclListObjLengthM(NULL, objv[i+1], &dummy) != TCL_OK) {
+ if (TclListObjLength(NULL, objv[i+1], &dummy) != TCL_OK) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"bad prefix '%s': must be a list",
TclGetString(objv[i+1])));
@@ -4782,7 +4782,7 @@ TclNRTryObjCmd(
info[2] = objv[i+1];
commonHandler:
- if (TclListObjLengthM(interp, objv[i+2], &dummy) != TCL_OK) {
+ if (TclListObjLength(interp, objv[i+2], &dummy) != TCL_OK) {
Tcl_DecrRefCount(handlersObj);
return TCL_ERROR;
}
@@ -4932,12 +4932,12 @@ TryPostBody(
int found = 0;
Tcl_Obj **handlers, **info;
- TclListObjGetElementsM(NULL, handlersObj, &numHandlers, &handlers);
+ TclListObjGetElements(NULL, handlersObj, &numHandlers, &handlers);
for (i=0 ; i<numHandlers ; i++) {
Tcl_Obj *handlerBodyObj;
Tcl_Size numElems = 0;
- TclListObjGetElementsM(NULL, handlers[i], &numElems, &info);
+ TclListObjGetElements(NULL, handlers[i], &numElems, &info);
if (!found) {
Tcl_GetIntFromObj(NULL, info[1], &code);
if (code != result) {
@@ -4958,8 +4958,8 @@ TryPostBody(
TclNewLiteralStringObj(errorCodeName, "-errorcode");
Tcl_DictObjGet(NULL, options, errorCodeName, &errcode);
Tcl_DecrRefCount(errorCodeName);
- TclListObjGetElementsM(NULL, info[2], &len1, &bits1);
- if (TclListObjGetElementsM(NULL, errcode, &len2,
+ TclListObjGetElements(NULL, info[2], &len1, &bits1);
+ if (TclListObjGetElements(NULL, errcode, &len2,
&bits2) != TCL_OK) {
continue;
}
@@ -4999,7 +4999,7 @@ TryPostBody(
Tcl_ResetResult(interp);
result = TCL_ERROR;
- TclListObjLengthM(NULL, info[3], &numElems);
+ TclListObjLength(NULL, info[3], &numElems);
if (numElems> 0) {
Tcl_Obj *varName;
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index 495c307..818b96b 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -302,7 +302,7 @@ TclCompileArraySetCmd(
TclNewObj(literalObj);
isDataLiteral = TclWordKnownAtCompileTime(dataTokenPtr, literalObj);
isDataValid = (isDataLiteral
- && TclListObjLengthM(NULL, literalObj, &len) == TCL_OK);
+ && TclListObjLength(NULL, literalObj, &len) == TCL_OK);
isDataEven = (isDataValid && (len & 1) == 0);
/*
@@ -893,7 +893,7 @@ TclCompileConcatCmd(
const char *bytes;
Tcl_Size len, slen;
- TclListObjGetElementsM(NULL, listObj, &len, &objs);
+ TclListObjGetElements(NULL, listObj, &len, &objs);
objPtr = Tcl_ConcatObj(len, objs);
Tcl_DecrRefCount(listObj);
bytes = Tcl_GetStringFromObj(objPtr, &slen);
@@ -2833,7 +2833,7 @@ CompileEachloopCmd(
*/
if (!TclWordKnownAtCompileTime(tokenPtr, varListObj) ||
- TCL_OK != TclListObjLengthM(NULL, varListObj, &numVars) ||
+ TCL_OK != TclListObjLength(NULL, varListObj, &numVars) ||
numVars == 0) {
code = TCL_ERROR;
goto done;
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c
index 0281465..b25862f 100644
--- a/generic/tclCompCmdsSZ.c
+++ b/generic/tclCompCmdsSZ.c
@@ -940,7 +940,7 @@ TclCompileStringMapCmd(
if (!TclWordKnownAtCompileTime(mapTokenPtr, mapObj)) {
Tcl_DecrRefCount(mapObj);
return TclCompileBasic2ArgCmd(interp, parsePtr, cmdPtr, envPtr);
- } else if (TclListObjGetElementsM(NULL, mapObj, &len, &objv) != TCL_OK) {
+ } else if (TclListObjGetElements(NULL, mapObj, &len, &objv) != TCL_OK) {
Tcl_DecrRefCount(mapObj);
return TclCompileBasic2ArgCmd(interp, parsePtr, cmdPtr, envPtr);
} else if (len != 2) {
@@ -2736,7 +2736,7 @@ TclCompileThrowCmd(
CompileWord(envPtr, msgToken, interp, 2);
codeIsList = codeKnown && (TCL_OK ==
- TclListObjLengthM(interp, objPtr, &len));
+ TclListObjLength(interp, objPtr, &len));
codeIsValid = codeIsList && (len != 0);
if (codeIsValid) {
@@ -2869,7 +2869,7 @@ TclCompileTryCmd(
TclNewObj(tmpObj);
Tcl_IncrRefCount(tmpObj);
if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)
- || TclListObjLengthM(NULL, tmpObj, &objc) != TCL_OK
+ || TclListObjLength(NULL, tmpObj, &objc) != TCL_OK
|| (objc == 0)) {
TclDecrRefCount(tmpObj);
goto failedToCompile;
@@ -2912,7 +2912,7 @@ TclCompileTryCmd(
TclDecrRefCount(tmpObj);
goto failedToCompile;
}
- if (TclListObjGetElementsM(NULL, tmpObj, &objc, &objv) != TCL_OK
+ if (TclListObjGetElements(NULL, tmpObj, &objc, &objv) != TCL_OK
|| (objc > 2)) {
TclDecrRefCount(tmpObj);
goto failedToCompile;
@@ -3127,7 +3127,7 @@ IssueTryClausesInstructions(
JUMP4( JUMP_FALSE, notCodeJumpSource);
if (matchClauses[i]) {
const char *p;
- TclListObjLengthM(NULL, matchClauses[i], &len);
+ TclListObjLength(NULL, matchClauses[i], &len);
/*
* Match the errorcode according to try/trap rules.
@@ -3339,7 +3339,7 @@ IssueTryClausesFinallyInstructions(
OP( EQ);
JUMP4( JUMP_FALSE, notCodeJumpSource);
if (matchClauses[i]) {
- TclListObjLengthM(NULL, matchClauses[i], &len);
+ TclListObjLength(NULL, matchClauses[i], &len);
/*
* Match the errorcode according to try/trap rules.
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 41b8b65..85f475e 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -2226,8 +2226,8 @@ TclCompileExpr(
TclAdvanceLines(&envPtr->line, script,
script + TclParseAllWhiteSpace(script, numBytes));
- TclListObjGetElementsM(NULL, litList, &objc, (Tcl_Obj ***)&litObjv);
- TclListObjGetElementsM(NULL, funcList, &objc, &funcObjv);
+ TclListObjGetElements(NULL, litList, &objc, (Tcl_Obj ***)&litObjv);
+ TclListObjGetElements(NULL, funcList, &objc, &funcObjv);
CompileExprTree(interp, opTree, 0, &litObjv, funcObjv,
parsePtr->tokenPtr, envPtr, optimize);
} else {
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index 2acbb38..0d5bfe5 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -4240,10 +4240,10 @@ extern const TclStubs *tclStubsPtr;
TclGetUnicodeFromObj((objPtr), (sizePtr)) : \
(Tcl_GetUnicodeFromObj)((objPtr), (Tcl_Size *)(void *)(sizePtr)))
# define Tcl_ListObjGetElements(interp, listPtr, objcPtr, objvPtr) (sizeof(*(objcPtr)) <= sizeof(int) ? \
- TclListObjGetElements((interp), (listPtr), (objcPtr), (objvPtr)) : \
+ (TclListObjGetElements)((interp), (listPtr), (objcPtr), (objvPtr)) : \
(Tcl_ListObjGetElements)((interp), (listPtr), (Tcl_Size *)(void *)(objcPtr), (objvPtr)))
# define Tcl_ListObjLength(interp, listPtr, lengthPtr) (sizeof(*(lengthPtr)) <= sizeof(int) ? \
- TclListObjLength((interp), (listPtr), (lengthPtr)) : \
+ (TclListObjLength)((interp), (listPtr), (lengthPtr)) : \
(Tcl_ListObjLength)((interp), (listPtr), (Tcl_Size *)(void *)(lengthPtr)))
# define Tcl_DictObjSize(interp, dictPtr, sizePtr) (sizeof(*(sizePtr)) <= sizeof(int) ? \
TclDictObjSize((interp), (dictPtr), (sizePtr)) : \
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 3bf1907..38ef79a 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -621,7 +621,7 @@ SetDictFromAny(
Tcl_Obj **objv;
/* Cannot fail, we already know the Tcl_ObjType is "list". */
- TclListObjGetElementsM(NULL, objPtr, &objc, &objv);
+ TclListObjGetElements(NULL, objPtr, &objc, &objv);
if (objc & 1) {
goto missingValue;
}
@@ -2563,7 +2563,7 @@ DictForNRCmd(
* Parse arguments.
*/
- if (TclListObjGetElementsM(interp, objv[1], &varc, &varv) != TCL_OK) {
+ if (TclListObjGetElements(interp, objv[1], &varc, &varv) != TCL_OK) {
return TCL_ERROR;
}
if (varc != 2) {
@@ -2582,7 +2582,7 @@ DictForNRCmd(
TclStackFree(interp, searchPtr);
return TCL_OK;
}
- TclListObjGetElementsM(NULL, objv[1], &varc, &varv);
+ TclListObjGetElements(NULL, objv[1], &varc, &varv);
keyVarObj = varv[0];
valueVarObj = varv[1];
scriptObj = objv[3];
@@ -2758,7 +2758,7 @@ DictMapNRCmd(
* Parse arguments.
*/
- if (TclListObjGetElementsM(interp, objv[1], &varc, &varv) != TCL_OK) {
+ if (TclListObjGetElements(interp, objv[1], &varc, &varv) != TCL_OK) {
return TCL_ERROR;
}
if (varc != 2) {
@@ -2784,7 +2784,7 @@ DictMapNRCmd(
return TCL_OK;
}
TclNewObj(storagePtr->accumulatorObj);
- TclListObjGetElementsM(NULL, objv[1], &varc, &varv);
+ TclListObjGetElements(NULL, objv[1], &varc, &varv);
storagePtr->keyVarObj = varv[0];
storagePtr->valueVarObj = varv[1];
storagePtr->scriptObj = objv[3];
@@ -3198,7 +3198,7 @@ DictFilterCmd(
* copying from the "dict for" implementation has occurred!
*/
- if (TclListObjGetElementsM(interp, objv[3], &varc, &varv) != TCL_OK) {
+ if (TclListObjGetElements(interp, objv[3], &varc, &varv) != TCL_OK) {
return TCL_ERROR;
}
if (varc != 2) {
@@ -3460,7 +3460,7 @@ FinalizeDictUpdate(
* an instruction to remove the key.
*/
- TclListObjGetElementsM(NULL, argsObj, &objc, &objv);
+ TclListObjGetElements(NULL, argsObj, &objc, &objv);
for (i=0 ; i<objc ; i+=2) {
objPtr = Tcl_ObjGetVar2(interp, objv[i+1], NULL, 0);
if (objPtr == NULL) {
@@ -3584,7 +3584,7 @@ FinalizeDictWith(
state = Tcl_SaveInterpState(interp, result);
if (pathPtr != NULL) {
- TclListObjGetElementsM(NULL, pathPtr, &pathc, &pathv);
+ TclListObjGetElements(NULL, pathPtr, &pathc, &pathv);
} else {
pathc = 0;
pathv = NULL;
@@ -3790,7 +3790,7 @@ TclDictWithFinish(
* Now process our updates on the leaf dictionary.
*/
- TclListObjGetElementsM(NULL, keysPtr, &keyc, &keyv);
+ TclListObjGetElements(NULL, keysPtr, &keyc, &keyv);
for (i=0 ; i<keyc ; i++) {
valPtr = Tcl_ObjGetVar2(interp, keyv[i], NULL, 0);
if (valPtr == NULL) {
diff --git a/generic/tclDisassemble.c b/generic/tclDisassemble.c
index c2dd58d..527f78f 100644
--- a/generic/tclDisassemble.c
+++ b/generic/tclDisassemble.c
@@ -766,7 +766,7 @@ TclGetInnerContext(
* Reset while keeping the list internalrep as much as possible.
*/
- TclListObjLengthM(interp, result, &len);
+ TclListObjLength(interp, result, &len);
Tcl_ListObjReplace(interp, result, 0, len, 0, NULL);
}
Tcl_ListObjAppendElement(NULL, result, TclNewInstNameObj(*pc));
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index 7d80c45..f60f949 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -406,7 +406,7 @@ Tcl_SetEncodingSearchPath(
{
Tcl_Size dummy;
- if (TCL_ERROR == TclListObjLengthM(NULL, searchPath, &dummy)) {
+ if (TCL_ERROR == TclListObjLength(NULL, searchPath, &dummy)) {
return TCL_ERROR;
}
TclSetProcessGlobalValue(&encodingSearchPath, searchPath, NULL);
@@ -446,7 +446,7 @@ FillEncodingFileMap(void)
searchPath = Tcl_GetEncodingSearchPath();
Tcl_IncrRefCount(searchPath);
- TclListObjLengthM(NULL, searchPath, &numDirs);
+ TclListObjLength(NULL, searchPath, &numDirs);
map = Tcl_NewDictObj();
Tcl_IncrRefCount(map);
@@ -470,7 +470,7 @@ FillEncodingFileMap(void)
Tcl_FSMatchInDirectory(NULL, matchFileList, directory, "*.enc",
&readableFiles);
- TclListObjGetElementsM(NULL, matchFileList, &numFiles, &filev);
+ TclListObjGetElements(NULL, matchFileList, &numFiles, &filev);
for (j=0; j<numFiles; j++) {
Tcl_Obj *encodingName, *fileObj;
@@ -1774,7 +1774,7 @@ OpenEncodingFileChannel(
Tcl_Channel chan = NULL;
Tcl_Size i, numDirs;
- TclListObjGetElementsM(NULL, searchPath, &numDirs, &dir);
+ TclListObjGetElements(NULL, searchPath, &numDirs, &dir);
Tcl_IncrRefCount(nameObj);
Tcl_AppendToObj(fileNameObj, ".enc", TCL_INDEX_NONE);
Tcl_IncrRefCount(fileNameObj);
@@ -4277,7 +4277,7 @@ InitializeEncodingSearchPath(
Tcl_IncrRefCount(searchPathObj);
libPathObj = TclGetProcessGlobalValue(&libraryPath);
Tcl_IncrRefCount(libPathObj);
- TclListObjLengthM(NULL, libPathObj, &numDirs);
+ TclListObjLength(NULL, libPathObj, &numDirs);
for (i = 0; i < numDirs; i++) {
Tcl_Obj *directoryObj, *pathObj;
diff --git a/generic/tclEnsemble.c b/generic/tclEnsemble.c
index 8614171..ad6ced3 100644
--- a/generic/tclEnsemble.c
+++ b/generic/tclEnsemble.c
@@ -236,7 +236,7 @@ TclNamespaceEnsembleCmd(
cxtPtr = nsPtr;
continue;
case CRT_SUBCMDS:
- if (TclListObjLengthM(interp, objv[1], &len) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &len) != TCL_OK) {
if (allocatedMapFlag) {
Tcl_DecrRefCount(mapObj);
}
@@ -245,7 +245,7 @@ TclNamespaceEnsembleCmd(
subcmdObj = (len > 0 ? objv[1] : NULL);
continue;
case CRT_PARAM:
- if (TclListObjLengthM(interp, objv[1], &len) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &len) != TCL_OK) {
if (allocatedMapFlag) {
Tcl_DecrRefCount(mapObj);
}
@@ -275,7 +275,7 @@ TclNamespaceEnsembleCmd(
Tcl_Obj **listv;
const char *cmd;
- if (TclListObjGetElementsM(interp, listObj, &len,
+ if (TclListObjGetElements(interp, listObj, &len,
&listv) != TCL_OK) {
Tcl_DictObjDone(&search);
if (patchedDict) {
@@ -340,7 +340,7 @@ TclNamespaceEnsembleCmd(
}
continue;
case CRT_UNKNOWN:
- if (TclListObjLengthM(interp, objv[1], &len) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &len) != TCL_OK) {
if (allocatedMapFlag) {
Tcl_DecrRefCount(mapObj);
}
@@ -538,13 +538,13 @@ TclNamespaceEnsembleCmd(
}
switch (idx) {
case CONF_SUBCMDS:
- if (TclListObjLengthM(interp, objv[1], &len) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &len) != TCL_OK) {
goto freeMapAndError;
}
subcmdObj = (len > 0 ? objv[1] : NULL);
continue;
case CONF_PARAM:
- if (TclListObjLengthM(interp, objv[1], &len) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &len) != TCL_OK) {
goto freeMapAndError;
}
paramObj = (len > 0 ? objv[1] : NULL);
@@ -566,7 +566,7 @@ TclNamespaceEnsembleCmd(
continue;
}
do {
- if (TclListObjLengthM(interp, listObj, &len
+ if (TclListObjLength(interp, listObj, &len
) != TCL_OK) {
Tcl_DictObjDone(&search);
if (patchedDict) {
@@ -586,7 +586,7 @@ TclNamespaceEnsembleCmd(
}
goto freeMapAndError;
}
- if (TclListObjGetElementsM(interp, listObj, &len,
+ if (TclListObjGetElements(interp, listObj, &len,
&listv) != TCL_OK) {
Tcl_DictObjDone(&search);
if (patchedDict) {
@@ -636,7 +636,7 @@ TclNamespaceEnsembleCmd(
}
continue;
case CONF_UNKNOWN:
- if (TclListObjLengthM(interp, objv[1], &len) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &len) != TCL_OK) {
goto freeMapAndError;
}
unknownObj = (len > 0 ? objv[1] : NULL);
@@ -805,7 +805,7 @@ Tcl_SetEnsembleSubcommandList(
if (subcmdList != NULL) {
Tcl_Size length;
- if (TclListObjLengthM(interp, subcmdList, &length) != TCL_OK) {
+ if (TclListObjLength(interp, subcmdList, &length) != TCL_OK) {
return TCL_ERROR;
}
if (length < 1) {
@@ -881,7 +881,7 @@ Tcl_SetEnsembleParameterList(
if (paramList == NULL) {
length = 0;
} else {
- if (TclListObjLengthM(interp, paramList, &length) != TCL_OK) {
+ if (TclListObjLength(interp, paramList, &length) != TCL_OK) {
return TCL_ERROR;
}
if (length < 1) {
@@ -1057,7 +1057,7 @@ Tcl_SetEnsembleUnknownHandler(
if (unknownList != NULL) {
Tcl_Size length;
- if (TclListObjLengthM(interp, unknownList, &length) != TCL_OK) {
+ if (TclListObjLength(interp, unknownList, &length) != TCL_OK) {
return TCL_ERROR;
}
if (length < 1) {
@@ -1901,7 +1901,7 @@ NsEnsembleImplementationCmdNR(
Tcl_Obj **copyObjv;
Tcl_Size copyObjc, prefixObjc;
- TclListObjLengthM(NULL, prefixObj, &prefixObjc);
+ TclListObjLength(NULL, prefixObj, &prefixObjc);
if (objc == 2) {
copyPtr = TclListObjCopy(NULL, prefixObj);
@@ -1935,7 +1935,7 @@ NsEnsembleImplementationCmdNR(
*/
TclSkipTailcall(interp);
- TclListObjGetElementsM(NULL, copyPtr, &copyObjc, &copyObjv);
+ TclListObjGetElements(NULL, copyPtr, &copyObjc, &copyObjv);
((Interp *)interp)->lookupNsPtr = ensemblePtr->nsPtr;
return TclNREvalObjv(interp, copyObjc, copyObjv, TCL_EVAL_INVOKE, NULL);
}
@@ -2311,7 +2311,7 @@ EnsembleUnknownCallback(
for (i = 1 ; i < objc ; i++) {
Tcl_ListObjAppendElement(NULL, unknownCmd, objv[i]);
}
- TclListObjGetElementsM(NULL, unknownCmd, &paramc, &paramv);
+ TclListObjGetElements(NULL, unknownCmd, &paramc, &paramv);
Tcl_IncrRefCount(unknownCmd);
/*
@@ -2348,7 +2348,7 @@ EnsembleUnknownCallback(
/* A non-empty list is the replacement command. */
- if (TclListObjLengthM(interp, *prefixObjPtr, &prefixObjc) != TCL_OK) {
+ if (TclListObjLength(interp, *prefixObjPtr, &prefixObjc) != TCL_OK) {
TclDecrRefCount(*prefixObjPtr);
Tcl_AddErrorInfo(interp, "\n while parsing result of "
"ensemble unknown subcommand handler");
@@ -2605,7 +2605,7 @@ BuildEnsembleConfig(
* Determine the target for each.
*/
- TclListObjGetElementsM(NULL, subList, &subc, &subv);
+ TclListObjGetElements(NULL, subList, &subc, &subv);
if (subList == mapDict) {
/*
* Unusual case where explicit list of subcommands is same value
@@ -3002,7 +3002,7 @@ TclCompileEnsemble(
const char *str;
Tcl_Obj *matchObj = NULL;
- if (TclListObjGetElementsM(NULL, listObj, &len, &elems) != TCL_OK) {
+ if (TclListObjGetElements(NULL, listObj, &len, &elems) != TCL_OK) {
goto failed;
}
for (i=0 ; i<len ; i++) {
@@ -3122,7 +3122,7 @@ TclCompileEnsemble(
doneMapLookup:
Tcl_ListObjAppendElement(NULL, replaced, replacement);
- if (TclListObjGetElementsM(NULL, targetCmdObj, &len, &elems) != TCL_OK) {
+ if (TclListObjGetElements(NULL, targetCmdObj, &len, &elems) != TCL_OK) {
goto failed;
} else if (len != 1) {
/*
@@ -3406,7 +3406,7 @@ CompileToInvokedCommand(
* difference. Hence the call to TclContinuationsEnterDerived...
*/
- TclListObjGetElementsM(NULL, replacements, &numWords, &words);
+ TclListObjGetElements(NULL, replacements, &numWords, &words);
for (i = 0, tokPtr = parsePtr->tokenPtr; i < parsePtr->numWords;
i++, tokPtr = TokenAfter(tokPtr)) {
if (i > 0 && i <= numWords) {
diff --git a/generic/tclEvent.c b/generic/tclEvent.c
index af76051..54fe8dc 100644
--- a/generic/tclEvent.c
+++ b/generic/tclEvent.c
@@ -238,7 +238,7 @@ HandleBgErrors(
errPtr = assocPtr->firstBgPtr;
- TclListObjGetElementsM(NULL, copyObj, &prefixObjc, &prefixObjv);
+ TclListObjGetElements(NULL, copyObj, &prefixObjc, &prefixObjv);
tempObjv = (Tcl_Obj**)Tcl_Alloc((prefixObjc+2) * sizeof(Tcl_Obj *));
memcpy(tempObjv, prefixObjv, prefixObjc*sizeof(Tcl_Obj *));
tempObjv[prefixObjc] = errPtr->errorMsg;
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 225cc53..fddceb5 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -2676,7 +2676,7 @@ TEBCresume(
objPtr = OBJ_AT_TOS;
TRACE(("\"%.30s\" => ", O2S(objPtr)));
- if (TclListObjGetElementsM(interp, objPtr, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, objPtr, &objc, &objv) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
@@ -2892,7 +2892,7 @@ TEBCresume(
TclMarkTailcall(interp);
TclNRAddCallback(interp, TclClearRootEnsemble, NULL, NULL, NULL, NULL);
- TclListObjGetElementsM(NULL, objPtr, &objc, &objv);
+ TclListObjGetElements(NULL, objPtr, &objc, &objv);
TclNRAddCallback(interp, TclNRReleaseValues, objPtr, NULL, NULL, NULL);
return TclNREvalObjv(interp, objc, objv, TCL_EVAL_INVOKE, NULL);
@@ -3304,7 +3304,7 @@ TEBCresume(
varPtr = varPtr->value.linkPtr;
}
TRACE(("%u <- \"%.30s\" => ", opnd, O2S(valuePtr)));
- if (TclListObjGetElementsM(interp, valuePtr, &objc, &objv)
+ if (TclListObjGetElements(interp, valuePtr, &objc, &objv)
!= TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
@@ -3330,7 +3330,7 @@ TEBCresume(
}
TRACE(("%u \"%.30s\" \"%.30s\" => ",
opnd, O2S(part2Ptr), O2S(valuePtr)));
- if (TclListObjGetElementsM(interp, valuePtr, &objc, &objv)
+ if (TclListObjGetElements(interp, valuePtr, &objc, &objv)
!= TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
@@ -3372,7 +3372,7 @@ TEBCresume(
lappendListDirect:
objResultPtr = varPtr->value.objPtr;
- if (TclListObjLengthM(interp, objResultPtr, &len) != TCL_OK) {
+ if (TclListObjLength(interp, objResultPtr, &len) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
@@ -3393,7 +3393,7 @@ TEBCresume(
lappendList:
opnd = -1;
- if (TclListObjGetElementsM(interp, valuePtr, &objc, &objv)
+ if (TclListObjGetElements(interp, valuePtr, &objc, &objv)
!= TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
@@ -3431,7 +3431,7 @@ TEBCresume(
if (!objResultPtr) {
valueToAssign = valuePtr;
- } else if (TclListObjLengthM(interp, objResultPtr, &len)!=TCL_OK) {
+ } else if (TclListObjLength(interp, objResultPtr, &len)!=TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
} else {
@@ -4720,7 +4720,7 @@ TEBCresume(
case INST_LIST_LENGTH:
TRACE(("\"%.30s\" => ", O2S(OBJ_AT_TOS)));
- if (TclListObjLengthM(interp, OBJ_AT_TOS, &length) != TCL_OK) {
+ if (TclListObjLength(interp, OBJ_AT_TOS, &length) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
@@ -4763,7 +4763,7 @@ TEBCresume(
{
Tcl_Size value2Length;
Tcl_Obj *indexListPtr = value2Ptr;
- if ((TclListObjGetElementsM(interp, valuePtr, &objc, &objv) == TCL_OK)
+ if ((TclListObjGetElements(interp, valuePtr, &objc, &objv) == TCL_OK)
&& (
!TclHasInternalRep(value2Ptr, &tclListType)
||
@@ -4853,7 +4853,7 @@ TEBCresume(
}
/* List case */
- if (TclListObjGetElementsM(interp, valuePtr, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, valuePtr, &objc, &objv) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
@@ -5002,7 +5002,7 @@ TEBCresume(
* in the process.
*/
- if (TclListObjLengthM(interp, valuePtr, &objc) != TCL_OK) {
+ if (TclListObjLength(interp, valuePtr, &objc) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
@@ -5089,7 +5089,7 @@ TEBCresume(
}
} else {
- if (TclListObjLengthM(interp, value2Ptr, &length) != TCL_OK) {
+ if (TclListObjLength(interp, value2Ptr, &length) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
@@ -6527,7 +6527,7 @@ TEBCresume(
numVars = varListPtr->numVars;
listPtr = OBJ_AT_DEPTH(listTmpDepth);
DECACHE_STACK_INFO();
- if (TclListObjLengthM(interp, listPtr, &listLen) != TCL_OK) {
+ if (TclListObjLength(interp, listPtr, &listLen) != TCL_OK) {
CACHE_STACK_INFO();
TRACE_APPEND(("ERROR converting list %" TCL_Z_MODIFIER "d, \"%s\": %s",
i, O2S(listPtr), O2S(Tcl_GetObjResult(interp))));
@@ -6617,7 +6617,7 @@ TEBCresume(
status = Tcl_ListObjLength(interp, listPtr, &listLen);
elements = NULL;
} else {
- status = TclListObjGetElementsM(
+ status = TclListObjGetElements(
interp, listPtr, &listLen, &elements);
}
if (status != TCL_OK) {
@@ -7256,7 +7256,7 @@ TEBCresume(
}
}
Tcl_IncrRefCount(dictPtr);
- if (TclListObjGetElementsM(interp, OBJ_AT_TOS, &length,
+ if (TclListObjGetElements(interp, OBJ_AT_TOS, &length,
&keyPtrPtr) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
@@ -7316,7 +7316,7 @@ TEBCresume(
NEXT_INST_F(9, 1, 0);
}
if (Tcl_DictObjSize(interp, dictPtr, &length) != TCL_OK
- || TclListObjGetElementsM(interp, OBJ_AT_TOS, &length,
+ || TclListObjGetElements(interp, OBJ_AT_TOS, &length,
&keyPtrPtr) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
@@ -7375,7 +7375,7 @@ TEBCresume(
dictPtr = OBJ_UNDER_TOS;
listPtr = OBJ_AT_TOS;
TRACE(("\"%.30s\" \"%.30s\" =>", O2S(dictPtr), O2S(listPtr)));
- if (TclListObjGetElementsM(interp, listPtr, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, listPtr, &objc, &objv) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
@@ -7393,7 +7393,7 @@ TEBCresume(
listPtr = OBJ_AT_TOS;
TRACE(("\"%.30s\" \"%.30s\" \"%.30s\" => ",
O2S(varNamePtr), O2S(valuePtr), O2S(keysPtr)));
- if (TclListObjGetElementsM(interp, listPtr, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, listPtr, &objc, &objv) != TCL_OK) {
TRACE_ERROR(interp);
TclDecrRefCount(keysPtr);
goto gotError;
@@ -7424,7 +7424,7 @@ TEBCresume(
varPtr = LOCAL(opnd);
TRACE(("%u <- \"%.30s\" \"%.30s\" => ", opnd, O2S(valuePtr),
O2S(keysPtr)));
- if (TclListObjGetElementsM(interp, listPtr, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, listPtr, &objc, &objv) != TCL_OK) {
TRACE_ERROR(interp);
goto gotError;
}
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c
index 4cea92e..c97997d 100644
--- a/generic/tclFCmd.c
+++ b/generic/tclFCmd.c
@@ -1041,7 +1041,7 @@ TclFileAttrsCmd(
* Use objStrings as a list object.
*/
- if (TclListObjLengthM(interp, objStrings, &numObjStrings) != TCL_OK) {
+ if (TclListObjLength(interp, objStrings, &numObjStrings) != TCL_OK) {
goto end;
}
attributeStringsAllocated = (const char **)
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index b7ac0fa..5e167c7 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -488,7 +488,7 @@ TclpNativeSplitPath(
*/
if (lenPtr != NULL) {
- TclListObjLengthM(NULL, resultPtr, lenPtr);
+ TclListObjLength(NULL, resultPtr, lenPtr);
}
return resultPtr;
}
@@ -1225,7 +1225,7 @@ Tcl_GlobObjCmd(
return TCL_ERROR;
}
typePtr = objv[i+1];
- if (TclListObjLengthM(interp, typePtr, &length) != TCL_OK) {
+ if (TclListObjLength(interp, typePtr, &length) != TCL_OK) {
return TCL_ERROR;
}
i++;
@@ -1351,7 +1351,7 @@ Tcl_GlobObjCmd(
* platform.
*/
- TclListObjLengthM(interp, typePtr, &length);
+ TclListObjLength(interp, typePtr, &length);
if (length == 0) {
goto skipTypes;
}
@@ -1422,7 +1422,7 @@ Tcl_GlobObjCmd(
Tcl_Obj *item;
Tcl_Size llen;
- if ((TclListObjLengthM(NULL, look, &llen) == TCL_OK)
+ if ((TclListObjLength(NULL, look, &llen) == TCL_OK)
&& (llen == 3)) {
Tcl_ListObjIndex(interp, look, 0, &item);
if (!strcmp("macintosh", TclGetString(item))) {
@@ -1825,7 +1825,7 @@ TclGlob(
}
}
- TclListObjGetElementsM(NULL, filenamesObj, &objc, &objv);
+ TclListObjGetElements(NULL, filenamesObj, &objc, &objv);
for (i = 0; i< objc; i++) {
Tcl_Size len;
const char *oldStr = Tcl_GetStringFromObj(objv[i], &len);
@@ -2152,7 +2152,7 @@ DoGlob(
Tcl_Size i, subdirc, repair = -1;
Tcl_Obj **subdirv;
- result = TclListObjGetElementsM(interp, subdirsPtr,
+ result = TclListObjGetElements(interp, subdirsPtr,
&subdirc, &subdirv);
for (i=0; result==TCL_OK && i<subdirc; i++) {
Tcl_Obj *copy = NULL;
@@ -2164,7 +2164,7 @@ DoGlob(
Tcl_DecrRefCount(subdirv[i]);
subdirv[i] = copy;
- TclListObjLengthM(NULL, matchesObj, &end);
+ TclListObjLength(NULL, matchesObj, &end);
while (repair < end) {
const char *bytes;
Tcl_Size numBytes;
diff --git a/generic/tclIO.c b/generic/tclIO.c
index c44329e..75427de 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -11181,7 +11181,7 @@ FixLevelCode(
* information. Hence an error means that we've got serious breakage.
*/
- res = TclListObjGetElementsM(NULL, msg, &lc, &lv);
+ res = TclListObjGetElements(NULL, msg, &lc, &lv);
if (res != TCL_OK) {
Tcl_Panic("Tcl_SetChannelError: bad syntax of message");
}
diff --git a/generic/tclIOGT.c b/generic/tclIOGT.c
index 4ef4bb0..aa63cd0 100644
--- a/generic/tclIOGT.c
+++ b/generic/tclIOGT.c
@@ -266,7 +266,7 @@ TclChannelTransform(
return TCL_ERROR;
}
- if (TCL_OK != TclListObjLengthM(interp, cmdObjPtr, &objc)) {
+ if (TCL_OK != TclListObjLength(interp, cmdObjPtr, &objc)) {
Tcl_SetObjResult(interp,
Tcl_NewStringObj("-command value is not a list", -1));
return TCL_ERROR;
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index e8ce5f1..74b301b 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -612,7 +612,7 @@ TclChanCreateObjCmd(
* Compare open mode against optional r/w.
*/
- if (TclListObjGetElementsM(NULL, resObj, &listc, &listv) != TCL_OK) {
+ if (TclListObjGetElements(NULL, resObj, &listc, &listv) != TCL_OK) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"chan handler \"%s initialize\" returned non-list: %s",
TclGetString(cmdObj), TclGetString(resObj)));
@@ -1070,7 +1070,7 @@ UnmarshallErrorResult(
* information; if we panic here, something has gone badly wrong already.
*/
- if (TclListObjGetElementsM(interp, msgObj, &lc, &lv) != TCL_OK) {
+ if (TclListObjGetElements(interp, msgObj, &lc, &lv) != TCL_OK) {
Tcl_Panic("TclChanCaughtErrorBypass: Bad syntax of caught result");
}
if (interp == NULL) {
@@ -2002,7 +2002,7 @@ ReflectGetOption(
* result is a valid list. Nor that the list has an even number elements.
*/
- if (TclListObjGetElementsM(interp, resObj, &listc, &listv) != TCL_OK) {
+ if (TclListObjGetElements(interp, resObj, &listc, &listv) != TCL_OK) {
goto error;
}
@@ -2148,7 +2148,7 @@ EncodeEventMask(
int evIndex; /* Id of event for an element of the eventspec
* list. */
- if (TclListObjGetElementsM(interp, obj, &listc, &listv) != TCL_OK) {
+ if (TclListObjGetElements(interp, obj, &listc, &listv) != TCL_OK) {
return TCL_ERROR;
}
@@ -3311,7 +3311,7 @@ ForwardProc(
Tcl_Size listc;
Tcl_Obj **listv;
- if (TclListObjGetElementsM(interp, resObj, &listc,
+ if (TclListObjGetElements(interp, resObj, &listc,
&listv) != TCL_OK) {
Tcl_DecrRefCount(resObj);
resObj = MarshallError(interp);
diff --git a/generic/tclIORTrans.c b/generic/tclIORTrans.c
index a7bef43..683b7f2 100644
--- a/generic/tclIORTrans.c
+++ b/generic/tclIORTrans.c
@@ -599,7 +599,7 @@ TclChanPushObjCmd(
* through the mask. Compare open mode against optional r/w.
*/
- if (TclListObjGetElementsM(NULL, resObj, &listc, &listv) != TCL_OK) {
+ if (TclListObjGetElements(NULL, resObj, &listc, &listv) != TCL_OK) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"chan handler \"%s initialize\" returned non-list: %s",
TclGetString(cmdObj), TclGetString(resObj)));
@@ -835,7 +835,7 @@ UnmarshallErrorResult(
* information; if we panic here, something has gone badly wrong already.
*/
- if (TclListObjGetElementsM(interp, msgObj, &lc, &lv) != TCL_OK) {
+ if (TclListObjGetElements(interp, msgObj, &lc, &lv) != TCL_OK) {
Tcl_Panic("TclChanCaughtErrorBypass: Bad syntax of caught result");
}
if (interp == NULL) {
@@ -1756,7 +1756,7 @@ NewReflectedTransform(
/* ASSERT: cmdpfxObj is a Tcl List */
- TclListObjGetElementsM(interp, cmdpfxObj, &listc, &listv);
+ TclListObjGetElements(interp, cmdpfxObj, &listc, &listv);
/*
* See [==] as well.
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index df218b3..df2d510 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -1067,7 +1067,7 @@ Tcl_FSMatchInDirectory(
* resultPtr and tmpResultPtr are guaranteed to be distinct.
*/
- ret = TclListObjGetElementsM(interp, tmpResultPtr,
+ ret = TclListObjGetElements(interp, tmpResultPtr,
&resLength, &elemsPtr);
for (i=0 ; ret==TCL_OK && i<resLength ; i++) {
ret = Tcl_ListObjAppendElement(interp, resultPtr,
@@ -1115,10 +1115,10 @@ FsAddMountsToGlobResult(
return;
}
- if (TclListObjLengthM(NULL, mounts, &mLength) != TCL_OK || mLength == 0) {
+ if (TclListObjLength(NULL, mounts, &mLength) != TCL_OK || mLength == 0) {
goto endOfMounts;
}
- if (TclListObjLengthM(NULL, resultPtr, &gLength) != TCL_OK) {
+ if (TclListObjLength(NULL, resultPtr, &gLength) != TCL_OK) {
goto endOfMounts;
}
for (i=0 ; i<mLength ; i++) {
@@ -2483,7 +2483,7 @@ TclFSFileAttrIndex(
Tcl_Size i, objc;
Tcl_Obj **objv;
- if (TclListObjGetElementsM(NULL, listObj, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(NULL, listObj, &objc, &objv) != TCL_OK) {
TclDecrRefCount(listObj);
return TCL_ERROR;
}
@@ -3870,7 +3870,7 @@ Tcl_FSSplitPath(
}
if (lenPtr != NULL) {
- TclListObjLengthM(NULL, result, lenPtr);
+ TclListObjLength(NULL, result, lenPtr);
}
return result;
}
@@ -3993,7 +3993,7 @@ TclFSNonnativePathType(
Tcl_Obj *thisFsVolumes = fsRecPtr->fsPtr->listVolumesProc();
if (thisFsVolumes != NULL) {
- if (TclListObjLengthM(NULL, thisFsVolumes, &numVolumes)
+ if (TclListObjLength(NULL, thisFsVolumes, &numVolumes)
!= TCL_OK) {
/*
* This is VERY bad; the listVolumesProc didn't return a
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index a60093a..e76cca3 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -117,7 +117,7 @@ GetIndexFromObjList(
* of the code there. This is a bit inefficient but simpler.
*/
- result = TclListObjGetElementsM(interp, tableObjPtr, &objc, &objv);
+ result = TclListObjGetElements(interp, tableObjPtr, &objc, &objv);
if (result != TCL_OK) {
return result;
}
@@ -552,7 +552,7 @@ PrefixMatchObjCmd(
return TCL_ERROR;
}
i++;
- result = TclListObjLengthM(interp, objv[i], &errorLength);
+ result = TclListObjLength(interp, objv[i], &errorLength);
if (result != TCL_OK) {
return TCL_ERROR;
}
@@ -576,7 +576,7 @@ PrefixMatchObjCmd(
* error case regardless of level.
*/
- result = TclListObjLengthM(interp, tablePtr, &i);
+ result = TclListObjLength(interp, tablePtr, &i);
if (result != TCL_OK) {
return result;
}
@@ -642,7 +642,7 @@ PrefixAllObjCmd(
return TCL_ERROR;
}
- result = TclListObjGetElementsM(interp, objv[1], &tableObjc, &tableObjv);
+ result = TclListObjGetElements(interp, objv[1], &tableObjc, &tableObjv);
if (result != TCL_OK) {
return result;
}
@@ -700,7 +700,7 @@ PrefixLongestObjCmd(
return TCL_ERROR;
}
- result = TclListObjGetElementsM(interp, objv[1], &tableObjc, &tableObjv);
+ result = TclListObjGetElements(interp, objv[1], &tableObjc, &tableObjv);
if (result != TCL_OK) {
return result;
}
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 9ea31bc..d3e8989 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -2709,7 +2709,7 @@ typedef struct ListRep {
* Return TCL_OK on success or TCL_ERROR if the Tcl_Obj cannot be
* converted to a list.
*/
-#define TclListObjGetElementsM(interp_, listObj_, objcPtr_, objvPtr_) \
+#define TclListObjGetElements(interp_, listObj_, objcPtr_, objvPtr_) \
(((listObj_)->typePtr == &tclListType) \
? ((ListObjGetElements((listObj_), *(objcPtr_), *(objvPtr_))), \
TCL_OK) \
@@ -2721,7 +2721,7 @@ typedef struct ListRep {
* count in lenPtr_. Returns TCL_OK on success or TCL_ERROR if the
* Tcl_Obj cannot be converted to a list.
*/
-#define TclListObjLengthM(interp_, listObj_, lenPtr_) \
+#define TclListObjLength(interp_, listObj_, lenPtr_) \
(((listObj_)->typePtr == &tclListType) \
? ((ListObjLength((listObj_), *(lenPtr_))), TCL_OK) \
: Tcl_ListObjLength((interp_), (listObj_), (lenPtr_)))
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index fa6cf80..67583b8 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -2328,7 +2328,7 @@ GetInterp(
Tcl_Interp *searchInterp; /* Interim storage for interp. to find. */
InterpInfo *parentInfoPtr;
- if (TclListObjGetElementsM(interp, pathPtr, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, pathPtr, &objc, &objv) != TCL_OK) {
return NULL;
}
@@ -2384,7 +2384,7 @@ ChildBgerror(
if (objc) {
Tcl_Size length;
- if (TCL_ERROR == TclListObjLengthM(NULL, objv[0], &length)
+ if (TCL_ERROR == TclListObjLength(NULL, objv[0], &length)
|| (length < 1)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"cmdPrefix must be list of length >= 1", -1));
@@ -2432,7 +2432,7 @@ ChildCreate(
Tcl_Size objc;
Tcl_Obj **objv;
- if (TclListObjGetElementsM(interp, pathPtr, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, pathPtr, &objc, &objv) != TCL_OK) {
return NULL;
}
if (objc < 2) {
diff --git a/generic/tclLink.c b/generic/tclLink.c
index bb7b6ba..dffee68 100644
--- a/generic/tclLink.c
+++ b/generic/tclLink.c
@@ -876,7 +876,7 @@ LinkTraceProc(
*/
if (linkPtr->flags & LINK_ALLOC_LAST) {
- if (TclListObjGetElementsM(NULL, (valueObj), &objc, &objv) == TCL_ERROR
+ if (TclListObjGetElements(NULL, (valueObj), &objc, &objv) == TCL_ERROR
|| objc != linkPtr->numElems) {
return (char *) "wrong dimension";
}
diff --git a/generic/tclListObj.c b/generic/tclListObj.c
index 3318152..47273d8 100644
--- a/generic/tclListObj.c
+++ b/generic/tclListObj.c
@@ -1711,7 +1711,7 @@ Tcl_ListObjAppendList(
Tcl_Panic("%s called with shared object", "Tcl_ListObjAppendList");
}
- if (TclListObjGetElementsM(interp, fromObj, &objc, &objv) != TCL_OK) {
+ if (TclListObjGetElements(interp, fromObj, &objc, &objv) != TCL_OK) {
return TCL_ERROR;
}
@@ -1963,7 +1963,7 @@ Tcl_ListObjIndex(
return TclObjTypeIndex(interp, listObj, index, objPtrPtr);
}
- if (TclListObjGetElementsM(interp, listObj, &numElems, &elemObjs)
+ if (TclListObjGetElements(interp, listObj, &numElems, &elemObjs)
!= TCL_OK) {
return TCL_ERROR;
}
@@ -2609,7 +2609,7 @@ TclLindexList(
*/
return TclLindexFlat(interp, listObj, 1, &argObj);
}
- TclListObjGetElementsM(interp, indexListCopy, &numIndexObjs, &indexObjs);
+ TclListObjGetElements(interp, indexListCopy, &numIndexObjs, &indexObjs);
listObj = TclLindexFlat(interp, listObj, numIndexObjs, indexObjs);
Tcl_DecrRefCount(indexListCopy);
return listObj;
@@ -2809,7 +2809,7 @@ TclLsetList(
*/
retValueObj = TclLsetFlat(interp, listObj, 1, &indexArgObj, valueObj);
} else {
- if (TCL_OK != TclListObjGetElementsM(
+ if (TCL_OK != TclListObjGetElements(
interp, indexListCopy, &indexCount, &indices)) {
Tcl_DecrRefCount(indexListCopy);
/*
@@ -2940,7 +2940,7 @@ TclLsetFlat(
* Check for the possible error conditions...
*/
- if (TclListObjGetElementsM(interp, subListObj, &elemCount, &elemPtrs)
+ if (TclListObjGetElements(interp, subListObj, &elemCount, &elemPtrs)
!= TCL_OK) {
/* ...the sublist we're indexing into isn't a list at all. */
result = TCL_ERROR;
@@ -3098,7 +3098,7 @@ TclLsetFlat(
*/
len = -1;
- TclListObjLengthM(NULL, subListObj, &len);
+ TclListObjLength(NULL, subListObj, &len);
if (valueObj == NULL) {
/* T:listrep-1.{4.2,5.4,6.1,7.1,8.3},2.{4,5}.4 */
Tcl_ListObjReplace(NULL, subListObj, index, 1, 0, NULL);
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.
diff --git a/generic/tclOODefineCmds.c b/generic/tclOODefineCmds.c
index 1a0bb43..c7298bf 100644
--- a/generic/tclOODefineCmds.c
+++ b/generic/tclOODefineCmds.c
@@ -1121,7 +1121,7 @@ MagicDefinitionInvoke(
Tcl_ListObjAppendElement(NULL, objPtr, obj2Ptr);
/* TODO: overflow? */
Tcl_ListObjReplace(NULL, objPtr, 1, 0, objc - offset, objv + offset);
- TclListObjGetElementsM(NULL, objPtr, &dummy, &objs);
+ TclListObjGetElements(NULL, objPtr, &dummy, &objs);
result = Tcl_EvalObjv(interp, objc - cmdIndex, objs, TCL_EVAL_INVOKE);
if (isRoot) {
@@ -2428,7 +2428,7 @@ ClassFilterSet(
"attempt to misuse API", -1));
Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", (void *)NULL);
return TCL_ERROR;
- } else if (TclListObjGetElementsM(interp, objv[0], &filterc,
+ } else if (TclListObjGetElements(interp, objv[0], &filterc,
&filterv) != TCL_OK) {
return TCL_ERROR;
}
@@ -2517,7 +2517,7 @@ ClassMixinSet(
"attempt to misuse API", -1));
Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", (void *)NULL);
return TCL_ERROR;
- } else if (TclListObjGetElementsM(interp, objv[0], &mixinc,
+ } else if (TclListObjGetElements(interp, objv[0], &mixinc,
&mixinv) != TCL_OK) {
return TCL_ERROR;
}
@@ -2638,7 +2638,7 @@ ClassSuperSet(
"may not modify the superclass of the root object", -1));
Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", (void *)NULL);
return TCL_ERROR;
- } else if (TclListObjGetElementsM(interp, objv[0], &superc,
+ } else if (TclListObjGetElements(interp, objv[0], &superc,
&superv) != TCL_OK) {
return TCL_ERROR;
}
@@ -2808,7 +2808,7 @@ ClassVarsSet(
"attempt to misuse API", -1));
Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", (void *)NULL);
return TCL_ERROR;
- } else if (TclListObjGetElementsM(interp, objv[0], &varc,
+ } else if (TclListObjGetElements(interp, objv[0], &varc,
&varv) != TCL_OK) {
return TCL_ERROR;
}
@@ -2900,7 +2900,7 @@ ObjFilterSet(
return TCL_ERROR;
}
objv += Tcl_ObjectContextSkippedArgs(context);
- if (TclListObjGetElementsM(interp, objv[0], &filterc,
+ if (TclListObjGetElements(interp, objv[0], &filterc,
&filterv) != TCL_OK) {
return TCL_ERROR;
}
@@ -2978,7 +2978,7 @@ ObjMixinSet(
return TCL_ERROR;
}
objv += Tcl_ObjectContextSkippedArgs(context);
- if (TclListObjGetElementsM(interp, objv[0], &mixinc,
+ if (TclListObjGetElements(interp, objv[0], &mixinc,
&mixinv) != TCL_OK) {
return TCL_ERROR;
}
@@ -3081,7 +3081,7 @@ ObjVarsSet(
return TCL_ERROR;
}
objv += Tcl_ObjectContextSkippedArgs(context);
- if (TclListObjGetElementsM(interp, objv[0], &varc,
+ if (TclListObjGetElements(interp, objv[0], &varc,
&varv) != TCL_OK) {
return TCL_ERROR;
}
diff --git a/generic/tclOOMethod.c b/generic/tclOOMethod.c
index 4711695..b03bbdb 100644
--- a/generic/tclOOMethod.c
+++ b/generic/tclOOMethod.c
@@ -425,7 +425,7 @@ TclOONewProcInstanceMethod(
ProcedureMethod *pmPtr;
Tcl_Method method;
- if (TclListObjLengthM(interp, argsObj, &argsLen) != TCL_OK) {
+ if (TclListObjLength(interp, argsObj, &argsLen) != TCL_OK) {
return NULL;
}
pmPtr = (ProcedureMethod *)Tcl_Alloc(sizeof(ProcedureMethod));
@@ -483,7 +483,7 @@ TclOONewProcMethod(
TclNewObj(argsObj);
Tcl_IncrRefCount(argsObj);
procName = "<destructor>";
- } else if (TclListObjLengthM(interp, argsObj, &argsLen) != TCL_OK) {
+ } else if (TclListObjLength(interp, argsObj, &argsLen) != TCL_OK) {
return NULL;
} else {
procName = (nameObj==NULL ? "<constructor>" : TclGetString(nameObj));
@@ -1476,7 +1476,7 @@ TclOONewForwardInstanceMethod(
Tcl_Size prefixLen;
ForwardMethod *fmPtr;
- if (TclListObjLengthM(interp, prefixObj, &prefixLen) != TCL_OK) {
+ if (TclListObjLength(interp, prefixObj, &prefixLen) != TCL_OK) {
return NULL;
}
if (prefixLen < 1) {
@@ -1515,7 +1515,7 @@ TclOONewForwardMethod(
Tcl_Size prefixLen;
ForwardMethod *fmPtr;
- if (TclListObjLengthM(interp, prefixObj, &prefixLen) != TCL_OK) {
+ if (TclListObjLength(interp, prefixObj, &prefixLen) != TCL_OK) {
return NULL;
}
if (prefixLen < 1) {
@@ -1564,7 +1564,7 @@ InvokeForwardMethod(
* can ignore here.
*/
- TclListObjGetElementsM(NULL, fmPtr->prefixObj, &numPrefixes, &prefixObjs);
+ TclListObjGetElements(NULL, fmPtr->prefixObj, &numPrefixes, &prefixObjs);
argObjs = InitEnsembleRewrite(interp, objc, objv, skip,
numPrefixes, prefixObjs, &len);
Tcl_NRAddCallback(interp, FinalizeForwardCall, argObjs, NULL, NULL, NULL);
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 5dd4545..2be7bca 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -858,7 +858,7 @@ Tcl_AppendAllObjTypes(
* Get the test for a valid list out of the way first.
*/
- if (TclListObjLengthM(interp, objPtr, &numElems) != TCL_OK) {
+ if (TclListObjLength(interp, objPtr, &numElems) != TCL_OK) {
return TCL_ERROR;
}
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c
index fbd7879..249e399 100644
--- a/generic/tclPathObj.c
+++ b/generic/tclPathObj.c
@@ -826,12 +826,12 @@ Tcl_FSJoinPath(
Tcl_Size objc;
Tcl_Obj **objv;
- if (TclListObjLengthM(NULL, listObj, &objc) != TCL_OK) {
+ if (TclListObjLength(NULL, listObj, &objc) != TCL_OK) {
return NULL;
}
elements = ((elements >= 0) && (elements <= objc)) ? elements : objc;
- TclListObjGetElementsM(NULL, listObj, &objc, &objv);
+ TclListObjGetElements(NULL, listObj, &objc, &objv);
res = TclJoinPath(elements, objv, 0);
return res;
}
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index f58293c..fe76cc7 100644
--- a/generic/tclPkg.c
+++ b/generic/tclPkg.c
@@ -1362,7 +1362,7 @@ TclNRPackageObjCmd(
objvListPtr = Tcl_NewListObj(0, NULL);
Tcl_IncrRefCount(objvListPtr);
Tcl_ListObjAppendElement(interp, objvListPtr, ov);
- TclListObjGetElementsM(interp, objvListPtr, &newobjc, &newObjvPtr);
+ TclListObjGetElements(interp, objvListPtr, &newobjc, &newObjvPtr);
Tcl_NRAddCallback(interp,
TclNRPackageObjCmdCleanup, objv[3], objvListPtr, NULL,NULL);
@@ -1389,7 +1389,7 @@ TclNRPackageObjCmd(
Tcl_ListObjAppendElement(interp, objvListPtr,
Tcl_DuplicateObj(newobjv[i]));
}
- TclListObjGetElementsM(interp, objvListPtr, &newobjc, &newObjvPtr);
+ TclListObjGetElements(interp, objvListPtr, &newobjc, &newObjvPtr);
Tcl_NRAddCallback(interp,
TclNRPackageObjCmdCleanup, objv[2], objvListPtr, NULL,NULL);
Tcl_NRAddCallback(interp,
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 01c7611..2e424fa 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -488,7 +488,7 @@ TclCreateProc(
* in the Proc.
*/
- result = TclListObjGetElementsM(interp, argsPtr, &numArgs, &argArray);
+ result = TclListObjGetElements(interp, argsPtr, &numArgs, &argArray);
if (result != TCL_OK) {
goto procError;
}
@@ -518,7 +518,7 @@ TclCreateProc(
* Now divide the specifier up into name and default.
*/
- result = TclListObjGetElementsM(interp, argArray[i], &fieldCount,
+ result = TclListObjGetElements(interp, argArray[i], &fieldCount,
&fieldValues);
if (result != TCL_OK) {
goto procError;
@@ -924,7 +924,7 @@ TclNRUplevelObjCmd(
} else if (!TclHasStringRep(objv[1]) && objc == 2) {
int status;
Tcl_Size llength;
- status = TclListObjLengthM(interp, objv[1], &llength);
+ status = TclListObjLength(interp, objv[1], &llength);
if (status == TCL_OK && llength > 1) {
/* the first argument can't interpreted as a level. Avoid
* generating a string representation of the script. */
@@ -2457,7 +2457,7 @@ SetLambdaFromAny(
* length is not 2, then it cannot be converted to lambdaType.
*/
- result = TclListObjLengthM(NULL, objPtr, &objc);
+ result = TclListObjLength(NULL, objPtr, &objc);
if ((result != TCL_OK) || ((objc != 2) && (objc != 3))) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"can't interpret \"%s\" as a lambda expression",
@@ -2465,7 +2465,7 @@ SetLambdaFromAny(
Tcl_SetErrorCode(interp, "TCL", "VALUE", "LAMBDA", (void *)NULL);
return TCL_ERROR;
}
- result = TclListObjGetElementsM(NULL, objPtr, &objc, &objv);
+ result = TclListObjGetElements(NULL, objPtr, &objc, &objv);
if ((result != TCL_OK) || ((objc != 2) && (objc != 3))) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"can't interpret \"%s\" as a lambda expression",
diff --git a/generic/tclProcess.c b/generic/tclProcess.c
index b16c73d..719f2e9 100644
--- a/generic/tclProcess.c
+++ b/generic/tclProcess.c
@@ -524,7 +524,7 @@ ProcessStatusObjCmd(
* Only return statuses of provided processes.
*/
- result = TclListObjGetElementsM(interp, objv[1], &numPids, &pidObjs);
+ result = TclListObjGetElements(interp, objv[1], &numPids, &pidObjs);
if (result != TCL_OK) {
return result;
}
@@ -637,7 +637,7 @@ ProcessPurgeObjCmd(
* Purge only provided processes.
*/
- result = TclListObjGetElementsM(interp, objv[1], &numPids, &pidObjs);
+ result = TclListObjGetElements(interp, objv[1], &numPids, &pidObjs);
if (result != TCL_OK) {
return result;
}
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 8ab66ae..9e5d8a2 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -747,12 +747,12 @@ TclProcessReturn(
* if someone does [return -errorstack [info errorstack]]
*/
- if (TclListObjGetElementsM(interp, valuePtr, &valueObjc,
+ if (TclListObjGetElements(interp, valuePtr, &valueObjc,
&valueObjv) == TCL_ERROR) {
return TCL_ERROR;
}
iPtr->resetErrorStack = 0;
- TclListObjLengthM(interp, iPtr->errorStack, &len);
+ TclListObjLength(interp, iPtr->errorStack, &len);
/*
* Reset while keeping the list internalrep as much as possible.
@@ -909,7 +909,7 @@ TclMergeReturnOptions(
if (valuePtr != NULL) {
Tcl_Size length;
- if (TCL_ERROR == TclListObjLengthM(NULL, valuePtr, &length )) {
+ if (TCL_ERROR == TclListObjLength(NULL, valuePtr, &length )) {
/*
* Value is not a list, which is illegal for -errorcode.
*/
@@ -931,7 +931,7 @@ TclMergeReturnOptions(
if (valuePtr != NULL) {
Tcl_Size length;
- if (TCL_ERROR == TclListObjLengthM(NULL, valuePtr, &length)) {
+ if (TCL_ERROR == TclListObjLength(NULL, valuePtr, &length)) {
/*
* Value is not a list, which is illegal for -errorstack.
*/
@@ -1102,7 +1102,7 @@ Tcl_SetReturnOptions(
Tcl_Obj **objv, *mergedOpts;
Tcl_IncrRefCount(options);
- if (TCL_ERROR == TclListObjGetElementsM(interp, options, &objc, &objv)
+ if (TCL_ERROR == TclListObjGetElements(interp, options, &objc, &objv)
|| (objc % 2)) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"expected dict but got \"%s\"", TclGetString(options)));
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index a3bc2d4..4ea590a 100644
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -556,7 +556,7 @@ TclParseNumber(
if (TclHasInternalRep(objPtr, &tclListType)) {
Tcl_Size length;
/* A list can only be a (single) number if its length == 1 */
- TclListObjLengthM(NULL, objPtr, &length);
+ TclListObjLength(NULL, objPtr, &length);
if (length != 1) {
return TCL_ERROR;
}
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index d77a56b..42eaa8d 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -495,7 +495,7 @@ TclCheckEmptyString(
}
if (TclListObjIsCanonical(objPtr)) {
- TclListObjLengthM(NULL, objPtr, &length);
+ TclListObjLength(NULL, objPtr, &length);
return length == 0;
}
@@ -2862,7 +2862,7 @@ AppendPrintfToObjVA(
}
} while (seekingConversion);
}
- TclListObjGetElementsM(NULL, list, &objc, &objv);
+ TclListObjGetElements(NULL, list, &objc, &objv);
code = Tcl_AppendFormatToObj(NULL, objPtr, format, objc, objv);
if (code != TCL_OK) {
Tcl_AppendPrintfToObj(objPtr,
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index b48ec1b..78c2607 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -87,6 +87,8 @@
#define TclUtfCharComplete Tcl_UtfCharComplete
#define TclUtfNext Tcl_UtfNext
#define TclUtfPrev Tcl_UtfPrev
+#undef TclListObjGetElements
+#undef TclListObjLength
#if defined(TCL_NO_DEPRECATED)
# define TclListObjGetElements 0
@@ -102,7 +104,7 @@ int TclListObjGetElements(Tcl_Interp *interp, Tcl_Obj *listPtr,
Tcl_Size n = TCL_INDEX_NONE;
int result = Tcl_ListObjGetElements(interp, listPtr, &n, objvPtr);
if (objcPtr) {
- if ((sizeof(int) != sizeof(size_t)) && (result == TCL_OK) && (n > INT_MAX)) {
+ if ((sizeof(int) != sizeof(Tcl_Size)) && (result == TCL_OK) && (n > INT_MAX)) {
if (interp) {
Tcl_AppendResult(interp, "List too large to be processed", (void *)NULL);
}
@@ -117,7 +119,7 @@ int TclListObjLength(Tcl_Interp *interp, Tcl_Obj *listPtr,
Tcl_Size n = TCL_INDEX_NONE;
int result = Tcl_ListObjLength(interp, listPtr, &n);
if (lengthPtr) {
- if ((sizeof(int) != sizeof(size_t)) && (result == TCL_OK) && (n > INT_MAX)) {
+ if ((sizeof(int) != sizeof(Tcl_Size)) && (result == TCL_OK) && (n > INT_MAX)) {
if (interp) {
Tcl_AppendResult(interp, "List too large to be processed", (void *)NULL);
}
@@ -132,7 +134,7 @@ int TclDictObjSize(Tcl_Interp *interp, Tcl_Obj *dictPtr,
Tcl_Size n = TCL_INDEX_NONE;
int result = Tcl_DictObjSize(interp, dictPtr, &n);
if (sizePtr) {
- if ((sizeof(int) != sizeof(size_t)) && (result == TCL_OK) && (n > INT_MAX)) {
+ if ((sizeof(int) != sizeof(Tcl_Size)) && (result == TCL_OK) && (n > INT_MAX)) {
if (interp) {
Tcl_AppendResult(interp, "Dict too large to be processed", (void *)NULL);
}
@@ -147,7 +149,7 @@ int TclSplitList(Tcl_Interp *interp, const char *listStr, void *argcPtr,
Tcl_Size n = TCL_INDEX_NONE;
int result = Tcl_SplitList(interp, listStr, &n, argvPtr);
if (argcPtr) {
- if ((sizeof(int) != sizeof(size_t)) && (result == TCL_OK) && (n > INT_MAX)) {
+ if ((sizeof(int) != sizeof(Tcl_Size)) && (result == TCL_OK) && (n > INT_MAX)) {
if (interp) {
Tcl_AppendResult(interp, "List too large to be processed", (void *)NULL);
}
@@ -162,7 +164,7 @@ void TclSplitPath(const char *path, void *argcPtr, const char ***argvPtr) {
Tcl_Size n = TCL_INDEX_NONE;
Tcl_SplitPath(path, &n, argvPtr);
if (argcPtr) {
- if ((sizeof(int) != sizeof(size_t)) && (n > INT_MAX)) {
+ if ((sizeof(int) != sizeof(Tcl_Size)) && (n > INT_MAX)) {
n = TCL_INDEX_NONE; /* No other way to return an error-situation */
Tcl_Free((void *)*argvPtr);
*argvPtr = NULL;
@@ -174,7 +176,7 @@ Tcl_Obj *TclFSSplitPath(Tcl_Obj *pathPtr, void *lenPtr) {
Tcl_Size n = TCL_INDEX_NONE;
Tcl_Obj *result = Tcl_FSSplitPath(pathPtr, &n);
if (lenPtr) {
- if ((sizeof(int) != sizeof(size_t)) && result && (n > INT_MAX)) {
+ if ((sizeof(int) != sizeof(Tcl_Size)) && result && (n > INT_MAX)) {
Tcl_DecrRefCount(result);
return NULL;
}
diff --git a/generic/tclTrace.c b/generic/tclTrace.c
index 15da56e..0a9e47a 100644
--- a/generic/tclTrace.c
+++ b/generic/tclTrace.c
@@ -310,7 +310,7 @@ TraceExecutionObjCmd(
* pointer to its array of element pointers.
*/
- result = TclListObjLengthM(interp, objv[4], &listLen);
+ result = TclListObjLength(interp, objv[4], &listLen);
if (result != TCL_OK) {
return result;
}
@@ -322,7 +322,7 @@ TraceExecutionObjCmd(
(void *)NULL);
return TCL_ERROR;
}
- result = TclListObjGetElementsM(interp, objv[4], &listLen, &elemPtrs);
+ result = TclListObjGetElements(interp, objv[4], &listLen, &elemPtrs);
if (result != TCL_OK) {
return result;
}
@@ -483,7 +483,7 @@ TraceExecutionObjCmd(
TclNewLiteralStringObj(opObj, "leavestep");
Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
}
- TclListObjLengthM(NULL, elemObjPtr, &numOps);
+ TclListObjLength(NULL, elemObjPtr, &numOps);
if (0 == numOps) {
Tcl_DecrRefCount(elemObjPtr);
continue;
@@ -552,7 +552,7 @@ TraceCommandObjCmd(
* pointer to its array of element pointers.
*/
- result = TclListObjLengthM(interp, objv[4], &listLen);
+ result = TclListObjLength(interp, objv[4], &listLen);
if (result != TCL_OK) {
return result;
}
@@ -564,7 +564,7 @@ TraceCommandObjCmd(
(void *)NULL);
return TCL_ERROR;
}
- result = TclListObjGetElementsM(interp, objv[4], &listLen, &elemPtrs);
+ result = TclListObjGetElements(interp, objv[4], &listLen, &elemPtrs);
if (result != TCL_OK) {
return result;
}
@@ -678,7 +678,7 @@ TraceCommandObjCmd(
TclNewLiteralStringObj(opObj, "delete");
Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
}
- TclListObjLengthM(NULL, elemObjPtr, &numOps);
+ TclListObjLength(NULL, elemObjPtr, &numOps);
if (0 == numOps) {
Tcl_DecrRefCount(elemObjPtr);
continue;
@@ -751,7 +751,7 @@ TraceVariableObjCmd(
* pointer to its array of element pointers.
*/
- result = TclListObjLengthM(interp, objv[4], &listLen);
+ result = TclListObjLength(interp, objv[4], &listLen);
if (result != TCL_OK) {
return result;
}
@@ -763,7 +763,7 @@ TraceVariableObjCmd(
(void *)NULL);
return TCL_ERROR;
}
- result = TclListObjGetElementsM(interp, objv[4], &listLen, &elemPtrs);
+ result = TclListObjGetElements(interp, objv[4], &listLen, &elemPtrs);
if (result != TCL_OK) {
return result;
}
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 05b0599..99d1010 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3533,7 +3533,7 @@ GetEndOffsetFromObj(
if ((TclMaxListLength(bytes, TCL_INDEX_NONE, NULL) > 1)
/* If it's possible, do the full list parse. */
- && (TCL_OK == TclListObjLengthM(NULL, objPtr, &length))
+ && (TCL_OK == TclListObjLength(NULL, objPtr, &length))
&& (length > 1)) {
goto parseError;
}
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 1bd5107..9f1fbbf 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -2891,7 +2891,7 @@ Tcl_LappendObjCmd(
return TCL_ERROR;
}
} else {
- result = TclListObjLengthM(interp, newValuePtr, &numElems);
+ result = TclListObjLength(interp, newValuePtr, &numElems);
if (result != TCL_OK) {
return result;
}
@@ -2949,7 +2949,7 @@ Tcl_LappendObjCmd(
createdNewObj = 1;
}
- result = TclListObjLengthM(interp, varValuePtr, &numElems);
+ result = TclListObjLength(interp, varValuePtr, &numElems);
if (result == TCL_OK) {
result = Tcl_ListObjReplace(interp, varValuePtr, numElems, 0,
(objc-2), (objv+2));
@@ -3102,7 +3102,7 @@ ArrayForNRCmd(
* Parse arguments.
*/
- if (TclListObjLengthM(interp, objv[1], &numVars) != TCL_OK) {
+ if (TclListObjLength(interp, objv[1], &numVars) != TCL_OK) {
return TCL_ERROR;
}
@@ -3217,7 +3217,7 @@ ArrayForLoopCallback(
goto arrayfordone;
}
- result = TclListObjGetElementsM(NULL, varListObj, &varc, &varv);
+ result = TclListObjGetElements(NULL, varListObj, &varc, &varv);
if (result != TCL_OK) {
goto arrayfordone;
}
@@ -3761,7 +3761,7 @@ ArrayGetCmd(
*/
TclNewObj(tmpResObj);
- result = TclListObjGetElementsM(interp, nameLstObj, &count, &nameObjPtr);
+ result = TclListObjGetElements(interp, nameLstObj, &count, &nameObjPtr);
if (result != TCL_OK) {
goto errorInArrayGet;
}
@@ -4086,7 +4086,7 @@ ArraySetCmd(
Tcl_Obj **elemPtrs, *copyListObj;
Tcl_Size i;
- result = TclListObjLengthM(interp, arrayElemObj, &elemLen);
+ result = TclListObjLength(interp, arrayElemObj, &elemLen);
if (result != TCL_OK) {
return result;
}
@@ -4099,7 +4099,7 @@ ArraySetCmd(
if (elemLen == 0) {
goto ensureArray;
}
- result = TclListObjGetElementsM(interp, arrayElemObj,
+ result = TclListObjGetElements(interp, arrayElemObj,
&elemLen, &elemPtrs);
if (result != TCL_OK) {
return result;
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index 8f91703..d9e6299 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -3383,7 +3383,7 @@ ZipFSMkZipOrImg(
}
}
Tcl_IncrRefCount(list);
- if (TclListObjLengthM(interp, list, &lobjc) != TCL_OK) {
+ if (TclListObjLength(interp, list, &lobjc) != TCL_OK) {
Tcl_DecrRefCount(list);
return TCL_ERROR;
}
@@ -3399,7 +3399,7 @@ ZipFSMkZipOrImg(
ZIPFS_ERROR_CODE(interp, "EMPTY");
return TCL_ERROR;
}
- if (TclListObjGetElementsM(interp, list, &lobjc, &lobjv) != TCL_OK) {
+ if (TclListObjGetElements(interp, list, &lobjc, &lobjv) != TCL_OK) {
Tcl_DecrRefCount(list);
return TCL_ERROR;
}
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index 8ec9303..0afe9ea 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -1410,7 +1410,7 @@ Tcl_ZlibStreamGet(
Tcl_DecrRefCount(zshPtr->currentInput);
zshPtr->currentInput = NULL;
}
- TclListObjLengthM(NULL, zshPtr->inData, &listLen);
+ TclListObjLength(NULL, zshPtr->inData, &listLen);
if (listLen > 0) {
/*
* There is more input available, get it from the list and
@@ -1459,7 +1459,7 @@ Tcl_ZlibStreamGet(
e = inflate(&zshPtr->stream, zshPtr->flush);
}
};
- TclListObjLengthM(NULL, zshPtr->inData, &listLen);
+ TclListObjLength(NULL, zshPtr->inData, &listLen);
while ((zshPtr->stream.avail_out > 0)
&& (e == Z_OK || e == Z_BUF_ERROR) && (listLen > 0)) {
@@ -1539,7 +1539,7 @@ Tcl_ZlibStreamGet(
inflateEnd(&zshPtr->stream);
}
} else {
- TclListObjLengthM(NULL, zshPtr->outData, &listLen);
+ TclListObjLength(NULL, zshPtr->outData, &listLen);
if (count < 0) {
count = 0;
for (i=0; i<listLen; i++) {
@@ -1561,7 +1561,7 @@ Tcl_ZlibStreamGet(
dataPtr += existing;
while ((count > dataPos) &&
- (TclListObjLengthM(NULL, zshPtr->outData, &listLen) == TCL_OK)
+ (TclListObjLength(NULL, zshPtr->outData, &listLen) == TCL_OK)
&& (listLen > 0)) {
/*
* Get the next chunk off our list of chunks and grab the data out