This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH] Revert previous Windows tcl change
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] Revert previous Windows tcl change
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Sat, 10 Jun 2000 22:45:57 -0400
I've taken the liberty of reverting my previous change to win/tclWinFile.c.
It worked fine on Windows NT but failed miserably on Windows 95.
cgf
Sat Jun 10 22:43:00 2000 Christopher Faylor <cgf@cygnus.com>
* win/tclWinFile.c (TclMatchFiles): Revert Mon Jun 5 18:48:32 2000
Christopher Faylor <cgf@cygnus.com>. Fails on Windows 95
Index: win/tclWinFile.c
===================================================================
RCS file: /cvs/src/src/tcl/win/tclWinFile.c,v
retrieving revision 1.2
diff -u -p -r1.2 tclWinFile.c
--- tclWinFile.c 2000/06/05 23:07:29 1.2
+++ tclWinFile.c 2000/06/11 02:44:20
@@ -130,13 +130,11 @@ TclMatchFiles(interp, separators, dirPtr
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);