Displaying 7 results from an estimated 7 matches for "swfdec_action_do_enumerate".
2007 Sep 03
0
4 commits - libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_interpret.c test/trace
...07 +0200
make enumerate actions include prototype stuff
diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index 32613a2..fcbd035 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -1896,19 +1896,49 @@ fail:
}
static gboolean
-swfdec_action_do_enumerate (SwfdecAsObject *object, const char *variable,
- SwfdecAsValue *value, guint flags, gpointer cxp)
+swfdec_action_enumerate_foreach (SwfdecAsObject *object, const char *variable,
+ SwfdecAsValue *value, guint flags, gpointer listp)
{
- SwfdecAsContext *cx = cxp;
+ GSList **list = listp;...
2007 Apr 16
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
.../swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index 9fca9af..dfcefb1 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -1790,40 +1790,60 @@ swfdec_action_extends (SwfdecAsContext *
return JS_FALSE;
return JS_TRUE;
}
+#endif
+
+static gboolean
+swfdec_action_do_enumerate (SwfdecAsObject *object, const SwfdecAsValue *val,
+ SwfdecAsVariable *var, gpointer stackp)
+{
+ SwfdecAsStack *stack = stackp;
+
+ if (var->flags | SWFDEC_AS_VARIABLE_DONT_ENUM)
+ return TRUE;
+ swfdec_as_stack_ensure_left (stack, 1);
+ *swfdec_as_stack_push (stack) = *val;
+ return...
2007 Oct 15
0
8 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c libswfdec/swfdec_sound.h test/trace
...18:36 2007 +0200
make Enumerate action call GetVariable instead of as_context_eval()
diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index 06bbc35..2d8b733 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -2234,16 +2234,14 @@ swfdec_action_do_enumerate (SwfdecAsContext *cx, SwfdecAsObject *object)
}
static void
-swfdec_action_enumerate (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
+swfdec_action_enumerate2 (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
{
SwfdecAsValue *val;
SwfdecAsObject *obj;...
2007 Aug 17
0
4 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h test/trace
..._object_set_variable_flags (prototype, SWFDEC_AS_STR___constructor__,
+ SWFDEC_AS_VARIABLE_HIDDEN);
SWFDEC_AS_VALUE_SET_OBJECT (&proto, prototype);
swfdec_as_object_set_variable (SWFDEC_AS_VALUE_GET_OBJECT (subclass),
SWFDEC_AS_STR_prototype, &proto);
@@ -1883,7 +1885,7 @@ swfdec_action_do_enumerate (SwfdecAsObje
{
SwfdecAsContext *cx = cxp;
- if (flags & SWFDEC_AS_VARIABLE_DONT_ENUM)
+ if (flags & SWFDEC_AS_VARIABLE_HIDDEN)
return TRUE;
swfdec_as_stack_ensure_free (cx, 1);
SWFDEC_AS_VALUE_SET_STRING (swfdec_as_stack_push (cx), variable);
diff --git a/libswfdec/swfde...
2007 Oct 25
0
12 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...le ((class = swfdec_as_object_get_prototype (class)) != NULL) {
if (class == prototype) {
SWFDEC_AS_VALUE_SET_BOOLEAN (swfdec_as_stack_peek (cx, 1), TRUE);
break;
}
- swfdec_as_object_get_variable (class, SWFDEC_AS_STR___proto__, &val);
}
}
@@ -2275,7 +2271,7 @@ swfdec_action_do_enumerate (SwfdecAsContext *cx, SwfdecAsObject *object)
for (i = 0; i < 256 && object; i++) {
swfdec_as_object_foreach (object, swfdec_action_enumerate_foreach, &list);
- object = swfdec_as_object_prototype_for_version (object, cx->version, TRUE);
+ object = swfdec_as_obje...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...nction_name == '\0') {
- swfdec_as_stack_ensure_left (frame->stack, 1);
+ swfdec_as_stack_ensure_free (frame->stack, 1);
SWFDEC_AS_VALUE_SET_OBJECT (swfdec_as_stack_push (frame->stack), SWFDEC_AS_OBJECT (fun));
} else {
SwfdecAsValue funval;
@@ -1863,7 +1863,7 @@ swfdec_action_do_enumerate (SwfdecAsObje
if (flags & SWFDEC_AS_VARIABLE_DONT_ENUM)
return TRUE;
- swfdec_as_stack_ensure_left (stack, 1);
+ swfdec_as_stack_ensure_free (stack, 1);
SWFDEC_AS_VALUE_SET_STRING (swfdec_as_stack_push (stack), variable);
return TRUE;
}
diff --git a/libswfdec/swfdec_as_stack....
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
..._object_set_variable_flags (prototype, SWFDEC_AS_STR___constructor__,
+ SWFDEC_AS_VARIABLE_HIDDEN);
SWFDEC_AS_VALUE_SET_OBJECT (&proto, prototype);
swfdec_as_object_set_variable (SWFDEC_AS_VALUE_GET_OBJECT (subclass),
SWFDEC_AS_STR_prototype, &proto);
@@ -1883,7 +1885,7 @@ swfdec_action_do_enumerate (SwfdecAsObje
{
SwfdecAsContext *cx = cxp;
- if (flags & SWFDEC_AS_VARIABLE_DONT_ENUM)
+ if (flags & SWFDEC_AS_VARIABLE_HIDDEN)
return TRUE;
swfdec_as_stack_ensure_free (cx, 1);
SWFDEC_AS_VALUE_SET_STRING (swfdec_as_stack_push (cx), variable);
diff --git a/libswfdec/swfde...