diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-29 02:10:22 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-29 02:10:22 +0000 |
commit | 869b1efeb4eea77338863faff98da2432acb4b5d (patch) | |
tree | 25e0bc63e15ac1d40e231be94d343bf42dea3751 /dir.c | |
parent | d7fe17edf08c1cee7f5b87251d2f09345900fcf9 (diff) |
see ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -558,8 +558,8 @@ extract_elem(path) # define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR) #endif -static void -glob(path, func, arg) +void +rb_glob(path, func, arg) char *path; void (*func)(); VALUE arg; @@ -598,7 +598,7 @@ glob(path, func, arg) recursive = 1; buf = ALLOC_N(char, strlen(base)+strlen(m)+3); sprintf(buf, "%s%s%s", base, (*base)?"":".", m); - glob(buf, func, arg); + rb_glob(buf, func, arg); free(buf); } dirp = opendir(dir); @@ -614,7 +614,7 @@ glob(path, func, arg) continue; buf = ALLOC_N(char, strlen(base)+NAMLEN(dp)+strlen(m)+6); sprintf(buf, "%s%s%s/**%s", base, (BASE)?"/":"", dp->d_name, m); - glob(buf, func, arg); + rb_glob(buf, func, arg); free(buf); continue; } @@ -643,7 +643,7 @@ glob(path, func, arg) char *t = ALLOC_N(char, len+mlen+1); sprintf(t, "%s%s", link->path, m); - glob(t, func, arg); + rb_glob(t, func, arg); free(t); } tmp = link; @@ -669,7 +669,7 @@ push_globs(ary, s) VALUE ary; char *s; { - glob(s, push_pattern, ary); + rb_glob(s, push_pattern, ary); } static void |