mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
17aa3d898d
commit
656e005ac0
1 changed files with 209 additions and 207 deletions
4
file.c
4
file.c
|
@ -2409,11 +2409,13 @@ rb_file_s_umask(int argc, VALUE *argv)
|
|||
#define isdirsep(x) ((x) == '/')
|
||||
#endif
|
||||
|
||||
#ifndef USE_NTFS
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define USE_NTFS 1
|
||||
#else
|
||||
#define USE_NTFS 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if USE_NTFS
|
||||
#define istrailinggabage(x) ((x) == '.' || (x) == ' ')
|
||||
|
@ -2851,7 +2853,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
|
|||
}
|
||||
if (p == skiproot(buf) - 1) p++;
|
||||
|
||||
#if USE_NTFS
|
||||
#if USE_NTFS && defined __WIN32__
|
||||
*p = '\0';
|
||||
if ((s = strrdirsep(b = buf)) != 0 && !strpbrk(s, "*?")) {
|
||||
size_t len;
|
||||
|
|
Loading…
Reference in a new issue