search for: swfdec_as_frame_delete_variable

Displaying 6 results from an estimated 6 matches for "swfdec_as_frame_delete_variable".

2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...frame.c b/libswfdec/swfdec_as_frame.c index 4608b0a..d47f589 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -503,20 +503,21 @@ swfdec_as_frame_find_variable (SwfdecAsF return NULL; } -/* FIXME: merge with find_variable somehow */ -gboolean +SwfdecAsDeleteReturn swfdec_as_frame_delete_variable (SwfdecAsFrame *frame, const char *variable) { SwfdecAsScope *cur; guint i; + SwfdecAsDeleteReturn ret; g_return_val_if_fail (SWFDEC_IS_AS_FRAME (frame), FALSE); g_return_val_if_fail (variable != NULL, FALSE); cur = frame->scope; for (i = 0; i < 256; i++) { - if (sw...
2007 Sep 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_scope.c libswfdec/swfdec_as_scope.h libswfdec/swfdec_as_script_function.c
...t;data, variable, NULL, NULL, &pobject) && + pobject == walk->data) { + set = walk->data; + break; + } + } + if (set == NULL) + set = frame->target; + + swfdec_as_object_set_variable_and_flags (set, variable, value, default_flags); +} + SwfdecAsDeleteReturn swfdec_as_frame_delete_variable (SwfdecAsFrame *frame, const char *variable) { @@ -721,25 +748,14 @@ swfdec_as_frame_preload (SwfdecAsFrame * } } if (script->flags & SWFDEC_SCRIPT_PRELOAD_ROOT && current_reg < script->n_registers) { - SwfdecAsObject *obj; - - obj = swfdec_as_frame_find_v...
2007 Jul 13
0
3 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...SwfdecAsValue * return_value); - -void swfdec_as_frame_set_this (SwfdecAsFrame * frame, - SwfdecAsObject * thisp); -void swfdec_as_frame_preload (SwfdecAsFrame * frame); - -SwfdecAsObject *swfdec_as_frame_find_variable (SwfdecAsFrame * frame, - const char * variable); -gboolean swfdec_as_frame_delete_variable (SwfdecAsFrame * frame, - const char * variable); - -void swfdec_as_frame_set_target (SwfdecAsFrame * frame, - SwfdecAsObject * target); -void swfdec_as_frame_check_scope (SwfdecAsFrame * frame); +SwfdecAsFrame * swfdec_as_frame_get_next (SwfdecAsFrame * frame); SwfdecAsValue * s...
2007 Jun 06
0
Branch 'as' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index de0dbd7..e0f6fe2 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -232,6 +232,43 @@ swfdec_as_frame_find_variable (SwfdecAsF return NULL; } +/* FIXME: merge with find_variable somehow */ +gboolean +swfdec_as_frame_delete_variable (SwfdecAsFrame *frame, const char *variable) +{ + SwfdecAsScope *cur; + guint i; + + g_return_val_if_fail (SWFDEC_IS_AS_FRAME (frame), FALSE); + g_return_val_if_fail (variable != NULL, FALSE); + + cur = frame->scope; + for (i = 0; i < 256; i++) { + if (swfdec_as_object_delete_variabl...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...frame.c b/libswfdec/swfdec_as_frame.c index 4608b0a..d47f589 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -503,20 +503,21 @@ swfdec_as_frame_find_variable (SwfdecAsF return NULL; } -/* FIXME: merge with find_variable somehow */ -gboolean +SwfdecAsDeleteReturn swfdec_as_frame_delete_variable (SwfdecAsFrame *frame, const char *variable) { SwfdecAsScope *cur; guint i; + SwfdecAsDeleteReturn ret; g_return_val_if_fail (SWFDEC_IS_AS_FRAME (frame), FALSE); g_return_val_if_fail (variable != NULL, FALSE); cur = frame->scope; for (i = 0; i < 256; i++) { - if (sw...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
..._variable (frame->target, variable, &val)) + return frame->target; /* 2) the global object */ if (swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (frame)->context->global, variable, &val)) return SWFDEC_AS_OBJECT (frame)->context->global; @@ -255,14 +249,8 @@ swfdec_as_frame_delete_variable (SwfdecA g_assert (SWFDEC_IS_AS_FRAME (cur)); /* we've walked the scope chain down. Now look in the special objects. */ /* 1) the target set via SetTarget */ - if (frame->target) { - if (swfdec_as_object_delete_variable (frame->target, variable)) - return TRUE; - } else...