- 11 Aug, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
`mrb_gc_destroy` may call other mruby API functions from the finalizers. So call that function first.
-
Yukihiro "Matz" Matsumoto authored
-
- 10 Aug, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove monkey patches for Ruby 1.9 or earlier
-
Yukihiro "Matz" Matsumoto authored
`Enumerable#reject`, etc. should return `Enumerable` without block
-
KOBAYASHI Shuji authored
-
- 09 Aug, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Avoid premature overflow in Complex#abs and Complex#/
-
Ray Chason authored
-
Ray Chason authored
Math.hypot avoids premature overflow and underflow
-
- 08 Aug, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 07 Aug, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
Improve MiniRake rule enhancement for Rake compatibility
-
KOBAYASHI Shuji authored
Support pathmap notation, recursive dependencies search, and so on.
-
Yukihiro "Matz" Matsumoto authored
Contrary to the name, `mrb_to_str` just checks type, no conversion.
-
Yukihiro "Matz" Matsumoto authored
`mrb_string_value_cstr` and `mrb_string_value_len`: obsolete `mrb_string_cstr`: new function to retrieve NULL terminated C string `RSTRING_CSTR`: wrapper macro of `mrb_string_cstr`
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 06 Aug, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Add `mrb_noreturn` to `cmperr()` in `src/numeric.c`
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 05 Aug, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use new specifiers/modifiers of `mrb_vfromat()`
-
KOBAYASHI Shuji authored
The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back.
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_int()` instead of `to_int()` in `mruby-numeric-ext`
-
- 04 Aug, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Add constants for floating point number
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4613 from shuujii/change-second-argument-to-%l-of-mrb_vformat-to-size_t-from-mrb_int Change second argument to `%l` of `mrb_vformat()` to `size_t` from `mrb_int`
-
KOBAYASHI Shuji authored
-
dearblue authored
-
- 03 Aug, 2019 5 commits
-
-
KOBAYASHI Shuji authored
- `size_t` is more commonly used. - `len` argument of `mrb_str_new()` is `size_t`. NOTE: The test for `%l` is temporarily disabled because adding a new type to `mrbgems/mruby-test/vformat.c` causes an error (memory error?) on Visual Studio 2017 in AppVeyor.
-
Yukihiro "Matz" Matsumoto authored
Fix `mrb_vformat("%f")` with `MRB_USE_FLOAT`
-
Yukihiro "Matz" Matsumoto authored
Suppress compiler warnings for mruby-time; fix #4600
-
KOBAYASHI Shuji authored
It potentially not work when `mrb_float` is `float` because `float` variable in variable length arguments is promoted to `double`. Also I fixed build with `MRB_WITHOUT_FLOAT`.
-
dearblue authored
Warnings: - If `MRB_TIME_T_UINT` is defined, the compiler issues a warning with an integer comparison of different signs. - It is mentioned that the `usec` variable passed to the `mrb_to_time_t()` function may not be initialized
-
- 02 Aug, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Change the `mrb_vformat` specifier `%d` for `int`
-
KOBAYASHI Shuji authored
It potentially breaks, for example, in the case of `mrb_int` is 64-bit and more smaller type is passed by `%d`. In fact, the problem could become apparent when I used `%d` to `backtrace_location::lineno` in `src/backtrace.c:mrb_unpack_backtrace()` on AppVeyor. Therefore, change `%d` for `int` (not `mrb_int`) so that it can be used mostly without casting.
-
- 01 Aug, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Add new specifiers/modifiers to format string of `mrb_vfromat()`
-
KOBAYASHI Shuji authored
Format sequence syntax: %[modifier]specifier Modifiers: ----------+------------------------------------------------------------ Modifier | Meaning ----------+------------------------------------------------------------ ! | Convert to string by corresponding `inspect` instead of | corresponding `to_s`. ----------+------------------------------------------------------------ Specifiers: ----------+----------------+-------------------------------------------- Specifier | Argument Type | Note ----------+----------------+-------------------------------------------- c | char | d,i | mrb_int | f | mrb_float | l | char*, mrb_int | Arguments are string and length. n | mrb_sym | s | char* | Argument is NUL terminated string. t | mrb_value | Convert to type (class) of object. v,S | mrb_value | C | struct RClass* | T | mrb_value | Convert to real type (class) of object. Y | mrb_value | Same as `!v` if argument is `true`, `false` | | or `nil`, otherwise same as `T`. % | - | Convert to percent sign itself (no argument | | taken). ----------+----------------+-------------------------------------------- This change will increase the binary size, but replacing all format strings with new specifiers/modifiers will decrease the size because it reduces inline expansion of `mrb_obj_value()`, etc. at the caller.
-
- 31 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4607 from shuujii/fix-UTC-offset-representation-in-Time-to_s-on-some-environments Fix UTC offset representation in `Time#to_s` on some environments; ref #4604
-
KOBAYASHI Shuji authored
Use own implementation to calculate UTC offset on Visual Studio 2015 or earlier or MinGW because `strftime("%z")` on these environments does not conform C99.
-
- 30 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
`MRB_INT_MIN` is the only integer value that has no corresponding positive integer value (i.e. `-MRB_INT_MIN` = `MRB_INT_MIN`).
-
Yukihiro "Matz" Matsumoto authored
-