search for: has_preloads

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

2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
...nt len) +swfdec_action_do_define_function (JSContext *cx, guint action, + const guint8 *data, guint len, gboolean v2) { const char *function_name; guint i, n_args, size; @@ -1426,7 +1427,8 @@ swfdec_action_define_function (JSContext JSFunction *fun; SwfdecScript *script; gboolean has_preloads = FALSE; - gboolean v2 = (action == 0x8e); + guint flags = 0; + guint8 *preloads = NULL; swfdec_bits_init_data (&bits, data, len); function_name = swfdec_bits_get_string (&bits); @@ -1446,8 +1448,8 @@ swfdec_action_define_function (JSContext return JS_FALSE; if (v2) {...
2007 Mar 16
0
4 commits - libswfdec/swfdec_script.c test/image test/trace
...c/swfdec_script.c b/libswfdec/swfdec_script.c index 7b520eb..5c6a0c2 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -1647,6 +1647,7 @@ swfdec_action_define_function (JSContext SwfdecBits bits; JSFunction *fun; SwfdecScript *script; + JSObject *scope; gboolean has_preloads = FALSE; guint flags = 0; guint8 *preloads = NULL; @@ -1659,14 +1660,23 @@ swfdec_action_define_function (JSContext return JS_FALSE; } n_args = swfdec_bits_get_u16 (&bits); + scope = cx->fp->scopeChain; + script = cx->fp->swf; + if (script->version == 5) { +...
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
...y); + return JS_TRUE; +} + +static void +swfdec_action_define_function (SwfdecAsContext *cx, guint action, + const guint8 *data, guint len) +{ + const char *function_name; + guint i, n_args, size; + SwfdecBits bits; + JSFunction *fun; + SwfdecScript *script; + JSObject *scope; + gboolean has_preloads = FALSE; + guint flags = 0; + guint8 *preloads = NULL; + gboolean v2 = (action == 0x8e); + + swfdec_bits_init_data (&bits, data, len); + function_name = swfdec_bits_skip_string (&bits); + if (function_name == NULL) { + SWFDEC_ERROR ("could not parse function name"); +...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...*cx, guint action, - const guint8 *data, guint len, gboolean v2) +swfdec_action_define_function (JSContext *cx, guint action, + const guint8 *data, guint len) { const char *function_name; guint i, n_args, size; @@ -1551,6 +1583,7 @@ swfdec_action_do_define_function (JSCont gboolean has_preloads = FALSE; guint flags = 0; guint8 *preloads = NULL; + gboolean v2 = (action == 0x8e); swfdec_bits_init_data (&bits, data, len); function_name = swfdec_bits_get_string (&bits); @@ -1644,7 +1677,7 @@ swfdec_action_do_define_function (JSCont fun->swf = script; /* attach...