pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:2463: Inside #if defined(PIKE_DEBUG)
     void check_all_mappings(void)   {    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, -  struct mapping *UNUSED(m)) +  void *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:
pike.git/src/mapping.c:2493:    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);    visit_svalue (&k->val, val_ref_type);    }    }   }    - PMOD_EXPORT void visit_mapping (struct mapping *m, int action) + PMOD_EXPORT void visit_mapping (struct mapping *m, int action, void *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, m); +  (visit_thing_fn *) &visit_mapping_data, 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; \