summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-16 04:22:46 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-16 04:22:46 +0000
commitaffcf615dc236afc73b054f01e4ae20cb825070a (patch)
treea767f24ba58e95785d5bc17bca46c59748eb34bb /file.c
parent03d1c9cd8238af6f1063ea4eb98d17fa2a511107 (diff)
* file.c (file_load_ok): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/file.c b/file.c
index 60cab5ba80..327db53741 100644
--- a/file.c
+++ b/file.c
@@ -69,7 +69,7 @@ char *strrchr _((const char*,const char));
#ifndef HAVE_LSTAT
#define lstat(path,st) stat(path,st)
#endif
-
+
VALUE rb_cFile;
VALUE rb_mFileTest;
static VALUE rb_cStat;
@@ -1384,7 +1384,7 @@ rb_file_s_expand_path(argc, argv)
if (*(s+1)) {
switch (*++s) {
case '.':
- if (*(s+1) == '\0' || isdirsep(*(s+1))) {
+ if (*(s+1) == '\0' || isdirsep(*(s+1))) {
/* We must go back to the parent */
if (isdirsep(*p) && p > buf) p--;
while (p > buf && !isdirsep(*p)) p--;
@@ -1399,7 +1399,7 @@ rb_file_s_expand_path(argc, argv)
#if defined DOSISH
case '\\':
#endif
- if (!isdirsep(*p)) *++p = '/';
+ if (!isdirsep(*p)) *++p = '/';
break;
default:
*++p = '.'; *++p = *s; break;
@@ -1415,7 +1415,7 @@ rb_file_s_expand_path(argc, argv)
*++p = *s;
}
}
-
+
/* Place a \0 at end. If path ends with a "/", delete it */
if (p == buf || !isdirsep(*p)) p++;
*p = '\0';
@@ -1795,15 +1795,15 @@ rb_f_test(argc, argv)
if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
return Qtrue;
return Qfalse;
-
+
case '=':
if (st1.st_mtime == st2.st_mtime) return Qtrue;
return Qfalse;
-
+
case '>':
if (st1.st_mtime > st2.st_mtime) return Qtrue;
return Qfalse;
-
+
case '<':
if (st1.st_mtime < st2.st_mtime) return Qtrue;
return Qfalse;
@@ -2174,7 +2174,7 @@ rb_path_check(path)
p = path;
pend = strchr(path, sep);
-
+
for (;;) {
int safe;
@@ -2208,7 +2208,7 @@ file_load_ok(file)
{
FILE *f;
- if (!f) return 0;
+ if (!file) return 0;
f = fopen(file, "r");
if (f == NULL) return 0;
fclose(f);