Displaying 7 results from an estimated 7 matches for "n_commands".
2007 Jan 26
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c
...command.breakpoint = 0;
+ command.description = swfdec_script_print_action (action, data, len);
+ g_array_append_val (arrayp, command);
+ return TRUE;
+}
+
static SwfdecDebuggerScript *
-swfdec_debugger_script_new (JSScript *script, const char *name,
- SwfdecDebuggerCommand *commands, guint n_commands)
+swfdec_debugger_script_new (SwfdecScript *script)
{
+ GArray *array;
SwfdecDebuggerScript *ret;
ret = g_new0 (SwfdecDebuggerScript, 1);
ret->script = script;
- ret->name = g_strdup (name);
- ret->commands = commands;
- ret->n_commands = n_commands;
+ swfdec_script_ref...
2007 Mar 13
0
2 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h
...arser parser;
SwfdecDebuggerScript *ret;
ret = g_new0 (SwfdecDebuggerScript, 1);
ret->script = script;
swfdec_script_ref (script);
- array = g_array_new (TRUE, FALSE, sizeof (SwfdecDebuggerCommand));
- swfdec_script_foreach (script, swfdec_debugger_add_command, array);
- ret->n_commands = array->len;
- ret->commands = (SwfdecDebuggerCommand *) g_array_free (array, FALSE);
+ parser.commands = g_array_new (TRUE, FALSE, sizeof (SwfdecDebuggerCommand));
+ if (script->constant_pool) {
+ parser.constant_pool = swfdec_constant_pool_new_from_action (
+ script->constant_p...
2007 Jun 20
0
Branch 'as' - 2 commits - player/swfdec_debug_script.c player/swfdec_player_manager.c
...layerManager *manager, const char *arg)
{
if (!swfdec_player_manager_get_interrupted (manager))
@@ -457,6 +451,15 @@ command_next (SwfdecPlayerManager *manag
}
static void
+set_breakpoint (gpointer scriptp, gpointer debugger)
+{
+ SwfdecDebuggerScript *script = scriptp;
+
+ if (script->n_commands > 0)
+ swfdec_debugger_set_breakpoint (debugger, script, 0);
+}
+
+static void
command_break (SwfdecPlayerManager *manager, const char *arg)
{
char *str;
diff-tree ec0d68890cf216a2dc1ffd42deea08c5dff1d0a5 (from 9c5cb7cb9f6278896bc8a1e7cd7fb541b079c8de)
Author: Benjamin Otte <otte at g...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...command.breakpoint = 0;
+ command.description = swfdec_script_print_action (action, data, len);
+ g_array_append_val (arrayp, command);
+ return TRUE;
+}
+
static SwfdecDebuggerScript *
-swfdec_debugger_script_new (JSScript *script, const char *name,
- SwfdecDebuggerCommand *commands, guint n_commands)
+swfdec_debugger_script_new (SwfdecScript *script)
{
+ GArray *array;
SwfdecDebuggerScript *ret;
ret = g_new0 (SwfdecDebuggerScript, 1);
ret->script = script;
- ret->name = g_strdup (name);
- ret->commands = commands;
- ret->n_commands = n_commands;
+ swfdec_script_ref...
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...amp;& !should_interrupt; i++) {
Breakpoint *br = &g_array_index (debugger->breakpoints, Breakpoint, i);
if (br->script) {
@@ -280,8 +280,9 @@ swfdec_debugger_set_breakpoint (SwfdecDe
g_return_val_if_fail (script != NULL, 0);
g_return_val_if_fail (line < script->n_commands, 0);
- if (debugger->breakpoints == NULL)
+ if (debugger->breakpoints == NULL) {
debugger->breakpoints = g_array_new (FALSE, FALSE, sizeof (Breakpoint));
+ }
if (script->commands[line].breakpoint != 0)
return script->commands[line].breakpoint;
diff-tree 23429b410b...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...estroy", G_CALLBACK (destroyed_cb), manager);
- gtk_widget_show_all (window);
-}
-
-static void
-do_break_cb (SwfdecDebugger *debugger, SwfdecDebuggerScript *script, gpointer unused)
-{
- /* no need tobreak on scripts that don't do anything, so no special case needed */
- if (script->n_commands > 0)
- swfdec_debugger_set_breakpoint (debugger, script, 0);
-}
-
-static gboolean
-add_variables (gpointer player)
-{
- const char *variables = g_object_get_data (player, "variables");
- SwfdecLoader *loader = g_object_get_data (player, "loader");
-
- swfdec_player_set...
2007 Mar 12
0
11 commits - libswfdec/js libswfdec/swfdec_loader.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c player/swfdebug.c player/swfdec_player_manager.c test/trace
...(SwfdecPlayer *player, double s
static void
do_break_cb (SwfdecDebugger *debugger, SwfdecDebuggerScript *script, gpointer unused)
{
- swfdec_debugger_set_breakpoint (debugger, script, 0);
+ /* no need tobreak on scripts that don't do anything, so no special case needed */
+ if (script->n_commands > 0)
+ swfdec_debugger_set_breakpoint (debugger, script, 0);
}
static gboolean
diff-tree abee6c3ca4c2bc3e6337896746a47f8a6b7cb406 (from e69a7f78da02f87b10450ac20995412909d916fc)
Author: Benjamin Otte <otte@gnome.org>
Date: Mon Mar 12 22:28:31 2007 +0100
for absolute URIs, pri...