cremno
7691b64963
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
2014-02-12 00:37:47 +01:00
Yukihiro "Matz" Matsumoto
92825660ea
changed argument type of mrb_ary_modify(); ref #1554
2013-11-01 09:57:20 +09:00
Yukihiro "Matz" Matsumoto
af03812877
add mrb_ary_modify(mrb,a); you have to ensure mrb_value a to be an array; ref #1554
2013-10-31 23:34:08 +09:00
Yukihiro "Matz" Matsumoto
40e6cdcb5c
rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source
2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki
8dc2fa3bc8
add read barrier to value.p
...
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Yukihiro Matz Matsumoto
8ce842a5d9
implement mrb_format and mrb_vformat
2013-03-27 23:03:48 +09:00
Yukihiro Matz Matsumoto
8d98b84543
removed compatibility macros mrb_ary_new_elts() and mrb_ary_new4()
2013-03-15 23:23:45 +09:00
Yukihiro Matz Matsumoto
cdd41a33de
unify mrb_ary_new{,_elts,_from_values}; mrb_ary_from_values() is a winner
2013-03-08 05:18:33 +09:00
Masaki Muranaka
f998691da8
Define ARY_MAX_SIZE strictly. Use mrb_int instead of int.
2013-03-03 11:43:56 +09:00
Masaki Muranaka
e4231a0a33
Add typedef to structures that have mrb_ prefix. Use typedef-ed type instead of struct directly.
2013-03-01 14:28:22 +09:00
Daniel Bovensiepen
af75d8de2c
Export mrb_ary_clear in array.h
2013-01-08 10:07:15 +08:00
Yukihiro Matsumoto
97b7eb6096
rename MRUBY_OBJECT_HEADER to MRB_OBJECT_HEADER
2012-08-18 19:05:18 +09:00
Yukihiro Matsumoto
7d02df3016
NaN boxing
2012-08-14 13:16:34 +09:00
Masaki Muranaka
7ac4b56141
Remove unimplemented declarations.
2012-07-29 20:35:23 +09:00
Yukihiro Matsumoto
4c01f002fd
mruby/array.h: rename buf to ptr
2012-06-05 23:20:36 +09:00
Yukihiro Matsumoto
e4529c065d
make arrays to share bodies
2012-06-03 23:05:31 +09:00
Yukihiro Matsumoto
34c049c63e
remove unused mrb_mem_clear
2012-06-02 21:34:10 +09:00
Yukihiro Matsumoto
92ee53146f
unify long,size_t to int in array.[ch]
2012-06-02 21:30:04 +09:00
Yukihiro Matsumoto
0e46f49aaa
changed prototype mrb_ary_replace to (mrb_state*,mrb_value,mrb_value)
2012-06-02 21:26:30 +09:00
Yukihiro Matsumoto
f56abcbb5a
reorder mrb_ary_new_from_values() args to (argc, argv)
2012-06-01 02:18:30 +09:00
Yukihiro Matsumoto
a4d3579e31
add extern "C" guards; close #126
2012-05-18 02:02:49 +09:00
roco
4ec6d41f16
rm whitespace
2012-04-30 14:29:19 -07:00
mimaki
835443614d
add file header
2012-04-23 11:46:16 +09:00
mimaki
e0d6430f63
add mruby sources
2012-04-20 09:39:03 +09:00