search for: swfdec_action_string_compar

Displaying 7 results from an estimated 7 matches for "swfdec_action_string_compar".

2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
...fdecActionSpec swfdec_as_actions[256] = { [SWFDEC_AS_ACTION_END_DRAG] = { "EndDrag", NULL, 0, 0, { NULL, swfdec_action_end_drag, swfdec_action_end_drag, swfdec_action_end_drag, swfdec_action_end_drag } }, [SWFDEC_AS_ACTION_STRING_LESS] = { "StringLess", NULL, 2, 1, { NULL, swfdec_action_string_compare, swfdec_action_string_compare, swfdec_action_string_compare, swfdec_action_string_compare } }, /* version 7 */ - [SWFDEC_AS_ACTION_THROW] = { "Throw", NULL }, + [SWFDEC_AS_ACTION_THROW] = { "Throw", NULL, 1, 0, { NULL, NULL, NULL, NULL, swfdec_action_throw } }, [SWFDEC_...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...ot;And", NULL, 2, 1, swfdec_action_logical, 4 }, + [SWFDEC_AS_ACTION_OR] = { "Or", NULL, 2, 1, swfdec_action_logical, 4 }, + [SWFDEC_AS_ACTION_NOT] = { "Not", NULL, 1, 1, swfdec_action_not, 4 }, [SWFDEC_AS_ACTION_STRING_EQUALS] = { "StringEquals", NULL, 2, 1, swfdec_action_string_compare, 4 }, [SWFDEC_AS_ACTION_STRING_LENGTH] = { "StringLength", NULL, 1, 1, swfdec_action_string_length, 4 }, [SWFDEC_AS_ACTION_STRING_EXTRACT] = { "StringExtract", NULL, 3, 1, swfdec_action_string_extract, 4 }, @@ -3154,12 +3144,12 @@ const SwfdecActionSpec swfdec_as_actions[...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c test/trace
...void swfdec_action_extends (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { SwfdecAsValue *superclass, *subclass, proto; @@ -2873,7 +2907,7 @@ const SwfdecActionSpec swfdec_as_actions[256] = { [SWFDEC_AS_ACTION_STRING_LESS] = { "StringLess", NULL, 2, 1, { NULL, swfdec_action_string_compare, swfdec_action_string_compare, swfdec_action_string_compare, swfdec_action_string_compare } }, /* version 7 */ [SWFDEC_AS_ACTION_THROW] = { "Throw", NULL }, - [SWFDEC_AS_ACTION_CAST] = { "Cast", NULL }, + [SWFDEC_AS_ACTION_CAST] = { "Cast", NULL, 2, 1, { NULL,...
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 Jul 02
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_interpret.c test/trace
...string_length (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + const char *s; + SwfdecAsValue *v; + + v = swfdec_as_stack_peek (cx->frame->stack, 1); + s = swfdec_as_value_to_string (cx, v); + SWFDEC_AS_VALUE_SET_INT (v, g_utf8_strlen (s, -1)); +} + +static void swfdec_action_string_compare (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { const char *l, *r; @@ -2394,7 +2405,7 @@ const SwfdecActionSpec swfdec_as_actions [SWFDEC_AS_ACTION_OR] = { "Or", NULL, 2, 1, { NULL, /* FIXME */NULL, swfdec_action_logical, swfdec_action_logical, swfdec_action_l...
2007 Jun 20
1
Branch 'as' - 2 commits - libswfdec/swfdec_as_interpret.c
...tte at gnome.org> Date: Wed Jun 20 20:43:31 2007 +0200 unused variable diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index e7a260a..596b632 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -997,7 +997,6 @@ static void swfdec_action_string_compare (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { const char *l, *r; - int comp; gboolean cond; r = swfdec_as_value_to_string (cx, swfdec_as_stack_pop (cx->frame->stack));
2007 Dec 10
0
5 commits - libswfdec/jpeg libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_cached.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_flash_security.c libswfdec/swfdec_image.c
...e <otte at gnome.org> Date: Mon Dec 10 22:35:57 2007 +0100 fix unaligned reads diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index 0b48d67..975a447 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -1321,6 +1321,7 @@ swfdec_action_string_compare (SwfdecAsContext *cx, guint action, const guint8 *d cond = strcmp (l, r) < 0; break; default: + cond = FALSE; g_assert_not_reached (); break; } commit b995903b20f0327f8d4845eea183b9aae0134d03 Author: Benjamin Otte <otte at gnome.org> Date: Mon De...