Commit Graph

556 Commits

Author SHA1 Message Date
take_cheeze b38eb72d82 Add macro MRB_ENV_UNSHARE_STACK instead of assigning -1 directly. 2014-04-01 01:35:40 +09:00
take_cheeze 80534b6d14 Use MRB_ENV_STACK_LEN instead of accessing flags directly to get REnv's stack length. 2014-04-01 01:13:39 +09:00
Yukihiro "Matz" Matsumoto 2c3530ff10 Merge pull request #1985 from take-cheeze/cfunc_with_env
Add API to define cfunc Proc with userdata.
2014-03-31 11:45:45 +09:00
take_cheeze bf6b1dfe21 Add API to define cfunc Proc with userdata.
The APIs are defined in mruby-proc-ext so include it before using this API.
See mruby-proc-ext's test code for usage.
This should resolve #1794.
2014-03-31 10:01:17 +09:00
mattn ea68fe2f15 More tests for String#hex, String#oct as against 9434506035 2014-03-31 09:47:21 +09:00
Kazuki Tsujimoto 01a798362f Fix method name 2014-03-30 18:32:19 +09:00
Yukihiro "Matz" Matsumoto ebb29f0450 Merge branch 'master' of github.com:mruby/mruby 2014-03-30 08:29:20 +09:00
Yukihiro "Matz" Matsumoto 2277c374db revert #1974; ref #1979 2014-03-30 08:29:09 +09:00
Yukihiro "Matz" Matsumoto 8cdac8221d Merge pull request #1978 from suzukaze/add-array.fill
Add Array#fill
2014-03-29 20:59:08 +09:00
Jun Hiroe aa4a18e81e Add Array#fill 2014-03-29 20:22:07 +09:00
ksss 5a2014b8f8 Enumerator#initialize support duck-type 2014-03-29 09:24:00 +09:00
Jun Hiroe 110486debe Fix a typo 2014-03-29 00:16:12 +09:00
Yukihiro "Matz" Matsumoto 7d413b7043 Merge branch 'master' of github.com:mruby/mruby 2014-03-28 23:21:42 +09:00
Yukihiro "Matz" Matsumoto e8cb971bbb Merge pull request #1969 from suzukaze/add-array.fetch
Add Array#fetch
2014-03-28 23:21:22 +09:00
Yukihiro "Matz" Matsumoto 97f22c9516 Array#reverse_each should return Enumerator; ref #1968 2014-03-28 23:18:55 +09:00
Jun Hiroe de573e57a0 Add Array#fetch 2014-03-28 20:28:14 +09:00
Jun Hiroe ca1bc5290e Add to_enum unless block 2014-03-28 18:54:25 +09:00
ksss d3ea800cba Implement Object#tap 2014-03-27 19:36:07 +09:00
Yukihiro "Matz" Matsumoto 458c18cd4e Merge pull request #1962 from cubicdaiya/feature/string_oct
add String#oct
2014-03-27 14:36:42 +09:00
Yukihiro "Matz" Matsumoto b5cb8284ba Enumerable#zip to use enumerator if mruby-enumerator gem is available 2014-03-27 14:35:07 +09:00
Yukihiro "Matz" Matsumoto fc51781402 Enumerable#cycle to return enumerator 2014-03-27 14:34:21 +09:00
Yukihiro "Matz" Matsumoto 8250016136 use __svalue instead of ary2sv 2014-03-27 14:28:49 +09:00
Yukihiro "Matz" Matsumoto 69b4842a03 call to_a at the top of Enumerabl#zip; ref #1961 2014-03-27 14:25:33 +09:00
cubicdaiya 9c06f297ee add String#oct 2014-03-27 14:10:08 +09:00
Jun Hiroe c2ad8098a5 Support multiple values in Enumerable#zip 2014-03-27 14:09:29 +09:00
Jun Hiroe 68695d174c Add Enumerable#zip 2014-03-27 14:09:29 +09:00
Yukihiro "Matz" Matsumoto 5067e7b064 Merge pull request #1959 from mattn/string_hex
Implement String#hex
2014-03-27 12:15:19 +09:00
Yukihiro "Matz" Matsumoto 292abdb609 Merge pull request #1956 from cubicdaiya/issues/suitable_type5
Use size_t instead of int
2014-03-27 11:29:59 +09:00
mattn 0df65751c6 Implement String#hex 2014-03-27 11:28:29 +09:00
take_cheeze 889a2e0932 Use CRuby compatible key in ObjectSpace.count_objects . 2014-03-27 07:06:44 +09:00
cubicdaiya e157c63c18 use suitable type 2014-03-27 03:18:20 +09:00
take_cheeze f700346b44 Add tests for mruby-eval. 2014-03-26 12:59:17 +09:00
Yukihiro "Matz" Matsumoto 76098d5e43 Merge pull request #1945 from cubicdaiya/issues/suitable_type3
Use mrb_int instead of int
2014-03-25 23:54:16 +09:00
cubicdaiya bf3f45fc70 Use mrb_int instead of int 2014-03-25 22:33:53 +09:00
Yukihiro "Matz" Matsumoto b042b951ce Enumerable#find_index to support multiple values 2014-03-25 19:07:32 +09:00
Yukihiro "Matz" Matsumoto 648059575d Merge pull request #1939 from suzukaze/add-enum.find_index
Enumerable#find_index
2014-03-25 16:27:10 +09:00
Jun Hiroe 767ca3f76e Enumerable#find_index 2014-03-25 16:14:19 +09:00
cubicdaiya b7c3a7d181 Use mrb_int instead of int 2014-03-25 15:02:32 +09:00
Yukihiro "Matz" Matsumoto 896dc002ca use to_int to integer duck-type check 2014-03-25 12:29:29 +09:00
take_cheeze 8ae3c80fc3 Use mrb_int. 2014-03-25 11:08:54 +09:00
take_cheeze e5922aa896 Implement ObjectSpace.each_object . 2014-03-25 08:32:50 +09:00
Yukihiro "Matz" Matsumoto d7d54b6e69 Fix Enumerable#cycle; ref #1933
* add multi value support
* `each` method may not rewind the sequence so that `cycle` should save elements
2014-03-24 23:58:21 +09:00
Yukihiro "Matz" Matsumoto 915b158e89 Merge pull request #1933 from suzukaze/add-enum.cycle
Add Enumerable#cycle
2014-03-24 23:49:01 +09:00
Yukihiro "Matz" Matsumoto aa5920aaae Enumerable#reverse_each should not rely on mruby-array-ext gem 2014-03-24 23:44:23 +09:00
Jun Hiroe 381f126f1b Add Enumerable#cycle 2014-03-24 20:24:23 +09:00
Yukihiro "Matz" Matsumoto c326ab877e improve Enumerable#reverse_each to be efficient 2014-03-24 18:39:06 +09:00
Jun Hiroe 70bbe9a894 Add Enumerable#reverse_each 2014-03-24 18:03:37 +09:00
Yukihiro "Matz" Matsumoto 53d6df3fdb fix multiple value handling; ref #1931 2014-03-24 17:31:43 +09:00
Jun Hiroe 7e41e2ed0e Enumerable#each_with_object 2014-03-24 16:26:23 +09:00
Yukihiro "Matz" Matsumoto 75eed54bba move conditional out of loop 2014-03-24 00:24:02 +09:00