1. 17 Dec, 2019 4 commits
  2. 16 Dec, 2019 6 commits
  3. 15 Dec, 2019 1 commit
  4. 14 Dec, 2019 3 commits
    • KOBAYASHI Shuji's avatar
      Remove location info from `Exception#inspect` · d2f2f9db
      KOBAYASHI Shuji authored
      Because location info (file name and line number) is kept in the backtrace,
      it should not be kept in the result of `inspect` (and the exception object
      itself), I think.
      
      ### Example
      
        ```ruby
        # example.rb
        begin
          raise "err"
        rescue => e
          p e
        end
        ```
      
      #### Before this patch:
      
        ```
        $ bin/mruby example.rb
        example.rb:2: err (RuntimeError)
        ```
      
      #### After this patch:
      
        ```
        $ bin/mruby example.rb
        err (RuntimeError)
        ```
      d2f2f9db
    • dearblue's avatar
      Remove module only methods from class · cc52fa66
      dearblue authored
      The `#prepend_features` and `#module_function` methods are not haves for
      class objects.
      cc52fa66
    • dearblue's avatar
      Fix mruby-io test for mingw32 · ec1ef925
      dearblue authored
      Need `mkstemp()` implements.
      ec1ef925
  5. 13 Dec, 2019 2 commits
  6. 12 Dec, 2019 1 commit
  7. 11 Dec, 2019 1 commit
  8. 10 Dec, 2019 3 commits
  9. 09 Dec, 2019 8 commits
  10. 08 Dec, 2019 3 commits
  11. 07 Dec, 2019 2 commits
  12. 05 Dec, 2019 3 commits
  13. 04 Dec, 2019 1 commit
    • KOBAYASHI Shuji's avatar
      Refine `mrb_alloca()` · a030446a
      KOBAYASHI Shuji authored
      * The allocated memory is guaranteed to be aligned for any data type (it was
        not guaranteed when string type is embed).
      * Make allocation size exactly specified size (does not allocate space for a
        null byte).
      a030446a
  14. 03 Dec, 2019 2 commits
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #4850 from shuujii/silence-Clang-warning-with-MRB_INT64-and-MRB_32BIT-in-time.c · bc22991a
      Yukihiro "Matz" Matsumoto authored
      Silence Clang warning with `MRB_INT64` and `MRB_32BIT` in `time.c`
      bc22991a
    • KOBAYASHI Shuji's avatar
      Silence Clang warning with `MRB_INT64` and `MRB_32BIT` in `time.c` · ea1911d2
      KOBAYASHI Shuji authored
      Silence the following warnings:
      
        ```
        /mruby/mrbgems/mruby-time/src/time.c:871:15: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) {
              ~~~~~~~ ^ ~~~~~~~~~~~
        /mruby/mrbgems/mruby-time/src/time.c:871:40: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) {
                                       ~~~~~~~ ^ ~~~~~~~~~~~
        /mruby/mrbgems/mruby-time/src/time.c:887:16: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) {
              ~~~~~~~~ ^ ~~~~~~~~~~~
        /mruby/mrbgems/mruby-time/src/time.c:887:42: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) {
                                      ~~~~~~~~ ^ ~~~~~~~~~~~
        ```
      ea1911d2