diff options
author | nijtmans <nijtmans> | 2008-07-28 21:31:13 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-07-28 21:31:13 (GMT) |
commit | cf2289dd006cf8960813d308551da6f06e96d0e6 (patch) | |
tree | a9d4ceee1cc3849e9cd53358533900efba3950be /generic/tclPathObj.c | |
parent | 8f13bd76fede30fc0ad2cce6aa00582ec5eecd70 (diff) | |
download | tcl-cf2289dd006cf8960813d308551da6f06e96d0e6.zip tcl-cf2289dd006cf8960813d308551da6f06e96d0e6.tar.gz tcl-cf2289dd006cf8960813d308551da6f06e96d0e6.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***
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; |