diff options
author | Jürg Billeter <j@bitron.ch> | 2008-07-03 11:55:59 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-07-03 11:55:59 +0000 |
commit | 1d2c962ebe12a99d812643d78e277103be790196 (patch) | |
tree | e94fbae0182c352ef6afc75bef40a043e3e8fe3a /gobject-introspection | |
parent | 6f5d5845d42b1fc958fd74adfa249d144362db98 (diff) | |
download | vala-1d2c962ebe12a99d812643d78e277103be790196.tar.gz |
Only drop duplicates of the same namespace
2008-07-03 Jürg Billeter <j@bitron.ch>
* gobject-introspection/scanner.c: (g_igenerator_add_symbol):
Only drop duplicates of the same namespace
svn path=/trunk/; revision=1672
Diffstat (limited to 'gobject-introspection')
-rw-r--r-- | gobject-introspection/scanner.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gobject-introspection/scanner.c b/gobject-introspection/scanner.c index 2feb5eac6..3b186cf6d 100644 --- a/gobject-introspection/scanner.c +++ b/gobject-introspection/scanner.c @@ -1203,7 +1203,9 @@ g_igenerator_add_symbol (GIGenerator * igenerator, CSymbol * symbol) /* that's not very optimized ! */ for (l = igenerator->symbol_list; l != NULL; l = l->next) { - if (g_str_equal (((CSymbol*)l->data)->ident, symbol->ident)) + CSymbol *other_symbol = (CSymbol *)l->data; + if (g_str_equal (other_symbol->ident, symbol->ident) + && other_symbol->type == symbol->type) { g_printerr ("Dropping %s duplicate\n", symbol->ident); return; |