summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
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
2015-08-11Remove non-need tmp valuego.kikuta
2015-08-10prevent out-of-bounds ensure clause access; fix #2910Yukihiro "Matz" Matsumoto
2015-08-07FIXABLE() may work wrong on MRB_INT64; fix #2909Yukihiro "Matz" Matsumoto
2015-07-30vm: execute ensure without exception at the top of the fiber; fix #2904Yukihiro "Matz" Matsumoto
2015-07-30vm: execute ensure at the top of the fiber; fix #2903Yukihiro "Matz" Matsumoto
2015-07-16Make include_module_at staticCorey Powell
Since I can't forsee any reason to use it directly inplace of using prepend/include
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-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-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-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-13Set origin when doing kind_of? comparisonsBlaž Hrastnik
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-13Include prepended methods in the instance_methods list.Blaž Hrastnik
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-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-11Removing unndeeded to_sjbreeden
2015-07-11Patching array joinjbreeden