Yukihiro "Matz" Matsumoto
07b8a5b042
Make mrb->arena variable sized. Use MRB_GC_FIXED_ARENA for old behavior.
...
You will not see "arena overflow" error anymore, but I encourage gem authors
to check your gems with MRB_GC_FIXED_ARENA to avoid memory broat.
2013-11-22 09:20:06 +09:00
Tomoyuki Sahara
1e89fc8240
declare struct mrb_irep.
2013-11-21 13:35:46 +09:00
Yukihiro "Matz" Matsumoto
c8936754e8
wrong return value from read_lineno_record()
2013-11-07 08:20:03 +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
fleuria
a511957ec8
refactor mrb_context_run()
2013-11-03 12:05:25 +08:00
fleuria
d75a907edf
introduce mrb_context_run()
...
currently there are two scnenario to call mrb_run(), the first is
calling a proc, in this case mrb should create a new environment,
discarding all the variables except args, reciever and block.
the second is calling the newly generated irep, like in mirb.
in this case, the variables should be kept after mrb_run().
so we introduce mrb_context_run() to handle this seperately.
2013-11-03 11:32:59 +08:00
Yukihiro "Matz" Matsumoto
a7c9a71684
better error position display
2013-10-15 12:49:41 +09:00
Dusan D. Majkic
1228415c97
Remove function delaration not implemented in code
2013-09-28 22:10:44 +02:00
Yukihiro "Matz" Matsumoto
9194047791
change type of mrb->c->status from uint8_t to enum mrb_fiber_state; #1511
2013-09-25 02:39:59 +09:00
take_cheeze
d12b6ab218
add verbose_backtrace
2013-09-02 00:48:06 +09:00
Paolo Bosetti
51c51290d2
Removed unnecessary #undef ISPRINT in include/mruby.h
2013-08-29 18:56:11 +02:00
Dusan D. Majkic
e2bdd8cd47
Remove function delarations not implemented in code
2013-08-27 14:57:36 +02:00
Yukihiro "Matz" Matsumoto
6e978d5574
add compatibility macro mrb_class_new_instance()
2013-08-15 00:11:17 +09:00
Yukihiro "Matz" Matsumoto
6b015ec775
define Class#new in ruby to call #initialize
2013-08-13 16:55:06 +09:00
fleuria
e2d36d1336
introduce mrb_assert() in mruby.h
2013-07-25 02:53:53 +08:00
Yukihiro "Matz" Matsumoto
4ad4ce6caf
restore once removed mrb_garbage_collect()
2013-07-24 23:31:46 +09:00
Yukihiro "Matz" Matsumoto
e1706e65f9
Merge pull request #1407 from Fleurer/gc-introduce-incremental-gc-step
...
separate out `incremental_gc_step()` from `mrb_incremental_gc()`, and misc minor rename
2013-07-24 07:18:50 -07:00
fleuria
2591922ec2
rename variable_gray_list to atomic_gray_list
2013-07-24 18:22:53 +08:00
fleuria
c852626ea7
rename mrb_garbage_collect() to mrb_full_gc()
2013-07-24 16:17:53 +08:00
Jun Hiroe
8e42868600
Repalace int with mrb_bool because a return value is boolean.
2013-07-15 23:17:12 +09:00
Jun Hiroe
efac8db674
Replace int with mrb_bool because a return value is boolean.
2013-07-14 23:51:44 +09:00
Kazuki Tsujimoto
8ab83f763d
Change parameter type to suppress -Wsign-compare warnings
2013-07-07 14:18:37 +09:00
Jun Hiroe
f40bd6cb47
Add comments in mrb_state struct.
2013-07-04 21:17:20 +09:00
h2so5
3f823a0cee
Add mrb_class_get_under()
2013-07-01 11:50:13 +09:00
fleuria
68f31e94f5
refactor mrb_realloc()
...
remove the redundant codes with mrb_malloc_simple()
2013-06-28 23:15:31 +08:00
Yukihiro "Matz" Matsumoto
3ceeb0be95
add mrb_malloc_simple() that returns NULL on error
2013-06-25 15:38:28 +09:00
Yukihiro "Matz" Matsumoto
4e877bc92f
restructure header files; move non config lines away from mrbconf.h
2013-06-10 14:40:32 +09:00
Yukihiro "Matz" Matsumoto
7b8ae1b8b6
Merge branch 'master' of github.com:mruby/mruby
2013-05-26 21:27:16 +09:00
kimu_shu
e720782f81
Add MRB_WORD_BOXING mode (represent mrb_value as a word)
2013-05-26 10:09:17 +09:00
Yukihiro "Matz" Matsumoto
6557ee938a
mruby error messages should be directed to stderr
2013-05-26 02:13:02 +09:00
Yukihiro "Matz" Matsumoto
76ddf86c72
manage fiber status (create|running|resumed|terminated)
2013-05-23 15:24:31 +09:00
Yukihiro "Matz" Matsumoto
2045a35292
garbage collect context (fiber) properly
2013-05-22 11:05:22 +09:00
Yukihiro "Matz" Matsumoto
5c0b9b703c
primary mruby fiber implementation
2013-05-20 17:54:07 +09:00
Yukihiro "Matz" Matsumoto
7921fd545c
move mruby's showcallinfo into the core
2013-05-13 10:40:43 +09:00
Yukihiro "Matz" Matsumoto
b7a24de377
change mrb_bug to get mrb_state and %S formatter
2013-05-10 22:11:28 +09:00
Yukihiro "Matz" Matsumoto
fad8b1cefa
change mrb_warn to get mrb_state and %S formatter
2013-05-10 22:09:02 +09:00
Keita Obo
9887f7cb27
Rename parameter names for mrb_yield
2013-05-10 00:16:27 +09:00
Daniel Bovensiepen
f0a9b95af3
Push Copyright year up to 2013
2013-05-02 14:11:07 +08:00
h2so5
1e5b00e772
Remove mrb_class_obj_get
2013-05-01 21:10:17 +09:00
Yukihiro "Matz" Matsumoto
02f843d8dc
rename mrb_to_id to mrb_obj_to_sym since symbol is nothing to do with identifier in mruby
2013-04-29 15:35:30 +09:00
Yukihiro "Matz" Matsumoto
b6fc3f831d
change return value of mrb_free from void* to void
2013-04-29 09:12:44 +09:00
Yukihiro "Matz" Matsumoto
5c68195c88
mrb_str_new_static(): zero copy string creation
2013-04-28 02:47:22 +09:00
Masaki Muranaka
16be58bafd
Remove macro ANYARGS. It is not used in the core and bundled mrbgems. And it is possible to conflict an application's macro.
2013-04-26 11:34:45 +09:00
Yukihiro "Matz" Matsumoto
e63b086f1e
rename mrb_interned API functions
2013-04-26 10:57:08 +09:00
Yukihiro "Matz" Matsumoto
c99b72b20d
Merge branch 'suppress_intern' of https://github.com/crimsonwoods/mruby into crimsonwoods-suppress_intern
2013-04-26 09:18:39 +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
1b31cbfbc8
add new macro MRB_ARGS_ARG(n1,n2) to specify required and optional arugments at once
2013-04-25 11:53:36 +09:00
crimsonwoods
bd1b925931
modify the type of return value (mrb_bool => mrb_value).
2013-04-25 09:51:20 +09:00
crimsonwoods
8682b06953
add new functions to check if symbols are interned without registration.
2013-04-25 09:27:00 +09:00
Yukihiro "Matz" Matsumoto
5c88c65a11
put MRB_ prefix before ARGS_XXX macros; ref #1206
2013-04-25 08:05:54 +09:00