summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2017-06-19Fixed disclosure of local variables by `eval`; ref #3710Yukihiro "Matz" Matsumoto
This patch fixes the latter part of #3710. We need to change `struct REnv` to fix the former part of the issue.
2017-06-16Use `MRB_PRId` instead of `d` for mrb_int decimal specifier; ref #3701Yukihiro "Matz" Matsumoto
2017-06-16Use `mrb_str_new()` instead of `malloc()`; ref #3701Yukihiro "Matz" Matsumoto
Otherwise the function may terminate and cause memory leaks.
2017-06-16Should not use `sizeof(buf)` when `buf` is `char*`; #3701Yukihiro "Matz" Matsumoto
2017-06-16Merge branch 'string-upto' of https://github.com/ksss/mruby into ↵Yukihiro "Matz" Matsumoto
ksss-string-upto
2017-06-15Call write barriers for stack-modified fibers; fix #3699Yukihiro "Matz" Matsumoto
2017-06-15Print the file name along with line number on syntax errors; fix #3698Yukihiro "Matz" Matsumoto
2017-06-15Prevent Fiber#initialize to be called twice; fix #3705Yukihiro "Matz" Matsumoto
2017-06-14Use malloc instead of dynamic allocationksss
2017-06-14Fix arena overflow errorksss
2017-06-14Reimplement String#uptoksss
2017-06-07Handles exceptions from code generation phase; fix #3695Yukihiro "Matz" Matsumoto
2017-06-05Limit recursion level of `codegen()`; fix #3690Yukihiro "Matz" Matsumoto
2017-06-02Revert "Update NODE_BLOCK check logic in `void_expr_error`."Yukihiro "Matz" Matsumoto
This reverts commit 31e30686b0bd9333eb0593fb1fb43b9b99744517.
2017-06-02Update NODE_BLOCK check logic in `void_expr_error`.Yukihiro "Matz" Matsumoto
2017-06-02Fixed a bug in `void_expr_error`.Yukihiro "Matz" Matsumoto
2017-06-02Add more precise void expression checks; ref #3686Yukihiro "Matz" Matsumoto
2017-06-01Check for super using OP_ARGARY; fix #3678Yukihiro "Matz" Matsumoto
It generates a wasted empty array for each `super` call though. It should be fixed in the future, if possible.
2017-05-29Mark the proc object representing top-level as an internal object; #3621Yukihiro "Matz" Matsumoto
2017-05-26Fixed off-by-one error in `fiber_switch()`; ref #3641Yukihiro "Matz" Matsumoto
2017-05-25Raise an exception when transfer arguments are too many; fix #3641Yukihiro "Matz" Matsumoto
The fix was proposed by @block8437. Thank you.
2017-05-25Make `gen_assignment()` to support `NODE_SCALL`; ref #3658Yukihiro "Matz" Matsumoto
2017-05-25Under MRB_INT64, width may be bigger than INT_MAX; fix #3665Yukihiro "Matz" Matsumoto
2017-05-23Remove class info from backtrace lines.Yukihiro "Matz" Matsumoto
2017-05-21String#concat: Try to convert when not stringksss
2017-05-12Change return back to break in the default case.Clayton Smith
2017-05-08Fix segmentation fault ref: #3648ksss
2017-04-29Better error messageNobuyoshi Nakada
Raise argument error with the better message, at the only place where the size to fill can be negative.
2017-04-29Use `FILL` and `PUSH`Nobuyoshi Nakada
Instead of loop or `memcpy` after `CHECK`, use dedicated macros, `FILL` and `PUSH`, respectively.
2017-04-25Silence warnings caused by implicit type casting.Yukihiro "Matz" Matsumoto
2017-04-25Add explicit cast from double to long.Yukihiro "Matz" Matsumoto
2017-04-25Avoid use of `snprintf()` when DISABLE_STDIO is set; fix #3632Yukihiro "Matz" Matsumoto
ref #3492 #3515 #3517
2017-04-24Merge pull request #3630 from nobu/bug/sprintf-sp3infYukihiro "Matz" Matsumoto
Fix space flag with inf/nan
2017-04-23Fix embedded document with unterminated terminatorNobuyoshi Nakada
`skips()` is `mrb_bool` function, should return `FALSE` at EOF, not `EOF`.
2017-04-23Refactor "%f" % Inf/NaNNobuyoshi Nakada
As for non-finite float, calculate the exact needed size with the space flag.
2017-04-23Fix space flag when Inf/NaN and width==3Nobuyoshi Nakada
While `"% 2f"` and `"% 4f"` result in `" Inf"` and `" Inf"` respectively, `"% 3f"` results in `"Inf"` (no space).
2017-04-22Merge pull request #3628 from yyamano/libmruby-pathYukihiro "Matz" Matsumoto
Add --libmruby-path support to mruby-bin-mruby-config.
2017-04-22Keep reference to mrb_context from env; fix #3619Yukihiro "Matz" Matsumoto
2017-04-22Add --libmruby-path support to mruby-bin-mruby-config.Yuji Yamano
2017-04-22Alias should `push()` extra stack space for blocks.Yukihiro "Matz" Matsumoto
2017-04-21Assign to local variable first; cosmetic change.Yukihiro "Matz" Matsumoto
2017-04-21Merge pull request #3623 from take-cheeze/struct_freezeYukihiro "Matz" Matsumoto
Support `freeze` method in `Struct`.
2017-04-21Fix typo in usage message.Yuji Yamano
2017-04-21Support freeze in `Struct`.take_cheeze
2017-04-20Allow `mrb_objspace_each_objects()` to break iteration; ref #3359Yukihiro "Matz" Matsumoto
2017-04-19Use trampoline technique for `instance_exec`; ref #3359Yukihiro "Matz" Matsumoto
A new function `mrb_yield_cont()` is provided. You have to call it at the end of a C defined method, e.g. `return mrb_yield_cont()`.
2017-04-18Changed evaluation order of `yield`; ref #3613Yukihiro "Matz" Matsumoto
So that `yield expr_with_error` will cause the error from the argument rather than `LocalJumpError` when no block is given.
2017-04-13Fix an off-by-one causing a buffer overflow in mirb.Clayton Smith
2017-04-13Struct may not be initialized in #to_h; fix #3607Yukihiro "Matz" Matsumoto
2017-04-13Fixed a bug in NODE_XSTR code generation; fix #3605Yukihiro "Matz" Matsumoto