aboutsummaryrefslogtreecommitdiffstats
path: root/ext/date/date_strptime.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-26 16:23:05 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-26 16:23:05 +0000
commit322bffd84b60e84452d7c0a828009a7f704053f2 (patch)
tree7bb6959cefde7abfb1b4448bc2eea6d356bf7fe0 /ext/date/date_strptime.c
parent21e6862cd5f507b6096e8f738794b18dcff37a8c (diff)
downloadruby-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_strptime.c')
-rw-r--r--ext/date/date_strptime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c
index 548e6a656d..fdc75660ab 100644
--- a/ext/date/date_strptime.c
+++ b/ext/date/date_strptime.c
@@ -150,6 +150,8 @@ valid_range_p(VALUE v, int a, int b)
si += l; \
}
+VALUE date_zone_to_diff(VALUE);
+
static size_t
date__strptime_internal(const char *str, size_t slen,
const char *fmt, size_t flen, VALUE hash)
@@ -567,7 +569,6 @@ date__strptime_internal(const char *str, size_t slen,
")";
static VALUE pat = Qnil;
VALUE m, b;
- VALUE zone_to_diff(VALUE s);
if (NIL_P(pat)) {
pat = rb_reg_new(pat_source, sizeof pat_source - 1,
@@ -584,7 +585,7 @@ date__strptime_internal(const char *str, size_t slen,
s = f_aref(m, INT2FIX(1));
l = f_end(m, INT2FIX(0));
- o = zone_to_diff(s);
+ o = date_zone_to_diff(s);
si += NUM2LONG(l);
set_hash("zone", s);
set_hash("offset", o);