search for: swfdec_as_variable_hidden

Displaying 20 results from an estimated 37 matches for "swfdec_as_variable_hidden".

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
...set the right properties on the Array.prototype object */ SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype); - swfdec_as_object_set_variable (proto, SWFDEC_AS_STR___proto__, &val); + swfdec_as_object_set_variable_and_flags (proto, SWFDEC_AS_STR___proto__, &val, + SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, array); swfdec_as_object_set_variable (proto, SWFDEC_AS_STR_constructor, &val); swfdec_as_object_add_function (proto, SWFDEC_AS_STR_toString, 0, diff --git a/libswfdec/swfdec_as_boolean.c b/libswfdec/swfdec_as_boole...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...,8 @@ swfdec_as_array_set_length (SwfdecAsObje g_return_if_fail (object != NULL); SWFDEC_AS_VALUE_SET_INT (&val, length); - swfdec_as_object_set_variable (object, SWFDEC_AS_STR_length, &val); + swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR_length, &val, + SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); } typedef struct { diff --git a/libswfdec/swfdec_as_boolean.c b/libswfdec/swfdec_as_boolean.c index b883868..c241de8 100644 --- a/libswfdec/swfdec_as_boolean.c +++ b/libswfdec/swfdec_as_boolean.c @@ -99,7 +99,8 @@ swfdec_as_boolean_init_context (SwfdecAs re...
2007 Aug 17
1
libswfdec/swfdec_as_object.c
...a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index a5e4b08..8d4df41 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -61,11 +61,11 @@ /** * SwfdecAsVariableFlag: - * @SWFDEC_AS_VARIABLE_DONT_ENUM: Do not include variable in enumerations and + * @SWFDEC_AS_VARIABLE_HIDDEN: Do not include variable in enumerations and * swfdec_as_object_foreach(). * @SWFDEC_AS_VARIABLE_PERMANENT: Do not all swfdec_as_object_delete_variable() * to delete this variable. - * @SWFDEC_AS_VARIABLE_READONLY: Do not allow cha...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_object.c NEWS player/swfplay.c
...c_as_object_new (SwfdecAsContext *c g_assert (context->Object_prototype); object = swfdec_as_object_new_empty (context); - SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype); - swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR___proto__, - &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object); swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR_constructor, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); + SWFDEC_AS_VALUE_SET_OBJECT (&val, context-...
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
...T (&val); } else { @@ -959,8 +961,15 @@ swfdec_as_object_set_constructor (Swfdec } SWFDEC_AS_VALUE_SET_OBJECT (&val, proto); swfdec_as_object_set_variable (object, SWFDEC_AS_STR___proto__, &val); + swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___proto__, + SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, construct); - swfdec_as_object_set_variable (object, scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, &val); + swfdec_as_object_set_variable (object, + scripted ? SWFDEC_AS_STR_constructor : SW...
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
...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_STR___constructor__, - &val, SWFDEC_AS_VARIABLE_HIDDEN); + if (context->version > 5) { + swfdec_as_object_set_variable_and_...
2007 Sep 13
0
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, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, function);
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...cAsCo /* set the right properties on the Array object */ SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Function); - swfdec_as_object_set_variable (array, SWFDEC_AS_STR_constructor, &val); + swfdec_as_object_set_variable_and_flags (array, SWFDEC_AS_STR_constructor, + &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_NUMBER (&val, ARRAY_SORT_OPTION_CASEINSENSITIVE); swfdec_as_object_set_variable (array, SWFDEC_AS_STR_CASEINSENSITIVE, &val); SWFDEC_AS_VALUE_SET_NUMBER (&val, ARRAY_SORT_OPTION_DESCENDING); @@ -1104,7 +1099,8 @@ swfdec_as_ar...
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
..., gboolean scripted) +swfdec_as_object_set_constructor (SwfdecAsObject *object, SwfdecAsObject *construct) { SwfdecAsValue val; SwfdecAsObject *proto; @@ -964,12 +960,8 @@ swfdec_as_object_set_constructor (Swfdec swfdec_as_object_set_variable_flags (object, SWFDEC_AS_STR___proto__, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, construct); - swfdec_as_object_set_variable (object, - scripted ? SWFDEC_AS_STR_constructor : SWFDEC_AS_STR___constructor__, - &val); - swfdec_as_object_set_variable_flags (object, - scripted ? SWFDEC_AS_...
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
...1 100644 --- a/libswfdec/swfdec_load_object.c +++ b/libswfdec/swfdec_load_object.c @@ -188,6 +188,10 @@ swfdec_load_object_load (SwfdecLoadObjec SWFDEC_AS_VALUE_SET_INT (&val, 0); swfdec_as_object_set_variable_and_flags (load_object->target, SWFDEC_AS_STR__bytesLoaded, &val, SWFDEC_AS_VARIABLE_HIDDEN); + + SWFDEC_AS_VALUE_SET_BOOLEAN (&val, FALSE); + swfdec_as_object_set_variable_and_flags (load_object->target, + SWFDEC_AS_STR_loaded, &val, SWFDEC_AS_VARIABLE_HIDDEN); } SwfdecAsObject * diff --git a/test/trace/loadobject-5.swf b/test/trace/loadobject-5.swf index b3b144d..a...
2007 Sep 03
0
4 commits - libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_interpret.c test/trace
...truct, 0, proto)); - if (!boolean) + if (!SWFDEC_IS_AS_BOOLEAN (object)) return; - /* set the right properties on the Boolean.prototype object */ - SWFDEC_AS_VALUE_SET_OBJECT (&val, boolean); - swfdec_as_object_set_variable_and_flags (proto, SWFDEC_AS_STR_constructor, - &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_toString, SWFDEC_TYPE_AS_BOOLEAN, swfdec_as_boolean_toString, 0); - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_valueOf, SWFDEC_TYPE_AS_BOOLEAN, swfdec_as_boolean_valueOf, 0); - SWFDEC_AS_VALUE_SET_OBJ...
2007 Oct 28
1
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_codec_gst.c test/trace
...te at gnome.org> Date: Sat Oct 27 00:11:51 2007 +0200 typo in docs diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index 2ae087b..a5f7866 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -67,7 +67,7 @@ * SwfdecAsVariableFlag: * @SWFDEC_AS_VARIABLE_HIDDEN: Do not include variable in enumerations and * swfdec_as_object_foreach(). - * @SWFDEC_AS_VARIABLE_PERMANENT: Do not all swfdec_as_object_delete_variable() + * @SWFDEC_AS_VARIABLE_PERMANENT: Do not alloe swfdec_as_object_delete_variable() *...
2007 Oct 28
0
2 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_player.c
...at datahost.it> Date: Sun Oct 28 18:07:07 2007 +0100 typo in docs diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index cc6be1a..682cb2b 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -67,7 +67,7 @@ * SwfdecAsVariableFlag: * @SWFDEC_AS_VARIABLE_HIDDEN: Do not include variable in enumerations and * swfdec_as_object_foreach(). - * @SWFDEC_AS_VARIABLE_PERMANENT: Do not alloe swfdec_as_object_delete_variable() + * @SWFDEC_AS_VARIABLE_PERMANENT: Do not allow swfdec_as_object_delete_variable() *...
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
...b5694 100644 --- a/libswfdec/swfdec_as_function.c +++ b/libswfdec/swfdec_as_function.c @@ -239,19 +239,17 @@ swfdec_as_function_init_context (SwfdecA SWFDEC_AS_VALUE_SET_OBJECT (&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...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...SwfdecAsValue val; + glong size; - SWFDEC_AS_VALUE_SET_INT (&val, swfdec_loader_get_loaded (loader)); + SWFDEC_AS_VALUE_SET_NUMBER (&val, swfdec_loader_get_loaded (loader)); swfdec_as_object_set_variable_and_flags (load_object->target, SWFDEC_AS_STR__bytesLoaded, &val, SWFDEC_AS_VARIABLE_HIDDEN); - SWFDEC_AS_VALUE_SET_INT (&val, swfdec_loader_get_size (loader)); + size = swfdec_loader_get_size (loader); + if (size < 0) + size = swfdec_loader_get_loaded (loader); + SWFDEC_AS_VALUE_SET_NUMBER (&val, size); swfdec_as_object_set_variable_and_flags (load_object->targ...
2007 Aug 20
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_string.c libswfdec/swfdec_as_string.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object.c libswfdec/swfdec_loadvars_as.c test/trace
...1 100644 --- a/libswfdec/swfdec_load_object.c +++ b/libswfdec/swfdec_load_object.c @@ -188,6 +188,10 @@ swfdec_load_object_load (SwfdecLoadObjec SWFDEC_AS_VALUE_SET_INT (&val, 0); swfdec_as_object_set_variable_and_flags (load_object->target, SWFDEC_AS_STR__bytesLoaded, &val, SWFDEC_AS_VARIABLE_HIDDEN); + + SWFDEC_AS_VALUE_SET_BOOLEAN (&val, FALSE); + swfdec_as_object_set_variable_and_flags (load_object->target, + SWFDEC_AS_STR_loaded, &val, SWFDEC_AS_VARIABLE_HIDDEN); } SwfdecAsObject * diff --git a/test/trace/loadobject-5.swf b/test/trace/loadobject-5.swf index b3b144d..a...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...bf2f 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -1034,7 +1034,7 @@ swfdec_as_object_set_constructor (Swfdec } SWFDEC_AS_VALUE_SET_OBJECT (&val, construct); swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR_constructor, - &val, SWFDEC_AS_VARIABLE_HIDDEN); + &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); SWFDEC_AS_VALUE_SET_OBJECT (&val, proto); swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR___proto__, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); diff-tree c2794c16...
2007 Sep 04
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_video_movie_as.c test/trace
...b/libswfdec/swfdec_video_movie_as.c index bde3a24..2edf5b4 100644 --- a/libswfdec/swfdec_video_movie_as.c +++ b/libswfdec/swfdec_video_movie_as.c @@ -74,10 +74,12 @@ swfdec_video_movie_init_context (SwfdecP swfdec_as_object_set_variable_and_flags (video, SWFDEC_AS_STR_prototype, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); /* set the right properties on the Video.prototype object */ - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_attachVideo, SWFDEC_TYPE_VIDEO_MOVIE, - swfdec_video_attach_video, 1); - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_clear, SWFDEC_TY...
2007 Aug 24
0
7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_string.c test/trace
...SWFDEC_AS_VALUE_SET_STRING (ret, swfdec_as_context_get_string (cx, s)); g_free (s); } @@ -748,21 +771,17 @@ swfdec_as_string_init_context (SwfdecAsC SWFDEC_AS_VALUE_SET_OBJECT (&val, string); swfdec_as_object_set_variable_and_flags (proto, SWFDEC_AS_STR_constructor, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_charAt, SWFDEC_TYPE_AS_STRING, swfdec_as_string_charAt, 1); - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_indexOf, SWFDEC_TYPE_AS_STRING, swfdec_as_string_indexOf, 1); - swfdec_as_object_add_function (...
2007 Aug 15
3
2 commits - libswfdec/swfdec_as_object.c test/trace
libswfdec/swfdec_as_object.c | 62 +++++++++++++++------- test/trace/Makefile.am | 9 +++ test/trace/addProperty-set-prototypes-5.swf |binary test/trace/addProperty-set-prototypes-5.swf.trace | 4 + test/trace/addProperty-set-prototypes-6.swf |binary test/trace/addProperty-set-prototypes-6.swf.trace | 5 +