search for: swfdec_as_str___constructor__

Displaying 15 results from an estimated 15 matches for "swfdec_as_str___constructor__".

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 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
..._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___constructor__, &val); + swfdec_as_object_set_variable (object, + scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, + &val); + swfdec_as_object_set_variable_flags (object, + scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, + SWFDEC_AS_VARIABLE...
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
...fdec_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 (subclass), diff-tree 88aa562b59d1b3193b06d3bdcf4b8a167a72152d (from dd221847f7a93e4f7815b967a11d356f3603709d) Author: Benjamin Otte <otte at gnome.org> Dat...
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
...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 (object, - scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, - SWFDEC_AS_VARIABLE_HIDDEN); + swfdec_as_object_set_variable (object, SWFDEC_AS_STR___constructor__, &val); + swfdec_as_object_set_variable_fla...
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
...(context->version < 7) { + swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR_constructor, + &val, SWFDEC_AS_VARIABLE_HIDDEN); + } + if (context->version <= 5) + SWFDEC_AS_VALUE_SET_UNDEFINED (&val); + swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR___constructor__, + &val, SWFDEC_AS_VARIABLE_HIDDEN); + } else { + /* need to do this, since we must push something to the frame stack */ + new = NULL; + } swfdec_as_function_call (fun, new, n_args, args, NULL); context->frame->construct = TRUE; } @@ -937,7 +954,7 @@ swfdec_as_object_creat...
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
...DEC_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); + swfdec_as_object_get_variable (proto, SWFDEC_AS_STR___constructor__, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { super->constructor = (SwfdecAsFunction *) SWFDEC_AS_VALUE_GET_OBJECT (&amp...
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
..._object_create (SwfdecAsFunctio swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR_constructor, &val, SWFDEC_AS_VARIABLE_HIDDEN); } - if (context->version <= 5) - SWFDEC_AS_VALUE_SET_UNDEFINED (&val); - swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR___constructor__, - &val, SWFDEC_AS_VARIABLE_HIDDEN); + if (context->version > 5) { + swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR___constructor__, + &val, SWFDEC_AS_VARIABLE_HIDDEN); + } } else { /* need to do this, since we must push something to the frame stack...
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
...{ - SWFDEC_WARNING ("super () called without a this object."); + SWFDEC_WARNING ("super () called without an object."); return NULL; } - if (super->object->prototype == NULL) - return NULL; - swfdec_as_object_get_variable (super->object->prototype, SWFDEC_AS_STR___constructor__, &val); + + swfdec_as_object_get_variable (super->object, SWFDEC_AS_STR___constructor__, &val); if (!SWFDEC_AS_VALUE_IS_OBJECT (&val) || !SWFDEC_IS_AS_FUNCTION (fun = (SwfdecAsFunction *) SWFDEC_AS_VALUE_GET_OBJECT (&val))) return NULL; @@ -76,10 +75,7 @@ swfdec_a...
2007 Jul 26
0
5 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player_as.c
...eturn name != SWFDEC_AS_STR_EMPTY; -} - static void swfdec_as_object_do_set (SwfdecAsObject *object, const char *variable, const SwfdecAsValue *val) @@ -934,6 +936,39 @@ swfdec_as_object_set_constructor (Swfdec swfdec_as_object_set_variable (object, scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, &val); } +/** + * swfdec_as_object_add_variable: + * @object: a #SwfdecAsObject + * @variable: name of the variable + * @get: getter function to call when reading the variable + * @set: setter function to call when writing the variable or %NULL if read-only + * + * Adds a variable to @objec...
2007 May 22
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...er->object = frame->thisp; + swfdec_as_object_get_variable (frame->thisp, SWFDEC_AS_STR_constructor, &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); + if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { + super->constructor = (SwfdecAsFunction *) SWFDEC_AS_VALUE_GET_OBJECT (&val); + if (!SWFDEC_IS_AS_FUNCTION (super->constructor)) + super->constructor = NULL; + } + } + } swfdec_as_object_add (ret, context, si...
2007 May 18
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...SWFDEC_IS_AS_NATIVE_FUNCTION (construct)) { + SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (construct); + if (native->type_size) { + type = native->type; + size = native->type_size; + break; + } + } + swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (cur), SWFDEC_AS_STR___constructor__, &val); + if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { + cur = (SwfdecAsFunction *) SWFDEC_AS_VALUE_GET_OBJECT (&val); + if (!SWFDEC_IS_AS_FUNCTION (cur)) + cur = NULL; + } else { + cur = NULL; + } + } + if (type == 0) { + type = SWFDEC_TYPE_AS_OBJECT; + size...
2007 Jun 21
0
Branch 'as' - 5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_connection.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...C_AS_OBJECT (movie)->context); g_queue_remove (player->construct_queue, movie); swfdec_movie_execute_script (movie, SWFDEC_EVENT_CONSTRUCT); - swfdec_as_object_call (SWFDEC_AS_OBJECT (movie), SWFDEC_AS_STR_constructor, 0, NULL, NULL); + swfdec_as_object_call (SWFDEC_AS_OBJECT (movie), SWFDEC_AS_STR___constructor__, 0, NULL, NULL); } void diff-tree fa2a28a1388c0f22d19d59db99d292a4e911cae5 (from 6004dbe9fe5d1b4cc6859c704bec72900d43c300) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jun 21 17:27:48 2007 +0200 fix mouse drag coordinate computation diff --git a/libswfdec/swfdec_player.c b/...
2007 Aug 16
0
Branch 'vivi' - 23 commits - 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_net_stream.c libswfdec/swfdec_sprite_movie.c test/trace vivified/core
...ype; size = native->construct_size; + g_print ("type is %s\n", g_type_name (type)); break; } } -#if 0 - This doesn't work. It's supposed to figure out the last native object in the inheritance chain. - swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (cur), SWFDEC_AS_STR___constructor__, &val); + swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (cur), SWFDEC_AS_STR_prototype, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - cur = (SwfdecAsFunction *) SWFDEC_AS_VALUE_GET_OBJECT (&val); - if (!SWFDEC_IS_AS_FUNCTION (cur)) - cur = NULL; - } else {...
2007 Nov 14
0
7 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h
...ction *fun, guint n_args, SwfdecAsObject *new; SwfdecAsContext *context; SwfdecAsFunction *cur; + SwfdecAsFrame *frame; guint size; GType type = 0; @@ -1281,8 +1283,10 @@ swfdec_as_object_create (SwfdecAsFunction *fun, guint n_args, swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR___constructor__, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_VERSION_6_UP); - swfdec_as_function_call (fun, new, n_args, args, return_value); - context->frame->construct = TRUE; + frame = swfdec_as_function_call_no_preload (fun, new, n_args, args, return_value); + frame->constru...
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
...ype; size = native->construct_size; + g_print ("type is %s\n", g_type_name (type)); break; } } -#if 0 - This doesn't work. It's supposed to figure out the last native object in the inheritance chain. - swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (cur), SWFDEC_AS_STR___constructor__, &val); + swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (cur), SWFDEC_AS_STR_prototype, &val); if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) { - cur = (SwfdecAsFunction *) SWFDEC_AS_VALUE_GET_OBJECT (&val); - if (!SWFDEC_IS_AS_FUNCTION (cur)) - cur = NULL; - } else {...