diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2004-08-01 23:15:44 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2004-08-01 23:15:44 +0000 |
commit | 19375f048ad37eee997a2b2ea85976fb2ad2899f (patch) | |
tree | ef07d8e218860afc9f246a853763e80868bfc734 | |
parent | 7b8e5df56adc51dd4e2f79c012d2a02e72fc6d99 (diff) | |
download | mdk-19375f048ad37eee997a2b2ea85976fb2ad2899f.tar.gz mdk-19375f048ad37eee997a2b2ea85976fb2ad2899f.tar.bz2 |
g_tree_foreach instead of deprecated g_tree_traverse.
-rw-r--r-- | mixlib/mix_parser.c | 2 | ||||
-rw-r--r-- | mixlib/mix_vm.c | 2 |
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; } |