Skip to content

Commit

Permalink
eban
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Aug 18, 2000
1 parent 6b54e32 commit d6367a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
Sat Aug 19 01:34:02 2000 WATANABE Hirofumi <eban@os.rim.or.jp>

* ext/sdbm/_sdbm.c (sdbm_prep): flags should be or-ed by O_BINARY on
Win32 too.

* ext/sdbm/_sdbm.c (makroom): fill hole with 0 on Win32 too.

Wed Aug 16 15:30:58 2000 Yukihiro Matsumoto <matz@ruby-lang.org>

* stable version 1.4.6 released.
Expand Down
6 changes: 2 additions & 4 deletions ext/sdbm/_sdbm.c
Expand Up @@ -206,9 +206,7 @@ int mode;
* open the files in sequence, and stat the dirfile.
* If we fail anywhere, undo everything, return NULL.
*/
#ifdef MSDOS
flags |= O_BINARY;
#endif
if ((db->pagf = open(pagname, flags, mode)) > -1) {
if ((db->dirf = open(dirname, flags, mode)) > -1) {
/*
Expand Down Expand Up @@ -361,7 +359,7 @@ int need;
{
long newp;
char twin[PBLKSIZ];
#ifdef MSDOS
#if defined MSDOS || (defined _WIN32 && !defined __CYGWIN__)
char zer[PBLKSIZ];
long oldtail;
#endif
Expand All @@ -388,7 +386,7 @@ int need;
* here, as sdbm_store will do so, after it inserts the incoming pair.
*/

#ifdef MSDOS
#if defined MSDOS || (defined _WIN32 && !defined __CYGWIN__)
/*
* Fill hole with 0 if made it.
* (hole is NOT read as 0)
Expand Down

0 comments on commit d6367a2

Please sign in to comment.