summaryrefslogtreecommitdiffhomepage
path: root/src/range.c
AgeCommit message (Collapse)Author
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.
2014-08-16removed unused variable in range_beg_lengo kikuta
2014-08-04fix linkage of range_beg_len and mrb_range_beg_lencremno
2014-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-05-18Change range_check before mrb_obj_alloc.yui-knk
2014-05-17Use boolean macro in mrb_range_initialize()Jun Hiroe
2014-05-03new macro mrb_int(mrb,x) to retrieve mrb_int from mrb_value with conversion ↵Yukihiro "Matz" Matsumoto
if needed
2014-05-03use proper length for mrb_get_values_at()Yukihiro "Matz" Matsumoto
separate mrb_range_beg_len() into two: the one truncates range into the sequence size, and the one does not. #values_at uses the latter.
2014-05-03reindent elseYukihiro "Matz" Matsumoto
2014-05-03convert range edges to integersYukihiro "Matz" Matsumoto
2014-05-03do not raise error in mrb_range_beg_len()Yukihiro "Matz" Matsumoto
2014-05-03raise TypeError instead of ArgumentError when argument of wrong type given ↵Yukihiro "Matz" Matsumoto
to the values_at
2014-05-03Merge branch 'values_at' of https://github.com/take-cheeze/mruby into ↵Yukihiro "Matz" Matsumoto
take-cheeze-values_at
2014-05-03remove each from range.cYukihiro "Matz" Matsumoto
2014-05-02Implement Struct#values_at and Array#values_at .take_cheeze
Add API `mrb_get_values_at()` to mruby/range.h .
2014-04-24range_init argument for exclude_end use mrb_boolksss
2014-04-24mrb_range_new excl flag use mrb_bool insteard of intksss
2014-04-15resolve conflictYukihiro "Matz" Matsumoto
2014-02-09Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUEYukihiro "Matz" Matsumoto
use mrb_bool, FALSE and TRUE more
2014-02-08made mrb_define_class to return existing class, with heavy refactoringYukihiro "Matz" Matsumoto
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
2014-01-31clean up external symbolscremno
remove unused and unneeded: - sysexit_status - type (a global variable) add mrb_ prefix to: - codedump_all - class_instance_method_list - parser_dump make various functions static, incl.: - yyparse - make_exception
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-06-15Merge upstreamDaniel Bovensiepen
2013-06-17Add ISO Number to RangeDaniel Bovensiepen
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