Branch: Tag:

2014-12-04

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

GC: Clean up some of the visit_* API.

All the visit_*() functions now have all arguments.

2470:   #endif      static void visit_mapping_data (struct mapping_data *md, int action, -  struct mapping *UNUSED(m)) +  void *extra)   {    switch (action) {   #ifdef PIKE_DEBUG
2500:    }   }    - 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
2516:    }       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