summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2015-08-22Use #nil? instead of == nil.INOUE Yasuyuki
2015-08-11compiler: allow "class A end" by tweaking the superclass rule like CRuby2.3Yukihiro "Matz" Matsumoto
2015-08-10codegen: don't need to genop(); just update s->iseq directlyYukihiro "Matz" Matsumoto
2015-08-10codegen: add peep hole optimization to skip overridden OP_MOVEYukihiro "Matz" Matsumoto
2015-08-10codegen: reserve stack region for OP_APOST; fix #2824Yukihiro "Matz" Matsumoto
2015-08-05add String#setbyte and String#byteslice to mruby-string-extYukihiro "Matz" Matsumoto
2015-08-01link libncurses when there's /usr/include/curses.h; fix #2905Yukihiro "Matz" Matsumoto
2015-07-29pop cmdarg in lambda body; fix [ruby-bug#11380]cremno
regression introduced by 2fe556d9c039839c20965a2c90dff703f04e40ec
2015-07-16delete mrb_free()-related non-NULL checkscremno
No need to optimize since a program only exits once and errors are rare. Also the mruby source code doesn't have these kind of checks elsewhere. The ones in {Time,Random}#initialize are kept because there it actually matters since initialization always happens and re-initialization is unlikely.
2015-07-15mrb_protect() to return the exception raised (with the state of true)Yukihiro "Matz" Matsumoto
2015-07-15remove unused variable declarationYukihiro "Matz" Matsumoto
2015-07-15Use class array instead of variadic.take_cheeze
2015-07-15Implement `mrb_protect`, `mrb_ensure`, `mrb_rescue`, `mrb_rescue_exceptions`.take_cheeze
(`mrb_rescue_exceptions` is mruby implementation of `rb_rescue2`.) Closes #2844, closes #2837.
2015-07-09use round for llround. some platform (ex: mingw32) doesn't have llround.Yasuhiro Matsumoto
2015-07-03Merge pull request #2871 from archSeer/patch-2Yukihiro "Matz" Matsumoto
Fix incorrect memory allocation of mrdb_state_new.
2015-07-03Merge pull request #2874 from cremno/fix-parser-oob-writeYukihiro "Matz" Matsumoto
Coverity: fix oob write by actually truncating buffer
2015-07-03fix oob write by actually truncating buffercremno
Found by Coverity scan of polyfox-moon: CID 121927 (#1 of 1): Out-of-bounds write (OVERRUN)
2015-07-02add missing fall through commentscremno
2015-07-02Fix incorrect memory allocation of mrdb_state_new.Blaž Hrastnik
As detected in a Coverity scan. https://scan8.coverity.com/reports.htm#v26153/p11375/fileInstanceId=6844472&defectInstanceId=2516000&mergedDefectId=75866
2015-06-29Merge pull request #2866 from jurriaan/fix-crashYukihiro "Matz" Matsumoto
Fix segfault found using afl-fuzz
2015-06-28Fix segfault found using afl-fuzzJurriaan Pruis
2015-06-28Rename extended xxxx class or module to xxxx class or module extensionJun Hiroe
2015-06-28Fix typo; Replace extensional with extendedJun Hiroe
2015-06-24Remove unnecessary backticks.Franck Verrot
Dr Markus Kuhn published in 1999 an article [1] explaining in details why we shouldn't use the ASCII grave accent (0x60) as a left quotation. Backticks have been used most notably to produce nice-looking LaTeX documents but it doesn't seem to be an issue on modern platforms and for the oldest ones, there are workarounds as mentioned by Dr Kuhn. [1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2015-06-23Merge pull request #2851 from hone/mruby_compilerYukihiro "Matz" Matsumoto
Need mruby-compiler to build mruby-bin-mruby and mruby-bin-mirb for
2015-06-22Need mruby-compiler to build mruby-bin-mruby and mruby-bin-mirb forTerence Lee
cross compiles
2015-06-22Proc#curry should preserve lambdascremno
2015-06-19Fix typos in documentation and error messages [skip ci]Anton Davydov
2015-06-17Added a check for 64 bit time_t overflow; based on a patch from @kext; close ↵Yukihiro "Matz" Matsumoto
#2836
2015-06-16Changed llrint to llroundLukas Joeressen
2015-06-15Rounding errors could make time_alloc impreciseLukas Joeressen
2015-06-13refactor code to call mrb_inspect() insteadcremno
mrb_inspect() also calls mrb_obj_as_string() after #inspect to ensure the mrb_value is a string.
2015-06-10Remove unused libterminfo detection code.Huei-Horng Yo
The detection code is unused even on OpenBSD 5.7, because of the standard installation is libtermcap be installed, not libterminfo. This fixes #2829 Tested on Arch Linux (x86_64) & OpenBSD 5.7 (amd64). Signed-off-by: Huei-Horng Yo <[email protected]>
2015-06-09Detect if ncurses' backend is terminfo or termcap. fixes #2662Huei-Horng Yo
Borrowed from @mattn's code at: https://github.com/mruby/mruby/issues/2662#issuecomment-65535705 Signed-off-by: Huei-Horng Yo <[email protected]>
2015-06-02push only after OP_GETCONST in VAL mode; ref #2769cremno
2015-06-01update lex.def using gperf 3.0.4Yukihiro "Matz" Matsumoto
2015-06-01Compile mruby compiler as mrbgem.take_cheeze
Compiler codes is moved to "mruby-compiler". Executable `mrbc` is moved to "mruby-bin-mrbc".
2015-05-28remove unnecessary including of <ctype.h>cremno
Not needed anymore since 85075bef7583edd0a48cfbdfaa632cbdacf78f2c
2015-05-20NetBSD does not have libreadline but readline(3) is in libedit.Tomoyuki Sahara
2015-04-18Suppress warnings generated by -Wwrite-stringsKouhei Sutou
Here are suppressed warnings: src/fmt_fp.c: In function 'fmt_fp': src/fmt_fp.c:124:16: warning: initialization discards 'const' qualifier from pointer target type char *ss = (t&32)?"inf":"INF"; ^ src/fmt_fp.c:125:17: warning: assignment discards 'const' qualifier from pointer target type if (y!=y) ss=(t&32)?"nan":"NAN"; ^ mrbgems/mruby-string-ext/src/string.c: In function 'mrb_str_succ_bang': mrbgems/mruby-string-ext/src/string.c:302:27: warning: assignment discards 'const' qualifier from pointer target type if (e == b) prepend = "1"; ^ mrbgems/mruby-string-ext/src/string.c:305:27: warning: assignment discards 'const' qualifier from pointer target type if (e == b) prepend = "a"; ^ mrbgems/mruby-string-ext/src/string.c:308:27: warning: assignment discards 'const' qualifier from pointer target type if (e == b) prepend = "A"; ^ mrbgems/mruby-bin-mruby/tools/mruby/mruby.c: In function 'main': mrbgems/mruby-bin-mruby/tools/mruby/mruby.c:213:13: warning: assignment discards 'const' qualifier from pointer target type cmdline = args.cmdline ? args.cmdline : "-"; ^ mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c: In function 'print_breakpoint': mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:159:3: warning: initialization discards 'const' qualifier from pointer target type char* enable_letter[] = {BREAK_INFO_MSG_DISABLE, BREAK_INFO_MSG_ENABLE}; ^ mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:159:3: warning: initialization discards 'const' qualifier from pointer target type
2015-03-31fix maximum value of the index when access breakpoints.Yuhei Okazaki
2015-03-22call C11's timespec_get()cremno
gettimeofday() is an obsolescent POSIX function which may be removed in a future version. POSIX recommends using clock_gettime() (also POSIX) instead, but it isn't available on OS X or Windows (at least with MSVC and older MinGW versions). Whereas timespec_get() is part of ISO C11 and mruby uses some small other C11 features too. It isn't universally available yet either, but it might be in the future. And Visual C++ 2015 implements it! Since mruby strives for ISO C and not POSIX compatibility, I think it's a reasonable choice. TIME_UTC is used instead of __STDC_VERSION__, because if TIME_UTC is defined, then most likely timespec_get() is too. This isn't true in case of __STDC_VERSION__ (see MSVC).
2015-02-19new API function mrb_fiber_resume(); ref #1269Yukihiro "Matz" Matsumoto
2015-02-19add description comment to mrb_fiber_yield()Yukihiro "Matz" Matsumoto
2015-02-07Remove eql_p variable in mrb_struct_eql funcJun Hiroe
2015-02-07Remove eql_p variable in mrb_struct_equal funcJun Hiroe
2015-02-06mruby-config supports MRUBY_LDFLAGS_BEFORE_LIBS in libmruby.flags.makMATSUMOTO Ryosuke
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-18mrdb: fix crash when stepping into Proc.callsdottaka
How to reproduce: ``` cat a.rb Proc.new { 1 }.call echo step | mrdb a.rb ```
2015-01-13Add String#uptoJun Hiroe