Branch: Tag:

2014-06-18

2014-06-18 13:31:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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