search for: swfdec_as_str_asnative

Displaying 3 results from an estimated 3 matches for "swfdec_as_str_asnative".

2007 Sep 02
0
3 commits - libswfdec/swfdec_as_number.c libswfdec/swfdec_internal.h libswfdec/swfdec_player_as.c libswfdec/swfdec_player.c test/trace
...ec_player_preinit_global (SwfdecPlayer *player, guint version) +{ + SwfdecAsContext *context = SWFDEC_AS_CONTEXT (player); + + // init these two before swfdec_as_context_startup, so they won't get + // __proto__ and constructor properties + swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_ASnative, + 0, swfdec_player_ASnative, 2); + swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_ASconstructor, + 0, swfdec_player_ASconstructor, 2); +} + void swfdec_player_init_global (SwfdecPlayer *player, guint version) { - SwfdecAsValue val; - SwfdecAsObject *object; Sw...
2007 Aug 31
0
4 commits - libswfdec/swfdec_as_number.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player_as.c test/trace
...layer 0, swfdec_player_ASnative, 2); swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_ASconstructor, 0, swfdec_player_ASconstructor, 2); + + // remove __proto__ and constructor from ASnative and ASconstructor + + swfdec_as_object_get_variable (context->global, SWFDEC_AS_STR_ASnative, &val); + g_assert (SWFDEC_AS_VALUE_IS_OBJECT (&val)); + object = SWFDEC_AS_VALUE_GET_OBJECT (&val); + swfdec_as_object_unset_variable_flags (object, SWFDEC_AS_STR___proto__, + SWFDEC_AS_VARIABLE_PERMANENT); + swfdec_as_object_delete_variable (object, SWFDEC_AS_STR___proto__);...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
.../ static void @@ -118,5 +141,7 @@ swfdec_player_init_global (SwfdecPlayer 0, swfdec_player_setInterval, 2); swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_clearInterval, 0, swfdec_player_clearInterval, 1); + swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_ASnative, + 0, swfdec_player_ASnative, 2); } diff-tree 9df5084bd4208540592635cd747f9ed6eb808dc4 (from f02c7e0cd52babfa17441e4014528b9696e0e3e5) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jul 26 14:56:05 2007 +0200 add scripted setup code included is a tool that compil...