diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2003-09-29 22:38:20 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2003-09-29 22:38:20 (GMT) |
commit | a87c1ffef9b5c696cd26cd041002325c871cafde (patch) | |
tree | 6c781c25d5131eac1c137fe66c3d7c56d62d6d38 /generic/tclPathObj.c | |
parent | c6d77be71d20d811ddf04702ae5fd428aa7e0b47 (diff) | |
download | tcl-a87c1ffef9b5c696cd26cd041002325c871cafde.zip tcl-a87c1ffef9b5c696cd26cd041002325c871cafde.tar.gz tcl-a87c1ffef9b5c696cd26cd041002325c871cafde.tar.bz2 |
Symbols which are visible outside a single compilation unit must have
the prefix 'Tcl' to keep them out of the way of non-Tcl C code on Unix.
(Problem reported by George Staplin.)
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r-- | generic/tclPathObj.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index 3477b60..7283608 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.8 2003/09/18 11:29:27 vincentdarley Exp $ + * RCS: @(#) $Id: tclPathObj.c,v 1.9 2003/09/29 22:38:21 dkf Exp $ */ #include "tclInt.h" @@ -239,13 +239,13 @@ Tcl_PathType Tcl_FSGetPathType(pathObjPtr) Tcl_Obj *pathObjPtr; { - return FSGetPathType(pathObjPtr, NULL, NULL); + return TclFSGetPathType(pathObjPtr, NULL, NULL); } /* *---------------------------------------------------------------------- * - * FSGetPathType -- + * TclFSGetPathType -- * * Determines whether a given path is relative to the current * directory, relative to the current volume, or absolute. If the @@ -267,25 +267,25 @@ Tcl_FSGetPathType(pathObjPtr) */ Tcl_PathType -FSGetPathType(pathObjPtr, filesystemPtrPtr, driveNameLengthPtr) +TclFSGetPathType(pathObjPtr, filesystemPtrPtr, driveNameLengthPtr) Tcl_Obj *pathObjPtr; Tcl_Filesystem **filesystemPtrPtr; int *driveNameLengthPtr; { if (Tcl_FSConvertToPathType(NULL, pathObjPtr) != TCL_OK) { - return GetPathType(pathObjPtr, filesystemPtrPtr, - driveNameLengthPtr, NULL); + return TclGetPathType(pathObjPtr, filesystemPtrPtr, + driveNameLengthPtr, NULL); } else { FsPath *fsPathPtr = (FsPath*) PATHOBJ(pathObjPtr); if (fsPathPtr->cwdPtr != NULL) { if (PATHFLAGS(pathObjPtr) == 0) { return TCL_PATH_RELATIVE; } - return FSGetPathType(fsPathPtr->cwdPtr, filesystemPtrPtr, - driveNameLengthPtr); + return TclFSGetPathType(fsPathPtr->cwdPtr, filesystemPtrPtr, + driveNameLengthPtr); } else { - return GetPathType(pathObjPtr, filesystemPtrPtr, - driveNameLengthPtr, NULL); + return TclGetPathType(pathObjPtr, filesystemPtrPtr, + driveNameLengthPtr, NULL); } } } @@ -357,7 +357,7 @@ Tcl_FSJoinPath(listObj, elements) Tcl_Obj *tail; Tcl_PathType type; Tcl_ListObjIndex(NULL, listObj, 1, &tail); - type = GetPathType(tail, NULL, NULL, NULL); + type = TclGetPathType(tail, NULL, NULL, NULL); if (type == TCL_PATH_RELATIVE) { CONST char *str; int len; @@ -398,7 +398,7 @@ Tcl_FSJoinPath(listObj, elements) Tcl_ListObjIndex(NULL, listObj, i, &elt); strElt = Tcl_GetStringFromObj(elt, &strEltLen); - type = GetPathType(elt, &fsPtr, &driveNameLength, &driveName); + type = TclGetPathType(elt, &fsPtr, &driveNameLength, &driveName); if (type != TCL_PATH_RELATIVE) { /* Zero out the current result */ Tcl_DecrRefCount(res); @@ -1888,7 +1888,7 @@ UpdateStringOfFsPath(objPtr) /* *--------------------------------------------------------------------------- * - * NativePathInFilesystem -- + * TclNativePathInFilesystem -- * * Any path object is acceptable to the native filesystem, by * default (we will throw errors when illegal paths are actually @@ -1908,7 +1908,7 @@ UpdateStringOfFsPath(objPtr) *--------------------------------------------------------------------------- */ int -NativePathInFilesystem(pathPtr, clientDataPtr) +TclNativePathInFilesystem(pathPtr, clientDataPtr) Tcl_Obj *pathPtr; ClientData *clientDataPtr; { |