diff options
| author | cremno <[email protected]> | 2014-02-12 00:37:47 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-02-12 00:37:47 +0100 |
| commit | 7691b649634166bfc769ba58edcbe91aced50828 (patch) | |
| tree | e097b53199b134766ca13f2e0f651a8e33c444e2 /include/mruby.h | |
| parent | 27dbcd0f0d6f6144d5d59d215131bdbafda14f46 (diff) | |
| download | mruby-7691b649634166bfc769ba58edcbe91aced50828.tar.gz mruby-7691b649634166bfc769ba58edcbe91aced50828.zip | |
array implementation: several small changes
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
Diffstat (limited to 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions
