Branch: Tag:

2014-06-17

2014-06-17 14:14:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

GC: Clean up some of the visit_* API.

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

4412:    (visit_thing_fn *) (ptrdiff_t) -1,    (visit_thing_fn *) (ptrdiff_t) -1,    (visit_thing_fn *) (ptrdiff_t) -1, -  (visit_thing_fn *) &visit_array, -  (visit_thing_fn *) &visit_mapping, -  (visit_thing_fn *) &visit_multiset, -  (visit_thing_fn *) &visit_object, +  &visit_array, +  &visit_mapping, +  &visit_multiset, +  &visit_object,    /* visit_function must be called with a whole svalue, so it's not    * included here. */    (visit_thing_fn *) (ptrdiff_t) -1, -  (visit_thing_fn *) &visit_program, -  (visit_thing_fn *) &visit_string, -  (visit_thing_fn *) &visit_type, +  &visit_program, +  &visit_string, +  &visit_type,   };      PMOD_EXPORT TYPE_T type_from_visit_fn (visit_thing_fn *fn)