diff options
author | dgp <dgp@noemail.net> | 2002-01-25 21:36:08 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2002-01-25 21:36:08 (GMT) |
commit | 222ad06ccbcc936b9c7251f2b0cfa2f2c65daf3d (patch) | |
tree | 54697caaa61e187b7d32cb6fb844d0d2671da6c9 /win/tclWinFile.c | |
parent | 153a2262c8103be50550bcebaa3e905212e69f76 (diff) | |
download | tcl-222ad06ccbcc936b9c7251f2b0cfa2f2c65daf3d.zip tcl-222ad06ccbcc936b9c7251f2b0cfa2f2c65daf3d.tar.gz tcl-222ad06ccbcc936b9c7251f2b0cfa2f2c65daf3d.tar.bz2 |
* [Patch 505630] Updated interfaces of generic/tclBasic.cc (TIP 27).
* [Patch 506818] Updated interfaces of generic/tclHash.c (TIP 27).
* [Patch 506807] Updated interfaces of generic/tclObj.c (TIP 27).
* [Patch 507304] Updated interfaces of win/tclWin32.c (TIP 27).
* Update all callers.
FossilOrigin-Name: 375ac8d641fa53159537f27eb1f836c043495c3b
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r-- | win/tclWinFile.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 29f8fef..f92eeaa 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.23 2002/01/25 20:40:56 dgp Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.24 2002/01/25 21:36:10 dgp Exp $ */ #include "tclWinInt.h" @@ -80,7 +80,7 @@ TclpFindExecutable(argv0) */ (*tclWinProcs->getModuleFileNameProc)(NULL, wName, MAX_PATH); - Tcl_WinTCharToUtf((TCHAR *) wName, -1, &ds); + Tcl_WinTCharToUtf((CONST TCHAR *) wName, -1, &ds); tclNativeExecutableName = ckalloc((unsigned) (Tcl_DStringLength(&ds) + 1)); strcpy(tclNativeExecutableName, Tcl_DStringValue(&ds)); @@ -132,7 +132,7 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types) Tcl_DString ds; Tcl_DString dsOrig; Tcl_Obj *fileNamePtr; - TCHAR *nativeName; + CONST TCHAR *nativeName; int matchSpecialDots; /* @@ -269,15 +269,15 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types) for (found = 1; found != 0; found = (*tclWinProcs->findNextFileProc)(handle, &data)) { - TCHAR *nativeMatchResult; - char *name, *fname; + CONST TCHAR *nativeMatchResult; + CONST char *name, *fname; int typeOk = 1; if (tclWinProcs->useWide) { - nativeName = (TCHAR *) data.w.cFileName; + nativeName = (CONST TCHAR *) data.w.cFileName; } else { - nativeName = (TCHAR *) data.a.cFileName; + nativeName = (CONST TCHAR *) data.a.cFileName; } name = Tcl_WinTCharToUtf(nativeName, -1, &ds); @@ -643,8 +643,7 @@ static int NativeIsExec(nativePath) CONST TCHAR *nativePath; { - CONST char *p; - char *path; + CONST char *p, *path; Tcl_DString ds; /* @@ -937,7 +936,7 @@ NativeStat(nativePath, statPtr) if ((fullPath[0] == '\\') && (fullPath[1] == '\\')) { CONST char *p; DWORD dw; - TCHAR *nativeVol; + CONST TCHAR *nativeVol; Tcl_DString volString; p = strchr(fullPath + 2, '\\'); @@ -997,7 +996,7 @@ NativeStat(nativePath, statPtr) if ((fullPath[0] == '\\') && (fullPath[1] == '\\')) { CONST char *p; DWORD dw; - TCHAR *nativeVol; + CONST TCHAR *nativeVol; Tcl_DString volString; p = strchr(fullPath + 2, '\\'); |