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_parse.c | |
parent | 21e6862cd5f507b6096e8f738794b18dcff37a8c (diff) |
* 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_parse.c')
-rw-r--r-- | ext/date/date_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c index 7007163a85..76642c4be5 100644 --- a/ext/date/date_parse.c +++ b/ext/date/date_parse.c @@ -914,6 +914,8 @@ n2i(const char *s, long f, long w) return v; } +VALUE date_zone_to_diff(VALUE); + static int parse_ddd_cb(VALUE m, VALUE hash) { @@ -1080,7 +1082,6 @@ parse_ddd_cb(VALUE m, VALUE hash) f_expt(INT2FIX(10), LONG2NUM(l4)))); } if (!NIL_P(s5)) { - VALUE zone_to_diff(VALUE s); cs5 = RSTRING_PTR(s5); l5 = RSTRING_LEN(s5); @@ -1108,7 +1109,7 @@ parse_ddd_cb(VALUE m, VALUE hash) set_hash("zone", zone); if (isdigit(*s1)) *--s1 = '+'; - set_hash("offset", zone_to_diff(rb_str_new2(s1))); + set_hash("offset", date_zone_to_diff(rb_str_new2(s1))); } } @@ -1231,7 +1232,6 @@ check_class(VALUE s) VALUE date__parse(VALUE str, VALUE comp) { - VALUE zone_to_diff(VALUE s); VALUE backref, hash; backref = rb_backref_get(); @@ -1325,7 +1325,7 @@ date__parse(VALUE str, VALUE comp) { VALUE zone = ref_hash("zone"); if (!NIL_P(zone) && NIL_P(ref_hash("offset"))) - set_hash("offset", zone_to_diff(zone)); + set_hash("offset", date_zone_to_diff(zone)); } rb_backref_set(backref); |