pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:2465: Inside #if defined(PIKE_DEBUG)
  {    struct mapping *m;    for(m=first_mapping;m;m=m->next)    check_mapping(m);   }   #endif      static void visit_mapping_data (struct mapping_data *md, int action,    void *extra)   { +  visit_enter(md, T_MAPPING_DATA, extra);    switch (action) {   #ifdef PIKE_DEBUG    default:    Pike_fatal ("Unknown visit action %d.\n", action);    case VISIT_NORMAL:    case VISIT_COMPLEX_ONLY:    break;   #endif    case VISIT_COUNT_BYTES:    mc_counted_bytes += MAPPING_DATA_SIZE (md->hashsize, md->num_keypairs);
pike.git/src/mapping.c:2491:    md->flags & MAPPING_WEAK_INDICES ? REF_TYPE_WEAK : REF_TYPE_NORMAL;    int val_ref_type =    md->flags & MAPPING_WEAK_VALUES ? REF_TYPE_WEAK : REF_TYPE_NORMAL;    INT32 e;    struct keypair *k;    NEW_MAPPING_LOOP (md) {    visit_svalue (&k->ind, ind_ref_type, extra);    visit_svalue (&k->val, val_ref_type, extra);    }    } +  visit_leave(md, T_MAPPING_DATA, extra);   }      PMOD_EXPORT void visit_mapping (struct mapping *m, int action, void *extra)   { -  +  visit_enter(m, T_MAPPING, extra);    switch (action) {   #ifdef PIKE_DEBUG    default:    Pike_fatal ("Unknown visit action %d.\n", action);    case VISIT_NORMAL:    case VISIT_COMPLEX_ONLY:    break;   #endif    case VISIT_COUNT_BYTES:    mc_counted_bytes += sizeof (struct mapping);    break;    }       visit_ref (m->data, REF_TYPE_INTERNAL,    (visit_thing_fn *) &visit_mapping_data, extra); -  +  visit_leave(m, T_MAPPING, extra);   }      #ifdef MAPPING_SIZE_DEBUG   #define DO_IF_MAPPING_SIZE_DEBUG(x) x   #else   #define DO_IF_MAPPING_SIZE_DEBUG(x)   #endif      #define GC_RECURSE_MD_IN_USE(MD, RECURSE_FN, IND_TYPES, VAL_TYPES) do { \    INT32 e; \