summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2004-08-01 23:15:44 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2004-08-01 23:15:44 +0000
commit4e9ba768f687170995aedbfecfb96926a077b1b9 (patch)
tree8beee5ea563b1cec98fb3ac3b365d56e853197e5
parent50599de035afde9e2c3afc688533d7030fdd4078 (diff)
downloadmdk-4e9ba768f687170995aedbfecfb96926a077b1b9.tar.gz
mdk-4e9ba768f687170995aedbfecfb96926a077b1b9.tar.bz2
g_tree_foreach instead of deprecated g_tree_traverse.
-rw-r--r--mixlib/mix_parser.c2
-rw-r--r--mixlib/mix_vm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mixlib/mix_parser.c b/mixlib/mix_parser.c
index 2a5d29f..17ed49b 100644
--- a/mixlib/mix_parser.c
+++ b/mixlib/mix_parser.c
@@ -170,7 +170,7 @@ mix_parser_delete (mix_parser_t *parser)
/* clear the GSList values of future_refs and its keys */
g_hash_table_foreach (parser->future_refs, delete_list_vals_, NULL);
/* clear the ins_node_'s of the ins tree */
- g_tree_traverse (parser->ins_table, delete_tree_vals_, G_IN_ORDER, NULL);
+ g_tree_foreach (parser->ins_table, delete_tree_vals_, NULL);
/* destroy the tree and hash tables */
g_tree_destroy (parser->ins_table);
mix_symbol_table_delete (parser->symbol_table);
diff --git a/mixlib/mix_vm.c b/mixlib/mix_vm.c
index c73e848..4d28e02 100644
--- a/mixlib/mix_vm.c
+++ b/mixlib/mix_vm.c
@@ -437,7 +437,7 @@ mix_vm_get_lineno_address (const mix_vm_t *vm, guint lineno)
if (!vm->line_table) return MIX_VM_CELL_NO;
tr.lineno = lineno;
tr.result = MIX_VM_CELL_NO;
- g_tree_traverse (vm->line_table, get_address_, G_IN_ORDER, (gpointer)&tr);
+ g_tree_foreach (vm->line_table, get_address_, (gpointer)&tr);
return tr.result;
}