diff options
Diffstat (limited to 'win/tclWinFile.c')
| -rw-r--r-- | win/tclWinFile.c | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 4a07f04..56ef8cb 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -888,7 +888,7 @@ TclpFindExecutable(      GetModuleFileNameW(NULL, wName, sizeof(wName)/sizeof(WCHAR));      WideCharToMultiByte(CP_UTF8, 0, wName, -1, name, sizeof(name), NULL, NULL);      TclWinNoBackslash(name); -    TclSetObjNameOfExecutable(Tcl_NewStringObj(name, -1), NULL); +    TclSetObjNameOfExecutable(Tcl_NewStringObj(name, TCL_INDEX_NONE), NULL);  }  /* @@ -1024,7 +1024,7 @@ TclpMatchInDirectory(  	     * pattern.  	     */ -	    dirName = Tcl_DStringAppend(&dsOrig, pattern, -1); +	    dirName = Tcl_DStringAppend(&dsOrig, pattern, TCL_INDEX_NONE);  	} else {  	    dirName = TclDStringAppendLiteral(&dsOrig, "*.*");  	} @@ -1103,7 +1103,7 @@ TclpMatchInDirectory(  	    native = data.cFileName;  	    attr = data.dwFileAttributes;  	    Tcl_DStringInit(&ds); -	    utfname = Tcl_WCharToUtfDString(native, -1, &ds); +	    utfname = Tcl_WCharToUtfDString(native, TCL_INDEX_NONE, &ds);  	    if (!matchSpecialDots) {  		/* @@ -1989,7 +1989,7 @@ TclpGetCwd(  	native += 2;      }      Tcl_DStringInit(bufferPtr); -    Tcl_WCharToUtfDString(native, -1, bufferPtr); +    Tcl_WCharToUtfDString(native, TCL_INDEX_NONE, bufferPtr);      /*       * Convert to forward slashes for easier use in scripts. @@ -2198,7 +2198,7 @@ NativeDev(      GetFullPathNameW(nativePath, MAX_PATH, nativeFullPath, &nativePart);      Tcl_DStringInit(&ds); -    fullPath = Tcl_WCharToUtfDString(nativeFullPath, -1, &ds); +    fullPath = Tcl_WCharToUtfDString(nativeFullPath, TCL_INDEX_NONE, &ds);      if ((fullPath[0] == '\\') && (fullPath[1] == '\\')) {  	const char *p; @@ -2501,7 +2501,7 @@ TclpFilesystemPathType(  	Tcl_DString ds;  	Tcl_DStringInit(&ds); -	Tcl_WCharToUtfDString(volType, -1, &ds); +	Tcl_WCharToUtfDString(volType, TCL_INDEX_NONE, &ds);  	return TclDStringToObj(&ds);      }  #undef VOL_BUF_SIZE @@ -2649,7 +2649,7 @@ TclpObjNormalizePath(  		     */  		    nextCheckpoint = 0; -		    Tcl_AppendToObj(to, currentPathEndPosition, -1); +		    Tcl_AppendToObj(to, currentPathEndPosition, TCL_INDEX_NONE);  		    /*  		     * Convert link to forward slashes. @@ -2825,7 +2825,7 @@ TclpObjNormalizePath(  	    tmpPathPtr = Tcl_NewStringObj(Tcl_DStringValue(&ds),  		    nextCheckpoint); -	    Tcl_AppendToObj(tmpPathPtr, lastValidPathEnd, -1); +	    Tcl_AppendToObj(tmpPathPtr, lastValidPathEnd, TCL_INDEX_NONE);  	    path = TclGetStringFromObj(tmpPathPtr, &len);  	    Tcl_SetStringObj(pathPtr, path, len);  	    Tcl_DecrRefCount(tmpPathPtr); @@ -2898,7 +2898,7 @@ TclWinVolumeRelativeNormalize(  	const char *drive = Tcl_GetString(useThisCwd);  	absolutePath = Tcl_NewStringObj(drive,2); -	Tcl_AppendToObj(absolutePath, path, -1); +	Tcl_AppendToObj(absolutePath, path, TCL_INDEX_NONE);  	Tcl_IncrRefCount(absolutePath);  	/* @@ -2951,7 +2951,7 @@ TclWinVolumeRelativeNormalize(  	    Tcl_AppendToObj(absolutePath, "/", 1);  	}  	Tcl_IncrRefCount(absolutePath); -	Tcl_AppendToObj(absolutePath, path+2, -1); +	Tcl_AppendToObj(absolutePath, path+2, TCL_INDEX_NONE);      }      *useThisCwdPtr = useThisCwd;      return absolutePath; @@ -2988,7 +2988,7 @@ TclpNativeToNormalized(      char *copy, *p;      Tcl_DStringInit(&ds); -    Tcl_WCharToUtfDString((const WCHAR *) clientData, -1, &ds); +    Tcl_WCharToUtfDString((const WCHAR *) clientData, TCL_INDEX_NONE, &ds);      copy = Tcl_DStringValue(&ds);      len = Tcl_DStringLength(&ds); | 
