general, actually) do not need to have '/'s translated into '\'s.
(TclDoGlob): Ditto.
* win/tclWinFile.c (TclMatchFiles): Ditto.
* generic/tclInitScript.h: Look in "../bin/usr/share" as well as
"../bin/share".
+Mon Jun 5 18:48:32 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * generic/tclFileName.c (Tcl_TranslateFileName): Cygwin paths (and
+ Windows in general, actually) do not need to have '/'s translated into
+ '\'s.
+ (TclDoGlob): Ditto.
+ * win/tclWinFile.c (TclMatchFiles): Ditto.
+ * generic/tclInitScript.h: Look in "../bin/usr/share" as well as
+ "../bin/share".
+
Thu Apr 20 17:01:19 2000 Andrew Cagney <cagney@b1.cygnus.com>
From Alexandre Oliva <aoliva@cygnus.com>
* some system interfaces don't accept forward slashes.
*/
+#ifndef __CYGWIN__
+ cygwin_conv_to_win32_path (Tcl_DStringValue(bufferPtr)
if (tclPlatform == TCL_PLATFORM_WINDOWS) {
for (p = Tcl_DStringValue(bufferPtr); *p != '\0'; p++) {
if (*p == '/') {
}
}
}
+#endif
return Tcl_DStringValue(bufferPtr);
}
\f
break;
case TCL_PLATFORM_WINDOWS: {
int exists;
+#ifndef __CYGWIN__
/*
* We need to convert slashes to backslashes before checking
* for the existence of the file. Once we are done, we need
}
}
}
+#endif
name = Tcl_DStringValue(headPtr);
exists = (TclAccess(name, F_OK) == 0);
for (p = name; *p != '\0'; p++) {
}\n\
set parentDir [file dirname [file dirname $execName]]\n\
lappend dirs [file join $parentDir share tcl$tcl_version]\n\
+ lappend dirs [file join $parentDir \"usr\" share tcl$tcl_version]\n\
lappend dirs [file join [file dirname $parentDir] share tcl$tcl_version]\n\
# NOW, let's try to find it in the build tree...\n\
# Rather than play all the games Scriptics does, if we are in the build\n\
Tcl_DStringAppend(&buffer, Tcl_DStringValue(dirPtr),
Tcl_DStringLength(dirPtr));
}
+#ifndef __CYGWIN__
for (p = Tcl_DStringValue(&buffer); *p != '\0'; p++) {
if (*p == '/') {
*p = '\\';
}
}
+#endif
p--;
if (*p != '\\' && *p != ':') {
Tcl_DStringAppend(&buffer, "\\", 1);