Yukihiro "Matz" Matsumoto
5138f62d6b
resolve conflict
2014-04-15 10:55:46 +09:00
take_cheeze
80534b6d14
Use MRB_ENV_STACK_LEN instead of accessing flags directly to get REnv's stack length.
2014-04-01 01:13:39 +09:00
Yukihiro "Matz" Matsumoto
306b1d3c51
Merge pull request #1948 from monaka/pr-remove-unused-null-check
...
Remove redundant NULL checks.
2014-03-26 13:32:18 +09:00
Masaki Muranaka
dcff9012e3
Remove redundant NULL checks.
...
mrb_malloc causes an exception when memory was empty.
2014-03-26 11:21:20 +09:00
Yukihiro "Matz" Matsumoto
b4dd3564ef
REnv uses obj->c as env link; no super
2014-03-25 11:50:11 +09:00
Yukihiro "Matz" Matsumoto
07e8f80040
adjust proc->target_class according to surrounding proc->target_class; based on a patch from @Fleurer; close #1627
2014-01-06 14:04:50 +09:00
take_cheeze
df780ae5e9
add mrb_intern_lit for creating symbol from string literal
2013-12-01 10:38:59 +09:00
Yukihiro "Matz" Matsumoto
9c6398a444
rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513
2013-11-29 08:47:28 +09:00
Yukihiro "Matz" Matsumoto
de790bdc27
allow irep to be GCed
2013-11-08 20:39:50 +09:00
Yukihiro "Matz" Matsumoto
b6a73f99bf
call_iseq will never be NULL
2013-11-07 08:53:14 +09:00
Yukihiro "Matz" Matsumoto
e92d4e2680
modified to use irep->reps to reference child ireps. preparation for
...
removing irep array from mrb_state. note that instructions OP_LAMBDA,
OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-07 03:54:22 +09:00
Jun Hiroe
883c45b931
Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.
2013-07-12 01:00:50 +09:00
Daniel Bovensiepen
373122a299
Merge upstream
2013-06-15 03:53:50 +08:00
Daniel Bovensiepen
3c34eb61cb
Add ISO Number to Proc
2013-06-17 04:50:31 +08:00
Yukihiro "Matz" Matsumoto
5c0b9b703c
primary mruby fiber implementation
2013-05-20 17:54:07 +09:00
Yukihiro "Matz" Matsumoto
62ca4c1738
aspec bits should be packed in Ax; ref #1209
2013-04-25 12:04:29 +09:00
Yukihiro "Matz" Matsumoto
30d580ecbc
rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206
2013-04-25 09:47:36 +09:00
Yukihiro "Matz" Matsumoto
953eec60db
rename MRB_ARGS_XXX to MRB_ASPEC_XXX; ref #1206
2013-04-25 08:00:48 +09:00
Yukihiro "Matz" Matsumoto
4faaef437d
rename ARGS_GETXXX macros to avoid potential name conflict; close #1206
2013-04-25 07:50:01 +09:00
h2so5
b1ffb3b3b8
Add Proc#arity
2013-04-16 16:03:36 +09:00
Masaki Muranaka
2b5b161f8b
Sort include files. Some redundant includes are removed.
2013-03-29 10:22:31 +09:00
Yukihiro Matz Matsumoto
b6c9a25866
remove return at the bottom of void function
2012-12-10 23:28:04 +09:00
Yukihiro "Matz" Matsumoto
64d577b0a2
Merge pull request #611 from tricknotes/stop-warning-of-proc
...
Stop warning in compiling proc.c
2012-12-10 06:09:16 -08:00
Yukihiro Matz Matsumoto
83f41c9ee7
add inline declaration
2012-12-10 23:08:28 +09:00
Ryunosuke SATO
85dac05cf3
Stop warning in compiling proc.c
...
proc.c:46: warning: ‘return’ with a value, in function returning void
introduced in f312af11 .
2012-12-10 17:59:41 +09:00
Yukihiro Matz Matsumoto
f312af11af
new function mrb_closure_new_cfunc(); close #609
2012-12-10 16:43:03 +09:00
Masaki Muranaka
1933e2660c
Use substitution instead of memset in structure initialization.
2012-10-25 15:47:45 +09:00
Yukihiro Matsumoto
8d977981b7
no memory copy for call_iseq
2012-10-17 05:59:29 +09:00
Yukihiro Matsumoto
4f7a1a167d
remove memleaks using linked allocator
2012-09-03 08:34:31 +09:00
Yukihiro Matsumoto
950204bc4d
remove flags from irep
2012-08-29 11:45:36 +09:00
Yukihiro Matsumoto
472d214a71
super look-up scheme fixed; close #415
2012-08-04 06:44:53 +09:00
Yukihiro Matsumoto
730f53045e
define_method to copy block body
2012-08-03 20:17:04 +09:00
Max Anselm
5a4beeed2d
Make all(?) void casts explicit for C++
2012-07-29 19:48:48 -04:00
Masamitsu MURASE
2936ba19aa
proc_lambda should return blk instead of self.
2012-07-18 02:11:43 +09:00
Junji Sawada
96366117ea
Remove unnecessary header inclusion
2012-07-14 11:39:25 +09:00
Yukihiro Matsumoto
b11d4647e9
ISO conforming lambda
2012-06-20 15:41:22 +09:00
Yukihiro Matsumoto
e9231bca7a
allow lambda duplication
2012-06-20 15:26:10 +09:00
Yukihiro Matsumoto
4523bee953
cast style consistency
2012-05-23 03:31:55 +09:00
Mitchell Blank Jr
9e336b00e5
More C++ compilability work: mrb_obj_alloc void* conversions
...
One of the biggest set of changes needed to make C++ compile, is that you
can't autoconvert "void*" to a different pointer type without a cast (you
can of course, convert pointers *to* "void*"!)
For the first part, convert the users of "mrb_obj_alloc". Since it has
to return something, make it RBasic* (that's what mrb_obj_alloc() is
operating on anyway). This way, even in C you'll get a warning if you
don't cast it.
For places where there are a lot of similar calls to mrb_obj_alloc(),
this can be easily hidden through a macro. I did this in string.c:
#define mrb_obj_alloc_string(mrb) ((struct RString *) mrb_obj_alloc((mrb), MRB_TT_STRING, (mrb)->string_class))
I also updated the mrb_object() macro to also return a RBasic* -- my
previous commit changed that from "void*" -> "RObject*", but I figure
it should be consistent with mrb_obj_alloc()
2012-05-20 09:43:14 -07:00
Yukihiro Matsumoto
300f97a0d2
mrb_closure_new uses current irep's nlocals instead of blocks; a patch from @tociyuki
2012-05-04 09:19:55 +09:00
roco
4ec6d41f16
rm whitespace
2012-04-30 14:29:19 -07:00
Yukihiro "Matz" Matsumoto
ef6c8cd01c
Merge pull request #69 from k-tsj/fix-proc-segv
...
Use mrb_get_args instead of direct stack access
2012-04-28 07:44:41 -07:00
Kazuki Tsujimoto
8ce5893e1a
Use mrb_get_args instead of direct stack access
2012-04-28 09:45:56 +09:00
Patrick Hogan
ec27c18dae
Fix a few casting warnings.
...
Signed-off-by: Patrick Hogan <pbhogan@gmail.com >
2012-04-26 08:36:32 -05:00
mimaki
c80487561f
Merge branch 'master' of github.com:mruby/mruby
...
Conflicts:
src/variable.c
2012-04-23 11:51:47 +09:00
mimaki
835443614d
add file header
2012-04-23 11:46:16 +09:00
Kazuki Tsujimoto
5859a204fe
Fix SEGV when calling Proc object created by Proc.new
2012-04-22 19:23:44 +09:00
mimaki
e0d6430f63
add mruby sources
2012-04-20 09:39:03 +09:00