diff options
author | dgp <dgp@users.sourceforge.net> | 2002-01-25 21:36:09 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-01-25 21:36:09 (GMT) |
commit | fd92b8826ad83d09e08d67e70a6deae1deb9a06f (patch) | |
tree | 54697caaa61e187b7d32cb6fb844d0d2671da6c9 /win/tclWinFile.c | |
parent | 7bb89f954aeb2e32b07d01513217ab6930f80ccf (diff) | |
download | tcl-fd92b8826ad83d09e08d67e70a6deae1deb9a06f.zip tcl-fd92b8826ad83d09e08d67e70a6deae1deb9a06f.tar.gz tcl-fd92b8826ad83d09e08d67e70a6deae1deb9a06f.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.
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, '\\'); |