Yukihiro "Matz" Matsumoto
92825660ea
changed argument type of mrb_ary_modify(); ref #1554
2013-11-01 09:57:20 +09:00
Yukihiro "Matz" Matsumoto
af03812877
add mrb_ary_modify(mrb,a); you have to ensure mrb_value a to be an array; ref #1554
2013-10-31 23:34:08 +09:00
Yukihiro "Matz" Matsumoto
0fe744f919
Merge branch 'master' of github.com:mruby/mruby
2013-10-31 11:55:06 +09:00
Yukihiro "Matz" Matsumoto
a228841668
restore context status to RUNNING on automatic yield at the end of the block; fix #1555
2013-10-31 11:54:57 +09:00
fleuria
c64cae4d2d
fix 3a4c8e2
...
unfortunately the previouse commit is incorrect, which still concate the
keywords, but like this:
method='"end\nb"' (201)
2013-10-30 17:17:13 +08:00
Yukihiro "Matz" Matsumoto
abe6db9454
resolve conflict #1552
2013-10-30 17:28:32 +09:00
Yukihiro "Matz" Matsumoto
ad4ce2ba4e
Merge pull request #1551 from Fleurer/fix1550
...
fix #1550
2013-10-30 01:25:41 -07:00
Yukihiro "Matz" Matsumoto
888ddf1c84
type check class/module in mrb_get_args(); close #1477
2013-10-30 13:24:55 +09:00
h2so5
12e00f9238
implement Class.new with block
2013-10-30 12:52:26 +09:00
Yukihiro "Matz" Matsumoto
f8fea6931c
preserve only arguments on stack; fix #1527
2013-10-30 12:01:18 +09:00
fleuria
3a4c8e2d9f
fix #1550
...
emit a "\n" as the first token for parser instead of taking the
first character from the next file for lexer, to prevent mruby
"concatenate" two keywords between files
it should be regarded as a work around, for it can not resolve
this case:
$ cat a.rb
"
$ cat b.rb
b"
$ bin/mrbc -o- -v a.rb b.rb
mruby - Embeddable Ruby Copyright (c) 2010-2013 mruby
developers
NODE_SCOPE:
NODE_BEGIN:
NODE_STR "
b " len 4
irep 0 nregs=2 nlocals=1 pools=1 syms=0
000 OP_STRING R1 "\n\nb "
001 OP_STOP
thanks @bovi 's idea
2013-10-30 10:34:28 +08:00
h2so5
88758e3630
Uniquify the results of Object#methods
2013-10-27 04:04:06 +09:00
Yukihiro "Matz" Matsumoto
3a668241be
nil/false should not be implicitly converted to integers in mrb_get_args(); close #1529
2013-10-26 17:11:09 +09:00
Yukihiro "Matz" Matsumoto
51213bfc7d
mrb_Integer() should not convert strings to integers
2013-10-26 17:06:50 +09:00
Yukihiro "Matz" Matsumoto
fcebd1243b
Merge pull request #1530 from h2so5/args-explicit-conversion
...
Disable implicit integer conversion in mrb_get_args
2013-10-26 00:47:03 -07:00
fleuria
c647dff1b2
fix #1544
...
We have already reserved that register in codegen()'s case NODE_DEF, but
what we care about is actually the previous register. So what we need is
get that register by cursp() after pop(), then recover the reservation
by push().
2013-10-25 02:48:25 +08:00
fleuria
e648abf1c1
fix #1542
2013-10-23 15:39:52 +08:00
Yukihiro "Matz" Matsumoto
2607970ed9
move some methods to make floats and integers compatible [mruby special]
2013-10-22 16:18:11 +09:00
Yukihiro "Matz" Matsumoto
620f8b2721
implement some Numeric methods in Ruby
2013-10-22 15:59:41 +09:00
Yukihiro "Matz" Matsumoto
3ae0616710
implement Integer#succ in Ruby
2013-10-21 07:42:50 +09:00
Yukihiro "Matz" Matsumoto
9cb58a2252
Fixnum#succ may overflow
2013-10-20 00:43:39 +09:00
Yukihiro "Matz" Matsumoto
9b2f4c4423
move declarations to the beginning of blocks
2013-10-16 08:21:06 +09:00
Carson McDonald
11c4d81539
Set regs to stack on return of const_get calls before use
2013-10-15 07:33:41 -04:00
Yukihiro "Matz" Matsumoto
a7c9a71684
better error position display
2013-10-15 12:49:41 +09:00
Yukihiro "Matz" Matsumoto
8ecbff3f7b
define Module#const_missing
2013-10-15 11:12:22 +09:00
MATSUMOTO Ryosuke
d41425edd4
remove unused value for mrb_gv_remove
2013-10-10 00:29:20 +09:00
Yukihiro "Matz" Matsumoto
400ccecf0a
add mrb_gv_remove(); untested
2013-10-10 12:12:29 +09:00
Yukihiro "Matz" Matsumoto
9295f6ae49
simplify stack_clear()
2013-10-05 18:50:55 +09:00
h2so5
41de3d83e5
Disable implicit integer conversion in mrb_get_args
2013-10-05 10:56:27 +09:00
Daniel Bovensiepen
302e20333b
Improve Grammar of Documentation
2013-10-02 00:50:55 +08:00
fleuria
af5bec1fbc
fix #1519
...
the 128th element in an array literal would trigger a corner case on
splat mode checking, in which mruby will splat an that value into its
parent array. the issue was masked by the fact of ary_concat() also
accept non-array value:
1.9.3p286 :002> a = 1
1.9.3p286 :003> [*a]
=> [1]
the expected behaviour should be OP_ARYPUSH the 128th element, instead of
splat it by OP_ARYCAT.
2013-10-01 21:32:16 +08:00
Atsushi_Morimoto
86f0912bcc
fix build error when ENABLE_DEBUG is defined
2013-09-26 18:36:08 +09:00
Yukihiro "Matz" Matsumoto
11b0dda641
Merge pull request #1509 from FUKUZAWA-Tadashi/heredoc-bugfix
...
fix bugs on Heredocument
2013-09-25 18:02:00 -07:00
Yuichi Nishiwaki
0e4a7b2a03
eliminate use of traditional intern API (mrb_intern()) completely
2013-09-23 19:36:50 -07:00
FUKUZAWA-Tadashi
8d34e00102
fix bugs on Heredocument
...
- heredoc in array literal
- heredoc in args
- heredoc in expression expand
2013-09-22 18:14:40 +09:00
Yukihiro "Matz" Matsumoto
eeac4be4ce
Merge pull request #1507 from ktaobo/yield-self
...
Use self for the given proc in mrb_yield
2013-09-21 04:16:28 -07:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
Yukihiro "Matz" Matsumoto
97ce25fbd0
index to mrb_digitmap[] should always be positive
2013-09-21 17:15:58 +09:00
Keita Obo
862517d540
Use self for the given proc
2013-09-20 17:40:55 +09:00
Yukihiro "Matz" Matsumoto
d74887f582
incomplete renaming node->filename -> node->filename_index
2013-09-20 15:41:59 +09:00
Yukihiro "Matz" Matsumoto
4c1c7166bf
remove unreferenced local variables caused by mrb_assert()
2013-09-20 06:11:07 +09:00
Yukihiro "Matz" Matsumoto
12183fa250
rename node->filename to node->filename_index
2013-09-20 06:09:41 +09:00
Yukihiro "Matz" Matsumoto
58b1c0883b
refactor genop_peep(); ref #1505
2013-09-20 06:08:01 +09:00
Keita Obo
c4e5a8b167
Fix self value in a block is changed with return value for Fixnum, nil, instance variable.
...
Fix #1504
2013-09-18 00:57:23 +09:00
Keita Obo
0bce3a36d2
Fixed self value in a block is changed with return value
...
fix #1504
2013-09-18 00:20:13 +09:00
Akito Mochizuki
b840a6a813
Fix checking return value of fread()
2013-09-10 14:50:18 +09:00
take_cheeze
af73a740cd
check file debug info is appended correctly
2013-09-07 20:25:53 +09:00
take_cheeze
8c738e348f
remove unnecessary scope filename update
2013-09-07 20:23:18 +09:00
take_cheeze
4308932231
update filename before appending file debug info
2013-09-07 20:22:16 +09:00
take_cheeze
10fecc2375
fix line getting handler of line_ary
2013-09-07 20:17:39 +09:00