search for: swfdec_as_str___proto__

Displaying 20 results from an estimated 38 matches for "swfdec_as_str___proto__".

2007 Aug 21
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c test/trace
...wfdec/swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -1107,7 +1107,8 @@ swfdec_as_array_init_context (SwfdecAsCo /* set the right properties on the Array.prototype object */ SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype); - swfdec_as_object_set_variable (proto, SWFDEC_AS_STR___proto__, &val); + swfdec_as_object_set_variable_and_flags (proto, SWFDEC_AS_STR___proto__, &val, + SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, array); swfdec_as_object_set_variable (proto, SWFDEC_AS_STR_constructor, &val); swfd...
2007 Sep 02
0
3 commits - libswfdec/swfdec_as_number.c libswfdec/swfdec_internal.h libswfdec/swfdec_player_as.c libswfdec/swfdec_player.c test/trace
...proto__ and constructor from ASnative and ASconstructor - - swfdec_as_object_get_variable (context->global, SWFDEC_AS_STR_ASnative, &val); - g_assert (SWFDEC_AS_VALUE_IS_OBJECT (&val)); - object = SWFDEC_AS_VALUE_GET_OBJECT (&val); - swfdec_as_object_unset_variable_flags (object, SWFDEC_AS_STR___proto__, - SWFDEC_AS_VARIABLE_PERMANENT); - swfdec_as_object_delete_variable (object, SWFDEC_AS_STR___proto__); - swfdec_as_object_unset_variable_flags (object, SWFDEC_AS_STR_constructor, - SWFDEC_AS_VARIABLE_PERMANENT); - swfdec_as_object_delete_variable (object, SWFDEC_AS_STR_constructor); -...
2007 May 24
0
Branch 'as' - 11 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c
...f78 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -1675,7 +1675,7 @@ swfdec_action_extends (SwfdecAsContext * swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (super), SWFDEC_AS_STR_prototype, &proto); swfdec_as_object_set_variable (prototype, SWFDEC_AS_STR___proto__, &proto); - swfdec_as_object_set_variable (prototype, SWFDEC_AS_STR_constructor, + swfdec_as_object_set_variable (prototype, SWFDEC_AS_STR___constructor__, superclass); SWFDEC_AS_VALUE_SET_OBJECT (&proto, prototype); swfdec_as_object_set_variable (SWFDEC_AS_VALUE_GET_OBJECT (...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...ring, SWFDEC_TYPE_AS_NUMBER, swfdec_as_number_toString, 0); swfdec_as_object_add_function (proto, SWFDEC_AS_STR_valueOf, SWFDEC_TYPE_AS_NUMBER, swfdec_as_number_valueOf, 0); SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype); swfdec_as_object_set_variable_and_flags (proto, SWFDEC_AS_STR___proto__, &val, - SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); + SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT | + SWFDEC_AS_VARIABLE_CONSTANT); } diff --git a/libswfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as index 009bbcc..502942e 100644 --- a/l...
2007 Aug 17
1
libswfdec/swfdec_as_object.c
libswfdec/swfdec_as_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: diff-tree af55385468269795f5f4d14cb8746dfd3d7be245 (from 616cfc32ab9acfa67d4d3c9c963ae76d29ac5835) Author: Benjamin Otte <otte at gnome.org> Date: Fri Aug 17 23:38:48 2007 +0200 fix docs diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index a5e4b08..8d4df41
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_object.c NEWS player/swfplay.c
...ec_as_object.c @@ -494,12 +494,12 @@ swfdec_as_object_new (SwfdecAsContext *c g_assert (context->Object_prototype); object = swfdec_as_object_new_empty (context); - SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype); - swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR___proto__, - &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object); swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR_constructor, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); + SW...
2007 Aug 31
0
4 commits - libswfdec/swfdec_as_number.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player_as.c test/trace
...proto__ and constructor from ASnative and ASconstructor + + swfdec_as_object_get_variable (context->global, SWFDEC_AS_STR_ASnative, &val); + g_assert (SWFDEC_AS_VALUE_IS_OBJECT (&val)); + object = SWFDEC_AS_VALUE_GET_OBJECT (&val); + swfdec_as_object_unset_variable_flags (object, SWFDEC_AS_STR___proto__, + SWFDEC_AS_VARIABLE_PERMANENT); + swfdec_as_object_delete_variable (object, SWFDEC_AS_STR___proto__); + swfdec_as_object_unset_variable_flags (object, SWFDEC_AS_STR_constructor, + SWFDEC_AS_VARIABLE_PERMANENT); + swfdec_as_object_delete_variable (object, SWFDEC_AS_STR_constructor); +...
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
...5012c..b30bde8 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -2206,15 +2206,11 @@ swfdec_action_instance_of (SwfdecAsContext *cx, guint action, prototype = SWFDEC_AS_VALUE_GET_OBJECT (&val); class = object; - swfdec_as_object_get_variable (class, SWFDEC_AS_STR___proto__, &val); - while (SWFDEC_AS_VALUE_IS_OBJECT (&val)) - { - class = SWFDEC_AS_VALUE_GET_OBJECT (&val); + while ((class = swfdec_as_object_get_prototype (class)) != NULL) { if (class == prototype) { SWFDEC_AS_VALUE_SET_BOOLEAN (swfdec_as_stack_peek (cx, 1), TRUE); b...
2007 Sep 03
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c
...able_and_flags (object, SWFDEC_AS_STR_constructor, + &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); + if (context->Function_prototype) { SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function_prototype); - swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR___proto__, - &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); + } else { + SWFDEC_AS_VALUE_SET_UNDEFINED (&val); } + swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR___proto__, + &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); } /**...
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
...C_AS_STR_prototype, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { proto = SWFDEC_AS_VALUE_GET_OBJECT (&val); } else { @@ -959,8 +961,15 @@ swfdec_as_object_set_constructor (Swfdec } SWFDEC_AS_VALUE_SET_OBJECT (&val, proto); swfdec_as_object_set_variable (object, SWFDEC_AS_STR___proto__, &val); + swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___proto__, + SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, construct); - swfdec_as_object_set_variable (object, scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR_...
2007 Nov 01
0
libswfdec/swfdec_as_interpret.c
...nst guint8 *data, gu super = SWFDEC_AS_VALUE_GET_OBJECT (superclass); prototype = swfdec_as_object_new_empty (cx); if (prototype == NULL) - return; + goto fail; swfdec_as_object_get_variable (super, SWFDEC_AS_STR_prototype, &proto); swfdec_as_object_set_variable (prototype, SWFDEC_AS_STR___proto__, &proto); if (cx->version > 5) {
2007 Sep 13
0
libswfdec/swfdec_as_function.c
...00644 --- a/libswfdec/swfdec_as_function.c +++ b/libswfdec/swfdec_as_function.c @@ -244,6 +244,8 @@ swfdec_as_function_init_context (SwfdecA return; context->Function_prototype = proto; SWFDEC_AS_VALUE_SET_OBJECT (&val, proto); + swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR___proto__, + &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR_prototype, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, function);
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
..._context_use_mem (context, sizeof (SwfdecAsSuper))) return NULL; ret = g_object_new (SWFDEC_TYPE_AS_SUPER, NULL); - super = SWFDEC_AS_SUPER (ret); - if (frame->thisp) { - SwfdecAsValue val; - super->object = frame->thisp; - swfdec_as_object_get_variable (frame->thisp, SWFDEC_AS_STR___proto__, &val); - if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - SwfdecAsObject *proto = SWFDEC_AS_VALUE_GET_OBJECT (&val); - swfdec_as_object_get_variable (proto, SWFDEC_AS_STR_constructor, &val); - if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - super->constructor = (SwfdecA...
2007 May 23
0
Branch 'as' - 7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c 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 libswfdec/swfdec_as_strings.c
...r.c @@ -79,10 +79,10 @@ swfdec_as_super_new (SwfdecAsFrame *fram if (frame->thisp) { SwfdecAsValue val; super->object = frame->thisp; - swfdec_as_object_get_variable (frame->thisp, SWFDEC_AS_STR_constructor, &val); + swfdec_as_object_get_variable (frame->thisp, SWFDEC_AS_STR___proto__, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - SwfdecAsObject *constructor = SWFDEC_AS_VALUE_GET_OBJECT (&val); - swfdec_as_object_get_variable (constructor, SWFDEC_AS_STR___constructor__, &val); + SwfdecAsObject *proto = SWFDEC_AS_VALUE_GET_OBJECT (&val);...
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
...t_variable (fun, SWFDEC_AS_STR_constructor, &val); + swfdec_as_object_set_variable (object, SWFDEC_AS_STR_constructor, &val); } if (context->Function_prototype) { SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function_prototype); - swfdec_as_object_set_variable (fun, SWFDEC_AS_STR___proto__, &val); + swfdec_as_object_set_variable (object, SWFDEC_AS_STR___proto__, &val); } - - return SWFDEC_AS_FUNCTION (fun); } /** diff --git a/libswfdec/swfdec_as_function.h b/libswfdec/swfdec_as_function.h index ae3103a..534aad5 100644 --- a/libswfdec/swfdec_as_function.h +++ b/libs...
2007 Aug 15
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c test/trace
...-31,6 +31,7 @@ #include "swfdec_as_stack.h" #include "swfdec_as_strings.h" #include "swfdec_debug.h" +#include "swfdec_movie.h" /** * SECTION:SwfdecAsObject @@ -205,7 +206,8 @@ swfdec_as_object_do_set (SwfdecAsObject return; if (variable == SWFDEC_AS_STR___proto__) { - if (SWFDEC_AS_VALUE_IS_OBJECT (val)) { + if (SWFDEC_AS_VALUE_IS_OBJECT (val) && + !SWFDEC_IS_MOVIE (SWFDEC_AS_VALUE_GET_OBJECT (val))) { object->prototype = SWFDEC_AS_VALUE_GET_OBJECT (val); } else { object->prototype = NULL;
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
..., - SwfdecAsObject *construct, gboolean scripted) +swfdec_as_object_set_constructor (SwfdecAsObject *object, SwfdecAsObject *construct) { SwfdecAsValue val; SwfdecAsObject *proto; @@ -964,12 +960,8 @@ swfdec_as_object_set_constructor (Swfdec swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___proto__, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, construct); - swfdec_as_object_set_variable (object, - scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, - &val); - swfdec_as_object_set_variable_flags (ob...
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
...c_as_array_init_context (SwfdecAsCo swfdec_as_object_set_variable (array, SWFDEC_AS_STR_NUMERIC, &val); /* set the right properties on the Array.prototype object */ - SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype); - swfdec_as_object_set_variable_and_flags (proto, SWFDEC_AS_STR___proto__, &val, - SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); 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, @@ -1135,4 +1129,7 @@ swfd...
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
...ext_use_mem (context, size)) { + new = g_object_new (type, NULL); + swfdec_as_object_add (new, context, size); + /* set initial variables */ + if (swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (fun), SWFDEC_AS_STR_prototype, &val)) { + swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR___proto__, + &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); + } + SWFDEC_AS_VALUE_SET_OBJECT (&val, SWFDEC_AS_OBJECT (fun)); + if (context->version < 7) { + swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR_constructor, + &val, SWFDEC_AS_VARI...
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
..., SWFDEC_TYPE_AS_BOOLEAN, swfdec_as_boolean_toString, 0); - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_valueOf, SWFDEC_TYPE_AS_BOOLEAN, swfdec_as_boolean_valueOf, 0); - SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype); - swfdec_as_object_set_variable_and_flags (proto, SWFDEC_AS_STR___proto__, &val, - SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); + b = SWFDEC_AS_BOOLEAN (object); + + SWFDEC_AS_VALUE_SET_BOOLEAN (ret, b->boolean); } diff --git a/libswfdec/swfdec_as_boolean.h b/libswfdec/swfdec_as_boolean.h index 16bdebd..723f076 100644 --- a/libswfdec/swfd...