summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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-15Renamed MRB_FLAG_IS_INSTANCE to MRB_INSTANCE_TT_MASKCorey Powell
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-14Remove non-applicable "hack" commentCorey Powell
2015-07-14Applied gc patch to fix ORIGIN ICLASS method table leakCorey Powell
Based on the gc patch by ko1 https://github.com/ruby/ruby/commit/5922c954614e5947a548780bb3b894626affe6dd
2015-07-14Renamed parameters in include_module_atCorey Powell
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-13Clean up testsBlaž Hrastnik
2015-07-13assert() cannot be nestedBlaž Hrastnik
2015-07-13Set origin when doing kind_of? comparisonsBlaž Hrastnik
2015-07-13Enable test_prepend_module_ancestors because it seems to pass.Blaž Hrastnik
2015-07-13Space out test_prepend_super_in_alias assertCorey Powell
Also tried to fix it, however the problem lies with how aliased methods are done and their internal structure. mruby simply aliases methods by grabbing the RProc and giving it a new name, super then determines the original method to call by using the name so a method called m, aliased as m2, will call the m2 super method instead of m
2015-07-13included_modules, origin fixCorey Powell
Prepended modules would include their origin ICLASS
2015-07-13Bugfix, included_modules would include classesCorey Powell
2015-07-13Removed comment beside method_removedCorey Powell
Not sure if this apart of the ISO standard, so make sure its not misrepresented
2015-07-13Added Module#method_removed hookCorey Powell
2015-07-13Enable visibility prepend tests againBlaž Hrastnik
2015-07-13Include prepended methods in the instance_methods list.Blaž Hrastnik
2015-07-13Ported all MRI prepend testsCorey Powell
And of course, some of them fail miserably
2015-07-13Removed some debug prints from the testCorey Powell
2015-07-13Ported a bit more of the MRI Module#prepend tests overCorey Powell
Currently kind_of fails miserably, still looking for the reason
2015-07-13Fixed Modules not being fully initialized before #initialize was calledCorey Powell
2015-07-13Added changed check to the mrb_include_moduleCorey Powell
2015-07-13Remove some remnant debug codeCorey Powell
2015-07-13Additional patches to make this workCorey Powell
2015-07-13Comment in a refactor to match MRI, but that fails 320 tests.Blaž Hrastnik
2015-07-13origin must be initializedBlaž Hrastnik
2015-07-13Expose insert position, which should be at origin for include and klass forBlaž Hrastnik
prepend.
2015-07-13Rename classes because of conflictsBlaž Hrastnik
2015-07-13Implement Module#prepend.Blaž Hrastnik
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