• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ruby-106/ruby/ext/objspace/

Lines Matching defs:hash

254     VALUE hash = (VALUE)arg;
255 rb_hash_aset(hash, k, INT2FIX(0));
312 * ObjectSpace.count_objects_size([result_hash]) -> hash
320 * It returns a hash as:
327 * The contents of the returned hash is implementation defined.
339 VALUE hash;
341 if (rb_scan_args(argc, argv, "01", &hash) == 1) {
342 if (!RB_TYPE_P(hash, T_HASH))
343 rb_raise(rb_eTypeError, "non-hash given");
352 if (hash == Qnil) {
353 hash = rb_hash_new();
355 else if (!RHASH_EMPTY_P(hash)) {
356 st_foreach(RHASH_TBL(hash), set_zero_i, hash);
363 rb_hash_aset(hash, type, SIZET2NUM(counts[i]));
366 rb_hash_aset(hash, ID2SYM(rb_intern("TOTAL")), SIZET2NUM(total));
367 return hash;
388 * ObjectSpace.count_nodes([result_hash]) -> hash
395 * It returns a hash as:
402 * The contents of the returned hash is implementation defined.
413 VALUE hash;
415 if (rb_scan_args(argc, argv, "01", &hash) == 1) {
416 if (!RB_TYPE_P(hash, T_HASH))
417 rb_raise(rb_eTypeError, "non-hash given");
426 if (hash == Qnil) {
427 hash = rb_hash_new();
429 else if (!RHASH_EMPTY_P(hash)) {
430 st_foreach(RHASH_TBL(hash), set_zero_i, hash);
547 rb_hash_aset(hash, node, SIZET2NUM(nodes[i]));
550 return hash;
556 VALUE hash = (VALUE)data;
570 counter = rb_hash_aref(hash, key);
578 rb_hash_aset(hash, key, counter);
587 * ObjectSpace.count_tdata_objects([result_hash]) -> hash
594 * It returns a hash as:
605 * The contents of the returned hash is implementation defined.
620 VALUE hash;
622 if (rb_scan_args(argc, argv, "01", &hash) == 1) {
623 if (!RB_TYPE_P(hash, T_HASH))
624 rb_raise(rb_eTypeError, "non-hash given");
627 if (hash == Qnil) {
628 hash = rb_hash_new();
630 else if (!RHASH_EMPTY_P(hash)) {
631 st_foreach(RHASH_TBL(hash), set_zero_i, hash);
634 rb_objspace_each_objects(cto_i, (void *)hash);
636 return hash;