summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
AgeCommit message (Collapse)Author
2014-04-02implement part of Array#<=> in CYukihiro "Matz" Matsumoto
2014-04-02implement Array comparisons by RubyYukihiro "Matz" Matsumoto
2014-04-01move Array#inspect implementation to mrblib/array.rbYukihiro "Matz" Matsumoto
2014-03-18add a space after C reserved wordsYukihiro "Matz" Matsumoto
2014-03-18Reduce implicit type casts.Masaki Muranaka
2014-03-01add _FLAG to SET_SHARED macros; ref #1750Yukihiro "Matz" Matsumoto
2014-03-01Merge branch 'array-shared-macro' of https://github.com/ksss/mruby into ↵Yukihiro "Matz" Matsumoto
ksss-array-shared-macro
2014-02-27move check condition to outside in while blockksss
2014-02-27add macro ARY_UNSET_SHAREDksss
2014-02-27add macro ARY_SET_SHAREDksss
2014-02-26add macro ARY_SHARED_Pksss
2014-02-12array implementation: several small changescremno
src/array.c: - make various functions without declaration in the mruby headers static - removed all uncessary int casts and two useless comments mrb_ary_new_from_values: move to similar functions mrb_check_array_type: fix indentation include/mruby/array.h: mrb_shared_array: padding (default "mrbconf.h" on an usual 64-bit system) sizeof(mrb_int)==sizeof(int)==4 && sizeof(mrb_value*)==8 both: mrb_ary_aget: remove declaration in header and make static nobody uses it which is not surprising since it has 1 req arg! mrb_assoc_new: small optimization and move to similar functions mrb_ary_len: re-implement as static inline function (it is used by mrbgems) programmers should directly use RARRAY_LEN instead
2014-02-08made mrb_define_class to return existing class, with heavy refactoringYukihiro "Matz" Matsumoto
2014-02-06use mrb_str_new_lit() more widelyYukihiro "Matz" Matsumoto
2014-02-01fix NODE_SPLAT codegenh2so5
2014-01-30Array#[]= is now range awareYukihiro "Matz" Matsumoto
2014-01-29move range aware aget to array.c from mruby-array-ext gemYukihiro "Matz" Matsumoto
2014-01-07remove superfluous includescremno
- reduce compile time by a little bit (full-core: ~0.7s for me) - thanks to 'include-what-you-use' for some help - include Standard C header files before any other (coding style)
2014-01-04should splat and iterate elements when "*ary" speficied in the case-when ↵Yukihiro "Matz" Matsumoto
clause; close #1627
2014-01-03mrb_ary_splat() to call #to_aYukihiro "Matz" Matsumoto
2014-01-02Merge pull request #1634 from cremno/use-mrb_fixnum_pYukihiro "Matz" Matsumoto
tiny word boxing optimization
2014-01-02remove various preprocessor conditionalscremno
- HAVE_IEEEFP_H is nowhere defined or needed at all - FreeBSD < 4 is unsupported since years - MSVC workaround (around what exactly?)
2014-01-02tiny word boxing optimizationcremno
2013-12-07Fix ISO no in Array#* and Array#+Jun Hiroe
2013-12-01add mrb_intern_lit for creating symbol from string literaltake_cheeze
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-11-01changed argument type of mrb_ary_modify(); ref #1554Yukihiro "Matz" Matsumoto
2013-10-31add mrb_ary_modify(mrb,a); you have to ensure mrb_value a to be an array; ↵Yukihiro "Matz" Matsumoto
ref #1554
2013-07-22change else formattingYukihiro "Matz" Matsumoto
2013-07-18Changed use of MRB_INT_MAX to MRB_INT_MAX-1Carson McDonald
2013-07-01Refactor mrb_ary_eql() func in array.c.Jun Hiroe
2013-07-01Refactor mrb_ary_equal() func in array.c.Jun Hiroe
2013-06-13fix indentYukihiro "Matz" Matsumoto
2013-05-18removed unused variables / assigns never usedJulien Ammous
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-04-20put spaces after if/whileYukihiro "Matz" Matsumoto
2013-04-01Fix typos.Masaki Muranaka
2013-03-29Rearrange SIZE_MAX. It is supported also VC++ since its version10. And there ↵Masaki Muranaka
seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++.
2013-03-29Sort include files. Some redundant includes are removed.Masaki Muranaka
2013-03-27use new mrb_format API from mrb_raisef; its only format specifier is "%S" ↵Yukihiro Matz Matsumoto
(stringify) and takes mrb_value; close #1062
2013-03-26Remove #if 0 ... #endif code.Masaki Muranaka
2013-03-24Adjusted indent, space and tabMATSUMOTO Ryosuke
2013-03-24resolve conflictYukihiro Matz Matsumoto
2013-03-23Make array.c and vm.c share value_move().Masaki Muranaka
2013-03-22Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by ↵Masaki Muranaka
strlen().
2013-03-19rename mrb_true_or_false_value() to mrb_bool_value()Yukihiro Matz Matsumoto
2013-03-19Use mrb_true_or_false_value() / in mrb_ary_eql().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in mrb_ary_equal().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in mrb_ary_empty_p().Masaki Muranaka
2013-03-14Add break to default case in switch statementkano4