Yukihiro "Matz" Matsumoto
b6121adc7d
singleton_class should not be duped; fix #2815
2015-06-01 21:30:07 +09:00
Yukihiro "Matz" Matsumoto
bd2686d82d
singleton_class should not be cloned; close #2815
2015-06-01 00:13:12 +09:00
Yukihiro "Matz" Matsumoto
089f1f6c75
block_given? should work with nested block; fix #2695 close #2712
2015-01-31 13:51:25 +09:00
Yukihiro "Matz" Matsumoto
358dd61107
block_given? should return correct value when called in blocks; close #2678
...
avoid a loop to find parent's callinfo using mrb->c->cibase[env->cioff]
2014-12-19 19:05:27 +09:00
Yukihiro "Matz" Matsumoto
5014bfb50d
block_given? should return false on top-level; ref #2678
2014-12-19 18:51:14 +09:00
Yukihiro "Matz" Matsumoto
44c29e88ae
block_given did not work with nested block invocation for some cases; fix #2665
2014-12-11 00:36:18 +09:00
Yukihiro "Matz" Matsumoto
69ba4f0ed5
instance_methods etc should not include undef'ed method names; based on a patch from @cremno; fix #2613
2014-10-20 11:11:26 +09:00
Jun Hiroe
f7a7426d7e
Refactor mrb_obj_is_kind_of_m() in kernel.c
2014-09-02 19:40:29 +09:00
Jun Hiroe
3e40cc6974
Refactor obj_is_instance_of() in kernel.c
2014-09-02 19:40:23 +09:00
Yukihiro "Matz" Matsumoto
6c7b0d88e8
refactor valid instance variable name check
2014-09-02 16:37:40 +09:00
Tatsuhiko Kubo
3202938099
Add a missing space after ",".
2014-08-27 19:13:40 +09:00
Tatsuhiko Kubo
3f685533b8
Remove a discarded comparison.
...
mrb_method_search() does not return NULL.
Instead it raises an exception.
So it is not necessary to evaluate
a return value of mrb_method_search().
2014-08-21 12:43:20 +09:00
kkkkkt
9da37cdfd1
refactor mruby method(fix indent. remove temporary value, duplicate procedure)
2014-08-18 10:58:48 +09:00
Yukihiro "Matz" Matsumoto
6aa6e75f75
rename obsolete mrb_special_const_p to mrb_immediate_p
2014-08-04 00:50:03 +09:00
Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
take_cheeze
3c96602574
Use MRB_TT_EXCEPTION in exception object.
2014-07-21 23:09:13 +09:00
Yukihiro "Matz" Matsumoto
e52533a703
update Kernel#raise/fail argument description
2014-06-05 13:17:29 +09:00
bggd
69c2b8310f
Fix invalid array initialize for VS2012
2014-05-28 11:04:28 +09:00
Yukihiro "Matz" Matsumoto
c52838cadb
Merge pull request #2286 from suzukaze/refactor-kernel
...
Use boolean macro in kernel.c
2014-05-22 01:01:16 +09:00
Yukihiro "Matz" Matsumoto
a11f994e01
direct invocation of instance_eval
2014-05-21 18:00:48 +09:00
take_cheeze
d8d07a2345
Move Kernel.local_variables to core.
2014-05-19 22:05:02 +09:00
Jun Hiroe
47c964bc18
Use boolean macro in kernel.c
2014-05-18 15:37:01 +09:00
take_cheeze
49cf477688
Fix #2259 .
2014-05-16 19:58:36 +09:00
Yukihiro "Matz" Matsumoto
9f7651fa65
Merge pull request #2234 from suzukaze/refactor
...
Refactor functions in kernel.c
2014-05-11 17:25:50 +09:00
Jun Hiroe
d973bcff0e
Refactor mrb_equal_m()
2014-05-11 03:58:07 +09:00
Jun Hiroe
50d9d974e0
Refacotr mrb_obj_not_equal_m()
2014-05-11 03:55:51 +09:00
Jun Hiroe
2f1b4eb144
Refactor mrb_obj_equal_m()
2014-05-11 03:54:07 +09:00
Jun Hiroe
1eb6c1e963
Fix indents
2014-05-11 03:48:32 +09:00
take_cheeze
d0c0beb880
Move __method__ to mruby-kernel-ext since it's not ISO method.
2014-05-09 22:44:10 +09:00
take_cheeze
208bafba2d
Move Kernel#fail definition to mruby-kernel-ext mrbgem.
2014-05-07 00:01:30 +09:00
take_cheeze
98a610831a
Implement Kernel.fail and Kernel#fail .
2014-05-06 21:29:35 +09:00
Yukihiro "Matz" Matsumoto
83c1399af0
eliminate plain int except for a few cases like arena_index
2014-04-25 04:01:57 +09:00
cremno
8271b4ba27
various functions should have internal linkage
2014-04-16 21:26:12 +02:00
Yukihiro "Matz" Matsumoto
5138f62d6b
resolve conflict
2014-04-15 10:55:46 +09:00
cremno
649081661a
reduce RSTRING_PTR usage
2014-04-14 00:58:34 +02:00
ksss
8d15ef2e89
Use bool macro KHASH_DEFINE and KHASH_DECLARE
2014-04-02 13:38:43 +00:00
ksss
f0dd4cb673
Implement Kernel#define_singleton_method
2014-03-28 18:16:28 +09:00
ksss
65ace4e027
Implement Kernel#__method__
2014-03-27 18:25:47 +09:00
Yukihiro "Matz" Matsumoto
9084e03556
rename mrb_yield_internal to mrb_yield_with_class since it's no longer internal
2014-03-19 08:57:54 +09:00
Tomoyuki Sahara
93694fe521
export mrb_yield_internal.
2014-03-19 01:08:01 +09:00
cubicdaiya
cee152670a
unify indent style
2014-03-16 07:44:44 +09:00
Yukihiro "Matz" Matsumoto
c476c1b528
symbol length type to be mrb_int
2014-03-15 15:43:40 +09:00
Yukihiro "Matz" Matsumoto
675fd3dc80
allow send method not to call mrb_funcall if calling method is implemented in Ruby; fix #1680 ref #1765
2014-03-01 18:13:10 +09:00
cubicdaiya
d316115748
fix bug for get_valid_iv_sym
...
When sub-string is used in the following way, it does not work well.
o = Object.new
o.instance_variable_set(:@a, 1)
o.instance_variable_defined?("@abc"[0,2]) #=> false (this should be true)
2014-02-26 17:26:40 +09:00
Yukihiro "Matz" Matsumoto
05d3b9de54
clarify fallthrough in the switch statement
2014-02-25 10:48:10 +09:00
take_cheeze
08ea324593
move src/error.h to include/mruby/error.h
2014-02-20 22:41:29 +09:00
Miura Hideki
5df82e357c
Store raw stack address in callinfo instead of offset from stbas
2014-02-09 16:42:25 +09:00
h2so5
b53d91e6e2
fix NODE_SPLAT codegen
2014-02-01 12:22:28 +09:00
cremno
f2a62a74ed
clean up external symbols
...
remove unused and unneeded:
- sysexit_status
- type (a global variable)
add mrb_ prefix to:
- codedump_all
- class_instance_method_list
- parser_dump
make various functions static, incl.:
- yyparse
- make_exception
2014-01-31 01:30:18 +01:00
h2so5
25045345c9
clone Class/Module rightly
2014-01-25 07:47:15 +09:00