search for: swfdec_type_as_script_function

Displaying 6 results from an estimated 6 matches for "swfdec_type_as_script_function".

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
...+ +SwfdecAsFunction * +swfdec_as_script_function_new (SwfdecAsScope *scope) +{ + SwfdecAsValue val; + SwfdecAsFunction *fun; + SwfdecAsObject *proto; + + g_return_val_if_fail (SWFDEC_IS_AS_SCOPE (scope), NULL); + + fun = swfdec_as_function_create (SWFDEC_AS_OBJECT (scope)->context, + SWFDEC_TYPE_AS_SCRIPT_FUNCTION, sizeof (SwfdecAsScriptFunction)); + if (fun == NULL) + return NULL; + proto = swfdec_as_object_new (SWFDEC_AS_OBJECT (scope)->context); + if (proto == NULL) + return NULL; + SWFDEC_AS_VALUE_SET_OBJECT (&val, SWFDEC_AS_OBJECT (fun)); + swfdec_as_object_set_variable (proto, SWFDEC_...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...Object *proto; + SwfdecAsContext *context; g_return_val_if_fail (SWFDEC_IS_AS_SCOPE (scope), NULL); g_return_val_if_fail (SWFDEC_IS_AS_OBJECT (target), NULL); g_return_val_if_fail (script != NULL, NULL); - fun = swfdec_as_function_create (SWFDEC_AS_OBJECT (scope)->context, - SWFDEC_TYPE_AS_SCRIPT_FUNCTION, sizeof (SwfdecAsScriptFunction)); + context = target->context; + if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsScriptFunction))) + return NULL; + fun = g_object_new (SWFDEC_TYPE_AS_SCRIPT_FUNCTION, NULL); if (fun == NULL) return NULL; - SWFDEC_AS_SCRIPT_FUNCTION (fun)-...
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...pe and target earlier diff --git a/libswfdec/swfdec_as_script_function.c b/libswfdec/swfdec_as_script_function.c index f8b6ad2..3ab7064 100644 --- a/libswfdec/swfdec_as_script_function.c +++ b/libswfdec/swfdec_as_script_function.c @@ -124,6 +124,8 @@ swfdec_as_script_function_new (SwfdecAsS SWFDEC_TYPE_AS_SCRIPT_FUNCTION, sizeof (SwfdecAsScriptFunction)); if (fun == NULL) return NULL; + SWFDEC_AS_SCRIPT_FUNCTION (fun)->scope = scope; + SWFDEC_AS_SCRIPT_FUNCTION (fun)->target = target; proto = swfdec_as_object_new (SWFDEC_AS_OBJECT (scope)->context); if (proto == NULL) return NULL; @@ -...
2007 Sep 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_scope.c libswfdec/swfdec_as_scope.h libswfdec/swfdec_as_script_function.c
...ject *proto; SwfdecAsContext *context; - g_return_val_if_fail (SWFDEC_IS_AS_SCOPE (scope), NULL); g_return_val_if_fail (SWFDEC_IS_AS_OBJECT (target), NULL); g_return_val_if_fail (script != NULL, NULL); @@ -129,7 +127,7 @@ swfdec_as_script_function_new (SwfdecAsS fun = g_object_new (SWFDEC_TYPE_AS_SCRIPT_FUNCTION, NULL); if (fun == NULL) return NULL; - fun->scope = scope; + fun->scope_chain = g_slist_copy ((GSList *) scope_chain); fun->script = script; fun->target = target; swfdec_as_object_add (SWFDEC_AS_OBJECT (fun), context, sizeof (SwfdecAsScriptFunction)); diff --git a/li...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...bject *target) { SwfdecAsValue val; SwfdecAsFunction *fun; SwfdecAsObject *proto; g_return_val_if_fail (SWFDEC_IS_AS_SCOPE (scope), NULL); + g_return_val_if_fail (SWFDEC_IS_AS_OBJECT (target), NULL); fun = swfdec_as_function_create (SWFDEC_AS_OBJECT (scope)->context, SWFDEC_TYPE_AS_SCRIPT_FUNCTION, sizeof (SwfdecAsScriptFunction)); @@ -105,6 +108,7 @@ swfdec_as_script_function_new (SwfdecAsS SWFDEC_AS_VALUE_SET_OBJECT (&val, proto); swfdec_as_object_set_variable (SWFDEC_AS_OBJECT (fun), SWFDEC_AS_STR_prototype, &val); SWFDEC_AS_SCRIPT_FUNCTION (fun)->scope = scope; + SWF...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...Object *proto; + SwfdecAsContext *context; g_return_val_if_fail (SWFDEC_IS_AS_SCOPE (scope), NULL); g_return_val_if_fail (SWFDEC_IS_AS_OBJECT (target), NULL); g_return_val_if_fail (script != NULL, NULL); - fun = swfdec_as_function_create (SWFDEC_AS_OBJECT (scope)->context, - SWFDEC_TYPE_AS_SCRIPT_FUNCTION, sizeof (SwfdecAsScriptFunction)); + context = target->context; + if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsScriptFunction))) + return NULL; + fun = g_object_new (SWFDEC_TYPE_AS_SCRIPT_FUNCTION, NULL); if (fun == NULL) return NULL; - SWFDEC_AS_SCRIPT_FUNCTION (fun)-...