Diff
Not logged in

Differences From Artifact [ced14ea160]:

To Artifact [96474e5ad8]:


13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 *
 * Copyright (c) 1991-1994 The Regents of the University of California.
 * Copyright (c) 1994-1997 Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @(#) $Id: tclIOUtil.c,v 1.81.2.6 2004/03/26 22:28:26 dgp Exp $
 */

#include "tclInt.h"
#include "tclPort.h"
#ifdef __WIN32__
/* for tclWinProcs->useWide */
#include "tclWinInt.h"







|







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 *
 * Copyright (c) 1991-1994 The Regents of the University of California.
 * Copyright (c) 1994-1997 Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @(#) $Id: tclIOUtil.c,v 1.81.2.7 2004/03/31 01:36:17 dgp Exp $
 */

#include "tclInt.h"
#include "tclPort.h"
#ifdef __WIN32__
/* for tclWinProcs->useWide */
#include "tclWinInt.h"
3439
3440
3441
3442
3443
3444
3445
3446


3447





3448
3449
3450
3451
3452
3453
3454
Tcl_PathType
TclGetPathType(pathPtr, filesystemPtrPtr, driveNameLengthPtr, driveNameRef)
    Tcl_Obj *pathPtr;                   /* Path to determine type for */
    Tcl_Filesystem **filesystemPtrPtr;  /* If absolute path and this is
                                         * non-NULL, then set to the
                                         * filesystem which claims this
                                         * path */  
    int *driveNameLengthPtr;            


    Tcl_Obj **driveNameRef;





{
    FilesystemRecord *fsRecPtr;
    int pathLen;
    char *path;
    Tcl_PathType type = TCL_PATH_RELATIVE;
    
    path = Tcl_GetStringFromObj(pathPtr, &pathLen);







|
>
>
|
>
>
>
>
>







3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
Tcl_PathType
TclGetPathType(pathPtr, filesystemPtrPtr, driveNameLengthPtr, driveNameRef)
    Tcl_Obj *pathPtr;                   /* Path to determine type for */
    Tcl_Filesystem **filesystemPtrPtr;  /* If absolute path and this is
                                         * non-NULL, then set to the
                                         * filesystem which claims this
                                         * path */  
    int *driveNameLengthPtr;            /* If the path is absolute, and 
                                         * this is non-NULL, then set to
                                         * the length of the driveName */
    Tcl_Obj **driveNameRef;             /* If the path is absolute, and
                                         * this is non-NULL, then set to
                                         * the name of the drive,
                                         * network-volume which contains
                                         * the path, already with a
                                         * refCount for the caller.  */
{
    FilesystemRecord *fsRecPtr;
    int pathLen;
    char *path;
    Tcl_PathType type = TCL_PATH_RELATIVE;
    
    path = Tcl_GetStringFromObj(pathPtr, &pathLen);