Commit Graph

4978 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 2a76532fe8 Merge pull request #2060 from cremno/exc_inspect-dup-file
exc_inspect: dup file and check mesg only once
2014-04-14 12:22:18 +09:00
Yukihiro "Matz" Matsumoto 636addd645 Merge pull request #2059 from cremno/reduce-rstring_ptr-usage
reduce RSTRING_PTR usage
2014-04-14 12:20:18 +09:00
cremno 7a8ed0fa3a exc_inspect: dup file and check mesg only once 2014-04-14 03:52:17 +02:00
cremno 649081661a reduce RSTRING_PTR usage 2014-04-14 00:58:34 +02:00
Yukihiro "Matz" Matsumoto 65678f11b4 Merge pull request #2058 from cremno/mruby-time-more-portable
mruby-time: two small changes for portability
2014-04-14 07:10:39 +09:00
cremno 06a946abb2 mruby-time: fix check of mktime's return value
>If the calendar time cannot be represented, the function returns the
value (time_t)(-1).
http://www.iso-9899.info/n1256.html#7.23.2.3p3
2014-04-13 16:43:13 +02:00
cremno 8b5cbe2f33 mruby-time: remove unnecessary tzset call
The gem doesn't use the global variables and:
>Local timezone information is used as though localtime() calls tzset().
http://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html
2014-04-13 16:39:16 +02:00
Yukihiro "Matz" Matsumoto 382aed8a12 disable fragile bintest on travis-ci 2014-04-13 18:46:45 +09:00
Yukihiro "Matz" Matsumoto ac5091e211 use quadratic probing in khash.h 2014-04-13 18:30:22 +09:00
Yukihiro "Matz" Matsumoto 8d95e5a0de use kh_put2 in mrb_hash_set for performance improvement 2014-04-13 18:26:13 +09:00
Yukihiro "Matz" Matsumoto 6d6ae570cb add kh_push2() to check if entry is added 2014-04-13 18:20:37 +09:00
Yukihiro "Matz" Matsumoto 6c02935eb1 Merge branch 'master' of github.com:mruby/mruby 2014-04-13 17:34:27 +09:00
Yukihiro "Matz" Matsumoto b631e0f8d5 avoid function style parens after "return"; ref #2055 2014-04-13 17:34:06 +09:00
Yukihiro "Matz" Matsumoto 14514ab40d Merge branch 'Refactor-numeric.c' of https://github.com/suzukaze/mruby into suzukaze-Refactor-numeric.c 2014-04-13 17:31:42 +09:00
Yukihiro "Matz" Matsumoto 6708e4dd8b Merge pull request #2056 from suzukaze/fix-indent
Fix indent in bit_coerce
2014-04-13 17:24:28 +09:00
Jun Hiroe 70e93da724 Fix indent in bit_coerce 2014-04-13 03:11:58 +09:00
Jun Hiroe 996343caa2 Refactor fix_rshift 2014-04-13 00:41:22 +09:00
Jun Hiroe f8e1633c0d Refactor fix_lshift 2014-04-13 00:37:55 +09:00
Yukihiro "Matz" Matsumoto 12ce2054b0 disable bintest for now 2014-04-13 00:35:33 +09:00
Yukihiro "Matz" Matsumoto 45eccd1333 khash.h: use first found k_del 2014-04-13 00:32:23 +09:00
Yukihiro "Matz" Matsumoto a18f22e1b4 Merge pull request #2053 from suzukaze/refactor-fix_rev
Refactor fix_rev
2014-04-12 23:57:41 +09:00
Jun Hiroe 8496f84b9b Refactor fix_rev 2014-04-12 23:45:22 +09:00
Yukihiro "Matz" Matsumoto b046ded67d remove mirb regression test that fails on travis-ci only 2014-04-12 23:10:58 +09:00
Yukihiro "Matz" Matsumoto 17f4835141 Restore arena index since large struct may create many Proc objects; a patch from @take-cheeze; ref #2052 2014-04-12 21:45:01 +09:00
Yukihiro "Matz" Matsumoto 9e3fe6c53d Add test cases to 'large struct' test; a patch from @take-cheeze; ref #2052 2014-04-12 21:42:26 +09:00
Yukihiro "Matz" Matsumoto bff93ba93f simplify Fixnum#== 2014-04-12 16:38:28 +09:00
Yukihiro "Matz" Matsumoto 1ef77ab3ff simplify Numeric#eql? 2014-04-12 16:30:45 +09:00
Yukihiro "Matz" Matsumoto 8321ad3f56 remove num_equal() that potentially cause infinite loop 2014-04-12 16:08:47 +09:00
Yukihiro "Matz" Matsumoto f5e14afacc Merge pull request #2051 from suzukaze/add-array_bang_test
Add Array#uniq! test
2014-04-12 16:03:50 +09:00
Jun Hiroe c471cea4d7 Add Array#uniq_bang test 2014-04-12 15:57:14 +09:00
Yukihiro "Matz" Matsumoto 141593ee09 Merge pull request #2050 from suzukaze/refactor-array-test
Refactor array test to use assert_xxx method
2014-04-12 15:27:53 +09:00
Jun Hiroe 957a0d0439 Refactor array test to use assert_xxx method 2014-04-12 15:18:07 +09:00
Yukihiro "Matz" Matsumoto 63eddaa696 Merge branch 'master' of github.com:mruby/mruby 2014-04-12 14:28:52 +09:00
Yukihiro "Matz" Matsumoto 18ee842bea replace memcpy() with a magic number by two assignments as suggested by @cremno; close #2048 2014-04-12 14:28:43 +09:00
Yukihiro "Matz" Matsumoto fcd6e4a7a4 Merge pull request #2049 from ksss/str-dup
mrb_str_dup return shared string instead of new string
2014-04-12 14:09:35 +09:00
ksss d305a9dad7 mrb_str_dup use sheard string instead of new string 2014-04-12 04:44:56 +00:00
ksss e08998be8f Delegate irep string free to mrb_gc_free_str 2014-04-12 04:44:56 +00:00
Yukihiro "Matz" Matsumoto 3308177c4d retrieve values in Hash#each to handle modified keys 2014-04-12 10:42:02 +09:00
Yukihiro "Matz" Matsumoto 077c87bad6 Merge pull request #2047 from suzukaze/add-array-rotate_bang
Add Array#rotate!
2014-04-12 02:24:37 +09:00
Jun Hiroe 0898f40ccc Add Array#rotate_bang 2014-04-12 01:19:44 +09:00
Yukihiro "Matz" Matsumoto fe55b9dd1c Merge pull request #2045 from suzukaze/add-array.rotate
Array#rotate
2014-04-11 23:45:52 +09:00
Yukihiro "Matz" Matsumoto 92156b4619 Merge pull request #2044 from take-cheeze/const_argv
Qualify argv argument of API `const`.
2014-04-11 23:45:15 +09:00
Yukihiro "Matz" Matsumoto f53b2601a0 Merge pull request #2043 from ksss/khash-fix
Fix bug kh_put after kh_del report by @mirichi
2014-04-11 23:44:44 +09:00
Jun Hiroe 7ed47c1223 Array#rotate 2014-04-11 23:42:40 +09:00
ksss 91f68f77a8 kh_put return value should be found index 2014-04-11 21:13:43 +09:00
Takeshi Watanabe 824d3450c5 Qualify argv argument of API const. 2014-04-11 20:38:23 +09:00
ksss b6cfe0e001 Fix bug kh_put after kh_del report by @mirichi 2014-04-11 19:32:32 +09:00
Yukihiro "Matz" Matsumoto b20d711c4d Numeric#round takes optinal argument; close #2042 2014-04-11 14:22:48 +09:00
Yukihiro "Matz" Matsumoto 0887fd1586 Merge pull request #2040 from take-cheeze/yield_const_argv
Qualify mrb_yield_*'s argv `const`.
2014-04-11 01:24:11 +09:00
take_cheeze 9f24cd6d79 Qualify mrb_yield_*'s argv const. 2014-04-10 17:34:38 +09:00