diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-06 08:23:00 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-06 08:23:00 +0000 |
| commit | 62a04cb007bd6d96cd2365eb3efe59150b746c32 (patch) | |
| tree | 3cdecdd505b348bc2b2824fdb7980f7055f06736 /win32/dir.h | |
| parent | 2e3b9f86c31e64d670d49766a6ae432f89aabffb (diff) | |
| download | ruby-62a04cb007bd6d96cd2365eb3efe59150b746c32.tar.gz ruby-62a04cb007bd6d96cd2365eb3efe59150b746c32.tar.xz ruby-62a04cb007bd6d96cd2365eb3efe59150b746c32.zip | |
* win32/{dir.h, win32.c} (rb_w32_readdir_with_enc): new function to
read entry with specified enc.
* win32/win32.c (readdir_internal): extract from rb_w32_opendir().
* win32/win32.c (opendir_internal): extract from rb_w32_readdir().
* dir.c (dir_read, dir_each): use new READDIR macro instead of readdir()
to pass enc for special version of readdir, such as above.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/dir.h')
| -rw-r--r-- | win32/dir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/dir.h b/win32/dir.h index a09b237e2..3c7ec8d2f 100644 --- a/win32/dir.h +++ b/win32/dir.h @@ -29,6 +29,7 @@ typedef struct { DIR* rb_w32_opendir(const char*); struct direct* rb_w32_readdir(DIR *); +struct direct* rb_w32_readdir_with_enc(DIR *, rb_encoding *); off_t rb_w32_telldir(DIR *); void rb_w32_seekdir(DIR *, off_t); void rb_w32_rewinddir(DIR *); |
