mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (strrdirsep): removed meaningless code.
* file.c (rb_file_s_expand_path): return to 1.66. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cc6d8c466c
commit
439b453e3a
2 changed files with 6 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Aug 2 01:29:42 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
|
* file.c (strrdirsep): removed meaningless code.
|
||||||
|
|
||||||
|
* file.c (rb_file_s_expand_path): reverted to 1.66.
|
||||||
|
|
||||||
Wed Aug 1 15:42:16 2001 Usaku Nakamura <usa@ruby-lang.org>
|
Wed Aug 1 15:42:16 2001 Usaku Nakamura <usa@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (ruby_run): avoid VC++ warning.
|
* eval.c (ruby_run): avoid VC++ warning.
|
||||||
|
|
9
file.c
9
file.c
|
@ -1312,9 +1312,6 @@ strrdirsep(path)
|
||||||
char *path;
|
char *path;
|
||||||
{
|
{
|
||||||
char *last = NULL;
|
char *last = NULL;
|
||||||
#ifdef DOSISH
|
|
||||||
if (ISALPHA(path[0]) && path[1] == ':') path += 2;
|
|
||||||
#endif
|
|
||||||
while (*path) {
|
while (*path) {
|
||||||
if (isdirsep(*path)) {
|
if (isdirsep(*path)) {
|
||||||
last = path++;
|
last = path++;
|
||||||
|
@ -1438,12 +1435,6 @@ rb_file_s_expand_path(argc, argv)
|
||||||
}
|
}
|
||||||
b = ++s;
|
b = ++s;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
p = CharNext(p);
|
|
||||||
*p++ = '.';
|
|
||||||
*p = '.';
|
|
||||||
if (p >= bend) goto toolong;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case '/':
|
case '/':
|
||||||
#if defined DOSISH
|
#if defined DOSISH
|
||||||
|
|
Loading…
Add table
Reference in a new issue