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
0be572df62
change return value from mrb_generate_code()
2013-11-02 23:20:04 +09:00
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
h2so5
88758e3630
Uniquify the results of Object#methods
2013-10-27 04:04:06 +09:00
Yukihiro "Matz" Matsumoto
a7c9a71684
better error position display
2013-10-15 12:49:41 +09:00
Yukihiro "Matz" Matsumoto
400ccecf0a
add mrb_gv_remove(); untested
2013-10-10 12:12:29 +09:00
Dusan D. Majkic
1228415c97
Remove function delaration not implemented in code
2013-09-28 22:10:44 +02: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
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
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
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
Yukihiro "Matz" Matsumoto
fdb58b4734
voidp should be an Object; close #1508
2013-09-21 17:18:56 +09:00
Yukihiro "Matz" Matsumoto
12183fa250
rename node->filename to node->filename_index
2013-09-20 06:09:41 +09:00
Thomas Schmidt
713e0019ca
remove executable bit from include/mruby/dump.h file
2013-09-16 13:12:04 +02:00
Cremno
501df71833
MSVC: compilation works again (+minor style fixes)
2013-09-03 21:15:14 +02:00
take_cheeze
61e3598893
support c++ in mruby/debug.h
2013-09-02 00:48:08 +09:00
take_cheeze
bd5afe9eef
rename debug function name
2013-09-02 00:48:07 +09:00
take_cheeze
0b806ca17b
reduce node size
2013-09-02 00:48:07 +09:00
take_cheeze
8082a37748
use uint16_t for line type
2013-09-02 00:48:06 +09:00
take_cheeze
3d1fffbd6b
support multiple filename in irep
2013-09-02 00:48:06 +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
Yukihiro "Matz" Matsumoto
b6cbaaa7f1
Merge pull request #1491 from dmajkic/master
...
Remove function delarations not implemented in code
2013-08-27 19:41:15 -07:00
Dusan D. Majkic
e2bdd8cd47
Remove function delarations not implemented in code
2013-08-27 14:57:36 +02:00
Tomoyuki Sahara
53ff8172e5
add mrb_string_type().
2013-08-23 15:06:26 +09:00
Yukihiro "Matz" Matsumoto
d780c6683e
use newer DATA API
2013-08-15 01:39:05 +09:00
Yukihiro "Matz" Matsumoto
b225e4cc82
redesign mruby/data.h API; use DATA_PTR() for raw data pointer, DATA_GET_PTR() to type safe retrieval (TypeError will be raised), DATA_CHECK_GET_PTR() to get nil if type mismatched
2013-08-15 01:33:36 +09: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
Yukihiro "Matz" Matsumoto
578589141f
use CHAR_BIT instead of bare 8
2013-08-12 09:52:16 +09:00
Yukihiro "Matz" Matsumoto
3a27e9189a
move (void) cast after declarations
2013-08-12 09:37:21 +09:00
Jonas Kulla
9b01bf6035
Silence 'unused parameter' warnings
2013-08-10 09:29:42 +02:00
Yukihiro "Matz" Matsumoto
1e87bf6d2f
allow turning off GC generational mode by default by MRB_GC_TURN_OFF_GENERATIONAL; #1447
2013-08-08 21:42:20 +09:00
Yukihiro "Matz" Matsumoto
1f5c91d68d
use intptr_t instead of int64_t for 32bit platforms
2013-08-07 23:02:08 +09:00
Yukihiro "Matz" Matsumoto
40e6cdcb5c
rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source
2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki
7389ae4b7d
fix bugs in comment
2013-08-04 04:28:51 -07:00
Yuichi Nishiwaki
dd2ea59d61
add commentary to value representation
2013-08-04 01:08:11 -07:00
Yuichi Nishiwaki
94a6d8380f
bugfix: the bit mask was smaller than the size it should be
2013-08-04 01:07:30 -07:00
Yuichi Nishiwaki
8854ecb629
revert one of the API changes: MRB_SET_VALUE_P no longer used
2013-08-04 00:40:41 -07:00
Yuichi Nishiwaki
07fefb585e
cosmetic changes
2013-08-04 00:18:03 -07:00
Yuichi Nishiwaki
831e16cdf5
implement 64bit nan-boxing
2013-08-04 00:12:22 -07:00
Yuichi Nishiwaki
8dc2fa3bc8
add read barrier to value.p
...
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Yukihiro "Matz" Matsumoto
dbd36128ad
forget to re-initialize target_class for top-level eval; close #1418
2013-07-30 01:33:02 +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
Yukihiro "Matz" Matsumoto
bc843ed927
Merge pull request #1382 from suzukaze/add-comments
...
Add comments in irep.h
2013-07-18 19:32:25 -07:00