NULL
};
enum options {
- VFS_INFO, VFS_MOUNT, VFS_UNMOUNT,
+ VFS_INFO, VFS_MOUNT, VFS_UNMOUNT
};
if (objc < 2) {
static Tcl_Obj*
VfsFilesystemSeparator(Tcl_Obj* pathObjPtr) {
- return Tcl_NewStringObj("/",1);
+ char sep=VFS_SEPARATOR;
+ return Tcl_NewStringObj(&sep,1);
}
static int
Tcl_Interp *cmdInterp; /* Interpreter for error reporting;
* can be NULL. */
Tcl_Obj *pathPtr; /* Name of file to open. */
- char *modeString; /* A list of POSIX open modes or
+ CONST char *modeString; /* A list of POSIX open modes or
* a string such as "rw". */
int permissions; /* If the open involves creating a
* file, with what modes to create
return returnVal;
}
-static char**
+static CONST char**
VfsFileAttrStrings(pathPtr, objPtrRef)
Tcl_Obj* pathPtr;
Tcl_Obj** objPtrRef;