1. 24 Mar, 2021 11 commits
  2. 23 Mar, 2021 1 commit
  3. 22 Mar, 2021 10 commits
  4. 21 Mar, 2021 3 commits
  5. 20 Mar, 2021 4 commits
  6. 19 Mar, 2021 2 commits
    • Yukihiro "Matz" Matsumoto's avatar
      complex.c: overhaul complex operators. · d3184e4a
      Yukihiro "Matz" Matsumoto authored
      - define `MRB_TT_COMPLEX`
      - change object structure (`struct RComplex`)
      - add memory management for `MRB_TT_COMPLEX`
      - avoid operator overloading as much as possible
      - as a result, performance improved a log
      - should work with and without `Rational` defined
      d3184e4a
    • Yukihiro "Matz" Matsumoto's avatar
      rational.c: overhaul rational operators. · 08f9d5ba
      Yukihiro "Matz" Matsumoto authored
      - define `MRB_TT_RATIONAL`
      - change object structure (`struct RRational`)
      - add memory management for `MRB_TT_RATIONAL`
      - avoid operator overloading as much as possible
      - implement division overloading in C
      - as a result, performance improved a lot
      08f9d5ba
  7. 18 Mar, 2021 8 commits
  8. 17 Mar, 2021 1 commit
    • dearblue's avatar
      Allow `break` in `build_config`. · 199bbd73
      dearblue authored
      If I break out of a block given to `MRuby::Build.new` with `break` or `throw`, I will get a seemingly inexplicable error because the `presym`-related initialization is not done.
      
      ```console
      % cat build_config1.rb
      MRuby::Build.new do
        toolchain
        break
      end
      
      % rake CONFIG=build_config1.rb
      rake aborted!
      external mrbc or mruby-bin-mrbc gem in current('host') or 'host' build is required
      /var/tmp/mruby/lib/mruby/build.rb:332:in `mrbcfile'
      /var/tmp/mruby/tasks/mrblib.rake:9:in `block in <top (required)>'
      /var/tmp/mruby/lib/mruby/build.rb:18:in `instance_eval'
      /var/tmp/mruby/lib/mruby/build.rb:18:in `block in each_target'
      /var/tmp/mruby/lib/mruby/build.rb:17:in `each'
      /var/tmp/mruby/lib/mruby/build.rb:17:in `each_target'
      /var/tmp/mruby/tasks/mrblib.rake:1:in `<top (required)>'
      /var/tmp/mruby/Rakefile:27:in `load'
      /var/tmp/mruby/Rakefile:27:in `<top (required)>'
      (See full trace by running task with --trace)
      ```
      
      If a non-exceptional global jump occurs, it can be initialized by `ensure` to solve this problem.
      199bbd73