- 27 Sep, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
-
- 26 Sep, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use type predicate macros instead of `mrb_type` if possible
-
Yukihiro "Matz" Matsumoto authored
-
KOBAYASHI Shuji authored
For efficiency with `MRB_WORD_BOXING` (implement type predicate macros for all `enum mrb_vtype`).
-
Yukihiro "Matz" Matsumoto authored
The following two may be different: * `%d` for `int` * `%i` for `mrb_int`
-
- 25 Sep, 2019 11 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use inttypes for `snprintf()`
-
Yukihiro "Matz" Matsumoto authored
Keep the type of `posarg` consistent
-
Yukihiro "Matz" Matsumoto authored
Remove `MRB_TT_HAS_BASIC` macro
-
Yukihiro "Matz" Matsumoto authored
Fix `MRB_WITHOUT_FLOAT` reversal; fix #4598
-
Yukihiro "Matz" Matsumoto authored
Add "fall through"
-
Yukihiro "Matz" Matsumoto authored
* mrb_sym2name -> mrb_sym_name * mrb_sym2name_len -> mrb_sym_name_len * mrb_sym2str -> mrb_sym_str
-
dearblue authored
-
dearblue authored
Match the type with the caller and related functions.
-
dearblue authored
-
dearblue authored
-
KOBAYASHI Shuji authored
The value of `MRB_TT_HAS_BASIC` is meaningless because `MRB_TT_HAS_BASIC` is no longer used with `MRB_WORD_BOXING` at b2c3d88f.
-
- 24 Sep, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
`Exception#initialize` should not allow two or more arguments
-
KOBAYASHI Shuji authored
-
- 23 Sep, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix `Fixnum` overflow test in `Integer#<<` test
-
KOBAYASHI Shuji authored
- Skip when `MRB_WITHOUT_FLOAT` is defined. - Make `Fixnum` overflow even when `MRB_INT64` is defined.
-
- 22 Sep, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Implement all type predicate macros for `MRB_WORD_BOXING`
-
KOBAYASHI Shuji authored
The default implementations of type predicate macros use `mrb_type`. But `mrb_type` with `MRB_WORD_BOXING` isn't very efficient, so the new implementations avoid `mrb_type`.
-
Yukihiro "Matz" Matsumoto authored
Rename MRB_USE_ETEXT_EDATA to MRB_USE_LINK_TIME_RO_DATA_P and support lld linked programs
-
Fangrui Song authored
In lld linked programs, .rodata comes before .text, thus mrb_ro_data_p will return false for strings in .rodata. Change the lower bound from _etext to __ehdr_start to catch these cases. This works for ld.bfd, gold and lld, and it does not have false positives even if .init_array does not exist. Remove the branch that uses _edata: strings in .data can be modified so this is semantically incorrect. Delete the __APPLE__ branch (its manpages say get_etext() and get_edata() are strongly discouraged). .init_array has been adopted by most ELF platforms to supersede .ctors. Neither _etext nor _edata is used, so rename MRB_USE_ETEXT_EDATA to MRB_USE_EHDR_START.
-
- 21 Sep, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_define_method` instead of `mrb_define_alias`
-
KOBAYASHI Shuji authored
-
- 20 Sep, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Singleton class definition do not introduce its own class variable scope in CRuby/JRuby. So should mruby. ``` module Mod1 class << Object.new C = 1 @@cv = 1 p Module.nesting, # => [#<Class:#<Object:0x55cb16e60a50>>, Mod1] constants, # => [:C] class_variables, # => [] Mod1.class_variables # => [:@@cv] end end ```
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix typo in `Array#difference` document [ci skip]
-
KOBAYASHI Shuji authored
-
- 19 Sep, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Simplify arguments check in `String#index`
-
KOBAYASHI Shuji authored
Also fix document about type of the first argument.
-
- 18 Sep, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix `Enumerable#filter_map` without block; ref d380c7d2
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Remove `mrb_get_args(mrb, "")`; ref 30f37872
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
We needed to preserve the original method name somewhere. We kept it in the `env` structure pointed from aliased methods. #1457 and #1531 tried to address this issue. But this patch is more memory efficient. Limitation: this fix does not support `super` from methods defined by `define_method`. This limitation may be addressed in the future, but it's low priority.
-
- 17 Sep, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix `Fixnum#(to_s|inspect)` argument specs
-
KOBAYASHI Shuji authored
Before this patch: $ bin/mruby -e 'p 3.to_s(2)' trace (most recent call last): [0] -e:1 -e:1: 'to_s': wrong number of arguments (1 for 0) (ArgumentError) After this patch: $ bin/mruby -e 'p 3.to_s(2)' "11"
-
- 16 Sep, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Shrink `mrb_get_args()`
-