diff options
author | nijtmans <nijtmans@noemail.net> | 2008-07-28 21:31:13 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2008-07-28 21:31:13 (GMT) |
commit | 010e233cd99cd20b2f9296f6e381a3fc7c9362a8 (patch) | |
tree | a9d4ceee1cc3849e9cd53358533900efba3950be /generic/tclPathObj.c | |
parent | 6d42354bf4bfed2c9442a5cdbb1cbe3584b2fd0a (diff) | |
download | tcl-010e233cd99cd20b2f9296f6e381a3fc7c9362a8.zip tcl-010e233cd99cd20b2f9296f6e381a3fc7c9362a8.tar.gz tcl-010e233cd99cd20b2f9296f6e381a3fc7c9362a8.tar.bz2 |
* doc/FileSystem.3: CONSTified many functions using Tcl_FileSystem
* generic/tcl.decls: which all are supposed to be a constant, but
* generic/tclDecls.h: this was not reflected in the API:
* generic/tclFileSystem.h: Tcl_FSGetInternalRep
* generic/tclIOUtil.c: Tcl_FSNewNativePath, Tcl_FSData
* generic/tclPathObj.c: Tcl_FSRegister, Tcl_FSUnregister
* generic/tclTest.c: Tcl_FSGetFileSystemForPath ...
This change complies with TIP #24.
***POTENTIAL INCOMPATIBILITY***
FossilOrigin-Name: 246dcb287a9d07013c2f642ea91f537f076a18e8
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r-- | generic/tclPathObj.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index 475bf7f..1ac1496 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclPathObj.c,v 1.72 2008/06/29 19:09:28 dgp Exp $ + * RCS: @(#) $Id: tclPathObj.c,v 1.73 2008/07/28 21:31:19 nijtmans Exp $ */ #include "tclInt.h" @@ -492,7 +492,7 @@ Tcl_FSGetPathType( Tcl_PathType TclFSGetPathType( Tcl_Obj *pathPtr, - Tcl_Filesystem **filesystemPtrPtr, + const Tcl_Filesystem **filesystemPtrPtr, int *driveNameLengthPtr) { FsPath *fsPathPtr; @@ -809,7 +809,7 @@ Tcl_FSJoinPath( { Tcl_Obj *res; int i; - Tcl_Filesystem *fsPtr = NULL; + const Tcl_Filesystem *fsPtr = NULL; if (elements < 0) { if (Tcl_ListObjLength(NULL, listObj, &elements) != TCL_OK) { @@ -1511,7 +1511,7 @@ TclFSMakePathFromNormalized( Tcl_Obj * Tcl_FSNewNativePath( - Tcl_Filesystem *fromFilesystem, + const Tcl_Filesystem *fromFilesystem, ClientData clientData) { Tcl_Obj *pathPtr; @@ -2026,7 +2026,7 @@ Tcl_FSGetNormalizedPath( ClientData Tcl_FSGetInternalRep( Tcl_Obj *pathPtr, - Tcl_Filesystem *fsPtr) + const Tcl_Filesystem *fsPtr) { FsPath *srcFsPathPtr; @@ -2128,7 +2128,7 @@ Tcl_FSGetInternalRep( int TclFSEnsureEpochOk( Tcl_Obj *pathPtr, - Tcl_Filesystem **fsPtrPtr) + const Tcl_Filesystem **fsPtrPtr) { FsPath *srcFsPathPtr; |