Sha256: f9d7f5ba97ad9f9f68d7fb9cbb5c502b168d3ef5870e463ab9fa1ea1e506de67

Contents?: true

Size: 1.05 KB

Versions: 11

Compression:

Stored size: 1.05 KB

Contents

#ifndef RUBY_WIN32_DIR_H
#define RUBY_WIN32_DIR_H

#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;
    char d_isdir; /* directory */
    char d_isrep; /* reparse point */
};
typedef struct {
    WCHAR *start;
    WCHAR *curr;
    long size;
    long nfiles;
    long loc;  /* [0, nfiles) */
    struct direct dirstr;
    char *bits;  /* used for d_isdir and d_isrep */
} DIR;


DIR*           rb_w32_opendir(const char*);
struct direct* rb_w32_readdir(DIR *);
#ifdef RUBY_ENCODING_H
struct direct* rb_w32_readdir_with_enc(DIR *, rb_encoding *);
#endif
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

#endif /* RUBY_WIN32_DIR_H */

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rhodes-5.5.18 platform/shared/ruby/win32/dir.h
rhodes-5.5.17 platform/shared/ruby/win32/dir.h
rhodes-5.5.15 platform/shared/ruby/win32/dir.h
rhodes-5.5.0.22 platform/shared/ruby/win32/dir.h
rhodes-5.5.2 platform/shared/ruby/win32/dir.h
rhodes-5.5.0.7 platform/shared/ruby/win32/dir.h
rhodes-5.5.0.3 platform/shared/ruby/win32/dir.h
rhodes-5.5.0 platform/shared/ruby/win32/dir.h
tauplatform-1.0.3 platform/shared/ruby/win32/dir.h
tauplatform-1.0.2 platform/shared/ruby/win32/dir.h
tauplatform-1.0.1 platform/shared/ruby/win32/dir.h