search for: swfdec_as_frame_new_native

Displaying 12 results from an estimated 12 matches for "swfdec_as_frame_new_native".

2007 May 21
0
Branch 'as' - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...frame->thisp = thisp; if (script->constant_pool) { frame->constant_pool_buffer = swfdec_buffer_ref (script->constant_pool); frame->constant_pool = swfdec_constant_pool_new_from_action ( @@ -148,16 +145,13 @@ swfdec_as_frame_new (SwfdecAsObject *thi } SwfdecAsFrame * -swfdec_as_frame_new_native (SwfdecAsObject *thisp) +swfdec_as_frame_new_native (SwfdecAsContext *context) { - SwfdecAsContext *context; SwfdecAsFrame *frame; gsize size; - g_return_val_if_fail (SWFDEC_IS_AS_OBJECT (thisp), NULL); - g_return_val_if_fail (thisp->properties, NULL); + g_return_val_if_fail (SWFDEC...
2007 May 22
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
..._OBJECT (frame), context, size); - frame->next = context->frame; - context->frame = frame; frame->script = swfdec_script_ref (script); frame->function_name = script->name; SWFDEC_DEBUG ("new frame for function %s", frame->function_name); @@ -158,8 +156,6 @@ swfdec_as_frame_new_native (SwfdecAsCont frame = g_object_new (SWFDEC_TYPE_AS_FRAME, NULL); SWFDEC_DEBUG ("new native frame"); swfdec_as_object_add (SWFDEC_AS_OBJECT (frame), context, size); - frame->next = context->frame; - context->frame = frame; return frame; } diff --git a/libswfdec/sw...
2007 May 17
0
Branch 'as' - 8 commits - libswfdec/.gitignore libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.h libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c
...v PA PB* v PPB Previously this function would return PB, now it returns B. diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index 1507326..23b3c41 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -170,6 +170,19 @@ swfdec_as_frame_new_native (SwfdecAsObje return frame; } +/** + * swfdec_as_frame_find_variable: + * @frame: a #SwfdecAsFrame + * @variable: name of the variable to find + * + * Finds the given variable in the current scope chain. Returns the first + * object in the scope chain that contains this variable in its proto...
2007 Jul 13
0
3 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...* pc; /* program counter on stack */ - /* native function */ -}; - -struct _SwfdecAsFrameClass { - SwfdecAsScopeClass scope_class; -}; - GType swfdec_as_frame_get_type (void); -SwfdecAsFrame * swfdec_as_frame_new (SwfdecAsContext * context, - SwfdecScript * script); -SwfdecAsFrame * swfdec_as_frame_new_native (SwfdecAsContext * context); -void swfdec_as_frame_return (SwfdecAsFrame * frame, - SwfdecAsValue * return_value); - -void swfdec_as_frame_set_this (SwfdecAsFrame * frame, - SwfdecAsObject * thisp); -void swfdec_as_frame_preload (SwfdecAsFrame * frame); - -SwfdecAsObject *swfdec_as...
2007 May 18
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
..._if_fail (SWFDEC_IS_AS_OBJECT (thisp)); @@ -153,16 +79,12 @@ swfdec_as_function_call (SwfdecAsFunctio g_return_if_fail (return_value != NULL); context = thisp->context; + /* just to be sure... */ SWFDEC_AS_VALUE_SET_UNDEFINED (return_value); - if (function->native) { - frame = swfdec_as_frame_new_native (thisp); - g_assert (function->name); - frame->function_name = function->name; - } else { - frame = swfdec_as_frame_new (thisp, function->script); - SWFDEC_AS_SCOPE (frame)->next = function->scope; - frame->scope = SWFDEC_AS_SCOPE (frame); - } + klass = SWFDEC...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...-git a/libswfdec/swfdec_as_native_function.c b/libswfdec/swfdec_as_native_function.c index 0905178..87f937d 100644 --- a/libswfdec/swfdec_as_native_function.c +++ b/libswfdec/swfdec_as_native_function.c @@ -51,6 +51,8 @@ swfdec_as_native_function_call (SwfdecAs SwfdecAsFrame *frame; frame = swfdec_as_frame_new_native (SWFDEC_AS_OBJECT (function)->context); + if (frame == NULL) + return NULL; g_assert (native->name); frame->function_name = native->name; frame->function = function; diff --git a/libswfdec/swfdec_as_super.c b/libswfdec/swfdec_as_super.c index 72dc8d2..730748c 100644 ---...
2007 Apr 12
0
Branch 'as' - 15 commits - 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 libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...native function or not */ if (function->native) { - SwfdecAsValue retval = { 0, }; if (n_args < function->min_args) { SwfdecAsStack *stack = context->frame->stack; if (n_args == 0) { @@ -139,10 +142,11 @@ swfdec_as_function_call (SwfdecAsFunctio frame = swfdec_as_frame_new_native (thisp); g_assert (function->name); frame->function_name = function->name; - function->native (context, thisp, n_args, NULL, &retval); - swfdec_as_context_return (context, &retval); + function->native (context, thisp, n_args, args, return_value); + swfde...
2007 May 24
0
Branch 'as' - 11 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c
...= context->frame; diff --git a/libswfdec/swfdec_as_native_function.c b/libswfdec/swfdec_as_native_function.c index 626a380..4b8d40e 100644 --- a/libswfdec/swfdec_as_native_function.c +++ b/libswfdec/swfdec_as_native_function.c @@ -38,6 +38,7 @@ swfdec_as_native_function_call (SwfdecAs frame = swfdec_as_frame_new_native (SWFDEC_AS_OBJECT (function)->context); g_assert (native->name); frame->function_name = native->name; + frame->function = function; return frame; } diff --git a/libswfdec/swfdec_as_script_function.c b/libswfdec/swfdec_as_script_function.c index 9278ffe..14873d1 100644 --...
2007 Apr 12
0
Branch 'as' - 14 commits - libswfdec-gtk/swfdec_playback_alsa.c 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 libswfdec/swfdec_as_function.h
...;stack; - if (n_args == 0) { - swfdec_as_stack_ensure_size (stack, 1); - SWFDEC_AS_VALUE_SET_UNDEFINED (swfdec_as_stack_push (stack)); - } else { - stack->cur -= (n_args - 1); - SWFDEC_AS_VALUE_SET_UNDEFINED (swfdec_as_stack_peek (stack, 1)); - } - return; - } frame = swfdec_as_frame_new_native (thisp); g_assert (function->name); frame->function_name = function->name; - function->native (context, thisp, n_args, args, return_value); - swfdec_as_context_return (context); } else { frame = swfdec_as_frame_new (thisp, function->script); - frame->ret...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...scope chain (either this frame or a with object) */ @@ -65,8 +58,6 @@ struct _SwfdecAsFrameClass { SwfdecAsScopeClass scope_class; }; -GType swfdec_as_frame_get_type (void); - SwfdecAsFrame * swfdec_as_frame_new (SwfdecAsContext * context, SwfdecScript * script); SwfdecAsFrame * swfdec_as_frame_new_native (SwfdecAsContext * context); diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c index 66fcb00..3e9b6dd 100644 --- a/libswfdec/swfdec_as_function.c +++ b/libswfdec/swfdec_as_function.c @@ -24,6 +24,7 @@ #include "swfdec_as_function.h" #include "swfdec_as_co...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...c_security_allow (guard, old); + g_object_unref (old); +} + diff --git a/libswfdec/swfdec_as_frame_internal.h b/libswfdec/swfdec_as_frame_internal.h index 4088f3d..b09fb9c 100644 --- a/libswfdec/swfdec_as_frame_internal.h +++ b/libswfdec/swfdec_as_frame_internal.h @@ -70,6 +70,8 @@ SwfdecAsFrame * swfdec_as_frame_new_native (SwfdecAsContext * context); void swfdec_as_frame_return (SwfdecAsFrame * frame, SwfdecAsValue * return_value); +void swfdec_as_frame_set_security (SwfdecAsFrame * frame, + SwfdecSecurity * guard); void swfdec_as_frame_set_this (SwfdecAsFrame * frame, SwfdecAsObject *...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...const SwfdecAsValue * argv; /* arguments or %NULL if taken from stack */ - SwfdecSecurity * security; /* security for this frame or %NULL if not allowed to call */ /* debugging */ const char * function_name; /* name of function */ /* script execution */ @@ -70,8 +68,6 @@ SwfdecAsFrame * swfdec_as_frame_new_native (SwfdecAsContext * context); void swfdec_as_frame_return (SwfdecAsFrame * frame, SwfdecAsValue * return_value); -void swfdec_as_frame_set_security (SwfdecAsFrame * frame, - SwfdecSecurity * guard); void swfdec_as_frame_set_this (SwfdecAsFrame * frame, SwfdecAsObject *...