ruby-changes:37452
From: nobu <ko1@a...>
Date: Sat, 7 Feb 2015 09:11:17 +0900 (JST)
Subject: [ruby-changes:37452] nobu:r49533 (trunk): dir.c: use USE_NAME_ON_FS
nobu 2015-02-07 09:11:02 +0900 (Sat, 07 Feb 2015) New Revision: 49533 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49533 Log: dir.c: use USE_NAME_ON_FS * dir.c (glob_helper): use USE_NAME_ON_FS instead of configure and platform macro list. Modified files: trunk/dir.c Index: dir.c =================================================================== --- dir.c (revision 49532) +++ dir.c (revision 49533) @@ -1562,7 +1562,7 @@ glob_helper( https://github.com/ruby/ruby/blob/trunk/dir.c#L1562 plain = 1; break; case ALPHA: -#if defined HAVE_GETATTRLIST || defined _WIN32 +#if USE_NAME_ON_FS == 1 plain = 1; #else magical = 1; @@ -1792,7 +1792,7 @@ glob_helper( https://github.com/ruby/ruby/blob/trunk/dir.c#L1792 status = -1; break; } -#if defined HAVE_GETATTRLIST || defined _WIN32 +#if USE_NAME_ON_FS == 1 if ((*cur)->type == ALPHA) { long base = pathlen + (dirsep != 0); buf = replace_real_basename(buf, base, enc, IF_NORMALIZE_UTF8PATH(1)+0); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/