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
commit19375f048ad37eee997a2b2ea85976fb2ad2899f (patch)
treeef07d8e218860afc9f246a853763e80868bfc734
parent7b8e5df56adc51dd4e2f79c012d2a02e72fc6d99 (diff)
downloadmdk-19375f048ad37eee997a2b2ea85976fb2ad2899f.tar.gz
mdk-19375f048ad37eee997a2b2ea85976fb2ad2899f.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;
}