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.96 2004/03/17 18:14:13 das 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.97 2004/03/30 15:35:46 vincentdarley Exp $
*/
#include "tclInt.h"
#include "tclPort.h"
#ifdef __WIN32__
/* for tclWinProcs->useWide */
#include "tclWinInt.h"
|
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
|
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);
|
|
>
>
|
>
>
>
>
>
|
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
|
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);
|