Yukihiro Matsumoto
3894177233
generate optimized OP_DIV instruction
2012-06-13 15:37:11 +09:00
Yukihiro Matsumoto
c5536326a1
replace * and == by optimization instructions OP_MUL and OP_EQ respectively; close #264
2012-06-12 23:47:23 +09:00
Yukihiro Matsumoto
3403f19cb5
should handle splat in super arguments
2012-06-12 12:14:59 +09:00
Yukihiro Matsumoto
13a542d48d
zsuper should respect block given; close #185
2012-06-11 15:55:04 +09:00
Yukihiro Matsumoto
f24a52b04a
remove mrb_open NULL check for small test programs. They are only for proof-on-concept test, not production code. Adding precise checks are not needed for those code
2012-06-04 01:46:04 +09:00
Jon
2fff59dc86
Check mrb_open return value for NULL
2012-06-03 11:11:35 -04:00
Kazuki Tsujimoto
0629cf21ba
A rescue clause with no parameter list rescues only StandardErrors
2012-06-03 17:48:02 +09:00
Masaki Muranaka
703e97d5b3
Use "if" instead "switch".
2012-06-02 08:43:04 +09:00
Yukihiro Matsumoto
a0b30fc01f
OP_RETURN operand should be stack position of the new scope, not the current scope
2012-06-01 23:56:17 +09:00
Yukihiro Matsumoto
d19cdfd2b1
allow ||= and &&=
2012-05-31 15:54:09 +09:00
Yukihiro Matsumoto
f6d539eabd
clear arena_idx after exiting scope; close #195
2012-05-26 11:18:16 +09:00
Yukihiro Matsumoto
c2a084dff9
wrong number of arguments for self-assignments
2012-05-24 09:24:11 +09:00
Mitchell Blank Jr
d1cd10421f
change example code to do mrb_close()
...
I was hoping this would cause valgrind to complain less, but there is still
a lot of memory leaked (does mrb_close() actually free all of the managed
blocks?) Anyway this helps somewhat and is good practice
2012-05-22 01:03:54 -07:00
Mitchell Blank Jr
3471e2b134
C++ compilability - don't define types inside others
...
The following is legal code in both C and C++:
struct foo {
struct bar { int a } x;
int y;
};
...however in C++ it defines a type called "foo::bar" instead of "bar".
Just avoid this construct altogether
2012-05-19 22:40:57 -07:00
Yukihiro Matsumoto
aeca23166b
remove dependency to node.h and pool.h
2012-05-19 15:52:47 +09:00
Yukihiro Matsumoto
219162117a
move compile.h to mruby/compile.h
2012-05-18 12:54:23 +09:00
Yukihiro Matsumoto
490fa45298
add cast to remove warning; close #154
2012-05-17 16:38:37 +09:00
Yukihiro Matsumoto
103ef78e59
no SEGV for nth_ref & back_ref; close #152
2012-05-17 13:21:01 +09:00
Yukihiro Matsumoto
878593430a
mrb_run to return last evaluated value
2012-05-10 18:20:49 +09:00
Kazuki Tsujimoto
ef8fe627fb
Remove debug message
2012-05-05 16:32:25 +09:00
roco
4ec6d41f16
rm whitespace
2012-04-30 14:29:19 -07:00
Yukihiro Matsumoto
8b367098ac
move header files {irep,dump,cdump,ritehash}.h to /include/mruby
2012-04-24 17:41:28 +09:00
mimaki
835443614d
add file header
2012-04-23 11:46:16 +09:00
mimaki
e0d6430f63
add mruby sources
2012-04-20 09:39:03 +09:00