Masaki Muranaka
d5c4439013
Avoid memcpy() on copying structures.
2012-10-21 00:49:39 +09:00
Yukihiro Matsumoto
89a18e4f22
unexpect break/next/redo/retry should raise LocalJumpError
2012-10-20 03:59:13 +09:00
Yukihiro Matsumoto
9bb6f0b331
pool string need not to convert
2012-10-20 03:32:02 +09:00
Yukihiro Matsumoto
da637cac4a
should handle break in rescue
2012-10-20 03:30:58 +09:00
Yukihiro Matsumoto
b4f6f964b4
Merge branch 'master' of github.com:mruby/mruby
2012-10-19 23:19:10 +09:00
Yukihiro Matsumoto
400a9d8101
shuld handle return in rescue; close #497
2012-10-19 23:18:57 +09:00
Yukihiro Matsumoto
2f5f853111
shuld handle return in rescue; close #487
2012-10-19 23:17:49 +09:00
Yukihiro Matsumoto
651e8b7e9c
empty NODE_BEGIN should push nil; close #496
2012-10-19 23:04:20 +09:00
Yukihiro Matsumoto
4855004711
Merge branch 'master' of github.com:mruby/mruby
2012-10-19 21:45:14 +09:00
Yukihiro Matsumoto
3efbea3fab
wrong check of argument numbers
2012-10-19 21:44:58 +09:00
Yukihiro "Matz" Matsumoto
eaf26aa57e
Merge pull request #495 from iij/pr-hexstr-load-broken
...
Fix wrong storage of data when hex-style string is loaded
2012-10-19 05:31:58 -07:00
Yukihiro Matsumoto
17278e8ca6
add symbol style to Enumerable#inject
2012-10-19 21:16:18 +09:00
Yukihiro Matsumoto
fd949663d2
Enumerable#inject should handle empty enumerable; http://www.tbn.co.jp/blog/?p=813
2012-10-19 21:09:34 +09:00
Yukihiro Matsumoto
ac3b1c4c5a
lshift must not assume sizeof(long) >= sizeof(mrb_int)
2012-10-19 01:50:40 +09:00
Takashi Sogabe
c2a6ff7af8
Fix wrong storage of data when hex-style string is loaded
...
This patch fixes corruption of data when hex-style string is
loaded.
I saw following phenomenon in an ubuntu/amd64 environment.
Test code:
str = "\x0\x1\x2\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10"
p str[-1] == "\0x10"
Output(binary program with mrbc -B):
false
Output(script with mruby):
true
2012-10-18 17:35:56 +09:00
Yukihiro Matsumoto
19cd9c6e2e
print error message on mrb load error
2012-10-18 06:05:59 +09:00
Yukihiro Matsumoto
ace6fe76e4
Merge branch 'master' of github.com:mruby/mruby
2012-10-17 22:26:18 +09:00
Yukihiro "Matz" Matsumoto
73e9c78bc4
Merge pull request #493 from iij/pr-return-breaks-sp
...
Fix disappearance of a local variable when return statement is called
2012-10-17 06:25:59 -07:00
Yukihiro "Matz" Matsumoto
2e4bf53128
Merge pull request #494 from monaka/pr-fix-degrade-by-issue-490
...
Fix degrades by #490 . (Some changes are reverted.)
2012-10-17 06:23:21 -07:00
Masaki Muranaka
e84dfd4337
Fix degrades by #490 . (Some changes are reverted.)
2012-10-17 21:32:50 +09:00
Takashi Sogabe
8d6f1b04a1
Fix disappearance of a local variable when return statement is called
...
Commit of #18dd60c causes disappearance of a local variable
if return statement is called without arguments.
This patch fixes incorrect value of stack pointer.
test program:
def test_return_cond
return if nil
obj = 123
p obj
p obj.class
end
test_return_cond
output(commit #18dd60c):
main
Object
output(includes this patch):
123
Fixnum
2012-10-17 12:55:50 +09:00
Yukihiro Matsumoto
8d977981b7
no memory copy for call_iseq
2012-10-17 05:59:29 +09:00
Yukihiro Matsumoto
70abbb423a
should not free() static iseq from cdump
2012-10-17 02:57:40 +09:00
Yukihiro Matsumoto
265fa03d2c
defining mrb_int also requires MRB_INT_{MAX,MIN} to be defined
2012-10-17 00:40:23 +09:00
Yukihiro Matsumoto
18dd60c162
remove wasting stack space
2012-10-16 23:47:16 +09:00
Yukihiro Matsumoto
8271863fe5
Kernel#block_given? always gave false
2012-10-16 23:46:34 +09:00
Yukihiro Matsumoto
27f002496f
true/false should print proper inspect string
2012-10-16 22:33:34 +09:00
Yukihiro Matsumoto
f2da76b6ef
register number adjustment for case statement was wrong; close #487
2012-10-16 22:24:40 +09:00
Yukihiro Matsumoto
1bf70ea255
1.divmod(0) should not crash, but return [Inf,NaN] (CRuby incompat); close #492
2012-10-16 21:18:28 +09:00
Yukihiro Matsumoto
e7ff2bf72e
Merge branch 'master' of github.com:mruby/mruby
2012-10-16 20:54:16 +09:00
Yukihiro Matsumoto
76f28241f1
"mrbc -" should take input from stdin; close #489
2012-10-16 20:54:06 +09:00
Yukihiro "Matz" Matsumoto
019fd70f1b
Merge pull request #490 from monaka/pr-avoid-memcpy-on-copying-structures
...
Avoid memcpy() on copying structure.
2012-10-16 04:32:16 -07:00
Yukihiro "Matz" Matsumoto
e2b95158a0
Merge pull request #491 from monaka/pr-more-strict-warning-checks
...
Add more strict warning checks
2012-10-16 04:31:20 -07:00
Masaki Muranaka
93b56e70ee
Avoid memcpy() on copying structure.
2012-10-15 13:56:45 +09:00
Masaki Muranaka
e8abf03ae5
Avoid memcpy() on copying structure.
2012-10-15 13:53:44 +09:00
Masaki Muranaka
5444c3bbb3
Add more strict warning checks
2012-10-15 13:25:11 +09:00
Masaki Muranaka
170d5e7181
Avoid memcpy() on copying structure.
2012-10-15 13:15:29 +09:00
Yukihiro "Matz" Matsumoto
4dcd7cdacd
Merge pull request #485 from beoran/bdm_extend_main_crashes_fix
...
Bugfix for crash if main was extended with a module.
2012-10-09 23:45:51 -07:00
Beoran
8949e3c7fb
Bugfix for crash if main was extended with a module.
2012-10-09 21:45:41 +02:00
Yukihiro Matsumoto
cf2bd3469a
preserve script file name
2012-10-05 10:55:29 +09:00
Yukihiro Matsumoto
70916d030c
script file name should not be in ARGV
2012-10-04 14:56:24 +09:00
Yukihiro Matsumoto
0d9b91083b
specify know capacity of an array
2012-10-04 14:39:44 +09:00
Yukihiro Matsumoto
2830624410
fix indent of mrb_exc_raise
2012-10-04 14:20:33 +09:00
Yukihiro Matsumoto
3a6b6518d6
should handle exception from Ruby implemented method called from funcall; close #484
2012-10-04 11:30:28 +09:00
Yukihiro "Matz" Matsumoto
72bcf7ee01
Merge pull request #483 from akuroda/array_test
...
add test cases for Array
2012-09-30 06:10:36 -07:00
Akira Kuroda
5c2afd239c
add test case for Array#unshift, <=>, and *
2012-09-30 17:59:45 +09:00
Yukihiro "Matz" Matsumoto
be8f3909f7
Merge pull request #481 from monaka/pr-tiny-cleanup-20120929
...
Tiny clean-up
2012-09-29 16:43:29 -07:00
Yukihiro Matsumoto
a3d7960a44
wrong termination of mrb_run on exception; close #480
2012-09-30 08:42:10 +09:00
Yukihiro Matsumoto
af8f039b90
mruby should exit with 0 on success
2012-09-30 08:41:36 +09:00
Masaki Muranaka
cd58b12d84
Remove extern mrb_top_self. It is declared in mruby.h.
2012-09-29 17:02:36 +09:00