Skip to content

Commit

Permalink
Merge from ruby_1_8.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@16119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Apr 21, 2008
1 parent ce1089a commit b5d283b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
14 changes: 14 additions & 0 deletions ChangeLog
@@ -1,3 +1,17 @@
Mon Apr 21 10:17:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>

* time.c: should include <errno.h> to refer errno.

Mon Apr 21 10:02:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>

* hash.c (recursive_hash): prototype.

Mon Apr 21 10:00:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>

* time.c (rb_strftime): check errno to detect strftime(3)'s error.
this is workaround for recent version of MSVCRT.
[ruby-dev:34456]

Sun Apr 20 21:02:06 2008 Akinori MUSHA <knu@iDaemons.org>

* enumerator.c: Resolve the method every time an enumeration
Expand Down
1 change: 1 addition & 0 deletions hash.c
Expand Up @@ -1607,6 +1607,7 @@ hash_i(key, val, hval)
return ST_CONTINUE;
}

static VALUE recursive_hash _((VALUE, VALUE, int));
static VALUE
recursive_hash(hash, dummy, recur)
VALUE hash;
Expand Down
4 changes: 3 additions & 1 deletion time.c
Expand Up @@ -13,6 +13,7 @@
#include "ruby.h"
#include <sys/types.h>
#include <time.h>
#include <errno.h>

#ifdef HAVE_UNISTD_H
#include <unistd.h>
Expand Down Expand Up @@ -1776,8 +1777,9 @@ rb_strftime(buf, format, time)
if (flen == 0) {
return 0;
}
errno = 0;
len = strftime(*buf, SMALLBUF, format, time);
if (len != 0 || **buf == '\0') return len;
if (len != 0 || (**buf == '\0' && errno != ERANGE)) return len;
for (size=1024; ; size*=2) {
*buf = xmalloc(size);
(*buf)[0] = '\0';
Expand Down
6 changes: 3 additions & 3 deletions version.h
@@ -1,15 +1,15 @@
#define RUBY_VERSION "1.8.7"
#define RUBY_RELEASE_DATE "2008-04-20"
#define RUBY_RELEASE_DATE "2008-04-21"
#define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20080420
#define RUBY_RELEASE_CODE 20080421
#define RUBY_PATCHLEVEL 0

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 7
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 4
#define RUBY_RELEASE_DAY 20
#define RUBY_RELEASE_DAY 21

#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
Expand Down

0 comments on commit b5d283b

Please sign in to comment.