summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-01-18 14:17:06 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-01-18 14:17:06 (GMT)
commitdb0a03daa7752bd0266d80a841014243c6a0169c (patch)
tree0cfd983cb1e3e7275d0a23704aba737b01cfb8c8
parent9844b5a37d9de3fc5bff2794df66411a2b76c6e3 (diff)
downloadtcl-db0a03daa7752bd0266d80a841014243c6a0169c.zip
tcl-db0a03daa7752bd0266d80a841014243c6a0169c.tar.gz
tcl-db0a03daa7752bd0266d80a841014243c6a0169c.tar.bz2
* Overlooked callers of Tcl_FSGetNativePath
-rw-r--r--ChangeLog4
-rw-r--r--win/tclWinChan.c4
-rw-r--r--win/tclWinFCmd.c6
-rw-r--r--win/tclWinFile.c16
4 files changed, 17 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 7dc25b1..63100a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-01-18 Don Porter <dgp@users.sourceforge.net>
+ * win/tclWinChan.c:
+ * win/tclWinFCmd.c:
+ * win/tclWinFile.c: Overlooked callers of Tcl_FSGetNativePath
+
* win/tclWinDde.c:
* win/tclWinReg.c: Overlooked callers of Tcl_GetIndexFromObj
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 08116ef..04830d9 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinChan.c,v 1.18 2002/01/15 21:19:07 dgp Exp $
+ * RCS: @(#) $Id: tclWinChan.c,v 1.19 2002/01/18 14:17:06 dgp Exp $
*/
#include "tclWinInt.h"
@@ -668,7 +668,7 @@ TclpOpenFileChannel(interp, pathPtr, modeString, permissions)
Tcl_Channel channel = 0;
int seekFlag, mode, channelPermissions;
DWORD accessMode, createMode, shareMode, flags, consoleParams, type;
- TCHAR *nativeName;
+ CONST TCHAR *nativeName;
DCB dcb;
HANDLE handle;
char channelName[16 + TCL_INTEGER_SPACE];
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c
index f4cd7ad..ee49af9 100644
--- a/win/tclWinFCmd.c
+++ b/win/tclWinFCmd.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinFCmd.c,v 1.18 2002/01/17 04:37:33 dgp Exp $
+ * RCS: @(#) $Id: tclWinFCmd.c,v 1.19 2002/01/18 14:17:06 dgp Exp $
*/
#include "tclWinInt.h"
@@ -1303,7 +1303,7 @@ GetWinFileAttributes(
Tcl_Obj **attributePtrPtr) /* A pointer to return the object with. */
{
DWORD result;
- TCHAR *nativeName;
+ CONST TCHAR *nativeName;
nativeName = Tcl_FSGetNativePath(fileName);
result = (*tclWinProcs->getFileAttributesProc)(nativeName);
@@ -1583,7 +1583,7 @@ SetWinFileAttributes(
DWORD fileAttributes;
int yesNo;
int result;
- TCHAR *nativeName;
+ CONST TCHAR *nativeName;
nativeName = Tcl_FSGetNativePath(fileName);
fileAttributes = (*tclWinProcs->getFileAttributesProc)(nativeName);
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index cf2ff04..69229bc 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.20 2002/01/17 03:03:12 dgp Exp $
+ * RCS: @(#) $Id: tclWinFile.c,v 1.21 2002/01/18 14:17:06 dgp Exp $
*/
#include "tclWinInt.h"
@@ -595,7 +595,7 @@ TclpGetUserHome(name, bufferPtr)
static int
NativeAccess(
- TCHAR *nativePath, /* Path of file to access (UTF-8). */
+ CONST TCHAR *nativePath, /* Path of file to access (UTF-8). */
int mode) /* Permission setting. */
{
DWORD attr;
@@ -640,7 +640,7 @@ NativeAccess(
static int
NativeIsExec(nativePath)
- TCHAR *nativePath;
+ CONST TCHAR *nativePath;
{
CONST char *p;
char *path;
@@ -696,9 +696,9 @@ TclpObjChdir(pathPtr)
Tcl_Obj *pathPtr; /* Path to new working directory. */
{
int result;
- TCHAR *nativePath;
+ CONST TCHAR *nativePath;
- nativePath = (TCHAR *) Tcl_FSGetNativePath(pathPtr);
+ nativePath = (CONST TCHAR *) Tcl_FSGetNativePath(pathPtr);
result = (*tclWinProcs->setCurrentDirectoryProc)(nativePath);
if (result == 0) {
@@ -856,7 +856,7 @@ TclpObjStat(pathPtr, statPtr)
TclWinFlushDirtyChannels ();
- return NativeStat((TCHAR*) Tcl_FSGetNativePath(pathPtr), statPtr);
+ return NativeStat((CONST TCHAR*) Tcl_FSGetNativePath(pathPtr), statPtr);
}
/*
@@ -884,7 +884,7 @@ TclpObjStat(pathPtr, statPtr)
static int
NativeStat(nativePath, statPtr)
- TCHAR *nativePath; /* Path of file to stat */
+ CONST TCHAR *nativePath; /* Path of file to stat */
struct stat *statPtr; /* Filled with results of stat call. */
{
Tcl_DString ds;
@@ -1213,7 +1213,7 @@ TclpObjAccess(pathPtr, mode)
Tcl_Obj *pathPtr;
int mode;
{
- return NativeAccess((TCHAR*) Tcl_FSGetNativePath(pathPtr), mode);
+ return NativeAccess((CONST TCHAR*) Tcl_FSGetNativePath(pathPtr), mode);
}
int