search for: swfdec_as_context_eval

Displaying 19 results from an estimated 19 matches for "swfdec_as_context_eval".

2007 Jun 29
0
Branch 'as' - 3 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h
...gt; SwfdecAsValueType @@ -212,3 +220,34 @@ SWFDEC_AS_VALUE_IS_STRING SWFDEC_AS_VALUE_IS_NULL SWFDEC_AS_VALUE_IS_OBJECT </SECTION> + +<SECTION> +<FILE>SwfdecAsContext</FILE> +<TITLE>SwfdecAsContext</TITLE> +swfdec_as_context_abort +swfdec_as_context_abort_oom +swfdec_as_context_eval +swfdec_as_context_eval_set +swfdec_as_context_gc +swfdec_as_context_get_string +swfdec_as_context_get_time +swfdec_as_context_give_string +swfdec_as_context_maybe_gc +swfdec_as_context_new +swfdec_as_context_return +swfdec_as_context_run +swfdec_as_context_startup +swfdec_as_context_trace +swfdec_...
2007 Sep 26
1
Youtube broken by 89d295a94
...et.c index 5dc9a24..e94b835 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -578,6 +578,7 @@ swfdec_action_get_variable (SwfdecAsContext *cx, guint action, const guint8 *dat val = swfdec_as_stack_peek (cx, 1); s = swfdec_as_value_to_string (cx, val); + swfdec_as_context_eval (cx, NULL, s, val); if (swfdec_action_get_movie_by_path (cx, s, &object, &s)) { if (object) { if (s) { @@ -589,7 +590,7 @@ swfdec_action_get_variable (SwfdecAsContext *cx, guint action, const guint8 *dat swfdec_as_frame_get_variable (cx->frame, swfdec_as_context_get...
2007 Jun 17
2
Branch 'as' - libswfdec/swfdec_as_interpret.c
libswfdec/swfdec_as_interpret.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) New commits: diff-tree 38fbc1389267e593b44041018cbb1750bdcce0fb (from aaca94203d8a0ccb8feb32c0d57df3401fca0350) Author: Benjamin Otte <otte at gnome.org> Date: Sun Jun 17 14:19:45 2007 +0200 actually convert the values to a string when comparing strings diff --git
2007 Oct 15
0
8 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c libswfdec/swfdec_sound.h test/trace
...trace (construct (values[i])); +} + +loadMovie ("FSCommand:quit", ""); commit 57213bb1748bd4efd1b171a70a35c964068f1594 Author: Benjamin Otte <otte at gnome.org> Date: Mon Oct 15 18:29:48 2007 +0200 make NewObject action call swfdec_action_get_variable() instead of swfdec_as_context_eval() diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index a3c0c15..f2022b4 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -677,24 +677,6 @@ swfdec_action_set_variable (SwfdecAsContext *cx, guint action, const guint8 *dat swfdec...
2007 Jun 28
0
Branch 'as' - 5 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
...(SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + SwfdecAsValue *val = swfdec_as_stack_pop (cx->frame->stack); + SwfdecAsObject *sprite; + SwfdecMovie *movie; + + if (SWFDEC_AS_VALUE_IS_STRING (val)) { + const char *name = SWFDEC_AS_VALUE_GET_STRING (val); + + swfdec_as_context_eval (cx, NULL, name, val); + } + if (SWFDEC_AS_VALUE_IS_OBJECT (val)) { + sprite = SWFDEC_AS_VALUE_GET_OBJECT (val); + } else { + SWFDEC_FIXME ("unknown type in RemoveSprite"); + return; + } + if (!SWFDEC_IS_MOVIE (sprite)) { + SWFDEC_FIXME ("cannot remove non movieclip...
2007 Oct 14
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c test/trace
...[i]); +}; + + +loadMovie ("FSCommand:quit", ""); commit be4a34a44fc04b3665a0d6d0c7c7835bd1bd369d Author: Benjamin Otte <otte at gnome.org> Date: Sun Oct 14 14:49:37 2007 +0200 fix GetProperty and SetProperty actions to use swfdec_player_get_movie() One more swfdec_as_context_eval() user down diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index 59b6052..3055a7d 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -470,8 +470,14 @@ swfdec_action_lookup_object (SwfdecAsContext *cx, SwfdecAsObject *o, const char...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...*variable = path; + return TRUE; + } +} + static void swfdec_action_get_variable (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { + SwfdecAsValue *val; const char *s; + SwfdecAsObject *object; - s = swfdec_as_value_to_string (cx, swfdec_as_stack_peek (cx, 1)); - swfdec_as_context_eval (cx, NULL, s, swfdec_as_stack_peek (cx, 1)); + val = swfdec_as_stack_peek (cx, 1); + s = swfdec_as_value_to_string (cx, val); + if (swfdec_action_get_movie_by_path (cx, s, &object, &s)) { + if (object == NULL) + object = swfdec_as_frame_find_variable (cx->frame, s); + } else...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...xt_field_movie_iterate (SwfdecMovie *movie) -{ - SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (movie); - SwfdecAsObject *parent; - const char *s; - SwfdecAsValue val = { 0, }; - - if (text->text->variable == NULL) - return; - - parent = SWFDEC_AS_OBJECT (movie->parent); - swfdec_as_context_eval (parent->context, parent, text->text->variable, &val); - if (SWFDEC_AS_VALUE_IS_UNDEFINED (&val)) - return; - - s = swfdec_as_value_to_string (parent->context, &val); - g_assert (s); - if (text->text_input == s) - return; - - swfdec_text_field_movie_set_text (t...
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
...E_MOUSE_CURSOR -swfdec_mouse_cursor_get_type </SECTION> @@ -224,21 +219,18 @@ SWFDEC_AS_VALUE_IS_OBJECT <SECTION> <FILE>SwfdecAsContext</FILE> <TITLE>SwfdecAsContext</TITLE> +swfdec_as_context_startup swfdec_as_context_abort -swfdec_as_context_abort_oom -swfdec_as_context_eval -swfdec_as_context_eval_set -swfdec_as_context_gc swfdec_as_context_get_string -swfdec_as_context_get_time swfdec_as_context_give_string +swfdec_as_context_use_mem +swfdec_as_context_gc swfdec_as_context_maybe_gc -swfdec_as_context_new -swfdec_as_context_return swfdec_as_context_run -swfdec_as_...
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
...to dot notation \"%s\"", + slash_str, str->str); + return g_string_free (str, FALSE); + +fail: + SWFDEC_WARNING ("failed to parse slash-notated string \"%s\" into dot notation", slash_str); + g_string_free (str, TRUE); + return NULL; +} + +static void +swfdec_as_context_eval_get_property (SwfdecAsContext *cx, + SwfdecAsObject *obj, const char *name, SwfdecAsValue *ret) +{ + if (obj) { + swfdec_as_object_get (obj, name, ret); + } else { + g_assert_not_reached (); +#if 0 + if (cx->fp == NULL || cx->fp->scopeChain == NULL) + return JS_FALSE; +...
2007 Apr 04
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_stack.c libswfdec/swfdec_as_stack.h
...n, const guint8 *data, guint len) { const char *s; - s = swfdec_js_to_string (cx, cx->fp->sp[-1]); - if (s == NULL) - return JS_FALSE; - cx->fp->sp[-1] = swfdec_js_eval (cx, NULL, s); + s = swfdec_as_value_to_string (cx, swfdec_as_stack_peek (cx->frame->stack, 1)); + swfdec_as_context_eval (cx, NULL, s, swfdec_as_stack_peek (cx->frame->stack, 1)); #ifdef SWFDEC_WARN_MISSING_PROPERTIES - if (cx->fp->sp[-1] == JSVAL_VOID) { + if (SWFDEC_AS_VALUE_IS_UNDEFINED (swfdec_as_stack_peek (cx->frame->stack, 1))) { SWFDEC_WARNING ("no variable named %s", s);...
2007 Oct 26
0
8 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c test/trace
...ctions.txt index 2442538..2b3a774 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -307,6 +307,8 @@ swfdec_as_context_use_mem swfdec_as_context_gc swfdec_as_context_maybe_gc swfdec_as_context_run +swfdec_as_context_throw +swfdec_as_context_catch swfdec_as_context_unuse_mem swfdec_as_context_eval swfdec_as_context_eval_set diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 531ff00..ed491b1 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -673,6 +673,52 @@ swfdec_as_context_get_frame (SwfdecAsContext *context) } /** + * swfd...
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
...<xi:include href="xml/SwfdecAsFrame.xml"/> </chapter> </book> diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index 7773b37..9c0f01c 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -235,6 +235,8 @@ swfdec_as_context_unuse_mem swfdec_as_context_eval swfdec_as_context_eval_set swfdec_as_context_get_time +swfdec_as_context_get_frame +swfdec_as_context_is_constructing <SUBSECTION Standard> swfdec_as_context_get_type SwfdecAsContextClass @@ -328,3 +330,24 @@ SWFDEC_IS_AS_NATIVE_FUNCTION SWFDEC_IS_AS_NATIVE_FUNCTION_CLASS SWFDEC_TYPE_A...
2007 Apr 05
0
Branch 'as' - 9 commits - configure.ac libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...ec_as_interpret.c index aab5f44..893adbd 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -532,10 +532,116 @@ swfdec_action_set_variable (SwfdecAsCont const char *s; s = swfdec_as_value_to_string (cx, swfdec_as_stack_peek (cx->frame->stack, 2)); - swfdec_as_context_eval_set (cx, NULL, s, swfdec_as_stack_pop (cx->frame->stack)); + swfdec_as_context_eval_set (cx, NULL, s, swfdec_as_stack_peek (cx->frame->stack, 1)); + swfdec_as_stack_pop_n (cx->frame->stack, 2); +} + +static const char * +swfdec_as_interpret_eval (SwfdecAsContext *cx, SwfdecAsObj...
2007 Apr 12
0
Branch 'as' - 15 commits - 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 libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...NULL, (const char *) data); - if (!JSVAL_IS_OBJECT (target) || JSVAL_IS_NULL (target)) { - SWFDEC_WARNING ("target is not an object"); - return JS_TRUE; + if (*data == '\0') { + swfdec_as_frame_set_target (cx->frame, NULL); + } else { + SwfdecAsValue target; + swfdec_as_context_eval (cx, NULL, (const char *) data, &target); + if (!SWFDEC_AS_VALUE_IS_OBJECT (&target)) { + SWFDEC_WARNING ("target is not an object"); + return; + } + /* FIXME: allow non-movieclips as targets? */ + swfdec_as_frame_set_target (cx->frame, SWFDEC_AS_VALUE_GE...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
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
..._error (manager, "Given expression is not an object"); + if (arg == NULL) return; - } - obj = JSVAL_TO_OBJECT (rval); - array = JS_Enumerate (manager->player->jscx, obj); - if (array == NULL) { - swfdec_player_manager_error (manager, "Error enumerating"); + + swfdec_as_context_eval (SWFDEC_AS_CONTEXT (manager->player), NULL, arg, &val); + s = swfdec_as_value_to_debug (&val); + swfdec_player_manager_output (manager, "%s", s); + g_free (s); + if (!SWFDEC_AS_VALUE_IS_OBJECT (&val)) return; - } - s = swfdec_js_to_string (manager->player->...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...; SwfdecAsContext *context; @@ -1362,16 +1362,6 @@ swfdec_movie_load_variables (SwfdecMovie *movie, const char *url, g_return_if_fail (SWFDEC_IS_MOVIE (movie)); g_return_if_fail (url != NULL); - g_return_if_fail (target != NULL); - - context = SWFDEC_AS_OBJECT (movie)->context; - - swfdec_as_context_eval (context, SWFDEC_AS_OBJECT (movie), target, &val); - if (!SWFDEC_AS_VALUE_IS_OBJECT (&val) || - !SWFDEC_IS_MOVIE (SWFDEC_AS_VALUE_GET_OBJECT (&val))) { - SWFDEC_WARNING ("Target not a movie"); - return; - } if (request != SWFDEC_LOADER_REQUEST_DEFAULT) {...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...memleak (thanks valgrind) memleak whoops, we were copying the just added memory, not the old value cast the argument of SWFDEC_AS_VALUE_SET_INT to an int set an int, not a number, when pushing an int fix usage of uninitialized memory remove another occurence of swfdec_as_context_eval() clean up DefineFont3 code only force a size to the player if it has been initialized already. update the movie before requesting bounds those 2 ariables are implemented already createEmptyMovieClip is 901,0 add a naive implementation of the drawing commands...