From 313f2a76069064fa2262e4aec5526a30c2fba047 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 11 Apr 2016 21:17:30 -0700 Subject: Remove frame popping action from uw_continue. * unwind.c (uw_continue): Don't take the current frame as an argument and consequently don't pop the current frame. This function currently has only one use, the uw_catch_end macro. * unwind.h (uw_continue): Declaration updated. (uw_catch_end): Slight code rearrangement: pop the frame unconditionally before the test for whether uw_continue must be called. --- unwind.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unwind.c') diff --git a/unwind.c b/unwind.c index 69068e9b..900d614e 100644 --- a/unwind.c +++ b/unwind.c @@ -681,9 +681,8 @@ val uw_register_subtype(val sub, val sup) return sup; } -void uw_continue(uw_frame_t *current, uw_frame_t *cont) +void uw_continue(uw_frame_t *cont) { - uw_pop_frame(current); uw_exit_point = cont; uw_unwind_to_exit_point(); } -- cgit v1.2.3