diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -2465,9 +2465,9 @@ rb_file_s_umask(int argc, VALUE *argv) #endif #if USE_NTFS -#define istrailinggabage(x) ((x) == '.' || (x) == ' ') +#define istrailinggarbage(x) ((x) == '.' || (x) == ' ') #else -#define istrailinggabage(x) 0 +#define istrailinggarbage(x) 0 #endif #ifndef CharNext /* defined as CharNext[AW] on Windows. */ @@ -2608,9 +2608,9 @@ ntfs_tail(const char *path) { while (*path == '.') path++; while (*path && *path != ':') { - if (istrailinggabage(*path)) { + if (istrailinggarbage(*path)) { const char *last = path++; - while (istrailinggabage(*path)) path++; + while (istrailinggarbage(*path)) path++; if (!*path || *path == ':') return (char *)last; } else if (isdirsep(*path)) { @@ -2829,7 +2829,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result) } #if USE_NTFS else { - do ++s; while (istrailinggabage(*s)); + do ++s; while (istrailinggarbage(*s)); } #endif break; @@ -2849,7 +2849,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result) --s; case ' ': { const char *e = s; - while (istrailinggabage(*s)) s++; + while (istrailinggarbage(*s)) s++; if (!*s) { s = e; goto endpath; @@ -3221,10 +3221,10 @@ rb_file_s_extname(VALUE klass, VALUE fname) e = 0; while (*p && *p == '.') p++; while (*p) { - if (*p == '.' || istrailinggabage(*p)) { + if (*p == '.' || istrailinggarbage(*p)) { #if USE_NTFS const char *last = p++, *dot = last; - while (istrailinggabage(*p)) { + while (istrailinggarbage(*p)) { if (*p == '.') dot = p; p++; } |