Masaki Muranaka
|
f8fa56d8c3
|
Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen().
|
2013-03-22 14:22:45 +09:00 |
|
Yukihiro Matz Matsumoto
|
d0d920e909
|
rename mrb_true_or_false_value() to mrb_bool_value()
|
2013-03-19 12:03:54 +09:00 |
|
Masaki Muranaka
|
488fc7f7c0
|
Use mrb_true_or_false_value() / in mrb_ary_eql().
|
2013-03-19 11:04:20 +09:00 |
|
Masaki Muranaka
|
162f373ccb
|
Use mrb_true_or_false_value() / in mrb_ary_equal().
|
2013-03-19 11:04:20 +09:00 |
|
Masaki Muranaka
|
3ebcb9c1a3
|
Use mrb_true_or_false_value() / in mrb_ary_empty_p().
|
2013-03-19 11:04:20 +09:00 |
|
kano4
|
60df77788b
|
Add break to default case in switch statement
|
2013-03-14 23:18:12 +09:00 |
|
Yukihiro Matz Matsumoto
|
34fe9d0156
|
return value from mrb_gc_arena_save() is int
|
2013-03-11 23:55:41 +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 |
|
Carson McDonald
|
f792552a5e
|
Add null check after mrb_realloc for array
|
2013-03-05 15:22:10 -05:00 |
|
Yukihiro Matz Matsumoto
|
844f6eb625
|
fix mrb_int for INT64 env
|
2013-03-04 02:47:48 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
aae50bfc48
|
Merge pull request #934 from monaka/pr-use-mrb_int-in-array.c
Define ARY_MAX_SIZE strictly. Use mrb_int instead of int.
|
2013-03-03 09:38:10 -08:00 |
|
Masaki Muranaka
|
f998691da8
|
Define ARY_MAX_SIZE strictly. Use mrb_int instead of int.
|
2013-03-03 11:43:56 +09:00 |
|
MATSUMOTO Ryosuke
|
809732ab40
|
Adjust some indents
|
2013-03-02 10:26:54 -08: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 |
|
NARUSE, Yui
|
d9d6b2c74c
|
Add document for array_copy
|
2013-02-27 11:03:38 +09:00 |
|
Yukihiro Matz Matsumoto
|
e43216c45d
|
rename mrb_ary_alen to mrb_ary_len; close #781
|
2013-01-30 07:45:32 +09:00 |
|
Carson McDonald
|
8f83f6674c
|
Fixes a number of "comparison between signed and unsigned" warnings.
|
2013-01-27 09:44:47 -05:00 |
|
Yukihiro Matz Matsumoto
|
30d7c60cfd
|
Array#[]= should return assigning value; close #584
|
2012-12-03 23:35:21 +09:00 |
|
Yukihiro Matz Matsumoto
|
7cea9d7b94
|
int and mrb_int should not be mixed under -DMRB_INT64; may fix #557
|
2012-11-17 02:16:35 +09:00 |
|
Yukihiro Matz Matsumoto
|
902dd63803
|
remove FL_XXX macros
|
2012-11-04 05:15:22 +09:00 |
|
Yukihiro Matz Matsumoto
|
d2d2e9f5f9
|
add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p()
|
2012-11-04 05:02:39 +09:00 |
|
Yukihiro Matz Matsumoto
|
3ba521ae9e
|
replace FIXNUM_P() by mrb_fixnum_p()
|
2012-11-04 04:49:43 +09:00 |
|
Masaki Muranaka
|
6069a33089
|
mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
|
2012-10-23 09:42:22 +09:00 |
|
Masaki Muranaka
|
d5c4439013
|
Avoid memcpy() on copying structures.
|
2012-10-21 00:49:39 +09:00 |
|
Yukihiro Matsumoto
|
5adbbe66d8
|
should adjust array size
|
2012-09-27 17:17:14 +09:00 |
|
Yukihiro Matsumoto
|
54101eec43
|
typo fixed
|
2012-09-12 07:41:28 +09:00 |
|
Yukihiro Matsumoto
|
2edee29e68
|
Array#reverse! should call ary_modify
|
2012-09-10 23:47:08 +09:00 |
|
Yukihiro Matsumoto
|
1a816db854
|
eagerly reduce allocated array memory
|
2012-09-10 21:54:42 +09:00 |
|
Yukihiro Matsumoto
|
22f22cc2e2
|
use mrb_malloc instead of clearing mrb_calloc
|
2012-09-10 20:46:24 +09:00 |
|
Yukihiro Matsumoto
|
fd252fecf4
|
check special_const before calling respond_to?
|
2012-09-10 20:35:42 +09:00 |
|
Yukihiro Matsumoto
|
e5dde46c7c
|
reduce mrb_funcall invocations
|
2012-08-18 19:29:07 +09:00 |
|
Masaki Muranaka
|
cc1fc5332a
|
Remove redundant code in mrb_array_aget().
|
2012-07-31 14:52:44 +09:00 |
|
Max Anselm
|
5a4beeed2d
|
Make all(?) void casts explicit for C++
|
2012-07-29 19:48:48 -04:00 |
|
Akira Kuroda
|
a2aa7e7f52
|
fix segmentation fault in Array#first
|
2012-07-29 00:21:40 +09:00 |
|
Akira Kuroda
|
f114e3e252
|
fix segmentation fault in Array#last
|
2012-07-25 00:05:51 +09:00 |
|
Yukihiro Matsumoto
|
50f56a2436
|
Array#join to accept only strings as sep
|
2012-07-15 16:22:54 +09:00 |
|
Masamitsu MURASE
|
b9215a01f9
|
Add ary_modify to prevent corrupting shared array.
|
2012-07-10 01:23:26 +09:00 |
|
Masaki Muranaka
|
611cf71a10
|
Use mrb_calloc if you want zero cleard buffers.
|
2012-07-08 11:33:49 +09:00 |
|
Masaki Muranaka
|
312b2c7b16
|
Optimize range check.
|
2012-07-07 16:30:52 +09:00 |
|
Masaki Muranaka
|
21f2e5364b
|
Use mrb_str_new() instead of mrb_str_new2() as possible.
|
2012-06-22 17:02:08 +09:00 |
|
Masaki Muranaka
|
0c5b704de3
|
Remove strlen(). We can use sizeof() of char array because sizeof(char) is always 1 (ISO C99).
|
2012-06-21 11:45:55 +09:00 |
|
Yukihiro Matsumoto
|
3b1b9b050b
|
optimize Array#unshift using shared body object
|
2012-06-13 02:29:13 +09:00 |
|
Yukihiro Matsumoto
|
d39a355af3
|
wrong ary->capa size was set in ary_modify()
|
2012-06-13 02:27:51 +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
|
54808d1df5
|
clean appendix comments from array.c
|
2012-06-02 21:31:03 +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
|
c0c712d33b
|
small refactoring around Array#concat
|
2012-06-02 21:17:14 +09:00 |
|