search for: swfdec_action_logical_5

Displaying 4 results from an estimated 4 matches for "swfdec_action_logical_5".

2007 Apr 11
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...as_interpret.c b/libswfdec/swfdec_as_interpret.c index 249f9cc..3989186 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -1831,41 +1831,24 @@ swfdec_action_enumerate2 (SwfdecAsContex JS_DestroyIdArray (cx, array); return JS_TRUE; } +#endif static void -swfdec_action_logical_5 (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) -{ - void l, r; - - l = swfdec_value_to_boolean_5 (cx, cx->fp->sp[-1]); - r = swfdec_value_to_boolean_5 (cx, cx->fp->sp[-2]); - - cx->fp->sp--; - if (action == 0x10) - cx->fp->sp[-1] = l && r...
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
...trings (rval, lval) == 0); + return JS_TRUE; +} + +static JSBool swfdec_action_jump (JSContext *cx, guint action, const guint8 *data, guint len) { if (len != 2) { @@ -2507,7 +2522,7 @@ static const SwfdecActionSpec actions[25 [0x10] = { "And", NULL, 2, 1, { NULL, /* FIXME */NULL, swfdec_action_logical_5, swfdec_action_logical_5, swfdec_action_logical_7 } }, [0x11] = { "Or", NULL, 2, 1, { NULL, /* FIXME */NULL, swfdec_action_logical_5, swfdec_action_logical_5, swfdec_action_logical_7 } }, [0x12] = { "Not", NULL, 1, 1, { NULL, swfdec_action_not_4, swfdec_action_not_5, swfde...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...array); + return JS_FALSE; + } + for (i = 0; i < array->length; i++) { + if (!JS_IdToValue (cx, array->vector[i], cx->fp->sp++)) { + JS_DestroyIdArray (cx, array); + return JS_FALSE; + } + } + JS_DestroyIdArray (cx, array); + return JS_TRUE; +} + +static void +swfdec_action_logical_5 (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + void l, r; + + l = swfdec_value_to_boolean_5 (cx, cx->fp->sp[-1]); + r = swfdec_value_to_boolean_5 (cx, cx->fp->sp[-2]); + + cx->fp->sp--; + if (action == 0x10) + cx->fp->sp[-1] = l && r...
2007 Mar 12
0
11 commits - libswfdec/js libswfdec/swfdec_loader.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c player/swfdebug.c player/swfdec_player_manager.c test/trace
...ray); + return JS_FALSE; + } + for (i = 0; i < array->length; i++) { + if (!JS_IdToValue (cx, array->vector[i], cx->fp->sp++)) { + JS_DestroyIdArray (cx, array); + return JS_FALSE; + } + } + JS_DestroyIdArray (cx, array); + return JS_TRUE; +} + +static JSBool +swfdec_action_logical_5 (JSContext *cx, guint action, const guint8 *data, guint len) +{ + JSBool l, r; + + l = swfdec_value_to_boolean_5 (cx, cx->fp->sp[-1]); + r = swfdec_value_to_boolean_5 (cx, cx->fp->sp[-2]); + + cx->fp->sp--; + if (action == 0x10) + cx->fp->sp[-1] = l && r ? JS...