Branch: Tag:

2014-12-04

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

GC: Propagate the extra parameter everywhere.

All the visit_*() functions and macros should now propagate the
argument extra.

194:    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
210:    }       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..? */