mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
59dbfa3e4c
[ruby-dev:22476] * io.c (argf_eof): ARGF.eof? should not have any side effect. [ruby-dev:22469] * io.c (argf_each_byte): should return self. [ruby-dev:22465] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
38 lines
802 B
C
38 lines
802 B
C
#ifdef __BORLANDC__
|
|
# ifndef WIN32_DIR_H_
|
|
# define WIN32_DIR_H_
|
|
# include <sys/types.h>
|
|
# endif
|
|
#endif
|
|
|
|
struct direct
|
|
{
|
|
long d_namlen;
|
|
ino_t d_ino;
|
|
char d_name[256];
|
|
char d_isdir;
|
|
};
|
|
typedef struct {
|
|
char *start;
|
|
char *curr;
|
|
long size;
|
|
long nfiles;
|
|
struct direct dirstr;
|
|
char *bits;
|
|
long bitpos;
|
|
} DIR;
|
|
|
|
|
|
DIR* rb_w32_opendir(const char*);
|
|
struct direct* rb_w32_readdir(DIR *);
|
|
long rb_w32_telldir(DIR *);
|
|
void rb_w32_seekdir(DIR *, long);
|
|
void rb_w32_rewinddir(DIR *);
|
|
void rb_w32_closedir(DIR *);
|
|
|
|
#define opendir rb_w32_opendir
|
|
#define readdir rb_w32_readdir
|
|
#define telldir rb_w32_telldir
|
|
#define seekdir rb_w32_seekdir
|
|
#define rewinddir rb_w32_rewinddir
|
|
#define closedir rb_w32_closedir
|