summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2015-11-17add RUBY_ENGINE_VERSIONcremno
RUBY_ENGINE_VERSION is equivalent to MRUBY_VERSION. It would be a standard way to get the interpreter version (without a case expression). It's also already defined by CRuby 2.3, JRuby 9000, Opal, and Rubinius.
2015-11-17DISABLE_STDIO/ENABLE_DEBUG macros to rename; close #3014Yukihiro "Matz" Matsumoto
changes: * rename DISABLE_STDIO -> MRB_DISABLE_STDIO * rename ENABLE_DEBUG -> MRB_ENABLE_DEBUG_HOOK * no more opposite macro definitions (e.g. ENABLE_STDIO, DISABLE_DEBUG). * rewrite above macro references throughout the code. * update documents
2015-11-16fix commentmurase_syuka
2015-11-08Merge pull request #3004 from cremno/remove-returnYukihiro "Matz" Matsumoto
remove return
2015-11-07PR #2521 did not work for singleton classes for non-class objects; fix #3003Yukihiro "Matz" Matsumoto
2015-11-06remove returncremno
The return type of the mrb_objspace_each_objects function is void. So this return statement with an expression is unnecessary and also violates a constraint. From C99 §6.8.6.4: >A return statement with an expression shall not appear >in a function whose return type is void.
2015-10-28mrb_get_args should consume argument even when type specifier with bang get ↵Yukihiro "Matz" Matsumoto
nil; fix #3002
2015-10-27mrb_str_concat() may call VM resursively thus may reallocate VM stack; close ↵Yukihiro "Matz" Matsumoto
#3000
2015-10-22Merge pull request #2999 from sagmor/better-docsYukihiro "Matz" Matsumoto
More Docs
2015-10-22align codedump output for OP_JMPYukihiro "Matz" Matsumoto
2015-10-22align codedump output for OP_RETURNYukihiro "Matz" Matsumoto
2015-10-21Merge branch 'master' of https://github.com/mruby/mruby into gc_cleanupfurunkel
2015-10-21Merge upstreamfurunkel
2015-10-21Merge pull request #2879 from cremno/call-always-frexp-instead-of-frexplYukihiro "Matz" Matsumoto
call always frexp() instead of frexpl()
2015-10-20Remove obvious warnings from docsSeba Gamboa
2015-10-20Increasing docs coverageSeba Gamboa
2015-10-20Prefix mrb_gc_state enum members, make color defines privatefurunkel
2015-10-20do not assert is_dead() during mark phase; close #2825 ref #2996 #2769Yukihiro "Matz" Matsumoto
2015-10-19Remove gc_ prefix of mrb_gc fieldsfurunkel
2015-10-19Move MRB_GC_ARENA_SIZE to gc.h and fix compiler warningsfurunkel
2015-10-19Remove segregated value struct declarationfurunkel
2015-10-19Clean up GC codefurunkel
2015-10-01Array#index to take block; fix #2968 close #2970Yukihiro "Matz" Matsumoto
2015-09-29chop with utf-8. fix #2967Yasuhiro Matsumoto
2015-09-27fix String#inspect with MRB_UTF8_STRINGtakahashim
cf. #2963
2015-09-25inspect prints valid UTF-8 character without escapingYukihiro "Matz" Matsumoto
2015-09-25add boundary check to utf8len() to avoid oob memory accessYukihiro "Matz" Matsumoto
2015-09-24UTF-8 string support in coreYukihiro "Matz" Matsumoto
define MRB_UTF8_STRING (in mrbconf.h) to enable UTF-8 support.
2015-09-23should initialize local variable prepended to falseYukihiro "Matz" Matsumoto
2015-09-23String#rindex should no longer take integer argumentYukihiro "Matz" Matsumoto
2015-09-22String#index should no longer take integer argumentYukihiro "Matz" Matsumoto
2015-09-22add new functions mrb_gc_register/unregister; close #1411Yukihiro "Matz" Matsumoto
some routines need to refer mruby objects (e.g. callbacks), in that case you have to protect your objects from garbage collection. the new functions mrb_gc_register() keeps those objects from GC. you have to remove your objects using mrb_gc_unregister() when your C routines use mruby objects any longer, otherwise objects will leak.
2015-09-19Fix indentsJun Hiroe
2015-09-18Replace 1 with TURE macroJun Hiroe
2015-09-12Don't crash if NULL is passed to mrb_closeTatsuhiro Tsujikawa
Sometimes it is very useful just return from mrb_close if NULL is passed as mrb. This is the same spirit of free(3), which just does nothing if NULL is passed.
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-09-10avoid unnecessary string duplications by checking the frozen flagKazuho Oku
2015-09-10freeze the hash key (fixes #2945)Kazuho Oku
2015-09-05remove `origin` member to implement prepend from struct RClass; ref #2885Yukihiro "Matz" Matsumoto
instead origin is saved in ICLASS with MRB_FLAG_IS_ORIGIN set.
2015-09-04Merge branch 'module-prepend' of https://github.com/polyfox/mruby into ↵Yukihiro "Matz" Matsumoto
polyfox-module-prepend
2015-09-03remove trailing spaces from bc9c47d5Yukihiro "Matz" Matsumoto
2015-09-03unsigned long may be smaller than mrb_int; use uint64_t instead; fix #2935Yukihiro "Matz" Matsumoto
2015-09-02Integer << and >> to use Float instead of raising RangeErrorYukihiro "Matz" Matsumoto
2015-09-02ensure must not be called before rescue; fix #2933Yukihiro "Matz" Matsumoto
2015-09-02update string.h.md; ref #2931Yukihiro "Matz" Matsumoto
2015-09-01Add a global const variable MRUBY_RELEASE_NOJun Hiroe
2015-08-27add String#freeze to the coreYukihiro "Matz" Matsumoto
2015-08-17fix irep float dump format string for MRB_USE_FLOATcremno
IEC 60559 single format has 6 to 9 significant decimal digits precision. However the printf conversion specifier e (and E, of course) already writes 1 digit - the one before the decimal point - and precision specifies the number of digits to write after the decimal point.
2015-08-12Merge pull request #2913 from gkta/remove-duplicate-len-checkYukihiro "Matz" Matsumoto
Remove duplicated RARRAY_LEN check in ary_elt
2015-08-12Remove duplicated RARRAY_LEN checkgo.kikuta