Skip to content

Commit

Permalink
* file.c (DOSISH): better Cygwin support.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Jul 23, 2003
1 parent e96641b commit 528b6c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Wed Jul 23 23:06:59 2003 WATANABE Hirofumi <[email protected]>

* file.c (DOSISH): better Cygwin support.

Wed Jul 23 18:43:00 2003 Masatoshi SEKI <[email protected]>

* lib/erb.rb: import erb-2.0.4b1.
Expand Down
8 changes: 4 additions & 4 deletions file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ file_expand_path(fname, dname, result)
}
BUFCHECK(strlen(dir) > buflen);
strcpy(buf, dir);
#ifdef DOSISH
#if defined DOSISH || defined __CYGWIN__
for (p = buf; *p; p = CharNext(p)) {
if (*p == '\\') {
*p = '/';
Expand Down Expand Up @@ -1629,7 +1629,7 @@ file_expand_path(fname, dname, result)
strcpy(buf, dir);
free(dir);
}
#ifdef DOSISH
#if defined DOSISH || defined __CYGWIN__
if (isdirsep(*s)) {
/* specified full path, but not drive letter nor UNC */
/* we need to get the drive letter or UNC share name */
Expand Down Expand Up @@ -1677,7 +1677,7 @@ file_expand_path(fname, dname, result)
}
break;
case '/':
#if defined DOSISH
#if defined DOSISH || defined __CYGWIN__
case '\\':
#endif
b = ++s;
Expand All @@ -1689,7 +1689,7 @@ file_expand_path(fname, dname, result)
}
break;
case '/':
#if defined DOSISH
#if defined DOSISH || defined __CYGWIN__
case '\\':
#endif
if (s > b) {
Expand Down

0 comments on commit 528b6c3

Please sign in to comment.