Displaying 17 results from an estimated 17 matches for "swfdec_as_object_cr".
Did you mean:
swfdec_as_object_
2007 Jul 13
0
12 commits - AUTHORS doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...c/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -250,26 +250,26 @@ SWFDEC_TYPE_AS_CONTEXT
<FILE>SwfdecAsObject</FILE>
<TITLE>SwfdecAsObject</TITLE>
SwfdecAsObject
-swfdec_as_object_add
-swfdec_as_object_add_function
-swfdec_as_object_call
-swfdec_as_object_collect
-swfdec_as_object_create
-swfdec_as_object_delete_variable
-swfdec_as_object_foreach
-swfdec_as_object_get_debug
-swfdec_as_object_get_variable
-swfdec_as_object_get_variable_and_flags
-swfdec_as_object_has_function
-swfdec_as_object_init_context
swfdec_as_object_new
swfdec_as_object_new_empty
-swfdec_as_object_resol...
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
...ay.c
index 74caec5..b47faac 100644
--- a/libswfdec/swfdec_as_array.c
+++ b/libswfdec/swfdec_as_array.c
@@ -129,7 +129,7 @@ swfdec_as_array_new (SwfdecAsContext *co
g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);
g_return_val_if_fail (context->Array != NULL, NULL);
- ret = swfdec_as_object_create (SWFDEC_AS_FUNCTION (context->Array), 0, NULL);
+ ret = swfdec_as_object_create (SWFDEC_AS_FUNCTION (context->Array), 0, NULL, FALSE);
swfdec_as_object_root (ret);
swfdec_as_context_run (context);
swfdec_as_object_unroot (ret);
diff --git a/libswfdec/swfdec_as_interpret.c b/libs...
2007 Aug 19
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c
...T (&val));
} else {
SWFDEC_INFO ("\"Array\" is not an object");
}
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 8d4df41..2150244 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -921,7 +921,7 @@ swfdec_as_object_create (SwfdecAsFunctio
return;
new = g_object_new (type, NULL);
swfdec_as_object_add (new, context, size);
- swfdec_as_object_set_constructor (new, SWFDEC_AS_OBJECT (fun), FALSE);
+ swfdec_as_object_set_constructor (new, SWFDEC_AS_OBJECT (fun));
swfdec_as_function_call (fun, new, n_ar...
2007 Nov 14
0
7 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h
...c_as_super_new (frame, obj, obj->prototype);
}
swfdec_as_frame_preload (frame);
} else {
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 1127cef..9a723f4 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -1283,7 +1283,7 @@ swfdec_as_object_create (SwfdecAsFunction *fun, guint n_args,
frame = swfdec_as_function_call_no_preload (fun, new, n_args, args, return_value);
frame->construct = TRUE;
- swfdec_as_super_new (frame, new, TRUE);
+ swfdec_as_super_new (frame, new, new->prototype);
swfdec_as_frame_preload (frame);
}...
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_number_new (SwfdecAsContext *context, double number)
-{
- SwfdecAsObject *ret;
- SwfdecAsValue val;
-
- g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);
- g_return_val_if_fail (context->Number != NULL, NULL);
-
- SWFDEC_AS_VALUE_SET_NUMBER (&val, number);
- ret = swfdec_as_object_create (SWFDEC_AS_FUNCTION (context->Number), 1, &val, FALSE);
- swfdec_as_context_run (context);
- return ret;
-}
-
/*** AS CODE ***/
static void
@@ -128,7 +103,6 @@ swfdec_as_number_init_context (SwfdecAsC
if (!number)
return;
swfdec_as_native_function_set_construct_type (SWF...
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
...), type);
name = swfdec_as_context_get_string (object->context, name);
SWFDEC_AS_VALUE_SET_OBJECT (&val, SWFDEC_AS_OBJECT (function));
/* FIXME: I'd like to make sure no such property exists yet */
@@ -576,15 +576,41 @@ swfdec_as_object_has_function (SwfdecAsO
SwfdecAsObject *
swfdec_as_object_create (SwfdecAsFunction *construct, guint n_args, SwfdecAsValue *args)
{
- static SwfdecAsValue val; /* ignored */
+ SwfdecAsValue val;
SwfdecAsObject *new;
SwfdecAsContext *context;
+ SwfdecAsFunction *cur;
+ guint size;
+ GType type = 0;
g_return_val_if_fail (SWFDEC_IS_AS_FUNCTION...
2007 Aug 16
0
Branch 'vivi' - 23 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_sprite_movie.c test/trace vivified/core
...tte <otte at gnome.org>
Date: Thu Aug 16 13:09:31 2007 +0200
debugging g_print removal #3423
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 803d82f..ee112db 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -897,7 +897,6 @@ swfdec_as_object_create (SwfdecAsFunctio
if (native->construct_size) {
type = native->construct_type;
size = native->construct_size;
- g_print ("type is %s\n", g_type_name (type));
break;
}
}
@@ -908,7 +907,6 @@ swfdec_as_object_create (SwfdecAsFunctio
if (SWFDEC_AS_V...
2007 Aug 17
0
4 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h test/trace
...iki.fi>
Date: Fri Aug 17 21:55:16 2007 +0300
Set __proto__ and __constructor__ properties flags
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 46c590d..a5e4b08 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -942,7 +942,8 @@ swfdec_as_object_create (SwfdecAsFunctio
* object.__proto__ = construct.prototype; ]|
**/
void
-swfdec_as_object_set_constructor (SwfdecAsObject *object, SwfdecAsObject *construct, gboolean scripted)
+swfdec_as_object_set_constructor (SwfdecAsObject *object,
+ SwfdecAsObject *construct, gboolean scripted)
{...
2008 Jan 10
0
8 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_bits.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_text_field_movie_html.c test/trace
...min Otte <otte at gnome.org>
Date: Thu Jan 10 12:32:23 2008 +0100
silence old gcc versions
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index b9c7a13..a5af75d 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -1298,7 +1298,7 @@ swfdec_as_object_create (SwfdecAsFunction *fun, guint n_args,
SwfdecAsContext *context;
SwfdecAsFunction *cur;
SwfdecAsFrame *frame;
- guint size;
+ guint size = 0;
GType type = 0;
g_return_if_fail (SWFDEC_IS_AS_FUNCTION (fun));
commit 616c94fc0b584d3c359bc09e29be381f8f43e4ab
Author: Benjamin Otte &...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...:00:12 2007 +0200
rework init code to set constructor and __constructor__ properties correctly
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 0bb7209..749b0d7 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -882,6 +882,7 @@ void
swfdec_as_object_create (SwfdecAsFunction *fun, guint n_args,
const SwfdecAsValue *args)
{
+ SwfdecAsValue val;
SwfdecAsObject *new;
SwfdecAsContext *context;
SwfdecAsFunction *cur;
@@ -919,11 +920,27 @@ swfdec_as_object_create (SwfdecAsFunctio
type = SWFDEC_TYPE_AS_OBJECT;
size = sizeof (Sw...
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
...ray ()"
+ * Creates a new #SwfdecAsArray.
*
* Returns: the new array or %NULL on OOM.
**/
@@ -131,8 +130,11 @@ swfdec_as_array_new (SwfdecAsContext *co
g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);
g_return_val_if_fail (context->Array != NULL, NULL);
- ret = swfdec_as_object_create (SWFDEC_AS_FUNCTION (context->Array), 0, NULL, FALSE);
- swfdec_as_context_run (context);
+ if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsArray)))
+ return FALSE;
+ ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL);
+ swfdec_as_object_add (ret, context, sizeof (SwfdecAsArray)...
2007 Jul 12
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_with.c libswfdec/swfdec_sprite_movie.c test/trace
...ointer data);
+ /* get the real object referenced by this object (useful for internal objects) */
+ SwfdecAsObject * (* resolve) (SwfdecAsObject * object);
+ /* get a debug string representation for this object */
char * (* debug) (SwfdecAsObject * object);
};
@@ -104,6 +107,7 @@ void swfdec_as_object_create (SwfdecAs
void swfdec_as_object_set_constructor(SwfdecAsObject * object,
SwfdecAsObject * construct,
gboolean scripted);
+SwfdecAsObject *swfdec_as_object_resolve (SwfdecAsObject * object);
char * swfdec_as_object_get_debug (SwfdecAsObject * object);
void swfdec_as_obj...
2007 Jul 12
0
15 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt INSTALL libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.h
...46,39 @@ SWFDEC_IS_AS_CONTEXT_CLASS
SWFDEC_TYPE_AS_CONTEXT
</SECTION>
+<SECTION>
+<FILE>SwfdecAsObject</FILE>
+<TITLE>SwfdecAsObject</TITLE>
+SwfdecAsObject
+swfdec_as_object_add
+swfdec_as_object_add_function
+swfdec_as_object_call
+swfdec_as_object_collect
+swfdec_as_object_create
+swfdec_as_object_delete_variable
+swfdec_as_object_foreach
+swfdec_as_object_foreach_remove
+swfdec_as_object_foreach_rename
+swfdec_as_object_get_debug
+swfdec_as_object_get_variable
+swfdec_as_object_get_variable_and_flags
+swfdec_as_object_has_function
+swfdec_as_object_init_context
+swfdec...
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
...ome.org>
Date: Mon Sep 3 15:48:22 2007 +0200
don't set __constructor__ in Flash <= 5
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 579d315..4472615 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -1011,10 +1011,10 @@ swfdec_as_object_create (SwfdecAsFunctio
swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_STR_constructor,
&val, SWFDEC_AS_VARIABLE_HIDDEN);
}
- if (context->version <= 5)
- SWFDEC_AS_VALUE_SET_UNDEFINED (&val);
- swfdec_as_object_set_variable_and_flags (new, SWFDEC_AS_...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800
release 0.5.4 ("Turkish Cycling Federation")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/
R5PF4bZQqmSdJ64t8EbD4cA=
=8qBy
-----END PGP SIGNATURE-----
Changes since the dawn of time:
Benjamin Otte (40):
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
...tte <otte at gnome.org>
Date: Thu Aug 16 13:09:31 2007 +0200
debugging g_print removal #3423
diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c
index 803d82f..ee112db 100644
--- a/libswfdec/swfdec_as_object.c
+++ b/libswfdec/swfdec_as_object.c
@@ -897,7 +897,6 @@ swfdec_as_object_create (SwfdecAsFunctio
if (native->construct_size) {
type = native->construct_type;
size = native->construct_size;
- g_print ("type is %s\n", g_type_name (type));
break;
}
}
@@ -908,7 +907,6 @@ swfdec_as_object_create (SwfdecAsFunctio
if (SWFDEC_AS_V...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...(SWFDEC_IS_AS_OBJECT (object), FALSE);
- g_return_val_if_fail (name != NULL, FALSE);
-
- swfdec_as_object_get_variable (object, name, &val);
- if (!SWFDEC_AS_VALUE_IS_OBJECT (&val))
- return FALSE;
- return SWFDEC_IS_AS_FUNCTION (SWFDEC_AS_VALUE_GET_OBJECT (&val));
-}
-
-/**
* swfdec_as_object_create:
* @fun: constructor
* @n_args: number of arguments
diff --git a/libswfdec/swfdec_as_object.h b/libswfdec/swfdec_as_object.h
index f32723d..a8b4379 100644
--- a/libswfdec/swfdec_as_object.h
+++ b/libswfdec/swfdec_as_object.h
@@ -176,8 +176,6 @@ SwfdecAsFunction *swfdec_as_object_add_constru...