search for: swfdec_as_object_add_variable

Displaying 16 results from an estimated 16 matches for "swfdec_as_object_add_variable".

2007 Jul 26
0
5 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player_as.c
...<= '9') { + SWFDEC_FIXME ("implement the weird numbers"); + s++; + } + get = swfdec_get_asnative (cx, x, y++); + set = swfdec_get_asnative (cx, x, y++); + if (get == NULL) { + SWFDEC_ERROR ("no getter for %s", s); return; } + swfdec_as_object_add_variable (target, swfdec_as_context_get_string (cx, s), + get, set); } - SWFDEC_FIXME ("ASnative for %u %u missing", x, y); + g_free (names); } -/*** VARIOUS ***/ - static void swfdec_player_object_registerClass (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue...
2007 Apr 16
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...E_NATIVE)) { + SWFDEC_AS_VALUE_SET_UNDEFINED (value); /* just to be sure */ + var->value.funcs.get (object, value); + } else { + *value = var->value.value; + } return; } if (i == 256) { @@ -420,6 +428,44 @@ swfdec_as_object_add_function (SwfdecAsO } /** + * swfdec_as_object_add_variable: + * @object: a #SwfdecAsObject + * @name: name of the function. The string does not have to be + * garbage-collected. + * @set: function to set this value or %NULL if the value should be read-only + * @get: function to get the value. + * + * Adds a new property with name @name to @object....
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
...; @@ -563,7 +566,7 @@ swfdec_as_object_set_variable (SwfdecAsO g_return_if_fail (SWFDEC_IS_AS_VALUE (value)); klass = SWFDEC_AS_OBJECT_GET_CLASS (object); - klass->set (object, variable, value); + klass->set (object, variable, value, default_flags); } /** @@ -987,12 +990,13 @@ swfdec_as_object_add_variable (SwfdecAsO g_return_if_fail (SWFDEC_IS_AS_FUNCTION (get)); g_return_if_fail (set == NULL || SWFDEC_IS_AS_FUNCTION (set)); - var = swfdec_as_object_lookup_variable (object, variable); + var = swfdec_as_object_hash_lookup (object, variable); + if (var == NULL) + var = swfdec_as_object_...
2007 Dec 17
0
2 commits - doc/Makefile.am doc/swfdec-sections.txt NEWS
..._PLAYER @@ -284,6 +287,7 @@ SWFDEC_AS_VALUE_SET_OBJECT swfdec_as_value_to_primitive swfdec_as_value_to_debug swfdec_as_double_to_string +swfdec_as_integer_to_string swfdec_as_str_concat <SUBSECTION Standard> SWFDEC_IS_AS_VALUE @@ -344,6 +348,7 @@ swfdec_as_object_set_variable_and_flags swfdec_as_object_add_variable swfdec_as_object_set_variable_flags swfdec_as_object_unset_variable_flags +swfdec_as_object_has_variable swfdec_as_object_delete_variable swfdec_as_object_delete_all_variables SwfdecAsVariableForeach
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
...such property exists yet */ swfdec_as_object_set_variable (object, name, &val); - swfdec_as_object_set_variable_flags (object, name, SWFDEC_AS_VARIABLE_DONT_ENUM); + swfdec_as_object_set_variable_flags (object, name, SWFDEC_AS_VARIABLE_HIDDEN); return function; } @@ -993,7 +993,7 @@ swfdec_as_object_add_variable (SwfdecAsO var->set = set; var->flags = 0; if (set == NULL) - var->flags |= SWFDEC_AS_VARIABLE_READONLY; + var->flags |= SWFDEC_AS_VARIABLE_CONSTANT; } /*** AS CODE ***/ diff --git a/libswfdec/swfdec_as_object.h b/libswfdec/swfdec_as_object.h index 265c6cb..55bfc05 10...
2007 Aug 15
0
4 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
...g> Date: Wed Aug 15 23:11:31 2007 +0200 porperties added with addProperty aren't permanent. diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index 8999597..b5dcd25 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -991,7 +991,7 @@ swfdec_as_object_add_variable (SwfdecAsO return; var->get = get; var->set = set; - var->flags = SWFDEC_AS_VARIABLE_PERMANENT; + var->flags = 0; if (set == NULL) var->flags |= SWFDEC_AS_VARIABLE_READONLY; } diff-tree b9d80cd0852b204c03e5828bfb4210e3ed98a2a4 (from c94ea432d4a4a30c76cd89d701d8c...
2007 Aug 03
0
Changes to 'refs/tags/0.5.1'
...nused files call AsSetPropFlags on AsBroadcaster rework variable flag handling to be more in line with ASSetPropFlags oops, debugging left in implement ASSetPropFlags for strings implement Stage and Stage.scaleMode make swfdec_asnative.h work on its own add swfdec_as_object_add_variable() update docs implement ASSetNativeAccessor initialize Stage using ASSetNativeAccessor add test for Stage.scaleMode implement Stage.align add test for Stage.align initialize stage size to -1 so the default size is taken implement Stage.width and Stage...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...g_strfreev (names); } SWFDEC_AS_NATIVE (4, 1, ASSetNativeAccessor) @@ -202,12 +202,12 @@ ASSetNativeAccessor (SwfdecAsContext *cx set = swfdec_get_asnative (cx, x, y++); if (get == NULL) { SWFDEC_ERROR ("no getter for %s", s); - return; + break; } swfdec_as_object_add_variable (target, swfdec_as_context_get_string (cx, s), get, set); } - g_free (names); + g_strfreev (names); } static void diff-tree 614cf854109af1972529510d686fa67945f06ff0 (from a4b5d04765d9c1f62c525a0d14097c3cc65aed23) Author: Benjamin Otte <otte at gnome.org> Date: Mon Aug 20 13:06:39...
2007 Nov 09
0
10 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_loader.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h
....org> Date: Fri Nov 9 15:13:20 2007 +0100 s/swfdec_as_object_clear_variables/swfdec_as_object_delete_all_variables/ diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index 0916f16..4a5e12a 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -345,6 +345,7 @@ swfdec_as_object_add_variable swfdec_as_object_set_variable_flags swfdec_as_object_unset_variable_flags swfdec_as_object_delete_variable +swfdec_as_object_delete_all_variables SwfdecAsVariableForeach swfdec_as_object_foreach swfdec_as_object_has_function diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_obje...
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 +
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...- get_func = - swfdec_as_native_function_new (object->context, variable, get, 0, NULL); - if (get_func == NULL) - return; - - if (set != NULL) { - set_func = - swfdec_as_native_function_new (object->context, variable, set, 0, NULL); - } else { - set_func = NULL; - } - - swfdec_as_object_add_variable (object, variable, get_func, set_func, 0); -} - void swfdec_text_field_movie_init_properties (SwfdecAsContext *cx) { @@ -1273,106 +1248,106 @@ swfdec_text_field_movie_init_properties (SwfdecAsContext *cx) proto = SWFDEC_AS_VALUE_GET_OBJECT (&val); // text - swfdec_text_field_movie_a...
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
...2007 +0200 don't mark addProperty()'d variables as constant when they have no set function diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index 213ddb3..83ad4cf 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -1022,8 +1022,6 @@ swfdec_as_object_add_variable (SwfdecAsO return; var->get = get; var->set = set; - if (set == NULL) - var->flags |= SWFDEC_AS_VARIABLE_CONSTANT; } /*** AS CODE ***/ diff-tree fd36de2f156ce685d5095aaf323e0766ea017bd7 (from c3b035ca1583a420402b965506129bd73ff3f5fe) Author: Benjamin Otte <otte at gno...
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
...g> Date: Wed Aug 15 23:11:31 2007 +0200 porperties added with addProperty aren't permanent. diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index 8999597..b5dcd25 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -991,7 +991,7 @@ swfdec_as_object_add_variable (SwfdecAsO return; var->get = get; var->set = set; - var->flags = SWFDEC_AS_VARIABLE_PERMANENT; + var->flags = 0; if (set == NULL) var->flags |= SWFDEC_AS_VARIABLE_READONLY; } diff-tree b9d80cd0852b204c03e5828bfb4210e3ed98a2a4 (from c94ea432d4a4a30c76cd89d701d8c...
2007 Sep 12
0
9 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player_as.c test/trace
...08, 0x07, 0x1C, 0x96, 0x07, + 0x00, 0x07, 0x04, 0x00, 0x00, 0x00, 0x08, 0x09, 0x3D, 0x17, 0x00 }; diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index 658336c..e7086e6 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -1206,7 +1206,8 @@ swfdec_as_object_add_variable (SwfdecAsO /*** AS CODE ***/ -static void +SWFDEC_AS_NATIVE (101, 2, swfdec_as_object_addProperty) +void swfdec_as_object_addProperty (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *retval) { @@ -1298,7 +1299,7 @@ swfdec_as_object_get_protot...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...#39;s properties propflags to not be set Implement setting version propflags in ASSetNativeAccessor Implement support for initObject in MovieClip's attachMovie method Add a test case for using initObject in attachMovie Add SWFDEC_AS_CHECKs to MovieClip methods Make swfdec_as_object_add_variable only set flags if a new variable was created Use g_ascii_strtod instead of strtod in parseFloat to be locale-independent Use g_ascii_strtoll instead of strtol in parseInt function Start implementing StyleSheet class, parsing mostly done Fix error in StyleSheet parser (skip s...
2007 Aug 23
0
23 commits - doc/.gitignore doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am
..._gtk_keycode_from_hardware_keycode <SUBSECTION Standard> swfdec_gtk_widget_get_type SwfdecGtkWidgetClass @@ -298,6 +300,7 @@ SwfdecAsVariableFlag swfdec_as_object_get_variable swfdec_as_object_get_variable_and_flags swfdec_as_object_set_variable +swfdec_as_object_set_variable_and_flags swfdec_as_object_add_variable swfdec_as_object_set_variable_flags swfdec_as_object_unset_variable_flags @@ -305,8 +308,10 @@ swfdec_as_object_delete_variable SwfdecAsVariableForeach swfdec_as_object_foreach swfdec_as_object_has_function +swfdec_as_object_run swfdec_as_object_call swfdec_as_object_add_function +swfdec_as_...