search for: swfdec_script_add_to_player

Displaying 3 results from an estimated 3 matches for "swfdec_script_add_to_player".

2007 Mar 13
0
2 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h
...{ g_assert (i < pool->len); return g_ptr_array_index (pool, i); } -static void +void swfdec_constant_pool_free (SwfdecConstantPool *pool) { g_ptr_array_free (pool, TRUE); @@ -125,6 +123,15 @@ swfdec_constant_pool_get_area (SwfdecScr /*** SUPPORT FUNCTIONS ***/ +static void +swfdec_script_add_to_player (SwfdecScript *script, SwfdecPlayer *player) +{ + if (SWFDEC_IS_DEBUGGER (player)) { + swfdec_debugger_add_script (SWFDEC_DEBUGGER (player), script); + script->debugger = player; + } +} + /** * swfdec_script_ensure_stack: * @cx: #JSContext to check @@ -1733,22 +1740,22 @@ swfdec_act...
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
...+ g_free (preloads); + return JS_FALSE; + } + if (cx->fp->constant_pool) { + script->constant_pool = swfdec_constant_pool_get_area (cx->fp->swf, + cx->fp->constant_pool); + } + script->flags = flags; + script->preloads = preloads; + fun->swf = script; + swfdec_script_add_to_player (script, JS_GetContextPrivate (cx)); + /* attach the function */ + if (*function_name == '\0') { + if (cx->fp->sp >= cx->fp->spend) { + SWFDEC_ERROR ("not enough stack space available"); + return JS_FALSE; + } + *cx->fp->sp++ = OBJECT_TO_J...
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
...SwfdecConstantPool *pool) @@ -140,6 +137,7 @@ swfdec_constant_pool_get_area (SwfdecScr g_assert (start + len < buffer->data + buffer->length); return swfdec_buffer_new_subbuffer (buffer, start - buffer->data, len); } +#endif /*** SUPPORT FUNCTIONS ***/ @@ -152,46 +150,10 @@ swfdec_script_add_to_player (SwfdecScrip } } -/** - * swfdec_script_ensure_stack: - * @cx: #JSContext to check - * @n_elements: number of elements the stack should contain - * - * Ensures that the stack is at least @n_elements values. If not enough stack - * space is available, the stack is filled up with JSVAL_VOID. -...