diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-14 13:41:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-14 13:41:02 +0000 |
commit | 70b77ce6a0e7bd9907d11c29932eb8e37c3e4076 (patch) | |
tree | 0fbaa740a483519e42912ffb4fe74b36e4a6d90f /win32 | |
parent | d00b2d452911f57cbd81a65e2a0e0a71474581ad (diff) | |
download | ruby-70b77ce6a0e7bd9907d11c29932eb8e37c3e4076.tar.gz ruby-70b77ce6a0e7bd9907d11c29932eb8e37c3e4076.tar.xz ruby-70b77ce6a0e7bd9907d11c29932eb8e37c3e4076.zip |
* dir.c (ruby_glob): glob function not using ruby exception system.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index 53939d4ec..e1468a1d8 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1024,7 +1024,7 @@ typedef struct _NtCmdLineElement { #define NTMALLOC 0x2 // string in element was malloc'ed #define NTSTRING 0x4 // element contains a quoted string -static void +static int insert(const char *path, VALUE vinfo) { NtCmdLineElement *tmpcurr; @@ -1038,6 +1038,8 @@ insert(const char *path, VALUE vinfo) strcpy(tmpcurr->str, path); **tail = tmpcurr; *tail = &tmpcurr->next; + + return 0; } #ifdef HAVE_SYS_PARAM_H @@ -1062,7 +1064,7 @@ cmdglob(NtCmdLineElement *patt, NtCmdLineElement **tail) for (p = buf; *p; p = CharNext(p)) if (*p == '\\') *p = '/'; - rb_glob(buf, insert, (VALUE)&tail); + ruby_glob(buf, 0, insert, (VALUE)&tail); if (buf != buffer) free(buf); |