Yukihiro "Matz" Matsumoto
bfd2a539ed
add new function mrb_toplevel_run to prevent running through C function boudaries on exceptions; close #1942
2014-03-26 01:09:09 +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
Yukihiro "Matz" Matsumoto
86e69334ba
Merge pull request #1938 from cubicdaiya/issues/suitable_type2
...
Use mrb_int instead of int
2014-03-25 16:22:29 +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
Yukihiro "Matz" Matsumoto
1e73181da9
Merge pull request #1937 from cubicdaiya/issues/mrb_int
...
Use mrb_int instead of int
2014-03-25 11:51:23 +09:00
Yukihiro "Matz" Matsumoto
a043eb63ca
Merge branch 'master' of github.com:mruby/mruby
2014-03-25 11:50:42 +09:00
Yukihiro "Matz" Matsumoto
b4dd3564ef
REnv uses obj->c as env link; no super
2014-03-25 11:50:11 +09:00
cubicdaiya
6e648d6382
Use mrb_int instead of int
2014-03-25 11:36:47 +09:00
Yukihiro "Matz" Matsumoto
650651e909
Merge pull request #1936 from ksss/pool-capa
...
mrb_str_pool add string capa
2014-03-25 11:27:07 +09:00
take_cheeze
8ae3c80fc3
Use mrb_int.
2014-03-25 11:08:54 +09:00
ksss
ebf6da7e30
mrb_str_pool add string capa
2014-03-25 08:44:59 +09:00
take_cheeze
e5922aa896
Implement ObjectSpace.each_object .
2014-03-25 08:32:50 +09:00
Yukihiro "Matz" Matsumoto
13f0f597c8
Merge pull request #1934 from ksss/safe-name
...
src/string.c RESIZE_CAPA use safe name variables
2014-03-25 00:01:57 +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
ksss
e6e462c07d
src/string.c RESIZE_CAPA use safe name variables
...
This has a possibility of naming conflicts
2014-03-24 23:05:44 +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
Yukihiro "Matz" Matsumoto
23610d5489
Merge pull request #1932 from suzukaze/add-enum.reverse_each
...
Add Enumerable#reverse_each
2014-03-24 18:31:20 +09:00
Jun Hiroe
70bbe9a894
Add Enumerable#reverse_each
2014-03-24 18:03:37 +09:00
Yukihiro "Matz" Matsumoto
2ce232144b
Merge pull request #1930 from chasonr/unicode-escape
...
Implement \u notation for strings and regexes.
2014-03-24 17:35:32 +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
chasonr
8162295ba2
Small correction to the test identification.
2014-03-23 22:31:49 -04:00
chasonr
509cbc51eb
Implement \u notation for strings and regexes.
...
This change adds the \u notation for double quoted strings and regular
expressions. It does not implement the \u notation for character literals.
Both the \uNNNN and \u{NNNN} notations are supported.
\uNNNN is implemented by emitting equivalent UTF-8; that is, "\u4000" is
equivalent to "\xE4\x80\x80".
Unlike CRuby, the \u{NNNN} notation allows only one character per pair of
braces; I see no way to lift this restriction without remodeling the parser.
2014-03-23 21:46:00 -04:00
Yukihiro "Matz" Matsumoto
b8d7f1ce7a
Merge pull request #1928 from ksss/fix-typo
...
Hash#__update fix typo
2014-03-24 09:17:42 +09:00
Yukihiro "Matz" Matsumoto
4592862b0d
remove unnecessary operator method call; ref #1927
2014-03-24 09:17:09 +09:00
Yukihiro "Matz" Matsumoto
e2da53c60d
Merge pull request #1927 from take-cheeze/count_crash
...
Count crashed tests in total tests count.
2014-03-24 09:15:33 +09:00
ksss
2981b4e3d9
Hash#__update fix typo
...
It's called by create Hash of over 126 keys
2014-03-24 08:43:44 +09:00
take_cheeze
db5d78e229
Count crashed tests in total tests count.
2014-03-24 03:22:17 +09:00
Yukihiro "Matz" Matsumoto
75eed54bba
move conditional out of loop
2014-03-24 00:24:02 +09:00
Yukihiro "Matz" Matsumoto
d05635e252
Enumerable#one? to prune iteration when count > 1; ref #1926
2014-03-24 00:13:37 +09:00
Yukihiro "Matz" Matsumoto
2a771760be
Merge pull request #1926 from suzukaze/add-enum.one
...
Add Enumerable#one?
2014-03-24 00:08:01 +09:00
Jun Hiroe
919ca8f42b
Add Enumerable#one?
2014-03-23 23:47:03 +09:00
Yukihiro "Matz" Matsumoto
e2bab8c71b
Merge pull request #1925 from ksss/hash-reject
...
Hash#{reject,reject!} support return Enumerator
2014-03-23 22:54:18 +09:00
ksss
d9068f0583
Hash#{reject,reject!} fix yield value
2014-03-23 20:13:49 +09:00
ksss
d8fc05fcb9
Hash#{reject,reject!} support return Enumerator
2014-03-23 20:11:20 +09:00
ksss
b0f10b5c3d
mrb_str_pool use embed-string
2014-03-23 08:04:54 +00:00
Yukihiro "Matz" Matsumoto
81e0c30cc5
Merge pull request #1921 from cubicdaiya/issues/not_use_old_macro
...
Use MRB_ARGS_REST() instead of ARGS_REST()
2014-03-23 16:36:47 +09:00
Yukihiro "Matz" Matsumoto
9beef5fdb0
Merge pull request #1923 from ksss/hash-enumerator-select
...
Hash#{select,select!} support return Enumerator
2014-03-23 16:36:19 +09:00
Yukihiro "Matz" Matsumoto
85d20127a1
Merge pull request #1922 from suzukaze/add-enum.none
...
Add Enumerable.none?
2014-03-23 16:35:55 +09:00
ksss
d09e4475bf
Hash#{select,select!} fix yield value
2014-03-23 13:31:26 +09:00
ksss
5e4626c9ba
Hash#{select,select!} support return Enumerator
...
if non block given
2014-03-23 13:31:26 +09:00
Jun Hiroe
d8d47b80c3
Support multiple values in Enumerable#none?
2014-03-23 13:06:18 +09:00
Jun Hiroe
1f709c1ef0
Add Enumerable#none?
2014-03-23 12:58:12 +09:00
cubicdaiya
8f8c174fc2
Use MRB_ARGS_REST() instead of ARGS_REST()
...
According to include/mruby.h,
/* compatibility macros; will be removed */
#define ARGS_REST() MRB_ARGS_REST()
2014-03-23 12:48:34 +09:00