summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mirb/tools
AgeCommit message (Collapse)Author
2018-09-04Add type casts to silence MSVC warnings.Yukihiro "Matz" Matsumoto
2018-06-20Fix memory leaks in mirb.take-cheeze
2018-06-19Fix wrong free functionKouhei Sutou
mrb_locale_free() should be used for the return value of mrb_locale_from_utf8().
2018-05-08Fix CI build errors and warnings.Hiroshi Mimaki
2018-05-07Add `-r` option for `mruby` and `mirb`.Hiroshi Mimaki
2018-05-02Add `-d` option for `mruby` and `mirb`.Hiroshi Mimaki
2017-12-13fix locale in mirbYasuhiro Matsumoto
2017-12-08Use `RL_READLINE_VERSION` to determine `rl_free` existence; fix #3875Yukihiro "Matz" Matsumoto
2017-12-04Some OS uses `libedit` that does not provide `rl_free()`.Yukihiro "Matz" Matsumoto
`libedit` is a `readline` compatible library with BSD license.
2017-12-04Free read lines using the deallocation function from the library.Yukihiro "Matz" Matsumoto
To avoid potential `malloc/free` mismatch.
2017-11-04Make `mirb` to print warnings; ref #3827Yukihiro "Matz" Matsumoto
2017-11-03Reduce memory leaks from `mirb`.Yukihiro "Matz" Matsumoto
2017-10-28Heavily refactored how lexical scope links are implemented; fix #3821Yukihiro "Matz" Matsumoto
Instead of `irep` links, we added a `upper` link to `struct RProc`. To make a space for the `upper` link, we moved `target_class` reference. If a `Proc` does not have `env`, `target_class` is saved in an `union` shared with `env` (if a `Proc` has env, you can tell it by `MRB_PROC_ENV_P()). Otherwise `target_class` is referenced from `env->c`. We removed links in `env` as well. This change removes 2 members from `mrb_irep` struct, thus saving 2 words per method/proc/block. This also fixes potential memory leaks due to the circular references caused by a link from `mrb_irep`.
2017-10-16Need to adjust the stack length of the top-level environment; fix #3819Yukihiro "Matz" Matsumoto
2017-04-13Fix an off-by-one causing a buffer overflow in mirb.Clayton Smith
2017-04-12Let 'mrb_vm_run()` to restore the calling fiber; ref #3537Yukihiro "Matz" Matsumoto
2017-04-05Should restore to the root fiber for each interaction; fix #3537Yukihiro "Matz" Matsumoto
2017-04-03Revert "Adjust VM stack window size; fix #3547"Yukihiro "Matz" Matsumoto
This reverts commit 6dabb33635a149fc571cf285352ea4f89bdc52f0.
2017-04-03Adjust VM stack window size; fix #3547Yukihiro "Matz" Matsumoto
2016-07-27Update mirb.cMalizia R
2016-01-07change mrb_run related API names; compatibility macros providedYukihiro "Matz" Matsumoto
2016-01-02mirb: enlarge code buffer size to 4KBYukihiro "Matz" Matsumoto
2015-12-26remove duplicated local variable declarationYukihiro "Matz" Matsumoto
2015-12-26mirb: Don't exit on Ctrl-Ckyab
2015-12-01avoid comparison between signed and unsignedYukihiro "Matz" Matsumoto
2015-11-27Merge pull request #2950 from mattn/mirb-file-argsYukihiro "Matz" Matsumoto
mirb should take filename and arguments.
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-09-12mirb should take filename and arguments.Yasuhiro Matsumoto
2015-09-11Support windows localeYasuhiro Matsumoto
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free. Just works for windows.
2015-01-19Merge pull request #2680 from sdottaka/add-fflushYukihiro "Matz" Matsumoto
mrdb, mirb: Add fflush() so that a external program can read output imme...
2015-01-03Removed duplicated declarations.Tatsuhiko Kubo
* `mrb_show_version()` * `mrb_show_copyright()`
2014-12-19mrdb, mirb: Add fflush() so that a external program can read output immediately.sdottaka
2014-12-12mirb dies if #inspect returns a non-string value; fix #2666Yukihiro "Matz" Matsumoto
2014-08-22Use sizeof() instead of strlen().Tatsuhiko Kubo
2014-08-19Fix error handlings in mirb.Tatsuhiko Kubo
mrb_parser_new() and mrb_generate_code() may return NULL.
2014-07-12call `mrb_malloc_simple` instead of `malloc`cremno
2014-07-11allocate `history_path` dynamicallycremno
`PATH_MAX` doesn't have to be defined and if it is, then its value is usually incorrect (possible buffer overflow). Use `malloc` and `snprintf` instead to prevent this. https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
2014-06-30Use `TRUE` instead of `1` in mirb code.take_cheeze
2014-06-09Add a missing space after ","Kouhei Sutou
2014-06-06partially revert 1a5841b for mirbcremno
Fix compilation fail caused by GNU Readline and `ISPRINT`. Also add missing `unsigned char` cast.
2014-06-05use uppercase US-ASCII ctype macroscremno
2014-05-15allow quit/exit to work within mirb; fix #2253 close #2254Yukihiro "Matz" Matsumoto
also allow spaces around quit/exit.
2014-05-13remove unnecessary semicolons from a38f8fYukihiro "Matz" Matsumoto
2014-05-13support comments in user-input; also add checks for buffer overflowYukihiro "Matz" Matsumoto
2014-05-03Suppress warning when using readline in mirb.take_cheeze
2014-05-01Use header searcher to find readline and linenoise.take_cheeze
2014-04-30remove trailing spacesNobuyoshi Nakada
2014-03-08support linenoise in mirbtakkaw
2014-03-05small refactortakkaw
2014-02-23Fix unused function warning when readline enabled (mirb)kyab