summaryrefslogtreecommitdiffhomepage
path: root/src/range.c
AgeCommit message (Collapse)Author
2014-01-02tiny word boxing optimizationcremno
2013-08-01remove unused inspect_rangeYukihiro "Matz" Matsumoto
2013-07-15Repalace int with mrb_bool because a return value is boolean.Jun Hiroe
2013-07-05Refactor mrb_range_beg_len() func in range.cJun Hiroe
2013-06-30Merge pull request #1324 from h2so5/fix-range-equalYukihiro "Matz" Matsumoto
Fix Range#==
2013-06-30Fix Range#==h2so5
2013-06-30Refactor range_eql() func in rangec.cJun Hiroe
2013-06-30Refactor mrb_range_eq() func in range.c.Jun Hiroe
2013-05-01Remove mrb_class_obj_geth2so5
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-04-22Use mrb_bool for the 'b' format specifier of mrb_get_argsh2so5
2013-03-19rename mrb_true_or_false_value() to mrb_bool_value()Yukihiro Matz Matsumoto
2013-03-19Use mrb_true_or_false_value() / in range_eql().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in mrb_range_include().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in mrb_range_eq().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in mrb_range_excl().Masaki Muranaka
2013-03-16Remove unused string.h.Masaki Muranaka
2013-03-03Clean up range.c. Use mrb_int. Use mrb_vtype.Masaki Muranaka
2013-03-01Add typedef to structures that have mrb_ prefix. Use typedef-ed type instead ↵Masaki Muranaka
of struct directly.
2013-02-26Simplify mrb_range_beg_len(). Don't use OTHER macro.Masaki Muranaka
2013-01-29Merge pull request #788 from masamitsu-murase/modify_range_initializeYukihiro "Matz" Matsumoto
Modify range initialize to prevent segmentation fault.
2013-01-29Remove unused function parametes.Masaki Muranaka
2013-01-28Initialize Range->edges after cheking `beg` and `end` to prevent ↵Masamitsu MURASE
segmentation fault.
2013-01-13Modify `Range#initialize` to accept optional `exclusive` argument.Masamitsu MURASE
2013-01-13Initialize edges of RRange.Masamitsu MURASE
2012-11-13fix the issue String#slice with Range may return broken String.Tomoyuki Sahara
2012-10-23mrb_raisef(): new function. Same as previou version of mrb_raise().Masaki Muranaka
mrb_raise(): API modified. It cannot treat variable arguments.
2012-10-15Avoid memcpy() on copying structure.Masaki Muranaka
2012-08-14NaN boxingYukihiro Matsumoto
2012-07-29Make all(?) void casts explicit for C++Max Anselm
2012-07-29Remove commented out code.Masaki Muranaka
2012-07-17remove debug printYukihiro Matsumoto
2012-07-16Supress using switches with fallthru or a empty default label.Masaki Muranaka
2012-07-14Remove unnecessary header inclusionJunji Sawada
2012-07-13add missing (empty) default for swtch; close #364Yukihiro Matsumoto
2012-07-13less <stdio.h>Yukihiro Matsumoto
2012-07-08small cosmetic changeYukihiro Matsumoto
2012-07-08proper type check when creating a range; #345Yukihiro Matsumoto
2012-07-07Range optimization. similar to #348Masaki Muranaka
2012-07-06range optimization from @monaka; close #348Yukihiro Matsumoto
2012-06-22Use mrb_str_new() instead of mrb_str_new2() as possible.Masaki Muranaka
2012-06-19range.c: typo fixedYukihiro Matsumoto
2012-06-19remove unused mrb_rescue()Yukihiro Matsumoto
2012-06-15Remove some redundant code.Masaki Muranaka
2012-06-14Remove unused functions.Masaki Muranaka
2012-06-03remove mrb_exec_recursiveYukihiro Matsumoto
2012-05-24made mrb_get_args() better (optinal args, type checks); close #173 #176Yukihiro Matsumoto
2012-05-23cast style consistencyYukihiro Matsumoto
2012-05-20More C++ compilability work: mrb_obj_alloc void* conversionsMitchell Blank Jr
One of the biggest set of changes needed to make C++ compile, is that you can't autoconvert "void*" to a different pointer type without a cast (you can of course, convert pointers *to* "void*"!) For the first part, convert the users of "mrb_obj_alloc". Since it has to return something, make it RBasic* (that's what mrb_obj_alloc() is operating on anyway). This way, even in C you'll get a warning if you don't cast it. For places where there are a lot of similar calls to mrb_obj_alloc(), this can be easily hidden through a macro. I did this in string.c: #define mrb_obj_alloc_string(mrb) ((struct RString *) mrb_obj_alloc((mrb), MRB_TT_STRING, (mrb)->string_class)) I also updated the mrb_object() macro to also return a RBasic* -- my previous commit changed that from "void*" -> "RObject*", but I figure it should be consistent with mrb_obj_alloc()
2012-05-16Remove some redundant function declarations.Masaki Muranaka