summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2015-07-18Merge pull request #2892 from Mav7/masterYukihiro "Matz" Matsumoto
Added documentation for hash.
2015-07-17Deleted range and string markdowns for now.Ralph Desir(Mav7)
2015-07-17Update hash.h.mdRalph Desir
2015-07-17Update hash.h.mdRalph Desir
2015-07-17Merge pull request #2890 from jbreeden/sub_pattern_not_foundYukihiro "Matz" Matsumoto
Don't crash if pattern not found for sub
2015-07-16Don't crash if pattern not found for subJared Breeden
2015-07-16Merge pull request #2889 from takkaw/fix_build_cygwin64Yukihiro "Matz" Matsumoto
64bit Cygwin also doesn't have frexpl(3)
2015-07-16Merge pull request #2887 from ↵Yukihiro "Matz" Matsumoto
cremno/use-mrb_str_cat_str-instead-of-mrb_str_append use mrb_str_cat_str() instead of mrb_str_append()
2015-07-16Merge pull request #2888 from ↵Yukihiro "Matz" Matsumoto
cremno/delete-non-nullptr-checks-before-mrb_free()-calls delete mrb_free()-related non-NULL checks
2015-07-1664bit Cygwin also doesn't have frexpl(3)takkaw
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-16use mrb_str_cat_str() instead of mrb_str_append()cremno
If the argument is always a string, then mrb_str_cat_str() can be directly called instead of indirectly by mrb_str_append(). mrb_any_to_s(), mrb_obj_as_string(), mrb_inspect() always return a string.
2015-07-15mrb_protect() to return the exception raised (with the state of true)Yukihiro "Matz" Matsumoto
2015-07-15add an small comment description in mruby/error.h headerYukihiro "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-15Refactor `Build#compile_as_cxx`.take_cheeze
2015-07-14Merge pull request #2884 from jbreeden/doc_bang_modifierYukihiro "Matz" Matsumoto
Doc bang modifier
2015-07-13Fix typojbreeden
2015-07-13Add ! documentation to mruby.h.mdjbreeden
2015-07-14mrb_get_args: improve function description about !Yukihiro "Matz" Matsumoto
2015-07-14mrb_get_args: allow d!Yukihiro "Matz" Matsumoto
2015-07-14mrb_get_args: allow A,H,s,z,a,d specifiers to take ! to accept nil.Yukihiro "Matz" Matsumoto
S,A,H gives nil, s,z,a,d gives NULL for nil argument. ref 02474da
2015-07-13use "S!" specifier of mrb_get_args() to improve #2882 fix.Yukihiro "Matz" Matsumoto
2015-07-13allow '!' after 'S' specifier of mrb_get_args() that allow nil.Yukihiro "Matz" Matsumoto
thus "S!" means String|nil type. you have to check nil before dereferencing the value. this is added to address #2882 while keeping code simplicity. besides that current #2882 fix lose polymorphism provided by mrb_get_args().
2015-07-13refactor mrb_bob_missing to share raising NoMethodError code; fix #2878Yukihiro "Matz" Matsumoto
Note: arguments of mrb_no_method_error() has changed. You need to replace 3rd and 4th argument (say n, argv) to mrb_ary_new_from_values(mrb, n, argv).
2015-07-12Merge pull request #2883 from jbreeden/array_join_nilYukihiro "Matz" Matsumoto
Patching array join
2015-07-11Removing unndeeded to_sjbreeden
2015-07-11Patching array joinjbreeden
2015-07-09Merge pull request #2880 from mattn/llroundYukihiro "Matz" Matsumoto
implement llround. some platform (ex: mingw32) doesn't have llround.
2015-07-09use round for llround. some platform (ex: mingw32) doesn't have llround.Yasuhiro Matsumoto
2015-07-08Update hash.h.mdRalph Desir
2015-07-08Added new markdowns.Mav7
2015-07-07method_missing definition may be undefined; fix #2878Yukihiro "Matz" Matsumoto
2015-07-07Merge pull request #2877 from cremno/fix-dangling-ptrYukihiro "Matz" Matsumoto
Coverity: fix dangling pointer
2015-07-07Merge pull request #2876 from joans321/masterYukihiro "Matz" Matsumoto
fix androideabi cross-compile error : undefined reference to 'frexpl'
2015-07-07Merge pull request #2875 from davydovanton/doc-comment-typoYukihiro "Matz" Matsumoto
Fix typo in comment in String#mrb_cstr_to_inum
2015-07-06fix androideabi cross-compile error : undefined reference to 'frexpl'xuejianqing
2015-07-05Fix typo in comment in String#mrb_cstr_to_inum [skip ci]Anton Davydov
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-03Merge pull request #2873 from cremno/fix-coverity-missing-break-in-switchYukihiro "Matz" Matsumoto
Coverity: fix missing break in switch defects
2015-07-03fix dangling pointercremno
CID 75872 (#3-2 of 3): Pointer to local outside scope (RETURN_LOCAL) 38. use_invalid: Using p, which points to an out-of-scope variable buf.
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-03remove unnecessary default casecremno
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-07-01Merge pull request #2869 from cremno/refactor-print.cYukihiro "Matz" Matsumoto
src/print.c: rewrite printstr() to get rid of code duplication
2015-07-01Merge pull request #2868 from sgnr/avoid-narrowing-cast-in-flo-roundYukihiro "Matz" Matsumoto
Avoid a narrowing cast in flo_round under MRB_INT64.