search for: swfdec_action_try_end_catch

Displaying 4 results from an estimated 4 matches for "swfdec_action_try_end_catch".

2007 Oct 26
0
8 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c test/trace
...(frame)->context; // finally has ended and we had exception stored, throw it - if (!cx->throwing) - swfdec_as_context_throw (cx, exception); + if (!cx->exception) + swfdec_as_context_throw (cx, exception_value); swfdec_as_frame_pop_block (frame); } @@ -2603,7 +2603,7 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data) { TryData *try_data = data; SwfdecAsContext *cx; - SwfdecAsValue *exception, val; + SwfdecAsValue *exception_value, val; g_return_if_fail (SWFDEC_IS_AS_FRAME (frame)); g_return_if_fail (try_data != NULL); @@ -2619,13 +2619,13 @@ swfdec_action_t...
2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
...ck (frame); - cx = SWFDEC_AS_OBJECT (frame)->context; + // finally has ended and we had exception stored, throw it if (!cx->throwing) { cx->throwing = TRUE; cx->throw_value = *error; } + + swfdec_as_frame_pop_block (frame); } static void @@ -2597,9 +2614,15 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data) cx = SWFDEC_AS_OBJECT (frame)->context; + swfdec_action_try_data_ref (try_data); swfdec_as_frame_pop_block (frame); - if (cx->throwing) { + if (cx->throwing) + { + // we got an exception while in catch block: + // create new block...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...able_name); g_free (try_data); @@ -2595,7 +2581,7 @@ swfdec_action_try_end_finally (SwfdecAsFrame *frame, gpointer data) if (!cx->exception) swfdec_as_context_throw (cx, exception_value); - swfdec_as_frame_pop_block (frame); + g_free (data); } static void @@ -2610,9 +2596,6 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data) cx = SWFDEC_AS_OBJECT (frame)->context; - swfdec_action_try_data_ref (try_data); - swfdec_as_frame_pop_block (frame); - if (swfdec_as_context_catch (cx, &val)) { // we got an exception while in catch block: @@ -2625,10 +2608,10 @@ swf...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...d; swfdec_as_frame_pop_block (frame); } /* no Try blocks caught it, exit frame */ diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index 57cf368..143f78b 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -2601,8 +2601,8 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data) if (swfdec_as_context_catch (cx, &val)) { // we got an exception while in catch block: - // create new block for finally, passing the exception - // clear exception from the context + // create new block for finally to pass on the except...