search for: swfdec_as_array_construct

Displaying 9 results from an estimated 9 matches for "swfdec_as_array_construct".

2007 Jun 13
1
unable to create array with "blah = Array();"
The script is: -->-- trace("begin"); ba = Array(); trace(ba); trace("end"); -->-- Adobe's output: -->-- begin end -->-- swfplay's output: -->-- begin undefined end -->-- Adding swfdec_as_array_construct, which sets return value, didn't help. Tested on latest commit as of today (with some patches of mine but they should have no affect on this). -- Duy -- Duy
2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...} -static void +SWFDEC_AS_NATIVE (252, 12, swfdec_as_array_sortOn) +void swfdec_as_array_sortOn (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { @@ -956,8 +1039,8 @@ swfdec_as_array_sortOn (SwfdecAsContext // Constructor static void -swfdec_as_array_construct (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, - SwfdecAsValue *argv, SwfdecAsValue *ret) +swfdec_as_array_construct (SwfdecAsContext *cx, SwfdecAsObject *object, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { SwfdecAsArray *array; @@ -969,7 +1052,8 @@ swfdec_as_arr...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...} -static void +SWFDEC_AS_NATIVE (252, 12, swfdec_as_array_sortOn) +void swfdec_as_array_sortOn (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { @@ -956,8 +1039,8 @@ swfdec_as_array_sortOn (SwfdecAsContext // Constructor static void -swfdec_as_array_construct (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, - SwfdecAsValue *argv, SwfdecAsValue *ret) +swfdec_as_array_construct (SwfdecAsContext *cx, SwfdecAsObject *object, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { SwfdecAsArray *array; @@ -969,7 +1052,8 @@ swfdec_as_arr...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...wfdec_as_array_new (SwfdecAsContext *co ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); swfdec_as_object_add (ret, context, sizeof (SwfdecAsArray)); swfdec_as_object_set_constructor (ret, context->Array); + swfdec_as_array_set_length (ret, 0); return ret; } @@ -1064,6 +1056,8 @@ swfdec_as_array_construct (SwfdecAsConte swfdec_as_array_set_length (object, l < 0 ? 0 : l); } else if (argc > 0) { swfdec_as_array_append (array, argc, argv); + } else { + swfdec_as_array_set_length (object, 0); } SWFDEC_AS_VALUE_SET_OBJECT (ret, object); @@ -1090,7 +1084,8 @@ swfdec_as_array...
2007 Aug 19
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c
...urn FALSE; ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); swfdec_as_object_add (ret, context, sizeof (SwfdecAsArray)); - swfdec_as_object_set_constructor (ret, context->Array, FALSE); + swfdec_as_object_set_constructor (ret, context->Array); return ret; } @@ -1052,8 +1052,7 @@ swfdec_as_array_construct (SwfdecAsConte swfdec_as_object_add (object, cx, sizeof (SwfdecAsArray)); swfdec_as_object_get_variable (cx->global, SWFDEC_AS_STR_Array, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - swfdec_as_object_set_constructor (object, - SWFDEC_AS_VALUE_GET_OBJECT (&va...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...or prototype correspond to new native constructor diff --git a/libswfdec/swfdec_as_array.c b/libswfdec/swfdec_as_array.c index ed0ee0d..7415667 100644 --- a/libswfdec/swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -197,9 +197,8 @@ swfdec_as_array_do_push (SwfdecAsContext } static void -swfdec_as_array_construct (SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) +swfdec_as_array_construct (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { - SwfdecAsContext *cx = object->context; SwfdecAsArray *array; if (!cx->frame...
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
...urn FALSE; ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); swfdec_as_object_add (ret, context, sizeof (SwfdecAsArray)); - swfdec_as_object_set_constructor (ret, context->Array, FALSE); + swfdec_as_object_set_constructor (ret, context->Array); return ret; } @@ -1052,8 +1052,7 @@ swfdec_as_array_construct (SwfdecAsConte swfdec_as_object_add (object, cx, sizeof (SwfdecAsArray)); swfdec_as_object_get_variable (cx->global, SWFDEC_AS_STR_Array, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - swfdec_as_object_set_constructor (object, - SWFDEC_AS_VALUE_GET_OBJECT (&va...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
..._GET_OBJECT (&val))) { - fields[i] = SWFDEC_AS_STRING (SWFDEC_AS_VALUE_GET_OBJECT (&val))->string; + fields[i] = + SWFDEC_AS_STRING (SWFDEC_AS_VALUE_GET_OBJECT (&val))->string; } else { fields[i] = swfdec_as_value_to_string (cx, &val); } @@ -1385,7 +1378,8 @@ swfdec_as_array_construct (SwfdecAsContext *cx, SwfdecAsObject *object, swfdec_as_object_add (object, cx, sizeof (SwfdecAsArray)); swfdec_as_object_get_variable (cx->global, SWFDEC_AS_STR_Array, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - swfdec_as_object_set_constructor (object, SWFDEC_A...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...- a/libswfdec/swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -1077,21 +1077,18 @@ swfdec_as_array_init_context (SwfdecAsCo g_return_if_fail (SWFDEC_IS_AS_CONTEXT (context)); - array = SWFDEC_AS_OBJECT (swfdec_as_object_add_function (context->global, - SWFDEC_AS_STR_Array, 0, swfdec_as_array_construct, 0)); - swfdec_as_native_function_set_construct_type ( - SWFDEC_AS_NATIVE_FUNCTION (array), SWFDEC_TYPE_AS_ARRAY); - if (!array) - return; - context->Array = array; if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsArray))) return; proto = g_object_new (SWFDEC_TYPE_A...