nobu
e8f8cf111f
date: use del_hash to extract an element destructively
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-02 03:48:58 +00:00
nobu
480a21f435
RSTRING_PTR may not be terminated in the future
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-01 06:19:05 +00:00
nobu
8c90838f7c
10**3 is always 1000
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-01 06:14:07 +00:00
nobu
dcd4914b3a
adjust indent
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-01 06:14:06 +00:00
nobu
c4816a11e4
surround macro block with do/while
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-01 04:09:02 +00:00
nobu
d1ea2f9d8f
date_parse.c, date_strptime.c: ensure symbols static all
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-25 13:17:35 +00:00
nobu
d1496e8b8c
date_strptime.c: use ALLOCV
...
* ext/date/date_strptime.c (read_digits): use ALLOCV instead of
ALLOCA get rid of stack overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-16 09:45:50 +00:00
tadf
bb05bcde01
* ext/date/date_strptime.c (date__strptime_internal): do not overwrite century.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-27 10:44:23 +00:00
nobu
9a938987cb
date_strptime.c: get rid of backtrack explosion
...
* ext/date/date_strptime.c (date__strptime_internal): unset
case-insensitive flag for [:alpha:], which already implies both
cases, to get rid of backtrack explosion. [ruby-core:58984]
[Bug #9221 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-10 14:58:43 +00:00
tadf
9a0cb80252
* ext/date/date_{parse,strptime}.c [ruby-dev:45303].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-03 03:14:27 +00:00
tadf
1d794b9335
ext/date/date_strptime.c: moved detector of leftover.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 22:54:09 +00:00
tadf
559c025a22
* ext/date/date_{core,parse}.c: moved nearly all core code from ext/date/lib.
...
* ext/date/lib/{date,date/format}.rb: removed nearly all code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21 12:25:03 +00:00
tadf
1348dd26b0
* ext/date/date_{parse,strptime}.c: introduced some macros.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 09:41:38 +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
e8d5304080
* ext/date/date_strptime.c (date__strptime_internal): do not
...
overwrite local variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-20 12:34:01 +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