summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-12-21Fixed a bug on platforms without `BYTE_ORDER`; ref #4190Yukihiro "Matz" Matsumoto
2018-12-21Define `MRB_ENDIAN_BIG` automatically; ref #4190Yukihiro "Matz" Matsumoto
You had to define this macro on big endian platforms, but it is very error-prone. So define the macro automatically if possible.
2018-12-21`mruby-pack` should not rely on `MRB_ENDIAN_BIG` macro; fix #4190Yukihiro "Matz" Matsumoto
The `MRB_ENDIAN_BIG` macro is originally used for `NaN` boxing. We cannot assume it is defined on every big endian platform (#4190 is the case). So instead of relying on untrusted `MRB_ENDIAN_BIG`, we use `BYTE_ORDER` macro with a fallback function to check endian in runtime.
2018-12-21Remove things we've done in `TODO` file.Yukihiro "Matz" Matsumoto
2018-12-19Merge pull request #4191 from dearblue/parenthesisYukihiro "Matz" Matsumoto
Fix parenthesis for macros
2018-12-19Added Android Hack to `time.c`.Yukihiro "Matz" Matsumoto
Android bionic defines `TIME_UTC` but does not provide `timespec_get`.
2018-12-18Fix macro expressions with parendearblue
2018-12-18Fix macro arguments with parendearblue
2018-12-17Merge pull request #4189 from sdottaka/fix-mrb_ary_clearYukihiro "Matz" Matsumoto
Make mrb_ary_clear() function callable from C again
2018-12-17Small refactoring of #4188Yukihiro "Matz" Matsumoto
2018-12-17Remove `#include <mruby/khash.h>` from `mruby/hash.h`.Yukihiro "Matz" Matsumoto
2018-12-17Recover `#to_int`; ref #4177Yukihiro "Matz" Matsumoto
We have removed implicit conversion to strings using `to_int`. But some users still using `to_int` as a typical integer method, i.e. they do string check by code like: `obj.respond_to?(:to_int)`. So we have recovered the method.
2018-12-17Recover `String#to_str`; ref #4177Yukihiro "Matz" Matsumoto
We have removed implicit conversion to strings using `to_str`. But some people still using `to_str` as a typical string method, i.e. they do string check by code like: `obj.respond_to?(:to_str)`. So we have recovered the method.
2018-12-17Merge pull request #4188 from dearblue/mrb_hash_sizeYukihiro "Matz" Matsumoto
Add `mrb_hash_size()` function
2018-12-15Make mrb_ary_clear() function callable from C againTakashi Sawanaka
2018-12-14Add `mrb_hash_size()` function.dearblue
2018-12-12Merge pull request #4185 from icm7216/fix-sleep-exampleYukihiro "Matz" Matsumoto
Fix sleep example
2018-12-12Specify the core library instead of the external library.icm7216
2018-12-12Sleep module is undefined. Remove module name.icm7216
2018-12-11Merge pull request #4184 from mruby/stableYukihiro "Matz" Matsumoto
Release mruby 2.0.0
2018-12-11Avoid using floating point number for HT_SEG_INCREASE_RATIO; ref #4182Yukihiro "Matz" Matsumoto
2018-12-11Update release date.2.0.0Hiroshi Mimaki
2018-12-11Rename `ht_foreach_func` to `mrb_hash_foreach_func`.Yukihiro "Matz" Matsumoto
2018-12-11Add `mrb_` prefix to `iv_foreach_func`.Yukihiro "Matz" Matsumoto
2018-12-11Add new API `mrb_iv_foreach()` to iterate over instance variables.Yukihiro "Matz" Matsumoto
2018-12-11Update `iv_foreach()` function.Yukihiro "Matz" Matsumoto
* return `void` instead of `mrb_bool'. * non zero return value from `func` breaks the loop. * no longer remove items on negative return value from `func`.
2018-12-11Fixed missing comma in mruby/mirb usage.Hiroshi Mimaki
2018-12-11Update comments.Yukihiro "Matz" Matsumoto
2018-12-11Add API function `mrb_hash_foreach()` to iterate over items in a hash.Yukihiro "Matz" Matsumoto
2018-12-10Need to clear stack before invoking a block; fix #4181Yukihiro "Matz" Matsumoto
2018-12-04Add new methods `Module#{>,>=,<=>}`; ref #4174Yukihiro "Matz" Matsumoto
2018-12-04Remove unnecessary check in `Module#<`; ref #4174Yukihiro "Matz" Matsumoto
2018-12-04Replace RDoc `<i></i>` to Markdown back quotes; ref #4174Yukihiro "Matz" Matsumoto
2018-12-04Merge pull request #4174 from robfors/module_operatorsYukihiro "Matz" Matsumoto
Adds Module#< and Module#<=
2018-12-02Adds Module#< and Module#<=Rob
2018-11-27Merge branch 'master' into stableHiroshi Mimaki
2018-11-25Update `doc/limitations.md` for argument destructuring.Yukihiro "Matz" Matsumoto
2018-11-25Allow destructuring in formal arguments.Yukihiro "Matz" Matsumoto
e.g. ``` def m(a,(b,c),d); p [a,b,c,d]; end m(1,[2,3],4) # => [1,2,3,4] ``` mruby limitation: Destructured arguments (`b` and `c` in above example) cannot be accessed from the default expression of optional arguments and keyword arguments, since actual assignment is done after the evaluation of those default expressions. Thus: ``` def f(a,(b,c),d=b) p [a,b,c,d] end f(1,[2,3]) ``` raises `NoMethodError` for `b` in mruby.
2018-11-25Remove redundant rules from `parse.y`.Yukihiro "Matz" Matsumoto
2018-11-25Fix wrong number of arguments in `Array#fetch`; fix #4170Yukihiro "Matz" Matsumoto
2018-11-25Protect from exceptions raised outside of `mrb_vm_run()`.Yukihiro "Matz" Matsumoto
It can happen if signals are used (e.g. from `mruby-alarm` gem).
2018-11-25Remove `do { ... } while(0)` hacks from `MRB_TRY` macros.Yukihiro "Matz" Matsumoto
Because it can swallow `break` etc. if they are used in loops.
2018-11-22Fix mruby-socket test failure on MinGW.Hiroshi Mimaki
2018-11-21Merge pull request #4168 from robfors/docYukihiro "Matz" Matsumoto
Add documentation to mrb_load_irep
2018-11-20Update documentation to mrb_load_irepRob Fors
2018-11-20Update version number; fix #4165Yukihiro "Matz" Matsumoto
2018-11-20Fixed a bug in `mirb` heredoc handling; fix #3989Yukihiro "Matz" Matsumoto
2018-11-20Stop special treating of `\r` in the lexer; fix #4132Yukihiro "Matz" Matsumoto
2018-11-20Restrict total recursion number of `ecall()`; fix #3789Yukihiro "Matz" Matsumoto
2018-11-19Add `-fpermissive` to C++ compiler flags.Yukihiro "Matz" Matsumoto