-static void MC_snapshot_stack_free(mc_snapshot_stack_t s)
-{
- if (s) {
- xbt_dynar_free(&(s->local_variables));
- xbt_dynar_free(&(s->stack_frames));
- mc_unw_destroy_context(s->context);
- xbt_free(s->context);
- xbt_free(s);
- }
-}
-
-static void MC_snapshot_stack_free_voidp(void *s)
-{
- mc_snapshot_stack_t stack = (mc_snapshot_stack_t) * (void **) s;
- MC_snapshot_stack_free(stack);
-}
-
-static void local_variable_free(local_variable_t v)
-{
- xbt_free(v->name);
- xbt_free(v);
-}
-
-static void local_variable_free_voidp(void *v)
-{
- local_variable_free((local_variable_t) * (void **) v);
-}
-
-}
-
-extern "C" {
-