search for: swfdecasobjectclass

Displaying 20 results from an estimated 42 matches for "swfdecasobjectclass".

2007 Mar 28
0
Branch 'as' - 3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_types.c
...e->n_registers; i++) { + swfdec_as_value_mark (&frame->registers[i]); + } + SWFDEC_AS_OBJECT_CLASS (swfdec_as_frame_parent_class)->mark (object); +} + +static void +swfdec_as_frame_class_init (SwfdecAsFrameClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass); + + object_class->dispose = swfdec_as_frame_dispose; + + asobject_class->mark = swfdec_as_frame_mark; +} + +static void +swfdec_as_frame_init (SwfdecAsFrame *frame) +{ +} + +SwfdecAsFrame * +swfdec_as_frame_new (SwfdecAsContext *context, Swf...
2007 Sep 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_scope.c libswfdec/swfdec_as_scope.h libswfdec/swfdec_as_script_function.c
...hain or for SetVariable */ SwfdecAsObject * original_target;/* original target (used when resetting target) */ gboolean is_local; /* TRUE if this frame takes local variables */ @@ -55,7 +59,7 @@ struct _SwfdecAsFrame { }; struct _SwfdecAsFrameClass { - SwfdecAsScopeClass scope_class; + SwfdecAsObjectClass object_class; }; SwfdecAsFrame * swfdec_as_frame_new (SwfdecAsContext * context, @@ -76,7 +80,14 @@ SwfdecAsDeleteReturn void swfdec_as_frame_set_target (SwfdecAsFrame * frame, SwfdecAsObject * target); -void swfdec_as_frame_check_scope (SwfdecAsFrame * frame); +void swfdec_as_fr...
2007 Jun 05
0
Branch 'as' - 8 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_number.c libswfdec/swfdec_as_scope.h
...swfdec_as_object_mark (with->object); + + SWFDEC_AS_OBJECT_CLASS (swfdec_as_with_parent_class)->mark (object); +} + +static gboolean +swfdec_as_with_get (SwfdecAsObject *object, const char *variable, + SwfdecAsValue *val, guint *flags) +{ + SwfdecAsWith *with = SWFDEC_AS_WITH (object); + SwfdecAsObjectClass *klass = SWFDEC_AS_OBJECT_GET_CLASS (with->object); + + return klass->get (with->object, variable, val, flags); +} + +static void +swfdec_as_with_set (SwfdecAsObject *object, const char *variable, + const SwfdecAsValue *val) +{ + SwfdecAsWith *with = SWFDEC_AS_WITH (object); + Swfdec...
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
...iables) can + * avoid this. **/ void -swfdec_as_object_set_variable (SwfdecAsObject *object, - const char *variable, const SwfdecAsValue *value) +swfdec_as_object_set_variable_and_flags (SwfdecAsObject *object, + const char *variable, const SwfdecAsValue *value, guint default_flags) { SwfdecAsObjectClass *klass; @@ -563,7 +566,7 @@ swfdec_as_object_set_variable (SwfdecAsO g_return_if_fail (SWFDEC_IS_AS_VALUE (value)); klass = SWFDEC_AS_OBJECT_GET_CLASS (object); - klass->set (object, variable, value); + klass->set (object, variable, value, default_flags); } /** @@ -987,12 +990...
2007 Apr 16
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...foreach (SwfdecAsObject *object, SwfdecAsVariableForeach func, gpointer data) +{ + ForeachData fdata = { object, func, data, TRUE }; + + g_hash_table_foreach (object->properties, swfdec_as_object_hash_foreach, &fdata); + return fdata.retval; +} + static void swfdec_as_object_class_init (SwfdecAsObjectClass *klass) { @@ -102,6 +130,7 @@ swfdec_as_object_class_init (SwfdecAsObj klass->mark = swfdec_as_object_do_mark; klass->get = swfdec_as_object_do_get; klass->delete = swfdec_as_object_do_delete; + klass->foreach = swfdec_as_object_do_foreach; } static void @@ -339,6 +368,20...
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
...EC_AS_OBJECT_CLASS (swfdec_as_function_parent_class)->mark (object); -} +G_DEFINE_ABSTRACT_TYPE (SwfdecAsFunction, swfdec_as_function, SWFDEC_TYPE_AS_OBJECT) static void swfdec_as_function_class_init (SwfdecAsFunctionClass *klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); - SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass); - - object_class->dispose = swfdec_as_function_dispose; - - asobject_class->mark = swfdec_as_function_mark; } static void swfdec_as_function_init (SwfdecAsFunction *function) { - function->type = SWFDEC_TYPE_AS_OBJECT; - function-...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...k (object); +} + +static void swfdec_load_object_dispose (GObject *object) { SwfdecLoadObject *load_object = SWFDEC_LOAD_OBJECT (object); @@ -161,8 +169,11 @@ static void swfdec_load_object_class_init (SwfdecLoadObjectClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + SwfdecAsObjectClass *as_object_class = SWFDEC_AS_OBJECT_CLASS (klass); object_class->dispose = swfdec_load_object_dispose; + + as_object_class->mark = swfdec_load_object_mark; } static void diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index 942dadf..b1ad1c7 100644 --- a/libswfdec/...
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
...fdec_as_object_delete_variable +SwfdecAsVariableForeach +swfdec_as_object_foreach +swfdec_as_object_has_function +swfdec_as_object_call +swfdec_as_object_run +swfdec_as_object_add_function +swfdec_as_object_get_debug +swfdec_as_object_resolve <SUBSECTION Standard> swfdec_as_object_get_type SwfdecAsObjectClass diff --git a/libswfdec/swfdec_as_internal.h b/libswfdec/swfdec_as_internal.h index 329416f..00d56db 100644 --- a/libswfdec/swfdec_as_internal.h +++ b/libswfdec/swfdec_as_internal.h @@ -20,6 +20,7 @@ #ifndef _SWFDEC_AS_INTERNAL_H_ #define _SWFDEC_AS_INTERNAL_H_ +#include <libswfdec/swfdec_as_...
2007 Jun 06
0
Branch 'as' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h 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
...} + return TRUE; } typedef struct { @@ -314,35 +319,27 @@ swfdec_as_object_set_variable (SwfdecAsO klass->set (object, variable, value); } -static inline gboolean -swfdec_as_object_lookup (SwfdecAsObject *object, const char *variable, - SwfdecAsValue *value, guint *flags) -{ - SwfdecAsObjectClass *klass; - SwfdecAsValue tmp_val; - guint tmp_flags; - - if (value == NULL) - value = &tmp_val; - if (flags == NULL) - flags = &tmp_flags; - - klass = SWFDEC_AS_OBJECT_GET_CLASS (object); - return klass->get (object, variable, value, flags); -} - gboolean swfdec_as_object_ge...
2007 Jun 01
0
Branch 'as' - 2 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_interval.c libswfdec/swfdec_interval.h libswfdec/swfdec_player_as.c libswfdec/swfdec_player.c
...>context), &interval->timeout); + interval->timeout.callback = NULL; + } + + G_OBJECT_CLASS (swfdec_interval_parent_class)->dispose (object); +} + +static void +swfdec_interval_class_init (SwfdecIntervalClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass); + + object_class->dispose = swfdec_interval_dispose; + + asobject_class->mark = swfdec_interval_mark; +} + +static void +swfdec_interval_init (SwfdecInterval *array) +{ +} + +static void +swfdec_interval_trigger (SwfdecTimeout *timeout) +{ +...
2007 Aug 21
0
Branch 'vivi' - 4 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_string.c vivified/core
...wfdec_as_string_parent_class)->mark (object); } +static char * +swfdec_as_string_debug (SwfdecAsObject *object) +{ + SwfdecAsString *string = SWFDEC_AS_STRING (object); + + return g_strdup (string->string); +} + static void swfdec_as_string_class_init (SwfdecAsStringClass *klass) { SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass); asobject_class->mark = swfdec_as_string_do_mark; + asobject_class->debug = swfdec_as_string_debug; } static void
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
...swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -353,8 +353,7 @@ swfdec_as_object_get_variable (SwfdecAsO } void -swfdec_as_object_delete_variable (SwfdecAsObject *object, - const char *variable) +swfdec_as_object_delete_variable (SwfdecAsObject *object, const char *variable) { SwfdecAsObjectClass *klass; guint i, flags; diff-tree 12a24b52a62b851c41bc2393312ff5a5f18dc2df (from 88aa562b59d1b3193b06d3bdcf4b8a167a72152d) Author: Benjamin Otte <otte at gnome.org> Date: Thu May 24 16:37:09 2007 +0200 fix ActionExtends to set __constructor__, not constructor diff --git a/libswfdec...
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
...WFDEC_TYPE_AS_SUPER, SwfdecAsSuperClass)) struct _SwfdecAsSuper { - SwfdecAsObject object; + SwfdecAsFunction function; + + SwfdecAsFunction * constructor; /* super function or NULL */ + SwfdecAsObject * object; /* object super was called on or NULL */ }; struct _SwfdecAsSuperClass { - SwfdecAsObjectClass object_class; + SwfdecAsFunctionClass function_class; }; GType swfdec_as_super_get_type (void); -SwfdecAsObject *swfdec_as_super_new (SwfdecAsContext * context); +SwfdecAsObject *swfdec_as_super_new (SwfdecAsFrame * frame); G_END_DECLS diff-tree 847ef5da65038fc6d85ef9c4a13e9ae62a5bca...
2007 May 21
0
Branch 'as' - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...CT (frame); frame->argc = n_args; frame->argv = args; diff --git a/libswfdec/swfdec_as_function.h b/libswfdec/swfdec_as_function.h index 951911e..ddc92d9 100644 --- a/libswfdec/swfdec_as_function.h +++ b/libswfdec/swfdec_as_function.h @@ -44,8 +44,7 @@ struct _SwfdecAsFunctionClass { SwfdecAsObjectClass object_class; /* call this function: push a new frame onto the stack */ - void (* call) (SwfdecAsFunction * function, - SwfdecAsObject * thisp); + void (* call) (SwfdecAsFunction * function); }; GType swfdec_as_function_get_type (void); diff --git a/libswfdec/swfdec_as_n...
2007 Aug 18
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object_as.h libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...JECT, SwfdecLoadObjectClass)) + +struct _SwfdecLoadObject { + SwfdecAsObject object; + + SwfdecAsObject *target; /* target object */ + char * text; /* string that this LOAD_OBJECT displays */ + SwfdecLoader * loader; /* loader when loading or NULL */ +}; + +struct _SwfdecLoadObjectClass { + SwfdecAsObjectClass object_class; +}; + +GType swfdec_load_object_get_type (void); + +SwfdecAsObject *swfdec_load_object_new (SwfdecAsObject * target, + const char * url); + + +G_END_DECLS +#endif diff --git a/libswfdec/swfdec_load_object_as.c b/libswfdec/swfdec_load_object_as.c new file mode 100644 index 000...
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
...#define SWFDEC_AS_BOOLEAN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_AS_BOOLEAN, SwfdecAsBooleanClass)) + +struct _SwfdecAsBoolean { + SwfdecAsObject object; + + double boolean; /* boolean represented by this boolean object */ +}; + +struct _SwfdecAsBooleanClass { + SwfdecAsObjectClass object_class; +}; + +GType swfdec_as_boolean_get_type (void); + +void swfdec_as_boolean_init_context (SwfdecAsContext * context, + guint version); + + +G_END_DECLS +#endif diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index a8d1454..9257371 100644 --- a/libswf...
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
...swfdec_as_value_mark (&g_array_index (array->values, SwfdecAsValue, i)); + } + + SWFDEC_AS_OBJECT_CLASS (swfdec_as_array_parent_class)->mark (object); +} + +static void +swfdec_as_array_class_init (SwfdecAsArrayClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass); + + object_class->dispose = swfdec_as_array_dispose; + + asobject_class->mark = swfdec_as_array_mark; +} + +static void +swfdec_as_array_init (SwfdecAsArray *array) +{ + array->values = g_array_new (FALSE, TRUE, sizeof (SwfdecAsValue));...
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
...: unset movie when movie is already dead */ + if (color->movie) + swfdec_as_object_mark (SWFDEC_AS_OBJECT (color->movie)); + + SWFDEC_AS_OBJECT_CLASS (swfdec_movie_color_parent_class)->mark (object); +} + +static void +swfdec_movie_color_class_init (SwfdecMovieColorClass *klass) +{ + SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass); + + asobject_class->mark = swfdec_movie_color_mark; +} + +static void +swfdec_movie_color_init (SwfdecMovieColor *color) +{ +} + +/*** AS CODE ***/ + +static void +swfdec_movie_color_getRGB (SwfdecAsObject *obj, guint argc, SwfdecAsValue *argv,...
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
...andlers[i]) + g_signal_handler_disconnect (debugger, breakpoint->handlers[i]); + } + G_OBJECT_CLASS (vivi_breakpoint_parent_class)->dispose (object); +} + +static void +vivi_breakpoint_class_init (ViviBreakpointClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + SwfdecAsObjectClass *as_object_class = SWFDEC_AS_OBJECT_CLASS (klass); + + object_class->dispose = vivi_breakpoint_dispose; + + as_object_class->set = vivi_breakpoint_set; + as_object_class->del = vivi_breakpoint_delete; +} + +static void +vivi_breakpoint_init (ViviBreakpoint *breakpoint) +{ +} + +/*** AS...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...et_length (object, 0); - - SWFDEC_AS_OBJECT_CLASS (swfdec_as_array_parent_class)->add (object); -} - -static void swfdec_as_array_set (SwfdecAsObject *object, const char *variable, const SwfdecAsValue *val, guint flags) { @@ -367,7 +359,6 @@ swfdec_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, c...