search for: swfdec_type_as_array

Displaying 13 results from an estimated 13 matches for "swfdec_type_as_array".

2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...-374,7 +395,7 @@ swfdec_as_array_new (SwfdecAsContext *co g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL); g_return_val_if_fail (context->Array != NULL, NULL); - + if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsArray))) return FALSE; ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); @@ -385,9 +406,10 @@ swfdec_as_array_new (SwfdecAsContext *co /*** AS CODE ***/ -static void -swfdec_as_array_join (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, - SwfdecAsValue *ret) +SWFDEC_AS_NATIVE (252, 7, swfdec_as_array_join) +void +swfdec_as_a...
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
...-374,7 +395,7 @@ swfdec_as_array_new (SwfdecAsContext *co g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL); g_return_val_if_fail (context->Array != NULL, NULL); - + if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsArray))) return FALSE; ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); @@ -385,9 +406,10 @@ swfdec_as_array_new (SwfdecAsContext *co /*** AS CODE ***/ -static void -swfdec_as_array_join (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, - SwfdecAsValue *ret) +SWFDEC_AS_NATIVE (252, 7, swfdec_as_array_join) +void +swfdec_as_a...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
..._as_array_class_init (SwfdecAsArra { SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass); - asobject_class->add = swfdec_as_array_add; asobject_class->set = swfdec_as_array_set; } @@ -401,6 +392,7 @@ swfdec_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...
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
...It was FALSE every time diff --git a/libswfdec/swfdec_as_array.c b/libswfdec/swfdec_as_array.c index 9d245c3..a64b165 100644 --- a/libswfdec/swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -400,7 +400,7 @@ swfdec_as_array_new (SwfdecAsContext *co return 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_a...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...eallocated_items > 1024) { + SWFDEC_INFO ("%u items is a lot, better only preallocate 1024", preallocated_items); + preallocated_items = 1024; + } + + size = sizeof (SwfdecAsArray); + if (!swfdec_as_context_use_mem (context, size)) + return NULL; + object = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); + swfdec_as_object_add (object, context, size); + if (preallocated_items) { + g_array_set_size (SWFDEC_AS_ARRAY (object)->values, preallocated_items); + g_array_set_size (SWFDEC_AS_ARRAY (object)->values, 0); + } + return object; +} + diff --git a/libswfdec/swfdec_as_array.h...
2007 Jul 13
0
12 commits - AUTHORS doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...t;/chapter> </book> diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index fd2f296..7773b37 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -296,4 +296,35 @@ SWFDEC_AS_ARRAY_CLASS SWFDEC_AS_ARRAY_GET_CLASS SWFDEC_IS_AS_ARRAY SWFDEC_IS_AS_ARRAY_CLASS +SWFDEC_TYPE_AS_ARRAY +</SECTION> + +<SECTION> +<FILE>SwfdecAsFunction</FILE> +<TITLE>SwfdecAsFunction</TITLE> +SwfdecAsFunction +SwfdecAsNative +SwfdecAsNativeFunction +swfdec_as_function_create +swfdec_as_function_call +swfdec_as_native_function_new +swfdec_as_native_function_set_co...
2007 May 29
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
...(SwfdecAsCo SWFDEC_AS_VALUE_SET_OBJECT (&val, array); swfdec_as_object_set_variable (proto, SWFDEC_AS_STR_constructor, &val); swfdec_as_object_add_function (proto, SWFDEC_AS_STR_toString, 0, swfdec_as_array_toString, 0); + swfdec_as_object_add_function (proto, SWFDEC_AS_STR_push, SWFDEC_TYPE_AS_ARRAY, swfdec_as_array_do_push, 0); }
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
...guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) +{ + SwfdecAsContext *cx = object->context; + SwfdecAsArray *array; + + if (!cx->frame->construct) { + SwfdecAsValue val; + if (!swfdec_as_context_use_mem (cx, sizeof (SwfdecAsArray))) + return; + object = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); + 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 (&val), FALSE);...
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
...g_return_val_if_fail (context->Array != NULL, NULL); - ret = swfdec_as_object_create (SWFDEC_AS_FUNCTION (context->Array), 0, NULL, FALSE); - swfdec_as_context_run (context); + if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsArray))) + return 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); return ret; } diff-tree f24ac118ee47065dac5b9f9c5fea1d98072485dc (from e9684a012bd9666299ff7b6c03e55ac0d48f479a) Author: Benjamin Otte <otte at gnome...
2007 Aug 23
0
23 commits - doc/.gitignore doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am
...fa0d6f) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 23 14:25:56 2007 +0200 that function is gone now diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index b6270bd..5f29752 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -349,7 +349,6 @@ SWFDEC_TYPE_AS_ARRAY SwfdecAsFunction SwfdecAsNative SwfdecAsNativeFunction -swfdec_as_function_create swfdec_as_function_call swfdec_as_native_function_new swfdec_as_native_function_set_construct_type diff-tree ce43b8df731dc8a0be767f5ff04d932003fa0d6f (from 0a375ca269392d9c4d0516bdaaef260871f6dca6) Author: Benja...
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
...ecAsCo 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_AS_ARRAY, NULL); swfdec_as_object_add (proto, context, sizeof (SwfdecAsArray)); + array = SWFDEC_AS_OBJECT (swfdec_a...
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
...It was FALSE every time diff --git a/libswfdec/swfdec_as_array.c b/libswfdec/swfdec_as_array.c index 9d245c3..a64b165 100644 --- a/libswfdec/swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -400,7 +400,7 @@ swfdec_as_array_new (SwfdecAsContext *co return 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_a...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...s_array_new if _global.Array is missing diff --git a/libswfdec/swfdec_as_array.c b/libswfdec/swfdec_as_array.c index 0da4f48..e209642 100644 --- a/libswfdec/swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -569,9 +569,8 @@ swfdec_as_array_new (SwfdecAsContext *context) ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL); swfdec_as_object_add (ret, context, sizeof (SwfdecAsArray)); swfdec_as_object_get_variable (context->global, SWFDEC_AS_STR_Array, &val); - if (!SWFDEC_AS_VALUE_IS_OBJECT (&val)) - return NULL; - swfdec_as_object_set_constructor (ret, SWFDEC_AS_VALUE_GET_OBJECT (&va...