Displaying 7 results from an estimated 7 matches for "try_data".
Did you mean:
my_data
2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
...28 +++++++++++++++++++++++++++++++++++++++-
3 files changed, 238 insertions(+), 3 deletions(-)
New commits:
commit a599de99164b86347df25cd615d6287487878c3e
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sat Oct 27 00:26:04 2007 +0300
Add some comments to Try code and make sure try_data gets freed properly
diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c
index 25ee0f1..6e35622 100644
--- a/libswfdec/swfdec_as_context.c
+++ b/libswfdec/swfdec_as_context.c
@@ -809,6 +809,8 @@ start:
check_block = TRUE;
while (context->state < SWFDEC_AS_CONTEX...
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
...ing undefined */
/* stack */
SwfdecAsValue * base; /* stack base */
diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index 9155290..3defeca 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -2583,17 +2583,17 @@ swfdec_action_try_data_unref (gpointer data)
static void
swfdec_action_try_end_finally (SwfdecAsFrame *frame, gpointer data)
{
- SwfdecAsValue *exception = data;
+ SwfdecAsValue *exception_value = data;
SwfdecAsContext *cx;
g_return_if_fail (SWFDEC_IS_AS_FRAME (frame));
- g_return_if_fail (SWFDEC_IS_AS_VALU...
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
...+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 !...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
...t (fixes #13379)
diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index 639018c..c37b2bf 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -2634,8 +2634,8 @@ swfdec_action_try_end_try (SwfdecAsFrame *frame, gpointer data)
if (try_data->use_register)
{
- if (swfdec_action_has_register (cx, try_data->register_number)) {
- cx->frame->registers[try_data->register_number] = val;
+ if (try_data->register_number < frame->n_registers) {
+ frame->registers[try_data->register_number] = val;...
2007 Nov 22
0
5 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field.c
...c_bits_get_string (&bits, cx->version);
if (args[i].name == NULL || args[i].name == '\0') {
SWFDEC_ERROR ("empty argument name not allowed");
g_free (args);
@@ -2715,7 +2715,7 @@ swfdec_action_try (SwfdecAsContext *cx, guint action, const guint8 *data, guint
try_data->register_number = swfdec_bits_get_u8 (&bits);
} else {
try_data->variable_name =
- swfdec_bits_get_string_with_version (&bits, cx->version);
+ swfdec_bits_get_string (&bits, cx->version);
}
if (swfdec_bits_left (&bits)) {
@@ -2855,7 +2855,7 @@...
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
.../ create new block for finally to pass on the exception
+ // jump to that block
exception_value = g_malloc (sizeof (SwfdecAsValue));
*exception_value = val;
@@ -2611,6 +2611,7 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data)
swfdec_as_frame_push_block (frame, try_data->finally_start,
try_data->finally_start + try_data->finally_size,
swfdec_action_try_end_finally, exception_value);
+ frame->pc = try_data->finally_start;
}
swfdec_action_try_data_free (try_data);
@@ -2639,8 +2640,8 @@ swfdec_action_try_end_try (SwfdecAsFrame *frame, gp...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800
release 0.5.4 ("Turkish Cycling Federation")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/
R5PF4bZQqmSdJ64t8EbD4cA=
=8qBy
-----END PGP SIGNATURE-----
Changes since the dawn of time:
Benjamin Otte (40):