Displaying 13 results from an estimated 13 matches for "function_prototype".
2007 Aug 21
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c test/trace
...AN, swfdec_as_boolean_toString, 0);
diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index 3e9b6dd..55a9ea3 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -97,7 +97,8 @@ swfdec_as_function_create (SwfdecAsConte
}
if (context->Function_prototype) {
SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function_prototype);
- swfdec_as_object_set_variable (fun, SWFDEC_AS_STR___proto__, &val);
+ swfdec_as_object_set_variable_and_flags (fun, SWFDEC_AS_STR___proto__,
+ &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANEN...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
..._OBJECT (&val, context->Function);
- swfdec_as_object_set_variable (object, SWFDEC_AS_STR_constructor, &val);
+ swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR_constructor,
+ &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
}
if (context->Function_prototype) {
SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function_prototype);
diff-tree 91ff6faecc598f3122830193a476bf866b917a42 (from c5efffeed0afc0e64f4d01a4323c9137189bf41f)
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Wed Aug 22 14:05:39 2007 +0300
Flash 5 fixes and outpu...
2007 Sep 13
0
libswfdec/swfdec_as_function.c
...ded in my last commit, fixed
diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index c5b5694..b00f765 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -244,6 +244,8 @@ swfdec_as_function_init_context (SwfdecA
return;
context->Function_prototype = proto;
SWFDEC_AS_VALUE_SET_OBJECT (&val, proto);
+ swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR___proto__,
+ &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR_prototype,...
2007 Oct 26
0
8 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c test/trace
..._as_context_do_mark (SwfdecAsContext *context)
{
swfdec_as_object_mark (context->global);
- swfdec_as_value_mark (&context->throw_value);
+ swfdec_as_value_mark (&context->exception_value);
swfdec_as_object_mark (context->Function);
swfdec_as_object_mark (context->Function_prototype);
swfdec_as_object_mark (context->Object);
@@ -685,10 +685,10 @@ swfdec_as_context_throw (SwfdecAsContext *context, const SwfdecAsValue *value)
{
g_return_if_fail (SWFDEC_IS_AS_CONTEXT (context));
g_return_if_fail (SWFDEC_IS_AS_VALUE (value));
- g_return_if_fail (!context->throwing...
2007 Sep 13
0
3 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_object.c
...p;val, function);
swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR_constructor,
&val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
- if (version > 5) {
- proto = swfdec_as_object_new_empty (context);
- if (!proto)
- return;
- context->Function_prototype = proto;
- SWFDEC_AS_VALUE_SET_OBJECT (&val, proto);
- swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR___proto__,
- &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
- swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR_prototype,
- &...
2007 Sep 13
0
2 commits - libswfdec/swfdec_as_function.c test/trace
...ction.c b/libswfdec/swfdec_as_function.c
index b00f765..6cc40a4 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -242,16 +242,15 @@ swfdec_as_function_init_context (SwfdecA
proto = swfdec_as_object_new_empty (context);
if (!proto)
return;
- context->Function_prototype = proto;
+ if (version > 5)
+ context->Function_prototype = proto;
SWFDEC_AS_VALUE_SET_OBJECT (&val, proto);
- swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR___proto__,
- &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
swfdec_as_objec...
2007 Sep 03
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c
...quot;, "b");
+
+loadMovie ("FSCommand:quit", "");
diff-tree c76e6c5be127ac99fbb0ed8b2fda203d2de26089 (from 9dec9c1f6fbe7699e89a0c56272ad87c7fef690b)
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Sep 3 15:41:11 2007 +0200
set an undefined __proto__ if function_prototype doesn't exist
Fixes Flash 5 problems
diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index 5a82064..f89f56c 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -84,16 +84,20 @@ swfdec_as_function_set_constructor (Swfd
o...
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
...ject->context;
if (context->Function) {
SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function);
- swfdec_as_object_set_variable (fun, SWFDEC_AS_STR_constructor, &val);
+ swfdec_as_object_set_variable (object, SWFDEC_AS_STR_constructor, &val);
}
if (context->Function_prototype) {
SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function_prototype);
- swfdec_as_object_set_variable (fun, SWFDEC_AS_STR___proto__, &val);
+ swfdec_as_object_set_variable (object, SWFDEC_AS_STR___proto__, &val);
}
-
- return SWFDEC_AS_FUNCTION (fun);
}
/**
diff --git...
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
...size);
if (context->Function) {
SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function);
swfdec_as_object_set_variable (fun, SWFDEC_AS_STR_constructor, &val);
@@ -92,60 +61,17 @@ swfdec_as_function_do_create (SwfdecAsCo
SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function_prototype);
swfdec_as_object_set_variable (fun, SWFDEC_AS_STR___proto__, &val);
}
- swfdec_as_object_unroot (fun);
return SWFDEC_AS_FUNCTION (fun);
}
-SwfdecAsFunction *
-swfdec_as_function_new (SwfdecAsScope *scope)
-{
- SwfdecAsValue val;
- SwfdecAsFunction *fun;
- SwfdecAsObject *p...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...dness with __proto__
set propflags to non-permanent before attempting to delete the property
__constructor__ is a Flash 6 invention
check for __constructor__ vs constructor in new Object()s
include recent fix for delete in trace_properties
set an undefined __proto__ if function_prototype doesn't exist
add test for Number proeprties
don't set __constructor__ in Flash <= 5
Merge branch 'master' of ssh://company at git.freedesktop.org/git/swfdec/swfdec
fix memleak
make enumerate actions include prototype stuff
check that prototype...
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
...x_initialize (SwfdecSandbox *sandbox)
swfdec_net_stream_init_context (player);
swfdec_as_context_run_init_script (context, swfdec_initialize,
- sizeof (swfdec_initialize), 8);
+ sizeof (swfdec_initialize), version);
sandbox->Function = context->Function;
sandbox->Function_prototype = context->Function_prototype;
@@ -140,8 +140,6 @@ swfdec_sandbox_set_allow_network (SwfdecSandbox *sandbox, gboolean network)
sandbox->type = SWFDEC_SANDBOX_REMOTE;
}
- swfdec_sandbox_initialize (sandbox);
-
return TRUE;
}
@@ -149,7 +147,7 @@ swfdec_sandbox_set_allow_network...
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
...type = proto;
SWFDEC_AS_VALUE_SET_OBJECT (&val, proto);
+ /* first, set our own */
+ swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR_prototype,
+ &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT |
+ SWFDEC_AS_VARIABLE_CONSTANT);
if (context->Function_prototype) {
- /* first, finish the function prototype */
+ /* then finish the function prototype (use this order or
+ * SWFDEC_AS_VARIABLE_CONSTANT won't let us */
swfdec_as_object_set_variable_and_flags (context->Function_prototype,
SWFDEC_AS_STR___proto__, &val,
SWFDEC_AS_VA...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h 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
...WFDEC_AS_VALUE_SET_OBJECT (&val, function);
swfdec_as_object_set_variable (function, SWFDEC_AS_STR_constructor, &val);
if (version > 5) {
- proto = swfdec_as_object_new (context);
+ proto = swfdec_as_object_new_empty (context);
if (!proto)
return;
context->Function_prototype = proto;
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 0ffeed3..087e47d 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -222,6 +222,20 @@ swfdec_as_object_init (SwfdecAsObject *o
{
}
+SwfdecAsObject *
+swfdec_as_object_new_empty (...