tadf
ca5401e481
* ext/date/date_core.c (date_s_test_*): use macros.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 07:58:11 +00:00
naruse
1f6a7c18f5
* ext/date/date_core.c (DAY_IN_NANOSECONDS): refix: 31438.
...
check with LONG_MAX and cast as long; without this the calculation
will be done as int and overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06 08:38:36 +00:00
nobu
66fc78d207
* ext/date/date_core.c (DAY_IN_NANOSECONDS): long long int is not
...
available on all platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-05 13:09:42 +00:00
tadf
322bffd84b
* 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
2011-04-26 16:23:05 +00:00
tadf
9fe4a35e67
* ext/date/date_core.c: modified validation methods.
...
* ext/date/lib/date.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:02:25 +00:00
tadf
91ee771012
* ext/date/date_core.c (dt_lite_set_tmx): should get df value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:02:10 +00:00
naruse
c34db58913
* ext/date/date_core.c (leap_p): surpress warning: parentheses.
...
* ext/date/date_core.c (date_s__parse_internal): remove unused
variable "str".
* ext/date/date_parse.c (parse_ddd_cb): use RSTRING_LENINT.
* ext/date/date_strftime.c (date_strftime_with_tmx): remove unused
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 17:34:55 +00:00
tadf
448e0d6668
* ext/date/date_core.c: replacement of implementation of
...
_parse. [experimental]
* ext/date/date_parse.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _parse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 12:31:15 +00:00
tadf
2b6ab9bf1e
* ext/date/date_{core,strftime}.c: use struct tmx instead of vtm.
...
* ext/date/date_tmx.h: new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-16 15:22:47 +00:00
tadf
531dfb40e0
typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-16 13:43:15 +00:00
tadf
ec01a8813f
* ext/date/date_core.c: replacement of implementation of
...
_strptime. [experimental]
* ext/date/date_strptime.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _strptime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-16 12:58:28 +00:00
naruse
09a4ae1bbc
* ext/date/date_core.c (date_s_today): use int for year.
...
* ext/date/date_core.c (datetime_s_now): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-28 02:41:31 +00:00
tadf
ea490ced11
* ext/date/date_core.c: removed unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-27 02:20:17 +00:00
tadf
e358888d5e
* ext/date/date_core.c: should not force cast with macros.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-25 13:01:06 +00:00
naruse
c85be42589
* lib/test/unit/parallel.rb: remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-21 21:42:23 +00:00
tadf
7adef00759
* ext/date/date_strftime.c: removed unused code and arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 13:49:27 +00:00
tadf
434157444f
* ext/date/date_core.c: replacement of implementation of
...
strftime. It has some limitations that is same as Time's
one. [experimental]
* ext/date/date_strftime.c: new.
* ext/date/lib/date/format.c: removed ruby version of strftime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 12:44:47 +00:00
tadf
ec40f71690
* ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11 17:28:44 +00:00
tadf
af7a09a687
* ext/date/date_core.c: changed some directives.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11 16:27:25 +00:00
tadf
e26e4b2cdf
* ext/date/date_core.c, ext/date/lib/*: moved rdoc descriptions.
...
- この行以下は無視されます --
M ChangeLog
M ext/date/date_core.c
M ext/date/lib/date.rb
M ext/date/lib/date/format.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11 16:21:56 +00:00
nobu
35c9d383a9
fix of ext/date/date_core.
...
* ext/date/date_core.c (DateTimeData): should not use bare 'long long'
and 'long double', which are not defined by C89.
* ext/date/date_core.c (dt_lite_plus): get rid of overflow at casting
down double to integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-06 23:38:31 +00:00
usa
5d881f0fd4
* ext/date/date_core.c (datetime_s_now): localtime() and localtime_r()
...
required time_t pointer as 1st parameter, and tv_sec member of struct
timeval is long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-28 03:28:24 +00:00
nobu
fe060e0e5c
* ext/date/date_core.c: adjust indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-26 14:35:30 +00:00
tadf
fdf361189c
* lib/date.rb: [Feature #4257 ]
...
* ext/date/extconf.rb: new
* ext/date/date_core.c: new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-26 08:10:03 +00:00