Yukihiro "Matz" Matsumoto
2ca5bed901
make cioff in struct REnv from int to ptrdiff_t; close #2149
2014-04-29 12:25:15 +09:00
Yukihiro "Matz" Matsumoto
48e82d7c77
cast intptr_t to mrb_int to pacify compiler warning; close #2148
2014-04-29 12:21:49 +09:00
Yukihiro "Matz" Matsumoto
88c0d0cf9a
clear all stack everytime to prevent GC crash; ref #2109
2014-04-29 10:38:38 +09:00
Yukihiro "Matz" Matsumoto
29f6cdcd4d
stack may be uncleared
2014-04-29 10:36:30 +09:00
Yukihiro "Matz" Matsumoto
57e6a783bc
fiber context may be NULL
2014-04-29 10:32:49 +09:00
Yukihiro "Matz" Matsumoto
f8c465dd44
clear ci->proc to prevent GC crash
2014-04-29 10:32:05 +09:00
Yukihiro "Matz" Matsumoto
220f3124b9
should care about the case that given arguments are less then mandatory formal arguments and optional arguments exist; close #2144
2014-04-28 13:34:14 +09:00
Yukihiro "Matz" Matsumoto
b1ec92f7cd
fix OP_BLKPUSH dump format
2014-04-28 11:59:46 +09:00
Yukihiro "Matz" Matsumoto
1a44b8817b
Merge pull request #2143 from mirichi/test
...
add post mandatory argument test
2014-04-28 10:44:31 +09:00
mirichi
d97ab343bd
add post mandatory argument test
2014-04-28 09:37:45 +09:00
Yukihiro "Matz" Matsumoto
2e59cd43de
prevent printf warning
2014-04-28 08:30:57 +09:00
Yukihiro "Matz" Matsumoto
67fed3d7fb
enable bintest on TravisCI to see how it works
2014-04-28 08:26:25 +09:00
Yukihiro "Matz" Matsumoto
b53e69f18d
better codedump formatting
2014-04-28 08:02:47 +09:00
Yukihiro "Matz" Matsumoto
3244ddf0c3
presreve local variables names in irep->lv
2014-04-28 07:29:37 +09:00
Yukihiro "Matz" Matsumoto
c235d8f08d
Merge pull request #2142 from cremno/rename-mrb_str_buf_append
...
rename `mrb_str_buf_append` to `mrb_str_cat_str`
2014-04-28 05:57:01 +09:00
Yukihiro "Matz" Matsumoto
e0fe91bee5
Merge pull request #2141 from kyab/fix_msvc_warning_numeric.c
...
Fix MSVC warnings for numeric.c
2014-04-28 05:54:43 +09:00
Yukihiro "Matz" Matsumoto
b0fd5229fc
Merge pull request #2139 from suzukaze/add-array.select_bang
...
Add Array#select_bang
2014-04-28 05:53:52 +09:00
Yukihiro "Matz" Matsumoto
e1f4e021de
Merge pull request #2138 from take-cheeze/struct_to_a
...
Implement Struct#to_a and Struct#values .
2014-04-28 05:52:37 +09:00
cremno
91c22f32f4
rename mrb_str_buf_append to mrb_str_cat_str
...
The new name is better and less confusing, because:
- `mrb_str_append` calls `mrb_str_to_str` and this function doesn't
- `mrb_str_buf_append` _is_ `mrb_str_cat` for `mrb_value` strings
2014-04-27 22:33:22 +02:00
kyab
10cc4be32d
Fix MSVC warnings for numeric.c
2014-04-28 03:07:28 +09:00
Jun Hiroe
cdef46e3d9
Add Array#select_bang
2014-04-27 23:34:24 +09:00
take_cheeze
e2f6a905bc
Implement Struct#to_a and Struct#values .
2014-04-27 23:16:32 +09:00
Yukihiro "Matz" Matsumoto
bbc237044d
NODE_SUPER should preserve stack region for block; ref #2136
2014-04-27 09:22:35 +09:00
Yukihiro "Matz" Matsumoto
26758d89bd
NODE_DEF should preserve stack region for lambda; ref #2136
2014-04-27 09:05:23 +09:00
Yukihiro "Matz" Matsumoto
354e6fdce5
Merge pull request #2136 from mirichi/bug-fix2
...
area of implicit nil is not enough to nregs
2014-04-27 08:24:23 +09:00
Yukihiro "Matz" Matsumoto
7e175d8130
add Hash#fetch; close #2134
2014-04-27 03:03:27 +09:00
Yukihiro "Matz" Matsumoto
855a3f5991
re-apply 3644f1b since we have fixed GC bug
2014-04-27 02:52:04 +09:00
Yukihiro "Matz" Matsumoto
4e790fc1b6
forgot to remove abort()
2014-04-27 02:50:41 +09:00
Yukihiro "Matz" Matsumoto
4bfd25d405
mark may be missed when eval() is called
2014-04-27 02:48:11 +09:00
Yukihiro "Matz" Matsumoto
3d87596a71
Merge pull request #2137 from take-cheeze/module_function_eval
...
Define eval as module function.
2014-04-27 00:14:32 +09:00
Yukihiro "Matz" Matsumoto
33320e282a
Merge pull request #2135 from mirichi/bug-fix
...
correct to compare MRB_STACK_GROWTH.
2014-04-27 00:06:09 +09:00
Yukihiro "Matz" Matsumoto
a5161e76ed
Class.constants to take optional argument; close #2133
2014-04-26 23:47:55 +09:00
take_cheeze
649ef30347
Define eval as module function.
2014-04-26 22:44:31 +09:00
mirichi
71395aba52
area of implicit nil is not enough to nregs
2014-04-26 20:20:23 +09:00
mirichi
ad60f81032
The correct is to compare the MRB_STACK_GROWTH.
2014-04-26 19:37:53 +09:00
Yukihiro "Matz" Matsumoto
5bf327497f
bit more peephole optimization for NODE_LVAR
2014-04-26 17:19:52 +09:00
Yukihiro "Matz" Matsumoto
773097d3a8
Merge branch 'master' of github.com:mruby/mruby
2014-04-26 12:08:11 +09:00
Yukihiro "Matz" Matsumoto
e76be4e2ab
check length before calling stack_copy(); based on a patch from @mirich; close #2129
2014-04-26 12:07:51 +09:00
Yukihiro "Matz" Matsumoto
55251cb14f
Merge pull request #2130 from suzukaze/refactor-numeric.c
...
Refactor numeric.c
2014-04-26 12:03:38 +09:00
Jun Hiroe
68ce209f7e
Refactor fix_xor()
2014-04-26 11:52:45 +09:00
Jun Hiroe
8916381dba
Refactor fix_or()
2014-04-26 11:52:45 +09:00
Jun Hiroe
c2d46a43b2
Refactor fix_and()
2014-04-26 11:52:45 +09:00
Jun Hiroe
1bf4633ced
Refactor flo_finite_p()
2014-04-26 11:52:45 +09:00
Yukihiro "Matz" Matsumoto
b1b3ee4547
revert 3644f1b temporary since it caused SEGV only on Travis-CI
2014-04-26 11:06:53 +09:00
Yukihiro "Matz" Matsumoto
0584551eb9
mruby-string-utf8: use mrb_int instead of size_t
2014-04-26 10:43:32 +09:00
Yukihiro "Matz" Matsumoto
5bbbfd8ead
Merge pull request #2128 from mirichi/refactoring-comparable
...
Refactoring Comparable
2014-04-26 09:53:33 +09:00
mirichi
3644f1ba36
Refactoring Comparable
2014-04-26 09:37:37 +09:00
Yukihiro "Matz" Matsumoto
2202e412ea
Merge branch 'master' of github.com:mruby/mruby
2014-04-26 01:53:15 +09:00
Yukihiro "Matz" Matsumoto
44ec41a772
should use plain int for index, since i may be printed using %d; close #2127
2014-04-26 01:52:30 +09:00
Yukihiro "Matz" Matsumoto
b8e5cb71fe
Merge pull request #2125 from suzukaze/add-array-keep_if
...
Add Array#keep_if
2014-04-26 01:33:04 +09:00