| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-06-14 | pack.c: support `w' directive (BER integer compression). | Yukihiro "Matz" Matsumoto | |
| 2021-06-13 | pack.c: `count` should not be negative for directives `xX@`. | Yukihiro "Matz" Matsumoto | |
| 2021-06-13 | pack.c: raise error for unsupported `w` directive. | Yukihiro "Matz" Matsumoto | |
| 2021-06-12 | pack.c: support `@' directive (absolute position). | Yukihiro "Matz" Matsumoto | |
| 2021-06-12 | pack.c: refactor pack/unpack 'X'. | Yukihiro "Matz" Matsumoto | |
| 2021-06-12 | pack.c: add `X` directive (back up byte). | Yukihiro "Matz" Matsumoto | |
| 2021-06-12 | pack.c: `count` should be always positive. no check needed. | Yukihiro "Matz" Matsumoto | |
| 2021-06-12 | pack.c: fix `long/int` mixtures. | Yukihiro "Matz" Matsumoto | |
| 2021-06-12 | pack.c: remove unused arguments from static functions. | Yukihiro "Matz" Matsumoto | |
| 2021-06-12 | pack.c: wrong position after count read. | Yukihiro "Matz" Matsumoto | |
| 2021-06-11 | codegen.c: refactor `readint()` | Yukihiro "Matz" Matsumoto | |
| * renamed from redundant `readint_mrb_int()` * supports only base upto 16 * no base validation (already done in parser) * no negative read (negate after read) * overflow detection using `mrb_int_{mul,add}_overflow()` | |||
| 2021-06-11 | readint.c: add new function `mrb_int_read`. | Yukihiro "Matz" Matsumoto | |
| Difference from `strtoul(3)`: * reads `mrb_int` based on configuration * specifies the end of the string * no sign interpretation * base 10 only | |||
| 2021-06-10 | sprintf.c: check value range before type casting. | Yukihiro "Matz" Matsumoto | |
| 2021-06-07 | sprintf.c: fix `mrb_int` and `int` mixture errors. | Yukihiro "Matz" Matsumoto | |
| 2021-06-07 | pack.c: fix 'void*` to `char*` assignment. | Yukihiro "Matz" Matsumoto | |
| 2021-06-07 | pack.c: add `default` to `switch` statement to silence warnings. | Yukihiro "Matz" Matsumoto | |
| 2021-06-07 | pack.c: support `M` specifier (quoted-printable). | Yukihiro "Matz" Matsumoto | |
| 2021-06-07 | test/pack.c: reorganize test suits. | Yukihiro "Matz" Matsumoto | |
| 2021-06-07 | pack.c: raise exception for unsupported specifiers. | Yukihiro "Matz" Matsumoto | |
| 2021-06-06 | pack.c: check overflow before calling `pack_x`. | Yukihiro "Matz" Matsumoto | |
| 2021-06-06 | pack.c: check overflow before reading count. | Yukihiro "Matz" Matsumoto | |
| 2021-06-06 | pack.c: failed to detect overflow when `ch` is zero in `read_tmpl`. | Yukihiro "Matz" Matsumoto | |
| 2021-06-05 | pack.c: hold `enum` values in `enum` variables not `int`. | Yukihiro "Matz" Matsumoto | |
| 2021-06-03 | add a few regressions test from #2313 | Yukihiro "Matz" Matsumoto | |
| The code was contributed from Carson McDonald (@carsonmcdonald) | |||
| 2021-05-30 | sprintf.c: avoid object allocation in integer formatting. | Yukihiro "Matz" Matsumoto | |
| 2021-05-30 | numeric.c: introduce `mrb_int_to_cstr()` to dump `mrb_int`. | Yukihiro "Matz" Matsumoto | |
| * refactor `mrb_integer_to_str()` * refactor `mrb_str_format()` | |||
| 2021-05-29 | codegen.c: just raise the exception on broken node for assignments. | Yukihiro "Matz" Matsumoto | |
| 2021-05-28 | kernel.c: avoid recursive VM call in `mrb_f_caller`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-28 | kernel.c: `caller` should not include the frame for itself. | Yukihiro "Matz" Matsumoto | |
| 2021-05-27 | array.c: unify `mrb_ary_ref` and `mrb_ary_entry` | Yukihiro "Matz" Matsumoto | |
| Use only `mrb_ary_entry` hereafter. | |||
| 2021-05-22 | mruby-sprintf: reduce float digits to avoid test failure. | Yukihiro "Matz" Matsumoto | |
| Too many digits to fit in single precision float numbers, so that tests fail when `MRB_USE_FLOAT32` defined. | |||
| 2021-05-22 | fp_fmt.c: remove `mrb_float_to_cstr()`. | Yukihiro "Matz" Matsumoto | |
| The function was intended to be a utility function for `mruby-sprintf`. The functionality was integrated into `sprintf.c`. | |||
| 2021-05-21 | sprintf.c: remove specifiers `%a` and `%A`. | Yukihiro "Matz" Matsumoto | |
| `fmt_fp.c` does not support those specifiers. In addition, I believe no one uses hexadecimal representation of float values. | |||
| 2021-05-18 | parse.y: allow "command" syntax in endless method definition. | Yukihiro "Matz" Matsumoto | |
| This change allows `def hello = puts "Hello"` without parentheses. This syntax has been introduced since Ruby3.1. | |||
| 2021-05-18 | parse.y: endless singleton method definition can omit parens. | Yukihiro "Matz" Matsumoto | |
| 2021-05-17 | Global renaming regarding `integer` and `float`. | Yukihiro "Matz" Matsumoto | |
| Consistent number conversion function names: * `mrb_value` to immediate (C) value * `mrb_int()` -> `mrb_as_int()` * `mrb_to_flo()` -> `mrb_as_float()` * `mrb_value` to `mrb_value` (converted) * `mrb_to_int()' * `mrb_Integer()` - removed * `mrb_Float()` -> `mrb_to_float` Consistent function name (avoid `_flo` suffix): * `mrb_div_flo()` -> `mrb_div_float` | |||
| 2021-05-17 | Rename `mrb_fixnum_to_str` to `mrb_integer_to_str`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-17 | Rename `mrb_flo_to_fixnum` to `mrb_float_to_integer`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-17 | rational.c: update function prefixes. | Yukihiro "Matz" Matsumoto | |
| To be consistent, functions with `rational_` prefix implements methods, functions with `rat_` prefix are utility functions. | |||
| 2021-05-15 | mruby-array-ext/array.c: implement `Array#rotate` in C. | Yukihiro "Matz" Matsumoto | |
| The Ruby version of `Array#rotate!` generated a rotated array and replaced the receiver, but the C version rotates the receiver array in-place. So the performance is improved a lot both in speed and memory consumption. Look for the comments in `array.c` for the in-place rotating algorithm, if you are interested. | |||
| 2021-05-14 | mruby-array-ext/array.c: implement `Array#compact` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-05-14 | array.rb: replace `can't` with `cannot`. | Yukihiro "Matz" Matsumoto | |
| To avoid editor coloring failures. | |||
| 2021-05-13 | string.c: remove unnecessary branch in the internal method. | Yukihiro "Matz" Matsumoto | |
| 2021-05-13 | range.c: avoid use of `mrb_fixnum_p`. | Yukihiro "Matz" Matsumoto | |
| `mrb_int` may not fit in `fixnum` (inline integer). | |||
| 2021-05-13 | mruby-test: `MRB_INT_MAX` etc. may not fit in `Fixnum` (inline int). | Yukihiro "Matz" Matsumoto | |
| 2021-05-08 | time.c: Windows API provides `clock_gettime`. | Yukihiro "Matz" Matsumoto | |
| `gettimeofday` emulation needed no longer. | |||
| 2021-05-05 | Extend the tab with 8 whitespace | dearblue | |
| This work was done as follows: - check: `git grep $'\011' -- :^oss-fuzz` - convert: `ruby -pi -e 'nil while $_.sub!(/^(.*?)\t/) { $1 + " " * (8 - $1.size % 8) }'` The `doc/guide/{compile,mrbgems}.md` file adds and removes whitespace to make the directory tree look the same. In `mrbgems/mruby-socket/src/socket.c`, there is a part where the indent is changed from 4 to 2 at the same time as the tab is changed. | |||
| 2021-05-05 | Merge pull request #5442 from dearblue/mruby-pack | Yukihiro "Matz" Matsumoto | |
| Fix documents for `mruby-io` | |||
| 2021-05-03 | Fix documents for `mruby-io` | dearblue | |
| 2021-05-03 | Update gem spec for `mruby-sleep` | dearblue | |
| To align the spec like any other core mrbgems: - Delete `spec.version` - Set `spec.summary` | |||
