Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created May 13, 2013 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbussink/9f1b92d7311fcc2a5aab to your computer and use it in GitHub Desktop.
Save dbussink/9f1b92d7311fcc2a5aab to your computer and use it in GitHub Desktop.
ext/bigdecimal/bigdecimal.c: VALUE digits = RARRAY_PTR(a)[1];
ext/bigdecimal/bigdecimal.c: digits = RARRAY_PTR(a)[1];
ext/date/date_core.c: x = RARRAY_PTR(tab)[i];
ext/date/date_core.c: a = RARRAY_PTR(x)[1];
ext/date/date_core.c: if (!NIL_P(ref_hash0(RARRAY_PTR(a)[j])))
ext/date/date_core.c: k = RARRAY_PTR(RARRAY_PTR(tab)[idx])[0];
ext/date/date_core.c: a = RARRAY_PTR(RARRAY_PTR(tab)[idx])[1];
ext/date/date_core.c: VALUE e = RARRAY_PTR(a)[i];
ext/date/date_core.c: VALUE e = RARRAY_PTR(a)[i];
ext/date/date_core.c: VALUE e = RARRAY_PTR(a)[i];
ext/date/date_core.c: VALUE e = RARRAY_PTR(a)[i];
ext/date/date_core.c: ajd = f_sub(RARRAY_PTR(a)[0], half_days_in_day);
ext/date/date_core.c: sg = RARRAY_PTR(a)[1];
ext/date/date_core.c: ajd = RARRAY_PTR(a)[0];
ext/date/date_core.c: of = RARRAY_PTR(a)[1];
ext/date/date_core.c: sg = RARRAY_PTR(a)[2];
ext/date/date_core.c: nth = RARRAY_PTR(a)[0];
ext/date/date_core.c: jd = NUM2INT(RARRAY_PTR(a)[1]);
ext/date/date_core.c: df = NUM2INT(RARRAY_PTR(a)[2]);
ext/date/date_core.c: sf = RARRAY_PTR(a)[3];
ext/date/date_core.c: of = NUM2INT(RARRAY_PTR(a)[4]);
ext/date/date_core.c: sg = NUM2DBL(RARRAY_PTR(a)[5]);
ext/dbm/dbm.c: keystr = RARRAY_PTR(ary)[i];
ext/dbm/dbm.c: fdbm_store(dbm, RARRAY_PTR(pair)[0], RARRAY_PTR(pair)[1]);
ext/dl/cfunc.c: arg = rb_to_int(RARRAY_PTR(ary)[i]);
ext/fiddle/closure.c: type = NUM2INT(RARRAY_PTR(rbargs)[i]);
ext/fiddle/closure.c: ret = rb_funcall2(self, rb_intern("call"), argc, RARRAY_PTR(params));
ext/fiddle/closure.c: int type = NUM2INT(RARRAY_PTR(args)[i]);
ext/fiddle/function.c: int type = NUM2INT(RARRAY_PTR(args)[i]);
ext/fiddle/function.c: VALUE type = RARRAY_PTR(types)[i];
ext/gdbm/gdbm.c: rb_gdbm_delete(obj, RARRAY_PTR(ary)[i]);
ext/gdbm/gdbm.c: fgdbm_store(dbm, RARRAY_PTR(pair)[0], RARRAY_PTR(pair)[1]);
ext/io/console/console.c: rb_scan_args((int)RARRAY_LEN(size), RARRAY_PTR(size), "22",
ext/json/fbuffer/fbuffer.h:#ifndef RARRAY_PTR
ext/json/fbuffer/fbuffer.h:#define RARRAY_PTR(ARRAY) RARRAY(ARRAY)->ptr
ext/openssl/ossl_ocsp.c: OSSL_Check_Kind(RARRAY_PTR(ext)[i], cX509Ext);
ext/openssl/ossl_ocsp.c: x509ext = DupX509ExtPtr(RARRAY_PTR(ext)[i]);
ext/openssl/ossl_ssl.c: client_ca = GetX509CertPtr(RARRAY_PTR(val)[i]);
ext/openssl/ossl_x509cert.c: OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Ext);
ext/openssl/ossl_x509cert.c: ext = DupX509ExtPtr(RARRAY_PTR(ary)[i]);
ext/openssl/ossl_x509crl.c: OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Rev);
ext/openssl/ossl_x509crl.c: rev = DupX509RevokedPtr(RARRAY_PTR(ary)[i]);
ext/openssl/ossl_x509crl.c: OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Ext);
ext/openssl/ossl_x509crl.c: ext = DupX509ExtPtr(RARRAY_PTR(ary)[i]);
ext/openssl/ossl_x509req.c: OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Attr);
ext/openssl/ossl_x509req.c: item = RARRAY_PTR(ary)[i];
ext/openssl/ossl_x509revoked.c: OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Ext);
ext/openssl/ossl_x509revoked.c: item = RARRAY_PTR(ary)[i];
ext/pathname/pathname.c: VALUE elt = RARRAY_PTR(ary)[i];
ext/pathname/pathname.c: VALUE elt = RARRAY_PTR(ary)[i];
ext/psych/psych_emitter.c: VALUE tuple = RARRAY_PTR(tags)[i];
ext/psych/psych_emitter.c: name = RARRAY_PTR(tuple)[0];
ext/psych/psych_emitter.c: value = RARRAY_PTR(tuple)[1];
ext/readline/readline.c: temp = rb_obj_as_string(RARRAY_PTR(ary)[i]);
ext/ripper/ripper.c: for (i = 0; i < n; i++) RARRAY_PTR(lines)[i] = Qnil;
ext/ripper/ripper.c: const VALUE *p = RARRAY_PTR(ruby_debug_lines);
ext/ripper/ripper.y: for (i = 0; i < n; i++) RARRAY_PTR(lines)[i] = Qnil;
ext/ripper/ripper.y: const VALUE *p = RARRAY_PTR(ruby_debug_lines);
ext/sdbm/init.c: keystr = RARRAY_PTR(ary)[i];
ext/sdbm/init.c: fsdbm_store(dbm, RARRAY_PTR(pair)[0], RARRAY_PTR(pair)[1]);
ext/socket/ancdata.c: VALUE obj = RARRAY_PTR(ary)[i];
ext/socket/socket.c: RARRAY_PTR(ary)[2] = rb_str_new2(res->ai_canonname);
ext/socket/socket.c: af = RARRAY_PTR(sa)[0];
ext/socket/socket.c: port = RARRAY_PTR(sa)[1];
ext/socket/socket.c: host = RARRAY_PTR(sa)[2];
ext/socket/socket.c: af = RARRAY_PTR(sa)[0];
ext/socket/socket.c: port = RARRAY_PTR(sa)[1];
ext/socket/socket.c: host = RARRAY_PTR(sa)[3];
ext/socket/socket.c: host = RARRAY_PTR(sa)[2];
ext/tk/tcltklib.c:#if !defined(RARRAY_PTR)
ext/tk/tcltklib.c:#define RARRAY_PTR(s) (RARRAY(s)->ptr)
ext/tk/tcltklib.c: tcl_time.sec = NUM2LONG(RARRAY_PTR(divmod)[0]);
ext/tk/tcltklib.c: tcl_time.usec = NUM2LONG(RARRAY_PTR(divmod)[1]);
ext/tk/tcltklib.c: tcl_time.sec = NUM2LONG(RARRAY_PTR(divmod)[0]);
ext/tk/tcltklib.c: tcl_time.usec = (long)(NUM2DBL(RARRAY_PTR(divmod)[1]) * 1000000);
ext/tk/tcltklib.c: RARRAY_PTR(q->result)[0] = ret;
ext/tk/tcltklib.c: ret = RARRAY_PTR(result)[0];
ext/tk/tcltklib.c: RARRAY_PTR(q->result)[0] = ret;
ext/tk/tcltklib.c: ret = RARRAY_PTR(result)[0];
ext/tk/tcltklib.c: RARRAY_PTR(q->result)[0] = ret;
ext/tk/tcltklib.c: ret = RARRAY_PTR(result)[0];
ext/tk/tkutil/tkutil.c:#if !defined(RARRAY_PTR)
ext/tk/tkutil/tkutil.c:#define RARRAY_PTR(s) (RARRAY(s)->ptr)
ext/tk/tkutil/tkutil.c: if (TYPE(RARRAY_PTR(ary)[idx]) == T_HASH) {
ext/tk/tkutil/tkutil.c: size += 2 * RHASH_SIZE(RARRAY_PTR(ary)[idx]);
ext/tk/tkutil/tkutil.c: val = RARRAY_PTR(ary)[idx];
ext/tk/tkutil/tkutil.c: val2 = RARRAY_PTR(val)[idx2];
ext/tk/tkutil/tkutil.c: str_val = RARRAY_PTR(dst)[idx];
ext/tk/tkutil/tkutil.c: RARRAY_PTR(dst)[idx] = str_val;
ext/tk/tkutil/tkutil.c: val = RARRAY_PTR(ary)[idx];
ext/tk/tkutil/tkutil.c: str_val = RARRAY_PTR(dst)[idx];
ext/tk/tkutil/tkutil.c: RARRAY_PTR(dst)[idx] = str_val;
ext/tk/tkutil/tkutil.c: pair = RARRAY_PTR(assoc)[i];
ext/tk/tkutil/tkutil.c: rb_ary_push(dst, RARRAY_PTR(pair)[2]);
ext/tk/tkutil/tkutil.c: rb_ary_push(dst, key2keyname(RARRAY_PTR(pair)[0]));
ext/tk/tkutil/tkutil.c: rb_ary_push(dst, key2keyname(RARRAY_PTR(pair)[0]));
ext/tk/tkutil/tkutil.c: rb_ary_push(val, RARRAY_PTR(pair)[j]);
ext/tk/tkutil/tkutil.c: pair = RARRAY_PTR(assoc)[i];
ext/tk/tkutil/tkutil.c: rb_ary_push(dst, get_eval_string_core(RARRAY_PTR(pair)[2], Qtrue, self));
ext/tk/tkutil/tkutil.c: rb_ary_push(dst, key2keyname(RARRAY_PTR(pair)[0]));
ext/tk/tkutil/tkutil.c: rb_ary_push(dst, key2keyname(RARRAY_PTR(pair)[0]));
ext/tk/tkutil/tkutil.c: rb_ary_push(val, RARRAY_PTR(pair)[j]);
ext/tk/tkutil/tkutil.c: ary = RARRAY_PTR(args)[0];
ext/tk/tkutil/tkutil.c: rb_ary_push(ary, get_eval_string_core(val, Qnil, RARRAY_PTR(args)[1]));
ext/tk/tkutil/tkutil.c: ary = RARRAY_PTR(args)[0];
ext/tk/tkutil/tkutil.c: RARRAY_PTR(args)[1]));
ext/tk/tkutil/tkutil.c: rb_ary_push(ary, get_eval_string_core(val, Qtrue, RARRAY_PTR(args)[1]));
ext/tk/tkutil/tkutil.c: keyval = RARRAY_PTR(list)[i];
ext/tk/tkutil/tkutil.c: inf = RARRAY_PTR(key_inf)[idx];
ext/tk/tkutil/tkutil.c: if (TYPE(RARRAY_PTR(inf)[0]) == T_STRING) {
ext/tk/tkutil/tkutil.c: chr = *(RSTRING_PTR(RARRAY_PTR(inf)[0]));
ext/tk/tkutil/tkutil.c: chr = NUM2CHR(RARRAY_PTR(inf)[0]);
ext/tk/tkutil/tkutil.c: if (TYPE(RARRAY_PTR(inf)[1]) == T_STRING) {
ext/tk/tkutil/tkutil.c: subst_inf->type[chr] = *(RSTRING_PTR(RARRAY_PTR(inf)[1]));
ext/tk/tkutil/tkutil.c: subst_inf->type[chr] = NUM2CHR(RARRAY_PTR(inf)[1]);
ext/tk/tkutil/tkutil.c: id = SYM2ID(RARRAY_PTR(inf)[2]);
ext/tk/tkutil/tkutil.c: inf = RARRAY_PTR(longkey_inf)[idx];
ext/tk/tkutil/tkutil.c: subst_inf->keylen[chr] = RSTRING_LEN(RARRAY_PTR(inf)[0]);
ext/tk/tkutil/tkutil.c: subst_inf->key[chr] = strndup(RSTRING_PTR(RARRAY_PTR(inf)[0]),
ext/tk/tkutil/tkutil.c: RSTRING_LEN(RARRAY_PTR(inf)[0]));
ext/tk/tkutil/tkutil.c: subst_inf->key[chr] = malloc(RSTRING_LEN(RARRAY_PTR(inf)[0]) + 1);
ext/tk/tkutil/tkutil.c: strncpy(subst_inf->key[chr], RSTRING_PTR(RARRAY_PTR(inf)[0]),
ext/tk/tkutil/tkutil.c: RSTRING_LEN(RARRAY_PTR(inf)[0]) + 1);
ext/tk/tkutil/tkutil.c: subst_inf->key[chr][RSTRING_LEN(RARRAY_PTR(inf)[0])] = '\0';
ext/tk/tkutil/tkutil.c: if (TYPE(RARRAY_PTR(inf)[1]) == T_STRING) {
ext/tk/tkutil/tkutil.c: subst_inf->type[chr] = *(RSTRING_PTR(RARRAY_PTR(inf)[1]));
ext/tk/tkutil/tkutil.c: subst_inf->type[chr] = NUM2CHR(RARRAY_PTR(inf)[1]);
ext/tk/tkutil/tkutil.c: id = SYM2ID(RARRAY_PTR(inf)[2]);
ext/tk/tkutil/tkutil.c: inf = RARRAY_PTR(proc_inf)[idx];
ext/tk/tkutil/tkutil.c: ((TYPE(RARRAY_PTR(inf)[0]) == T_STRING)?
ext/tk/tkutil/tkutil.c: INT2FIX(*(RSTRING_PTR(RARRAY_PTR(inf)[0]))) :
ext/tk/tkutil/tkutil.c: RARRAY_PTR(inf)[0]),
ext/tk/tkutil/tkutil.c: RARRAY_PTR(inf)[1]);
ext/tk/tkutil/tkutil.c: rb_ary_push(dst, RARRAY_PTR(val_ary)[idx]);
ext/tk/tkutil/tkutil.c: RARRAY_PTR(val_ary)[idx]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment