search for: swfdecaswith

Displaying 12 results from an estimated 12 matches for "swfdecaswith".

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
...treet, Fifth Floor, - * Boston, MA 02110-1301 USA - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "swfdec_as_scope.h" -#include "swfdec_as_context.h" -#include "swfdec_debug.h" - -/** - * SwfdecAsScope: - * @see_also: #SwfdecAsFrame, #SwfdecAsWith - * - * A scope is the abstract base class for the #SwfdecAsWith and #SwfdecAsFrame - * classes. It is used to resolve variable references inside ActionScript. - * Consider the following simple ActionScript code: - * <informalexample><programlisting> - * foo = bar; - * </programlist...
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
...Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "swfdec_as_with.h" +#include "swfdec_as_context.h" +#include "swfdec_as_frame.h" +#include "swfdec_debug.h" + +G_DEFINE_TYPE (SwfdecAsWith, swfdec_as_with, SWFDEC_TYPE_AS_SCOPE) + +static void +swfdec_as_with_mark (SwfdecAsObject *object) +{ + SwfdecAsWith *with = SWFDEC_AS_WITH (object); + + swfdec_as_object_mark (with->object); + + SWFDEC_AS_OBJECT_CLASS (swfdec_as_with_parent_class)->mark (object); +} + +static gboolean +s...
2007 Jun 03
1
some patches for swfdec
Here are some patches I made yesterday. They add three actions: duplicateClip, removeClip and With, one method Math.abs and bug fixes. All base off 'as' branch. Please have a look if you are going to apply them because I'm quite new in swfdec development. BTW, how can I implement createEmptyMovieClip? I have no idea how to create an SwfdecMovie properly. I also need to add the
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
...2e 100644 --- a/libswfdec/swfdec_as_with.c +++ b/libswfdec/swfdec_as_with.c @@ -60,12 +60,12 @@ swfdec_as_with_get (SwfdecAsObject *obje static void swfdec_as_with_set (SwfdecAsObject *object, const char *variable, - const SwfdecAsValue *val) + const SwfdecAsValue *val, guint flags) { SwfdecAsWith *with = SWFDEC_AS_WITH (object); SwfdecAsObjectClass *klass = SWFDEC_AS_OBJECT_GET_CLASS (with->object); - klass->set (with->object, variable, val); + klass->set (with->object, variable, val, flags); } static void diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_mo...
2007 Aug 15
0
4 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
...wfdec_as_with_resolve (SwfdecAsObject * } static gboolean -swfdec_as_with_get (SwfdecAsObject *object, const char *variable, - SwfdecAsValue *val, guint *flags) +swfdec_as_with_get (SwfdecAsObject *object, SwfdecAsObject *orig, + const char *variable, SwfdecAsValue *val, guint *flags) { SwfdecAsWith *with = SWFDEC_AS_WITH (object); + if (orig != object) { + SWFDEC_FIXME ("write tests for this case"); + } return swfdec_as_object_get_variable_and_flags (with->object, variable, val, flags, NULL); } diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 77...
2007 Jul 12
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_with.c libswfdec/swfdec_sprite_movie.c test/trace
...fe0720 100644 --- a/libswfdec/swfdec_as_with.c +++ b/libswfdec/swfdec_as_with.c @@ -38,6 +38,14 @@ swfdec_as_with_mark (SwfdecAsObject *obj SWFDEC_AS_OBJECT_CLASS (swfdec_as_with_parent_class)->mark (object); } +static SwfdecAsObject * +swfdec_as_with_resolve (SwfdecAsObject *object) +{ + SwfdecAsWith *with = SWFDEC_AS_WITH (object); + + return with->object; +} + static gboolean swfdec_as_with_get (SwfdecAsObject *object, const char *variable, SwfdecAsValue *val, guint *flags) @@ -96,6 +104,7 @@ swfdec_as_with_class_init (SwfdecAsWithC asobject_class->set_flags = swfdec_as_with_se...
2007 Jul 13
0
3 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...fdec/swfdec_as_with.c +++ b/libswfdec/swfdec_as_with.c @@ -23,7 +23,7 @@ #include "swfdec_as_with.h" #include "swfdec_as_context.h" -#include "swfdec_as_frame.h" +#include "swfdec_as_frame_internal.h" #include "swfdec_debug.h" G_DEFINE_TYPE (SwfdecAsWith, swfdec_as_with, SWFDEC_TYPE_AS_SCOPE) diff --git a/libswfdec/swfdec_debugger.c b/libswfdec/swfdec_debugger.c index 9b3120b..c7f9a35 100644 --- a/libswfdec/swfdec_debugger.c +++ b/libswfdec/swfdec_debugger.c @@ -24,7 +24,7 @@ #include <string.h> #include "swfdec_debugger.h" #incl...
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
...a/libswfdec/swfdec_as_with.c +++ b/libswfdec/swfdec_as_with.c @@ -67,13 +67,12 @@ swfdec_as_with_set_flags (SwfdecAsObject klass->set_flags (with->object, variable, flags, mask); } -static void +static gboolean swfdec_as_with_delete (SwfdecAsObject *object, const char *variable) { SwfdecAsWith *with = SWFDEC_AS_WITH (object); - SwfdecAsObjectClass *klass = SWFDEC_AS_OBJECT_GET_CLASS (with->object); - klass->delete (with->object, variable); + return swfdec_as_object_delete_variable (with->object, variable); } static gboolean diff-tree 092b1c745bb08393fb2ea512cfba6fb0d...
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
...wfdec_as_with.c +++ b/libswfdec/swfdec_as_with.c @@ -78,7 +78,7 @@ swfdec_as_with_set_flags (SwfdecAsObject klass->set_flags (with->object, variable, flags, mask); } -static gboolean +static SwfdecAsDeleteReturn swfdec_as_with_delete (SwfdecAsObject *object, const char *variable) { SwfdecAsWith *with = SWFDEC_AS_WITH (object); diff-tree 409340bd1cd81d54715abb7d816f9f2e076432e9 (from c7b91a2f93c264e6c06adabe1b4fcd97fb590c50) Author: Benjamin Otte <otte at gnome.org> Date: Mon Aug 20 11:40:47 2007 +0200 check {} and [] don't call any constructors diff --git a/test/trace/Ma...
2007 Jul 07
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h libswfdec/swfdec_as_with.c test/trace
...const char * variable); void swfdec_as_object_set_variable_flags diff --git a/libswfdec/swfdec_as_with.c b/libswfdec/swfdec_as_with.c index fa02b0d..9ef6c2e 100644 --- a/libswfdec/swfdec_as_with.c +++ b/libswfdec/swfdec_as_with.c @@ -44,7 +44,7 @@ swfdec_as_with_get (SwfdecAsObject *obje { SwfdecAsWith *with = SWFDEC_AS_WITH (object); - return swfdec_as_object_get_variable_and_flags (with->object, variable, val, flags); + return swfdec_as_object_get_variable_and_flags (with->object, variable, val, flags, NULL); } static void
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
...wfdec_as_with_resolve (SwfdecAsObject * } static gboolean -swfdec_as_with_get (SwfdecAsObject *object, const char *variable, - SwfdecAsValue *val, guint *flags) +swfdec_as_with_get (SwfdecAsObject *object, SwfdecAsObject *orig, + const char *variable, SwfdecAsValue *val, guint *flags) { SwfdecAsWith *with = SWFDEC_AS_WITH (object); + if (orig != object) { + SWFDEC_FIXME ("write tests for this case"); + } return swfdec_as_object_get_variable_and_flags (with->object, variable, val, flags, NULL); } diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 77...
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
...wfdec_as_with.c +++ b/libswfdec/swfdec_as_with.c @@ -78,7 +78,7 @@ swfdec_as_with_set_flags (SwfdecAsObject klass->set_flags (with->object, variable, flags, mask); } -static gboolean +static SwfdecAsDeleteReturn swfdec_as_with_delete (SwfdecAsObject *object, const char *variable) { SwfdecAsWith *with = SWFDEC_AS_WITH (object); diff-tree daed3a3bd2d1517f271c8868670148eba0af3c8f (from 58a57fd8b8361870a39382099717b3fe2fdf38e7) Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Mon Aug 20 13:34:18 2007 +0300 Forgot to add .txt file for loadvars test diff --git a/test/trace/lo...