summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2015-12-12mrb_str_len_to_inum: converting may not be terminated by NUL; fix #3044Yukihiro "Matz" Matsumoto
2015-12-01preserve original string for error messageYukihiro "Matz" Matsumoto
2015-12-01mrb_str_len_to_inum(): inspect string in error messageYukihiro "Matz" Matsumoto
2015-12-01new API function mrb_string_value_len()Yukihiro "Matz" Matsumoto
2015-12-01mrb_str_to_inum(): should treat null byte in strings properly; fix #3040Yukihiro "Matz" Matsumoto
2015-12-01mrb_cstr_to_inum(): should ignore trailing white spaces even when badcheck setYukihiro "Matz" Matsumoto
2015-12-01mrb_str_to_inum(): should raise error when string contains null byteYukihiro "Matz" Matsumoto
2015-12-01mrb_str_to_inum(): no need to call mrb_string_value_cstr() here; ref 05411eeYukihiro "Matz" Matsumoto
2015-12-01mrb_string_value_cstr() should not raise error for frozen stringsYukihiro "Matz" Matsumoto
cf. http://qiita.com/tsahara@github/items/b2a442af95ac893e10a1 (Japanese).
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-11-19integer range check was moved to mrb_flo_to_fixnum(); ref #3025Yukihiro "Matz" Matsumoto
2015-11-18Bugfix nagative-number lshift() bit overflowmurase_syuka
2015-11-18Bugfix lshift() bit overflow; close #3023murase_syuka
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