search for: minscriptversion

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

2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...g_string_free (string, FALSE); +} + +static char * swfdec_action_print_goto_frame (guint action, const guint8 *data, guint len) { guint frame; @@ -162,13 +415,14 @@ swfdec_action_print_wait_for_frame (guin /* defines minimum and maximum versions for which we have seperate scripts */ #define MINSCRIPTVERSION 3 #define MAXSCRIPTVERSION 7 +#define EXTRACT_VERSION(v) MAX ((v) - MINSCRIPTVERSION, MAXSCRIPTVERSION - MINSCRIPTVERSION) typedef JSBool (* SwfdecActionExec) (JSContext *cx, guint action, const guint8 *data, guint len); typedef struct { const char * name; /* name identifying the action *...
2007 Mar 28
0
Branch 'as' - 3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_types.c
...val_if_fail (string != NULL, NULL); ret = g_hash_table_lookup (context->strings, string); @@ -277,3 +279,111 @@ swfdec_as_context_new (void) { return g_object_new (SWFDEC_TYPE_AS_CONTEXT, NULL); } + +/* defines minimum and maximum versions for which we have seperate scripts */ +#define MINSCRIPTVERSION 3 +#define MAXSCRIPTVERSION 7 +#define EXTRACT_VERSION(v) MIN ((v) - MINSCRIPTVERSION, MAXSCRIPTVERSION - MINSCRIPTVERSION) + +typedef JSBool (* SwfdecActionExec) (JSContext *cx, guint action, const guint8 *data, guint len); +typedef struct { + const char * name; /* name identifying the action *...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...gt;fp->sp[-1] = BOOLEAN_TO_JSVAL (action == 0x48 ? d < d2 : d > d2); + } + return JS_TRUE; +} + /*** PRINT FUNCTIONS ***/ static char * @@ -762,7 +803,7 @@ swfdec_action_print_wait_for_frame (guin /* defines minimum and maximum versions for which we have seperate scripts */ #define MINSCRIPTVERSION 3 #define MAXSCRIPTVERSION 7 -#define EXTRACT_VERSION(v) MAX ((v) - MINSCRIPTVERSION, MAXSCRIPTVERSION - MINSCRIPTVERSION) +#define EXTRACT_VERSION(v) MIN ((v) - MINSCRIPTVERSION, MAXSCRIPTVERSION - MINSCRIPTVERSION) typedef JSBool (* SwfdecActionExec) (JSContext *cx, guint action, const guint8...
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
...dec_as_object.h" #include "swfdec_as_stack.h" #include "swfdec_as_types.h" @@ -327,22 +328,6 @@ swfdec_as_context_new (void) return g_object_new (SWFDEC_TYPE_AS_CONTEXT, NULL); } -/* defines minimum and maximum versions for which we have seperate scripts */ -#define MINSCRIPTVERSION 3 -#define MAXSCRIPTVERSION 7 -#define EXTRACT_VERSION(v) MIN ((v) - MINSCRIPTVERSION, MAXSCRIPTVERSION - MINSCRIPTVERSION) - -typedef void (* SwfdecActionExec) (SwfdecAsContext *cx, guint action, const guint8 *data, guint len); -typedef struct { - const char * name; /* name identifying the acti...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am 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
...code diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 6f7fe6e..037e146 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -320,7 +320,7 @@ swfdec_as_context_new (void) #define MAXSCRIPTVERSION 7 #define EXTRACT_VERSION(v) MIN ((v) - MINSCRIPTVERSION, MAXSCRIPTVERSION - MINSCRIPTVERSION) -typedef JSBool (* SwfdecActionExec) (JSContext *cx, guint action, const guint8 *data, guint len); +typedef void (* SwfdecActionExec) (SwfdecAsContext *cx, guint action, const guint8 *data, guint len); typedef struct { const char * name; /* name identif...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...(player), script); + script->debugger = player; + } + return script; +} + +SwfdecScript * swfdec_script_new (SwfdecBits *bits, const char *name, unsigned int version) { SwfdecScript *script; const guchar *start; g_return_val_if_fail (bits != NULL, NULL); + if (version < MINSCRIPTVERSION) { SWFDEC_ERROR ("swfdec version %u doesn't support scripts", version); return NULL; @@ -1176,7 +1209,7 @@ swfdec_script_new (SwfdecBits *bits, con script->name = g_strdup (name ? name : "Unnamed script"); script->version = version; - if (!swfdec_scr...
2007 Jan 26
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c
...(player), script); + script->debugger = player; + } + return script; +} + +SwfdecScript * swfdec_script_new (SwfdecBits *bits, const char *name, unsigned int version) { SwfdecScript *script; const guchar *start; g_return_val_if_fail (bits != NULL, NULL); + if (version < MINSCRIPTVERSION) { SWFDEC_ERROR ("swfdec version %u doesn't support scripts", version); return NULL; @@ -1176,7 +1209,7 @@ swfdec_script_new (SwfdecBits *bits, con script->name = g_strdup (name ? name : "Unnamed script"); script->version = version; - if (!swfdec_scr...