Commit Graph

2522 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 4e357a4963 protect argument array from GC in OP_ENTER 2014-05-13 16:01:30 +09:00
Yukihiro "Matz" Matsumoto b4657182da convert &arg using to_proc; fix #2242 2014-05-13 09:13:33 +09:00
yui-knk ac58d1bdf6 Rename e to exception, scr_e to script_error. 2014-05-12 13:50:49 +09:00
yui-knk e07099d81b Add scr_e, to not reassign to e. 2014-05-11 19:28:34 +09:00
Yukihiro "Matz" Matsumoto 9f7651fa65 Merge pull request #2234 from suzukaze/refactor
Refactor functions in kernel.c
2014-05-11 17:25:50 +09:00
Jun Hiroe d973bcff0e Refactor mrb_equal_m() 2014-05-11 03:58:07 +09:00
Jun Hiroe 50d9d974e0 Refacotr mrb_obj_not_equal_m() 2014-05-11 03:55:51 +09:00
Jun Hiroe 2f1b4eb144 Refactor mrb_obj_equal_m() 2014-05-11 03:54:07 +09:00
Jun Hiroe 1eb6c1e963 Fix indents 2014-05-11 03:48:32 +09:00
ksss 7dbfe19fc6 OP_ENTER fix segmentation fault 2014-05-10 09:43:32 +09:00
take_cheeze d0c0beb880 Move __method__ to mruby-kernel-ext since it's not ISO method. 2014-05-09 22:44:10 +09:00
ksss 06a67df950 OP_ENTER clean block object in register 2014-05-09 08:04:36 +09:00
Yukihiro "Matz" Matsumoto 91cc8949e8 use mrb_field_write_barrier_value() in hash.c 2014-05-08 11:09:08 +09:00
Yukihiro "Matz" Matsumoto b34e24b07d use mrb_field_write_barrier_value() in array.c 2014-05-08 11:06:41 +09:00
yui-knk eafc4dd0af Make Array#[]= raise IndexError.
If second param is negative, Array#[] raise IndexError.
2014-05-08 00:17:17 +09:00
Yukihiro "Matz" Matsumoto ad2e6d0c7a Merge pull request #2204 from take-cheeze/kernel_fail
Implement Kernel.fail and Kernel#fail .
2014-05-07 08:47:01 +09:00
take_cheeze 208bafba2d Move Kernel#fail definition to mruby-kernel-ext mrbgem. 2014-05-07 00:01:30 +09:00
ksss 0c3226db04 OP_ENTER fix variable assignment 2014-05-06 23:30:02 +09:00
take_cheeze 98a610831a Implement Kernel.fail and Kernel#fail . 2014-05-06 21:29:35 +09:00
Akira Kuroda c445c6c7da refactor fix_mod
fix unreachable condition
use b
2014-05-05 23:43:37 +09:00
Yukihiro "Matz" Matsumoto 260d38d5ee Merge pull request #2200 from cremno/add-functions-for-safe-addition-and-subtraction
Add functions for safe addition and subtraction
2014-05-05 22:54:55 +09:00
Yukihiro "Matz" Matsumoto f0b0a2dd62 Merge pull request #2199 from cremno/use-memmove
fix memcpy-param-overlap
2014-05-05 22:47:39 +09:00
cremno cf8df563c0 add function for checked mrb_int subtraction 2014-05-05 15:28:26 +02:00
cremno 0f39304265 add function for checked mrb_int addition 2014-05-05 15:24:22 +02:00
Yukihiro "Matz" Matsumoto e620c666d9 Merge pull request #2196 from suzukaze/refactor-load.c
Refactor read_lineno_record_1() in load.c
2014-05-05 21:08:48 +09:00
Yukihiro "Matz" Matsumoto d44035f26f Merge pull request #2194 from suzukaze/refactor-string.c2
Refactor string.c
2014-05-05 21:08:08 +09:00
Yukihiro "Matz" Matsumoto 1ce9060fa9 Merge pull request #2195 from suzukaze/fix-indent-string.c
Fix indents in mrb_str_inspect() of string.c
2014-05-05 20:22:00 +09:00
Jun Hiroe 37d2690d0f Refactor read_lineno_record_1() in load.c 2014-05-05 13:37:14 +09:00
Jun Hiroe e8afac3ed7 Fix indents in mrb_str_inspect() of string.c 2014-05-05 13:04:58 +09:00
Jun Hiroe 06e56a5004 Refactor mrb_str_hash() 2014-05-05 12:59:42 +09:00
Jun Hiroe b9dc9ccd14 Refacotr mrb_str_substr() 2014-05-05 12:56:20 +09:00
Jun Hiroe fdde840d06 Refactor mrb_str_upcase_bang 2014-05-05 12:51:04 +09:00
Jun Hiroe 2f8de5b32b Refactor mrb_str_split_m() 2014-05-05 12:49:08 +09:00
Jun Hiroe e340babc1e Refactor mrb_str_downcase_bang() 2014-05-05 12:42:57 +09:00
Jun Hiroe c6551e03e0 Refactor mrb_str_capitalize_bang() 2014-05-05 12:40:15 +09:00
cremno 8876c059a7 fix memcpy-param-overlap 2014-05-05 04:07:54 +02:00
sasaki takeru b59ac841af Don't reset ridx,eidx. And fix for #1949 2014-05-04 22:39:51 +09:00
Yukihiro "Matz" Matsumoto e9e4c13390 Merge pull request #2161 from nobu/embedded_document
Embedded document
2014-05-04 20:29:48 +09:00
yui-knk 73c370ae52 Fix typo. 2014-05-04 16:43:13 +09:00
Yukihiro "Matz" Matsumoto 0fe62ddcd3 Merge pull request #2183 from yui-knk/fix-error-comment
Fix comment of exc_inspect (and adjust spaces)
2014-05-04 12:29:19 +09:00
yui-knk cf80e7fe21 Fix comment of exc_inspect (and adjust spaces) 2014-05-04 10:22:27 +09:00
cremno 86cfcd20d6 simply use isfinite 2014-05-04 01:50:17 +02:00
Yukihiro "Matz" Matsumoto f977772359 new macro mrb_int(mrb,x) to retrieve mrb_int from mrb_value with conversion if needed 2014-05-03 23:45:40 +09:00
Yukihiro "Matz" Matsumoto 1519e441a0 use proper length for mrb_get_values_at()
separate mrb_range_beg_len() into two: the one truncates range into the
sequence size, and the one does not.  #values_at uses the latter.
2014-05-03 23:35:24 +09:00
Yukihiro "Matz" Matsumoto 206c96e4a7 reindent else 2014-05-03 21:20:14 +09:00
Yukihiro "Matz" Matsumoto 0c294af091 convert range edges to integers 2014-05-03 21:19:06 +09:00
Yukihiro "Matz" Matsumoto bd681269f4 do not raise error in mrb_range_beg_len() 2014-05-03 21:18:25 +09:00
Yukihiro "Matz" Matsumoto 342f124702 raise TypeError instead of ArgumentError when argument of wrong type given to the values_at 2014-05-03 21:17:22 +09:00
Yukihiro "Matz" Matsumoto c3aa436e2c Merge branch 'values_at' of https://github.com/take-cheeze/mruby into take-cheeze-values_at 2014-05-03 21:13:03 +09:00
Yukihiro "Matz" Matsumoto c2bd0d33ea remove each from range.c 2014-05-03 12:11:17 +09:00