Branch: Tag:


2014-12-04 19:26:38 by Henrik Grubbström (Grubba) <>

GC: Added visit_{enter,leave}() API.

Make it easier to keep track of state in the visit_*() API
by tracking when we start and stop visiting things.

196:      PMOD_EXPORT void visit_callable (struct callable *c, int action, void *extra)   { +  visit_enter(c, T_STRUCT_CALLABLE, extra);    switch (action) {   #ifdef PIKE_DEBUG    default:
216:       /* Looks like the c->prog isn't refcounted..? */    /* visit_program_ref (c->prog, REF_TYPE_NORMAL); */ +  visit_leave(c, T_STRUCT_CALLABLE, extra);   }      #ifdef PIKE_DEBUG