summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.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)
commite7db5a264a6b3e96499e10110efa0d95f1ab062d (patch)
treef139c8175f4a5b8428a0ae29570be55f28d47480 /generic/tclEncoding.c
parentca671d00a9c4d19514e148e50e048d17576c1ea3 (diff)
downloadtcl-e7db5a264a6b3e96499e10110efa0d95f1ab062d.zip
tcl-e7db5a264a6b3e96499e10110efa0d95f1ab062d.tar.gz
tcl-e7db5a264a6b3e96499e10110efa0d95f1ab062d.tar.bz2
Restore TclListObjLength()/TclListObjGetElements() macro's, as they were in 8.6
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index 0658d21..34d51e1 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -405,7 +405,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);
@@ -452,7 +452,7 @@ TclSetLibraryPath(
{
Tcl_Size dummy;
- if (TCL_ERROR == TclListObjLengthM(NULL, path, &dummy)) {
+ if (TCL_ERROR == TclListObjLength(NULL, path, &dummy)) {
return;
}
TclSetProcessGlobalValue(&libraryPath, path, NULL);
@@ -491,7 +491,7 @@ FillEncodingFileMap(void)
searchPath = Tcl_GetEncodingSearchPath();
Tcl_IncrRefCount(searchPath);
- TclListObjLengthM(NULL, searchPath, &numDirs);
+ TclListObjLength(NULL, searchPath, &numDirs);
map = Tcl_NewDictObj();
Tcl_IncrRefCount(map);
@@ -515,7 +515,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;
@@ -773,7 +773,7 @@ Tcl_GetDefaultEncodingDir(void)
int numDirs;
Tcl_Obj *first, *searchPath = Tcl_GetEncodingSearchPath();
- TclListObjLengthM(NULL, searchPath, &numDirs);
+ TclListObjLength(NULL, searchPath, &numDirs);
if (numDirs == 0) {
return NULL;
}
@@ -1823,7 +1823,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);
@@ -4381,7 +4381,7 @@ InitializeEncodingSearchPath(
Tcl_IncrRefCount(searchPathObj);
libPathObj = TclGetLibraryPath();
Tcl_IncrRefCount(libPathObj);
- TclListObjLengthM(NULL, libPathObj, &numDirs);
+ TclListObjLength(NULL, libPathObj, &numDirs);
for (i = 0; i < numDirs; i++) {
Tcl_Obj *directoryObj, *pathObj;