akr
e56d2c385a
* include/ruby/ruby.h: Hide Rational internal.
...
(RRational): Moved to internal.h
(RRATIONAL): Ditto.
(RRATIONAL_SET_NUM): Moved to rational.c.
(RRATIONAL_SET_DEN): Ditto.
* rational.c (rb_rational_num): New function.
(rb_rational_den): Ditto.
* include/ruby/intern.h (rb_rational_num): Declared.
(rb_rational_den): Ditto.
* ext/bigdecimal/bigdecimal.c: Follow the above change.
* ext/date/date_core.c: Ditto.
[ruby-core:60665] [Feature #9513 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-17 16:37:41 +00:00
tadf
a72f9f3476
* ext/date/date_core.c (rt_rewrite_frags): a new feature (not a
...
bug fix) of strptime. applies offset even if the given date is
not local time (%s and %Q). This is an exceptional feature and
I do NOT recommend to use this at all. Thank you git community.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 20:56:28 +00:00
tadf
cce3aa754b
* ext/date/date_core.c (d_lite_cmp): should compare with #<.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-05 10:53:16 +00:00
nobu
6224216294
unused functions and variables
...
* complex.c, rational.c: remove unused functions, which are warned
by clang 5.1, and also variables only used by removed functions.
* ext/date/date_core.c: ditto.
* enc/utf_16be.c, enc/utf_16le.c: comment out constants only used
by commented out functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-17 04:57:14 +00:00
zzak
ccc78addd2
* ext/date/date_core.c: [DOC] plural grammar fixed by @scott113341
...
Contributed via documenting-ruby.org: documenting-ruby/ruby#16
https://github.com/documenting-ruby/ruby/pull/16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-16 22:01:27 +00:00
tadf
c247e62808
* ext/date/date_core.c: fixed coding error [ruby-core:55337].
...
reported by Riley Lynch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-06 10:33:48 +00:00
tadf
4eabe8193a
* ext/date/date_core.c (d_lite_cmp, d_lite_equal): simplified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 22:18:12 +00:00
tadf
551bcc6364
* ext/date/date_core.c: fixed a bug [ruby-core:55295]. reported
...
by Riley Lynch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 22:09:36 +00:00
zzak
3a7a773aeb
* ext/socket/option.c: Document synonymous methods, by windwiny [GH-277]
...
* ext/stringio/stringio.c: ditto
* ext/io/wait/wait.c: ditto
* ext/gdbm/gdbm.c: ditto
* ext/dl/cfunc.c: ditto
* ext/zlib/zlib.c: ditto
* ext/win32ole/win32ole.c: ditto
* ext/dbm/dbm.c: ditto
* ext/json/generator/generator.c: ditto
* ext/date/date_core.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-16 03:25:50 +00:00
zzak
5d402803ee
* ext/date/date_core.c: Typo in Date::MONTHNAMES by Matt Gauger
...
[GH fixes #261 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-20 22:35:38 +00:00
kosaki
326dd6e0cc
* ext/date/date_core.c: include sys/time.h for avoiding implicit
...
declaration of gettimeofday().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-16 17:40:16 +00:00
takano32
976a3041ef
* date_core.c: clearly specify operator precedence.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-12 08:05:16 +00:00
tadf
66f9135726
* ext/date/date_core.c: [ruby-core:52303]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 12:16:07 +00:00
tadf
64bb9749af
* ext/date/date_core.c: modified doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-03 13:39:54 +00:00
tadf
c069246931
* ext/date/date_core.c: [ruby-core:47266].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-22 10:47:05 +00:00
tadf
280681f40c
* ext/date/date_core.c: [ruby-core:47226].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-22 10:42:15 +00:00
tadf
ab67ba64ca
* ext/date/date_{core,strftime}.c: [ruby-core:46990].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-04 21:57:48 +00:00
tadf
bd52bed97b
* ext/date/date_core.c: [ruby-core:46058].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-01 20:56:50 +00:00
tadf
c8cde4e2be
* ext/date/date_core.c (d_lite_marshal_load): accepts old dump.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-01 20:37:38 +00:00
tadf
7cc92034be
* ext/date/date_core.c: define date_sg_t.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-16 10:25:30 +00:00
tadf
f5b033cd4e
* ext/date/date_tmx.h: offset in struct tmx_funcs is now int.
...
* ext/date/date_strftime.c: ditto.
* ext/date/date_core.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-16 09:49:17 +00:00
tadf
1ddb6f7059
* ext/date/date_core.c: checks whether the object is frozen or not.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-03 05:14:47 +00:00
tadf
6ba96bbe4e
* ext/date/date_core.c: modified doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-27 00:30:33 +00:00
tadf
76547ea75f
* ext/date/date_core.c: added description.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-26 10:05:25 +00:00
tadf
43e8bf0c27
re-modified
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-26 09:21:21 +00:00
tadf
0976f31200
* time.c: modified doc.
...
* ext/date/date_core.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-26 09:10:42 +00:00
tadf
b6de661b54
trivial changes
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-14 21:39:25 +00:00
tadf
16c364ade4
* ext/date/date_core.c: reverted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 21:25:34 +00:00
ayumin
965121cdc5
* ext/date/date_core.c: improving introduction in Date/DateTime doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 04:47:35 +00:00
tadf
3a71da5830
* ext/date/date_core.c: added some notes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-12 10:52:58 +00:00
tadf
f24d9fcd75
* ext/date/date_core.c (datetime_s_now): [ruby-core:43256].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-13 22:56:03 +00:00
tadf
f400ba1082
* ext/date/date_core.c: reverted r34825.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 21:17:49 +00:00
tadf
3486a98a71
* ext/date/date_core.c: [ruby-core:42998]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 11:28:23 +00:00
nobu
80429eed63
* io.c, process.c, time.c, ext: use rb_sys_fail_str instead of
...
rb_sys_fail.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-27 01:50:27 +00:00
tadf
5aea2ad18c
* ext/date/date_core.c: uses to_integer instead.
...
* test/date/test_switch_hitter.rb: added a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-20 12:03:42 +00:00
naruse
a9b0e34b97
* ext/date/date_core.c (wholenum): fix the type of the return value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-20 01:22:50 +00:00
tadf
305cd3fb00
* ext/date/date_core.c: [ruby-dev:45008].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-19 17:16:48 +00:00
nobu
62dfc45bb2
suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-25 07:42:38 +00:00
tadf
75de442dd0
* ext/date/date_core.c: [ruby-core:38861]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 08:05:43 +00:00
tadf
0acaab201a
* ext/date/date_core.c (date_strftime_alloc): followed the change
...
of r32885.
* doc/NEWS-1.9.3: followed the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 00:12:05 +00:00
tadf
e8b3d0decf
* ext/date/date_core.c: [ruby-core:38855].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 23:48:18 +00:00
tadf
f99bed9330
* ext/date/date_core.c: an issue that is same as [ruby-dev:44071].
...
* ext/date/date_strftime.c: identical to [ruby-dev:44112].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-23 11:17:00 +00:00
tadf
32af4ed47f
* ext/date/date_core.c: canonicalizes nth and sf.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 05:59:12 +00:00
tadf
057e0a373c
* ext/date/date_core.c: some improvements for performance.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 08:18:57 +00:00
tadf
72be91b5c0
reedited previous commit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 18:49:04 +00:00
tadf
6c1e759c3f
* ext/date/date_core.c: mathn still alive (should die soon).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 18:24:50 +00:00
tadf
1a876fb61e
* ext/date/date_core.c (m_ajd): refers a constant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 12:17:52 +00:00
tadf
1b10d8c327
* ext/date/date_core.c: trivial changes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:38:33 +00:00
tadf
97772985f0
* ext/date/date_core.c: modified doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:05:24 +00:00
tadf
23658b355c
* ext/date/date_core.c: avoided using timev.
...
* ext/date/date_strftime.c: ditto.
* ext/date/date_tmx.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 14:47:04 +00:00