diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-26 16:23:05 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-26 16:23:05 +0000 |
commit | 322bffd84b60e84452d7c0a828009a7f704053f2 (patch) | |
tree | 7bb6959cefde7abfb1b4448bc2eea6d356bf7fe0 /ext/date/date_core.c | |
parent | 21e6862cd5f507b6096e8f738794b18dcff37a8c (diff) | |
download | ruby-322bffd84b60e84452d7c0a828009a7f704053f2.tar.gz |
* ext/date/date_core.c (date_zone_to_diff): renamed.
* ext/date/date_parse.c: ditto.
* ext/date/date_strptime.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 6c435a869f..040bfa3a15 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -591,6 +591,12 @@ jd_to_wday(long jd) return (int)MOD(jd + 1, 7); } +VALUE +date_zone_to_diff(VALUE s) +{ + return rb_funcall(cDate, rb_intern("zone_to_diff"), 1, s); +} + static int daydiff_to_sec(VALUE vof, int *rof) { @@ -635,7 +641,7 @@ daydiff_to_sec(VALUE vof, int *rof) } case T_STRING: { - VALUE vs = rb_funcall(cDate, rb_intern("zone_to_diff"), 1, vof); + VALUE vs = date_zone_to_diff(vof); int n; if (!FIXNUM_P(vs)) @@ -1472,12 +1478,6 @@ date_s_today(int argc, VALUE *argv, VALUE klass) } VALUE -zone_to_diff(VALUE s) -{ - return rb_funcall(cDate, rb_intern("zone_to_diff"), 1, s); -} - -VALUE date__strptime(const char *str, size_t slen, const char *fmt, size_t flen, VALUE hash); |