Displaying 3 results from an estimated 3 matches for "swfdec_action_try_data_ref".
Did you mean:
swfdec_action_try_data_unref
2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
...ec_action_throw (SwfdecAsContext *cx, guint action, const guint8 *data,
}
typedef struct {
+ int ref_count;
const guint8 * start;
gboolean catch;
gboolean finally;
@@ -2557,10 +2558,25 @@ typedef struct {
} TryData;
static void
-swfdec_action_try_free_data (TryData *try_data)
+swfdec_action_try_data_ref (gpointer data)
{
+ TryData *try_data = data;
+
+ g_return_if_fail (try_data != NULL);
+
+ try_data->ref_count++;
+}
+
+static void
+swfdec_action_try_data_unref (gpointer data)
+{
+ TryData *try_data = data;
+
g_return_if_fail (try_data != NULL);
+ if (--try_data->ref_count > 0...
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
....c
@@ -2542,7 +2542,6 @@ swfdec_action_throw (SwfdecAsContext *cx, guint action, const guint8 *data,
}
typedef struct {
- int ref_count;
const guint8 * catch_start;
const guint8 * finally_start;
guint catch_size;
@@ -2556,25 +2555,12 @@ typedef struct {
} TryData;
static void
-swfdec_action_try_data_ref (gpointer data)
+swfdec_action_try_data_free (gpointer data)
{
TryData *try_data = data;
g_return_if_fail (try_data != NULL);
- try_data->ref_count++;
-}
-
-static void
-swfdec_action_try_data_unref (gpointer data)
-{
- TryData *try_data = data;
-
- g_return_if_fail (try_data != NU...
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
...{
TryData *try_data = data;
SwfdecAsContext *cx;
- SwfdecAsValue *error;
+ SwfdecAsValue *exception, val;
g_return_if_fail (SWFDEC_IS_AS_FRAME (frame));
g_return_if_fail (try_data != NULL);
@@ -2616,22 +2613,19 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data)
swfdec_action_try_data_ref (try_data);
swfdec_as_frame_pop_block (frame);
- if (cx->throwing)
+ 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
- error = g_mal...