pike.git / src / constants.c

version» Context lines:

pike.git/src/constants.c:187:    check_type_string(t);   #endif    add_ref(n);    SET_SVAL(s, T_FUNCTION, FUNCTION_BUILTIN, efun,    low_make_callable(fun, n, t, flags, optimize, docode));    mapping_string_insert(builtin_constants, n, &s);    free_svalue(&s);    free_string(n);   }    - PMOD_EXPORT void visit_callable (struct callable *c, int action) + PMOD_EXPORT void visit_callable (struct callable *c, 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 callable);    break;    }       if (!(action & VISIT_COMPLEX_ONLY)) { -  visit_type_ref (c->type, REF_TYPE_NORMAL); -  visit_string_ref (c->name, REF_TYPE_NORMAL); +  visit_type_ref (c->type, REF_TYPE_NORMAL, extra); +  visit_string_ref (c->name, REF_TYPE_NORMAL, extra);    }       /* Looks like the c->prog isn't refcounted..? */    /* visit_program_ref (c->prog, REF_TYPE_NORMAL); */   }      #ifdef PIKE_DEBUG   void present_constant_profiling(void)   {    struct callable *c;