Searched refs:RARRAY_PTR (Results 1 - 25 of 75) sorted by relevance

123

/macosx-10.9.5/ruby-104/ruby/
H A Darray.c171 VALUE *ptr = RARRAY_PTR(ary);
269 long shift = RARRAY_PTR(ary) - RARRAY_PTR(shared);
271 ARY_SET_PTR(ary, RARRAY_PTR(shared));
273 MEMMOVE(RARRAY_PTR(ary), RARRAY_PTR(ary)+shift, VALUE, len);
279 MEMCPY(ptr, RARRAY_PTR(ary), VALUE, len);
297 if (RARRAY_PTR(ary) - RARRAY_PTR(shared) + new_len <= RARRAY_LEN(shared)) {
442 RARRAY_PTR(ar
[all...]
H A Dstruct.c98 ptr_members = RARRAY_PTR(members);
158 ptr_members = RARRAY_PTR(members);
216 ptr_members = RARRAY_PTR(members);
357 RARRAY_PTR(rest)[i] = ID2SYM(id);
409 return rb_struct_initialize_m(RARRAY_LENINT(values), RARRAY_PTR(values), self);
437 return rb_class_new_instance(RARRAY_LENINT(values), RARRAY_PTR(values), klass);
450 mem = RARRAY_PTR(tmpargs[0]);
551 ptr_members = RARRAY_PTR(members);
659 ptr_members = RARRAY_PTR(members);
732 ptr_members = RARRAY_PTR(member
[all...]
H A Dprocess.c1502 VALUE v = RARRAY_PTR(key)[i];
1817 VALUE elt = RARRAY_PTR(ary)[i];
1818 int fd = FIX2INT(RARRAY_PTR(elt)[0]);
1825 rb_hash_aset(h, INT2FIX(fd), RARRAY_PTR(elt)[1]);
1831 fd = FIX2INT(RARRAY_PTR(elt)[1]);
1856 VALUE elt = RARRAY_PTR(ary)[i];
1857 int newfd = FIX2INT(RARRAY_PTR(elt)[0]);
1858 int oldfd = FIX2INT(RARRAY_PTR(elt)[1]);
1954 prog = RARRAY_PTR(tmp)[0];
1955 argv[0] = RARRAY_PTR(tm
[all...]
H A Denumerator.c428 argv = RARRAY_PTR(e->args);
697 return RARRAY_PTR(args)[0];
924 VALUE *argv = RARRAY_PTR(eargs);
1264 result = rb_yield_values2(len, RARRAY_PTR(args));
1475 rb_funcall(yielder, id_yield, 1, RARRAY_PTR(ary)[i]);
1488 rb_funcall(argv[0], id_yield, 1, RARRAY_PTR(result)[i]);
1641 rb_ary_push(ary, rb_ary_entry(RARRAY_PTR(arrays)[i], count));
1659 rb_ary_push(arg, rb_funcall(RARRAY_PTR(zip_args)[i], id_to_enum, 0));
1672 v = rb_rescue2(call_next, RARRAY_PTR(arg)[i], next_stopped, 0,
1736 long len = NUM2LONG(RARRAY_PTR(rb_ivar_ge
[all...]
H A Deval_error.c116 VALUE mesg = RARRAY_PTR(errat)[0];
177 VALUE *ptr = RARRAY_PTR(errat);
H A Dhash.c411 VALUE e = RARRAY_PTR(tmp)[i];
433 val = RARRAY_PTR(v)[1];
435 key = RARRAY_PTR(v)[0];
2632 rb_yield(RARRAY_PTR(keys)[i]);
2681 rb_yield(RARRAY_PTR(values)[i]);
2720 rb_yield(rb_assoc_new(RARRAY_PTR(ary)[i], RARRAY_PTR(ary)[i+1]));
2745 VALUE val = rb_f_getenv(Qnil, RARRAY_PTR(keys)[i]);
2747 if (RTEST(rb_yield_values(2, RARRAY_PTR(keys)[i], val))) {
2748 FL_UNSET(RARRAY_PTR(key
[all...]
H A Dvm_eval.c213 return rb_funcall2(ci->recv, idMethodMissing, ci->argc+1, RARRAY_PTR(new_args));
342 args->argc+1, RARRAY_PTR(new_args));
712 nargv = RARRAY_PTR(argv_ary);
754 ret = rb_call(recv, mid, argc, RARRAY_PTR(args), CALL_FCALL);
759 MEMCPY(argv, RARRAY_PTR(args), VALUE, argc);
979 v = rb_yield_0(RARRAY_LENINT(tmp), RARRAY_PTR(tmp));
1279 VALUE m = rb_str_cat(rb_str_dup(RARRAY_PTR(errat)[0]), ": ", 2);
1284 rb_str_update(mesg, 0, 0, RARRAY_PTR(errat)[0]);
1287 RARRAY_PTR(errat)[0] = RARRAY_PTR(bt
[all...]
H A Denum.c806 RARRAY_PTR(data->buf)[data->n*2] = v;
807 RARRAY_PTR(data->buf)[data->n*2+1] = i;
937 ruby_qsort(RARRAY_PTR(ary), RARRAY_LEN(ary)/2, 2*sizeof(VALUE),
944 RARRAY_PTR(ary)[i/2] = RARRAY_PTR(ary)[i];
1714 rb_yield(RARRAY_PTR(ary)[i]);
1789 long slice_size = NUM2LONG(RARRAY_PTR(args)[0]);
1856 long cons_size = NUM2LONG(RARRAY_PTR(args)[0]);
1944 VALUE e = RARRAY_PTR(args)[i];
1950 rb_ary_push(tmp, RARRAY_PTR(
[all...]
H A Dload.c67 as_str = path = RARRAY_PTR(load_path)[i];
80 rb_ary_push(ary, RARRAY_PTR(expanded_load_path)[i]);
342 VALUE p = RARRAY_PTR(load_path)[i];
429 entry = RARRAY_PTR(this_feature_index)[i];
437 v = RARRAY_PTR(features)[index];
/macosx-10.9.5/swig-10/Lib/ruby/
H A Dargcargv.i31 VALUE *ptr = RARRAY_PTR($input);
H A Dprogargcargv.i23 VALUE v = rb_obj_as_string(RARRAY_PTR(ary)[i]);
H A Dstd_set.i173 RARRAY_PTR($result)[0] = SWIG_NewPointerObj(swig::make_set_nonconst_iterator(%static_cast($1,$type &).first),
175 RARRAY_PTR($result)[1] = SWIG_From(bool)(%static_cast($1,const $type &).second);
H A Dstd_pair.i121 RARRAY_PTR(obj)[0] = swig::from<
123 RARRAY_PTR(obj)[1] = swig::from(val.second);
/macosx-10.9.5/ruby-104/ruby/ext/tk/tkutil/
H A Dtkutil.c33 #if !defined(RARRAY_PTR)
34 #define RARRAY_PTR(s) (RARRAY(s)->ptr) macro
326 if (TYPE(RARRAY_PTR(ary)[idx]) == T_HASH) {
327 size += 2 * RHASH_SIZE(RARRAY_PTR(ary)[idx]);
335 val = RARRAY_PTR(ary)[idx];
366 val2 = RARRAY_PTR(val)[idx2];
427 str_val = RARRAY_PTR(dst)[idx];
433 RARRAY_PTR(dst)[idx] = str_val;
480 val = RARRAY_PTR(ary)[idx];
521 str_val = RARRAY_PTR(ds
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/racc/cparse/
H A Dcparse.c94 ((0 <= idx && idx < RARRAY_LEN(s)) ? RARRAY_PTR(s)[idx] : Qnil)
108 return rb_ary_new4(len, RARRAY_PTR(stack) + RARRAY_LEN(stack) - len);
125 ((RARRAY_LEN(s) > 0) ? RARRAY_PTR(s)[RARRAY_LEN(s) - 1] : Qnil)
337 v->action_table = assert_array (RARRAY_PTR(arg)[ 0]);
338 v->action_check = assert_array (RARRAY_PTR(arg)[ 1]);
339 v->action_default = assert_array (RARRAY_PTR(arg)[ 2]);
340 v->action_pointer = assert_array (RARRAY_PTR(arg)[ 3]);
341 v->goto_table = assert_array (RARRAY_PTR(arg)[ 4]);
342 v->goto_check = assert_array (RARRAY_PTR(arg)[ 5]);
343 v->goto_default = assert_array (RARRAY_PTR(ar
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/json/fbuffer/
H A Dfbuffer.h15 #ifndef RARRAY_PTR
16 #define RARRAY_PTR(ARRAY) RARRAY(ARRAY)->ptr macro
/macosx-10.9.5/ruby-104/ruby/ext/openssl/
H A Dossl_x509revoked.c179 OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Ext);
185 item = RARRAY_PTR(ary)[i];
H A Dossl_x509crl.c293 OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Rev);
299 rev = DupX509RevokedPtr(RARRAY_PTR(ary)[i]);
467 OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Ext);
473 ext = DupX509ExtPtr(RARRAY_PTR(ary)[i]);
H A Dossl_x509req.c409 OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Attr);
415 item = RARRAY_PTR(ary)[i];
/macosx-10.9.5/ruby-104/ruby/ext/-test-/old_thread_select/
H A Dold_thread_select.c15 VALUE val = RARRAY_PTR(ary)[i];
/macosx-10.9.5/ruby-104/ruby/ext/fiddle/
H A Dclosure.c67 type = NUM2INT(RARRAY_PTR(rbargs)[i]);
120 ret = rb_funcall2(self, rb_intern("call"), argc, RARRAY_PTR(params));
207 int type = NUM2INT(RARRAY_PTR(args)[i]);
H A Dfunction.c100 int type = NUM2INT(RARRAY_PTR(args)[i]);
152 VALUE type = RARRAY_PTR(types)[i];
/macosx-10.9.5/ruby-104/ruby/ext/socket/
H A Dsocket.c942 RARRAY_PTR(ary)[2] = rb_str_new2(res->ai_canonname);
1248 af = RARRAY_PTR(sa)[0];
1249 port = RARRAY_PTR(sa)[1];
1250 host = RARRAY_PTR(sa)[2];
1253 af = RARRAY_PTR(sa)[0];
1254 port = RARRAY_PTR(sa)[1];
1255 host = RARRAY_PTR(sa)[3];
1257 host = RARRAY_PTR(sa)[2];
/macosx-10.9.5/ruby-104/ruby/ext/psych/
H A Dpsych_emitter.c152 VALUE tuple = RARRAY_PTR(tags)[i];
162 name = RARRAY_PTR(tuple)[0];
163 value = RARRAY_PTR(tuple)[1];
/macosx-10.9.5/vim-53/src/
H A Dif_ruby.c95 #ifndef RARRAY_PTR
96 # define RARRAY_PTR(s) RARRAY(s)->ptr macro
1207 lnum = RARRAY_PTR(pos)[0];
1208 col = RARRAY_PTR(pos)[1];

Completed in 327 milliseconds

123